diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/CHANGELOG.md b/sdk/machinelearning/azure-resourcemanager-machinelearning/CHANGELOG.md
index 22cf70d8f2233..f45070f4b7b6c 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/CHANGELOG.md
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/CHANGELOG.md
@@ -1,6 +1,8 @@
# Release History
-## 1.1.0-beta.1 (Unreleased)
+## 1.0.0-beta.1 (2023-08-28)
+
+- Azure Resource Manager Machine Learning client library for Java. This package contains Microsoft Azure SDK for Machine Learning Management SDK. These APIs allow end users to operate on Azure Machine Learning Workspace resources. Package tag package-preview-2023-08. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Features Added
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/README.md b/sdk/machinelearning/azure-resourcemanager-machinelearning/README.md
index 1521aeacd892d..3be77035c8709 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/README.md
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager Machine Learning client library for Java.
-This package contains Microsoft Azure SDK for Machine Learning Management SDK. These APIs allow end users to operate on Azure Machine Learning Workspace resources. Package tag package-2022-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for Machine Learning Management SDK. These APIs allow end users to operate on Azure Machine Learning Workspace resources. Package tag package-preview-2023-08. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-machinelearning
- 1.0.0
+ 1.1.0-beta.1
```
[//]: # ({x-version-update-end})
@@ -74,6 +74,49 @@ See [API design][design] for general introduction on design and key concepts on
## Examples
+```java
+workspace = machineLearningManager.workspaces()
+ .define(workspaceName)
+ .withExistingResourceGroup(resourceGroupName)
+ .withRegion(REGION)
+ .withSku(new Sku().withName("Basic").withTier(SkuTier.BASIC))
+ .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED))
+ .withFriendlyName(workspaceName)
+ .withStorageAccount(
+ storageManager.storageAccounts()
+ .define(storageName)
+ .withRegion(REGION)
+ .withExistingResourceGroup(resourceGroupName)
+ .withSku(StorageAccountSkuType.STANDARD_LRS)
+ .withMinimumTlsVersion(MinimumTlsVersion.TLS1_0)
+ .withHnsEnabled(false)
+ .withAccessFromAzureServices()
+ .withOnlyHttpsTraffic()
+ .withBlobStorageAccountKind().withAccessTier(AccessTier.HOT)
+ .create()
+ .id())
+ .withKeyVault(
+ keyVaultManager.vaults()
+ .define(keyVaultName)
+ .withRegion(REGION)
+ .withExistingResourceGroup(resourceGroupName)
+ .withEmptyAccessPolicy()
+ .withSku(SkuName.STANDARD)
+ .withDeploymentDisabled()
+ .withAccessFromAllNetworks()
+ .create()
+ .id())
+ .withApplicationInsights(
+ applicationInsightsManager.components()
+ .define(insightName)
+ .withRegion(REGION)
+ .withExistingResourceGroup(resourceGroupName)
+ .withKind("web")
+ .withApplicationType(ApplicationType.WEB)
+ .create()
+ .id())
+ .create();
+```
[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/machinelearning/azure-resourcemanager-machinelearning/SAMPLE.md)
@@ -103,3 +146,5 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
[coc]: https://opensource.microsoft.com/codeofconduct/
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
+
+![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-java%2Fsdk%2Fmachinelearning%2Fazure-resourcemanager-machinelearning%2FREADME.png)
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/SAMPLE.md b/sdk/machinelearning/azure-resourcemanager-machinelearning/SAMPLE.md
index aace5155fc337..872d673a62bb5 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/SAMPLE.md
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/SAMPLE.md
@@ -27,6 +27,7 @@
## CodeVersions
+- [CreateOrGetStartPendingUpload](#codeversions_createorgetstartpendingupload)
- [CreateOrUpdate](#codeversions_createorupdate)
- [Delete](#codeversions_delete)
- [Get](#codeversions_get)
@@ -51,13 +52,17 @@
- [CreateOrUpdate](#compute_createorupdate)
- [Delete](#compute_delete)
- [Get](#compute_get)
+- [GetAllowedResizeSizes](#compute_getallowedresizesizes)
- [List](#compute_list)
- [ListKeys](#compute_listkeys)
- [ListNodes](#compute_listnodes)
+- [Resize](#compute_resize)
- [Restart](#compute_restart)
- [Start](#compute_start)
- [Stop](#compute_stop)
- [Update](#compute_update)
+- [UpdateCustomServices](#compute_updatecustomservices)
+- [UpdateIdleShutdownSetting](#compute_updateidleshutdownsetting)
## DataContainers
@@ -95,6 +100,41 @@
- [Get](#environmentversions_get)
- [List](#environmentversions_list)
+## Features
+
+- [Get](#features_get)
+- [List](#features_list)
+
+## FeaturesetContainers
+
+- [CreateOrUpdate](#featuresetcontainers_createorupdate)
+- [Delete](#featuresetcontainers_delete)
+- [GetEntity](#featuresetcontainers_getentity)
+- [List](#featuresetcontainers_list)
+
+## FeaturesetVersions
+
+- [Backfill](#featuresetversions_backfill)
+- [CreateOrUpdate](#featuresetversions_createorupdate)
+- [Delete](#featuresetversions_delete)
+- [Get](#featuresetversions_get)
+- [List](#featuresetversions_list)
+- [ListMaterializationJobs](#featuresetversions_listmaterializationjobs)
+
+## FeaturestoreEntityContainers
+
+- [CreateOrUpdate](#featurestoreentitycontainers_createorupdate)
+- [Delete](#featurestoreentitycontainers_delete)
+- [GetEntity](#featurestoreentitycontainers_getentity)
+- [List](#featurestoreentitycontainers_list)
+
+## FeaturestoreEntityVersions
+
+- [CreateOrUpdate](#featurestoreentityversions_createorupdate)
+- [Delete](#featurestoreentityversions_delete)
+- [Get](#featurestoreentityversions_get)
+- [List](#featurestoreentityversions_list)
+
## Jobs
- [Cancel](#jobs_cancel)
@@ -102,6 +142,28 @@
- [Delete](#jobs_delete)
- [Get](#jobs_get)
- [List](#jobs_list)
+- [Update](#jobs_update)
+
+## LabelingJobs
+
+- [CreateOrUpdate](#labelingjobs_createorupdate)
+- [Delete](#labelingjobs_delete)
+- [ExportLabels](#labelingjobs_exportlabels)
+- [Get](#labelingjobs_get)
+- [List](#labelingjobs_list)
+- [Pause](#labelingjobs_pause)
+- [Resume](#labelingjobs_resume)
+
+## ManagedNetworkProvisions
+
+- [ProvisionManagedNetwork](#managednetworkprovisions_provisionmanagednetwork)
+
+## ManagedNetworkSettingsRule
+
+- [CreateOrUpdate](#managednetworksettingsrule_createorupdate)
+- [Delete](#managednetworksettingsrule_delete)
+- [Get](#managednetworksettingsrule_get)
+- [List](#managednetworksettingsrule_list)
## ModelContainers
@@ -116,6 +178,7 @@
- [Delete](#modelversions_delete)
- [Get](#modelversions_get)
- [List](#modelversions_list)
+- [PackageMethod](#modelversions_packagemethod)
## OnlineDeployments
@@ -158,6 +221,90 @@
- [List](#quotas_list)
- [Update](#quotas_update)
+## Registries
+
+- [CreateOrUpdate](#registries_createorupdate)
+- [Delete](#registries_delete)
+- [GetByResourceGroup](#registries_getbyresourcegroup)
+- [List](#registries_list)
+- [ListByResourceGroup](#registries_listbyresourcegroup)
+- [RemoveRegions](#registries_removeregions)
+- [Update](#registries_update)
+
+## RegistryCodeContainers
+
+- [CreateOrUpdate](#registrycodecontainers_createorupdate)
+- [Delete](#registrycodecontainers_delete)
+- [Get](#registrycodecontainers_get)
+- [List](#registrycodecontainers_list)
+
+## RegistryCodeVersions
+
+- [CreateOrGetStartPendingUpload](#registrycodeversions_createorgetstartpendingupload)
+- [CreateOrUpdate](#registrycodeversions_createorupdate)
+- [Delete](#registrycodeversions_delete)
+- [Get](#registrycodeversions_get)
+- [List](#registrycodeversions_list)
+
+## RegistryComponentContainers
+
+- [CreateOrUpdate](#registrycomponentcontainers_createorupdate)
+- [Delete](#registrycomponentcontainers_delete)
+- [Get](#registrycomponentcontainers_get)
+- [List](#registrycomponentcontainers_list)
+
+## RegistryComponentVersions
+
+- [CreateOrUpdate](#registrycomponentversions_createorupdate)
+- [Delete](#registrycomponentversions_delete)
+- [Get](#registrycomponentversions_get)
+- [List](#registrycomponentversions_list)
+
+## RegistryDataContainers
+
+- [CreateOrUpdate](#registrydatacontainers_createorupdate)
+- [Delete](#registrydatacontainers_delete)
+- [Get](#registrydatacontainers_get)
+- [List](#registrydatacontainers_list)
+
+## RegistryDataVersions
+
+- [CreateOrGetStartPendingUpload](#registrydataversions_createorgetstartpendingupload)
+- [CreateOrUpdate](#registrydataversions_createorupdate)
+- [Delete](#registrydataversions_delete)
+- [Get](#registrydataversions_get)
+- [List](#registrydataversions_list)
+
+## RegistryEnvironmentContainers
+
+- [CreateOrUpdate](#registryenvironmentcontainers_createorupdate)
+- [Delete](#registryenvironmentcontainers_delete)
+- [Get](#registryenvironmentcontainers_get)
+- [List](#registryenvironmentcontainers_list)
+
+## RegistryEnvironmentVersions
+
+- [CreateOrUpdate](#registryenvironmentversions_createorupdate)
+- [Delete](#registryenvironmentversions_delete)
+- [Get](#registryenvironmentversions_get)
+- [List](#registryenvironmentversions_list)
+
+## RegistryModelContainers
+
+- [CreateOrUpdate](#registrymodelcontainers_createorupdate)
+- [Delete](#registrymodelcontainers_delete)
+- [Get](#registrymodelcontainers_get)
+- [List](#registrymodelcontainers_list)
+
+## RegistryModelVersions
+
+- [CreateOrGetStartPendingUpload](#registrymodelversions_createorgetstartpendingupload)
+- [CreateOrUpdate](#registrymodelversions_createorupdate)
+- [Delete](#registrymodelversions_delete)
+- [Get](#registrymodelversions_get)
+- [List](#registrymodelversions_list)
+- [PackageMethod](#registrymodelversions_packagemethod)
+
## Schedules
- [CreateOrUpdate](#schedules_createorupdate)
@@ -165,6 +312,16 @@
- [Get](#schedules_get)
- [List](#schedules_list)
+## ServerlessEndpoints
+
+- [CreateOrUpdate](#serverlessendpoints_createorupdate)
+- [Delete](#serverlessendpoints_delete)
+- [Get](#serverlessendpoints_get)
+- [List](#serverlessendpoints_list)
+- [ListKeys](#serverlessendpoints_listkeys)
+- [RegenerateKeys](#serverlessendpoints_regeneratekeys)
+- [Update](#serverlessendpoints_update)
+
## Usages
- [List](#usages_list)
@@ -179,6 +336,8 @@
- [Delete](#workspaceconnections_delete)
- [Get](#workspaceconnections_get)
- [List](#workspaceconnections_list)
+- [ListSecrets](#workspaceconnections_listsecrets)
+- [Update](#workspaceconnections_update)
## WorkspaceFeatures
@@ -225,14 +384,14 @@ import java.util.Map;
/** Samples for BatchDeployments CreateOrUpdate. */
public final class BatchDeploymentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/BatchDeployment/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/BatchDeployment/createOrUpdate.json
*/
/**
- * Sample code: CreateOrUpdate Batch Deployment.
+ * Sample code: CreateOrUpdate Workspace Batch Deployment.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateBatchDeployment(
+ public static void createOrUpdateWorkspaceBatchDeployment(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) throws IOException {
manager
.batchDeployments()
@@ -285,6 +444,7 @@ public final class BatchDeploymentsCreateOrUpdateSamples {
.create();
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -304,14 +464,15 @@ public final class BatchDeploymentsCreateOrUpdateSamples {
/** Samples for BatchDeployments Delete. */
public final class BatchDeploymentsDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/BatchDeployment/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/BatchDeployment/delete.json
*/
/**
- * Sample code: Delete Batch Deployment.
+ * Sample code: Delete Workspace Batch Deployment.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteBatchDeployment(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void deleteWorkspaceBatchDeployment(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.batchDeployments()
.delete(
@@ -330,14 +491,15 @@ public final class BatchDeploymentsDeleteSamples {
/** Samples for BatchDeployments Get. */
public final class BatchDeploymentsGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/BatchDeployment/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/BatchDeployment/get.json
*/
/**
- * Sample code: Get Batch Deployment.
+ * Sample code: Get Workspace Batch Deployment.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getBatchDeployment(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void getWorkspaceBatchDeployment(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.batchDeployments()
.getWithResponse(
@@ -356,14 +518,15 @@ public final class BatchDeploymentsGetSamples {
/** Samples for BatchDeployments List. */
public final class BatchDeploymentsListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/BatchDeployment/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/BatchDeployment/list.json
*/
/**
- * Sample code: List Batch Deployment.
+ * Sample code: List Workspace Batch Deployment.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listBatchDeployment(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void listWorkspaceBatchDeployment(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.batchDeployments()
.list(
@@ -383,14 +546,15 @@ import java.util.Map;
/** Samples for BatchDeployments Update. */
public final class BatchDeploymentsUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/BatchDeployment/update.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/BatchDeployment/update.json
*/
/**
- * Sample code: Update Batch Deployment.
+ * Sample code: Update Workspace Batch Deployment.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void updateBatchDeployment(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void updateWorkspaceBatchDeployment(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
BatchDeployment resource =
manager
.batchDeployments()
@@ -408,6 +572,7 @@ public final class BatchDeploymentsUpdateSamples {
.apply();
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -438,14 +603,14 @@ import java.util.Map;
/** Samples for BatchEndpoints CreateOrUpdate. */
public final class BatchEndpointsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/BatchEndpoint/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/BatchEndpoint/createOrUpdate.json
*/
/**
- * Sample code: CreateOrUpdate Batch Endpoint.
+ * Sample code: CreateOrUpdate Workspace Batch Endpoint.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateBatchEndpoint(
+ public static void createOrUpdateWorkspaceBatchEndpoint(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.batchEndpoints()
@@ -474,6 +639,7 @@ public final class BatchEndpointsCreateOrUpdateSamples {
.create();
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -493,14 +659,15 @@ public final class BatchEndpointsCreateOrUpdateSamples {
/** Samples for BatchEndpoints Delete. */
public final class BatchEndpointsDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/BatchEndpoint/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/BatchEndpoint/delete.json
*/
/**
- * Sample code: Delete Batch Endpoint.
+ * Sample code: Delete Workspace Batch Endpoint.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteBatchEndpoint(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void deleteWorkspaceBatchEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.batchEndpoints()
.delete("resourceGroup-1234", "testworkspace", "testBatchEndpoint", com.azure.core.util.Context.NONE);
@@ -514,14 +681,15 @@ public final class BatchEndpointsDeleteSamples {
/** Samples for BatchEndpoints Get. */
public final class BatchEndpointsGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/BatchEndpoint/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/BatchEndpoint/get.json
*/
/**
- * Sample code: Get Batch Endpoint.
+ * Sample code: Get Workspace Batch Endpoint.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getBatchEndpoint(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void getWorkspaceBatchEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.batchEndpoints()
.getWithResponse("test-rg", "my-aml-workspace", "testEndpointName", com.azure.core.util.Context.NONE);
@@ -535,14 +703,15 @@ public final class BatchEndpointsGetSamples {
/** Samples for BatchEndpoints List. */
public final class BatchEndpointsListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/BatchEndpoint/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/BatchEndpoint/list.json
*/
/**
- * Sample code: List Batch Endpoint.
+ * Sample code: List Workspace Batch Endpoint.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listBatchEndpoint(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void listWorkspaceBatchEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.batchEndpoints().list("test-rg", "my-aml-workspace", 1, null, com.azure.core.util.Context.NONE);
}
}
@@ -554,14 +723,15 @@ public final class BatchEndpointsListSamples {
/** Samples for BatchEndpoints ListKeys. */
public final class BatchEndpointsListKeysSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/BatchEndpoint/listKeys.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/BatchEndpoint/listKeys.json
*/
/**
- * Sample code: ListKeys Batch Endpoint.
+ * Sample code: ListKeys Workspace Batch Endpoint.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listKeysBatchEndpoint(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void listKeysWorkspaceBatchEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.batchEndpoints()
.listKeysWithResponse("test-rg", "my-aml-workspace", "testEndpointName", com.azure.core.util.Context.NONE);
@@ -584,15 +754,15 @@ import java.util.Map;
/** Samples for BatchEndpoints Update. */
public final class BatchEndpointsUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/BatchEndpoint/update.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/BatchEndpoint/update.json
*/
/**
- * Sample code: Update Batch Endpoint.
+ * Sample code: Update Workspace Batch Endpoint.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void updateBatchEndpoint(com.azure.resourcemanager.machinelearning.MachineLearningManager manager)
- throws IOException {
+ public static void updateWorkspaceBatchEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) throws IOException {
BatchEndpoint resource =
manager
.batchEndpoints()
@@ -613,6 +783,7 @@ public final class BatchEndpointsUpdateSamples {
.apply();
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -629,6 +800,7 @@ public final class BatchEndpointsUpdateSamples {
### CodeContainers_CreateOrUpdate
```java
+import com.azure.resourcemanager.machinelearning.fluent.models.CodeContainerInner;
import com.azure.resourcemanager.machinelearning.models.CodeContainerProperties;
import java.util.HashMap;
import java.util.Map;
@@ -636,26 +808,30 @@ import java.util.Map;
/** Samples for CodeContainers CreateOrUpdate. */
public final class CodeContainersCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/CodeContainer/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/CodeContainer/createOrUpdate.json
*/
/**
- * Sample code: CreateOrUpdate Code Container.
+ * Sample code: CreateOrUpdate Workspace Code Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateCodeContainer(
+ public static void createOrUpdateWorkspaceCodeContainer(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.codeContainers()
- .define("testContainer")
- .withExistingWorkspace("testrg123", "testworkspace")
- .withProperties(
- new CodeContainerProperties()
- .withDescription("string")
- .withTags(mapOf("tag1", "value1", "tag2", "value2")))
- .create();
+ .createOrUpdateWithResponse(
+ "testrg123",
+ "testworkspace",
+ "testContainer",
+ new CodeContainerInner()
+ .withProperties(
+ new CodeContainerProperties()
+ .withDescription("string")
+ .withTags(mapOf("tag1", "value1", "tag2", "value2"))),
+ com.azure.core.util.Context.NONE);
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -675,14 +851,15 @@ public final class CodeContainersCreateOrUpdateSamples {
/** Samples for CodeContainers Delete. */
public final class CodeContainersDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/CodeContainer/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/CodeContainer/delete.json
*/
/**
- * Sample code: Delete Code Container.
+ * Sample code: Delete Workspace Code Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteCodeContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void deleteWorkspaceCodeContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.codeContainers()
.deleteWithResponse("testrg123", "testworkspace", "testContainer", com.azure.core.util.Context.NONE);
@@ -696,14 +873,15 @@ public final class CodeContainersDeleteSamples {
/** Samples for CodeContainers Get. */
public final class CodeContainersGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/CodeContainer/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/CodeContainer/get.json
*/
/**
- * Sample code: Get Code Container.
+ * Sample code: Get Workspace Code Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getCodeContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void getWorkspaceCodeContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.codeContainers()
.getWithResponse("testrg123", "testworkspace", "testContainer", com.azure.core.util.Context.NONE);
@@ -717,22 +895,57 @@ public final class CodeContainersGetSamples {
/** Samples for CodeContainers List. */
public final class CodeContainersListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/CodeContainer/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/CodeContainer/list.json
*/
/**
- * Sample code: List Code Container.
+ * Sample code: List Workspace Code Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listCodeContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void listWorkspaceCodeContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.codeContainers().list("testrg123", "testworkspace", null, com.azure.core.util.Context.NONE);
}
}
```
+### CodeVersions_CreateOrGetStartPendingUpload
+
+```java
+import com.azure.resourcemanager.machinelearning.models.PendingUploadRequestDto;
+import com.azure.resourcemanager.machinelearning.models.PendingUploadType;
+
+/** Samples for CodeVersions CreateOrGetStartPendingUpload. */
+public final class CodeVersionsCreateOrGetStartPendingUploadSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/CodeVersion/createOrGetStartPendingUpload.json
+ */
+ /**
+ * Sample code: CreateOrGetStartPendingUpload Workspace Code Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrGetStartPendingUploadWorkspaceCodeVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .codeVersions()
+ .createOrGetStartPendingUploadWithResponse(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ "string",
+ new PendingUploadRequestDto()
+ .withPendingUploadId("string")
+ .withPendingUploadType(PendingUploadType.TEMPORARY_BLOB_REFERENCE),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### CodeVersions_CreateOrUpdate
```java
+import com.azure.resourcemanager.machinelearning.fluent.models.CodeVersionInner;
import com.azure.resourcemanager.machinelearning.models.CodeVersionProperties;
import java.util.HashMap;
import java.util.Map;
@@ -740,29 +953,34 @@ import java.util.Map;
/** Samples for CodeVersions CreateOrUpdate. */
public final class CodeVersionsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/CodeVersion/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/CodeVersion/createOrUpdate.json
*/
/**
- * Sample code: CreateOrUpdate Code Version.
+ * Sample code: CreateOrUpdate Workspace Code Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateCodeVersion(
+ public static void createOrUpdateWorkspaceCodeVersion(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.codeVersions()
- .define("string")
- .withExistingCode("test-rg", "my-aml-workspace", "string")
- .withProperties(
- new CodeVersionProperties()
- .withDescription("string")
- .withProperties(mapOf("string", "string"))
- .withTags(mapOf("string", "string"))
- .withIsAnonymous(false)
- .withCodeUri("fakeTokenPlaceholder"))
- .create();
+ .createOrUpdateWithResponse(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ "string",
+ new CodeVersionInner()
+ .withProperties(
+ new CodeVersionProperties()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsAnonymous(false)
+ .withCodeUri("fakeTokenPlaceholder")),
+ com.azure.core.util.Context.NONE);
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -782,14 +1000,15 @@ public final class CodeVersionsCreateOrUpdateSamples {
/** Samples for CodeVersions Delete. */
public final class CodeVersionsDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/CodeVersion/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/CodeVersion/delete.json
*/
/**
- * Sample code: Delete Code Version.
+ * Sample code: Delete Workspace Code Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteCodeVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void deleteWorkspaceCodeVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.codeVersions()
.deleteWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
@@ -803,14 +1022,15 @@ public final class CodeVersionsDeleteSamples {
/** Samples for CodeVersions Get. */
public final class CodeVersionsGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/CodeVersion/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/CodeVersion/get.json
*/
/**
- * Sample code: Get Code Version.
+ * Sample code: Get Workspace Code Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getCodeVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void getWorkspaceCodeVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.codeVersions()
.getWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
@@ -824,17 +1044,27 @@ public final class CodeVersionsGetSamples {
/** Samples for CodeVersions List. */
public final class CodeVersionsListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/CodeVersion/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/CodeVersion/list.json
*/
/**
- * Sample code: List Code Version.
+ * Sample code: List Workspace Code Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listCodeVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void listWorkspaceCodeVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.codeVersions()
- .list("test-rg", "my-aml-workspace", "string", "string", 1, null, com.azure.core.util.Context.NONE);
+ .list(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ "string",
+ 1,
+ null,
+ null,
+ null,
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -842,6 +1072,7 @@ public final class CodeVersionsListSamples {
### ComponentContainers_CreateOrUpdate
```java
+import com.azure.resourcemanager.machinelearning.fluent.models.ComponentContainerInner;
import com.azure.resourcemanager.machinelearning.models.ComponentContainerProperties;
import java.util.HashMap;
import java.util.Map;
@@ -849,27 +1080,31 @@ import java.util.Map;
/** Samples for ComponentContainers CreateOrUpdate. */
public final class ComponentContainersCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ComponentContainer/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ComponentContainer/createOrUpdate.json
*/
/**
- * Sample code: CreateOrUpdate Component Container.
+ * Sample code: CreateOrUpdate Workspace Component Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateComponentContainer(
+ public static void createOrUpdateWorkspaceComponentContainer(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.componentContainers()
- .define("string")
- .withExistingWorkspace("test-rg", "my-aml-workspace")
- .withProperties(
- new ComponentContainerProperties()
- .withDescription("string")
- .withProperties(mapOf("string", "string"))
- .withTags(mapOf("string", "string")))
- .create();
+ .createOrUpdateWithResponse(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ new ComponentContainerInner()
+ .withProperties(
+ new ComponentContainerProperties()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))),
+ com.azure.core.util.Context.NONE);
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -889,14 +1124,14 @@ public final class ComponentContainersCreateOrUpdateSamples {
/** Samples for ComponentContainers Delete. */
public final class ComponentContainersDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ComponentContainer/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ComponentContainer/delete.json
*/
/**
- * Sample code: Delete Component Container.
+ * Sample code: Delete Workspace Component Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteComponentContainer(
+ public static void deleteWorkspaceComponentContainer(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.componentContainers()
@@ -911,14 +1146,15 @@ public final class ComponentContainersDeleteSamples {
/** Samples for ComponentContainers Get. */
public final class ComponentContainersGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ComponentContainer/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ComponentContainer/get.json
*/
/**
- * Sample code: Get Component Container.
+ * Sample code: Get Workspace Component Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getComponentContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void getWorkspaceComponentContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.componentContainers()
.getWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
@@ -932,14 +1168,14 @@ public final class ComponentContainersGetSamples {
/** Samples for ComponentContainers List. */
public final class ComponentContainersListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ComponentContainer/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ComponentContainer/list.json
*/
/**
- * Sample code: List Component Container.
+ * Sample code: List Workspace Component Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listComponentContainer(
+ public static void listWorkspaceComponentContainer(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.componentContainers().list("test-rg", "my-aml-workspace", null, null, com.azure.core.util.Context.NONE);
}
@@ -951,6 +1187,7 @@ public final class ComponentContainersListSamples {
```java
import com.azure.core.management.serializer.SerializerFactory;
import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.machinelearning.fluent.models.ComponentVersionInner;
import com.azure.resourcemanager.machinelearning.models.ComponentVersionProperties;
import java.io.IOException;
import java.util.HashMap;
@@ -959,35 +1196,40 @@ import java.util.Map;
/** Samples for ComponentVersions CreateOrUpdate. */
public final class ComponentVersionsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ComponentVersion/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ComponentVersion/createOrUpdate.json
*/
/**
- * Sample code: CreateOrUpdate Component Version.
+ * Sample code: CreateOrUpdate Workspace Component Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateComponentVersion(
+ public static void createOrUpdateWorkspaceComponentVersion(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) throws IOException {
manager
.componentVersions()
- .define("string")
- .withExistingComponent("test-rg", "my-aml-workspace", "string")
- .withProperties(
- new ComponentVersionProperties()
- .withDescription("string")
- .withProperties(mapOf("string", "string"))
- .withTags(mapOf("string", "string"))
- .withIsAnonymous(false)
- .withComponentSpec(
- SerializerFactory
- .createDefaultManagementSerializerAdapter()
- .deserialize(
- "{\"8ced901b-d826-477d-bfef-329da9672513\":null}",
- Object.class,
- SerializerEncoding.JSON)))
- .create();
+ .createOrUpdateWithResponse(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ "string",
+ new ComponentVersionInner()
+ .withProperties(
+ new ComponentVersionProperties()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsAnonymous(false)
+ .withComponentSpec(
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize(
+ "{\"8ced901b-d826-477d-bfef-329da9672513\":null}",
+ Object.class,
+ SerializerEncoding.JSON))),
+ com.azure.core.util.Context.NONE);
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -1007,14 +1249,14 @@ public final class ComponentVersionsCreateOrUpdateSamples {
/** Samples for ComponentVersions Delete. */
public final class ComponentVersionsDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ComponentVersion/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ComponentVersion/delete.json
*/
/**
- * Sample code: Delete Component Version.
+ * Sample code: Delete Workspace Component Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteComponentVersion(
+ public static void deleteWorkspaceComponentVersion(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.componentVersions()
@@ -1029,14 +1271,15 @@ public final class ComponentVersionsDeleteSamples {
/** Samples for ComponentVersions Get. */
public final class ComponentVersionsGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ComponentVersion/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ComponentVersion/get.json
*/
/**
- * Sample code: Get Component Version.
+ * Sample code: Get Workspace Component Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getComponentVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void getWorkspaceComponentVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.componentVersions()
.getWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
@@ -1050,17 +1293,27 @@ public final class ComponentVersionsGetSamples {
/** Samples for ComponentVersions List. */
public final class ComponentVersionsListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ComponentVersion/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ComponentVersion/list.json
*/
/**
- * Sample code: List Component Version.
+ * Sample code: List Workspace Component Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listComponentVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void listWorkspaceComponentVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.componentVersions()
- .list("test-rg", "my-aml-workspace", "string", "string", 1, null, null, com.azure.core.util.Context.NONE);
+ .list(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ "string",
+ 1,
+ null,
+ null,
+ null,
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1076,29 +1329,48 @@ import com.azure.resourcemanager.machinelearning.models.ApplicationSharingPolicy
import com.azure.resourcemanager.machinelearning.models.AssignedUser;
import com.azure.resourcemanager.machinelearning.models.ComputeInstance;
import com.azure.resourcemanager.machinelearning.models.ComputeInstanceAuthorizationType;
+import com.azure.resourcemanager.machinelearning.models.ComputeInstanceAutologgerSettings;
import com.azure.resourcemanager.machinelearning.models.ComputeInstanceProperties;
import com.azure.resourcemanager.machinelearning.models.ComputeInstanceSshSettings;
+import com.azure.resourcemanager.machinelearning.models.ComputePowerAction;
+import com.azure.resourcemanager.machinelearning.models.ComputeSchedules;
+import com.azure.resourcemanager.machinelearning.models.ComputeStartStopSchedule;
+import com.azure.resourcemanager.machinelearning.models.Cron;
+import com.azure.resourcemanager.machinelearning.models.CustomService;
import com.azure.resourcemanager.machinelearning.models.DataFactory;
+import com.azure.resourcemanager.machinelearning.models.Docker;
+import com.azure.resourcemanager.machinelearning.models.Endpoint;
+import com.azure.resourcemanager.machinelearning.models.EnvironmentVariable;
+import com.azure.resourcemanager.machinelearning.models.EnvironmentVariableType;
+import com.azure.resourcemanager.machinelearning.models.Image;
+import com.azure.resourcemanager.machinelearning.models.ImageType;
import com.azure.resourcemanager.machinelearning.models.InstanceTypeSchema;
import com.azure.resourcemanager.machinelearning.models.InstanceTypeSchemaResources;
import com.azure.resourcemanager.machinelearning.models.Kubernetes;
import com.azure.resourcemanager.machinelearning.models.KubernetesProperties;
+import com.azure.resourcemanager.machinelearning.models.MlflowAutologger;
import com.azure.resourcemanager.machinelearning.models.OsType;
import com.azure.resourcemanager.machinelearning.models.PersonalComputeInstanceSettings;
+import com.azure.resourcemanager.machinelearning.models.Protocol;
import com.azure.resourcemanager.machinelearning.models.RemoteLoginPortPublicAccess;
import com.azure.resourcemanager.machinelearning.models.ResourceId;
import com.azure.resourcemanager.machinelearning.models.ScaleSettings;
+import com.azure.resourcemanager.machinelearning.models.ScheduleStatus;
import com.azure.resourcemanager.machinelearning.models.SshPublicAccess;
+import com.azure.resourcemanager.machinelearning.models.TriggerType;
import com.azure.resourcemanager.machinelearning.models.VirtualMachineImage;
import com.azure.resourcemanager.machinelearning.models.VmPriority;
+import com.azure.resourcemanager.machinelearning.models.VolumeDefinition;
+import com.azure.resourcemanager.machinelearning.models.VolumeDefinitionType;
import java.time.Duration;
+import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
/** Samples for Compute CreateOrUpdate. */
public final class ComputeCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/createOrUpdate/BasicAKSCompute.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/createOrUpdate/BasicAKSCompute.json
*/
/**
* Sample code: Create an AKS Compute.
@@ -1116,7 +1388,7 @@ public final class ComputeCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/createOrUpdate/AKSCompute.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/createOrUpdate/AKSCompute.json
*/
/**
* Sample code: Update an AKS Compute.
@@ -1139,7 +1411,7 @@ public final class ComputeCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/createOrUpdate/KubernetesCompute.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/createOrUpdate/KubernetesCompute.json
*/
/**
* Sample code: Attach a Kubernetes Compute.
@@ -1176,7 +1448,7 @@ public final class ComputeCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/createOrUpdate/ComputeInstanceWithSchedules.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/createOrUpdate/ComputeInstanceWithSchedules.json
*/
/**
* Sample code: Create an ComputeInstance Compute with Schedules.
@@ -1204,12 +1476,26 @@ public final class ComputeCreateOrUpdateSamples {
.withAssignedUser(
new AssignedUser()
.withObjectId("00000000-0000-0000-0000-000000000000")
- .withTenantId("00000000-0000-0000-0000-000000000000")))))
+ .withTenantId("00000000-0000-0000-0000-000000000000")))
+ .withSchedules(
+ new ComputeSchedules()
+ .withComputeStartStop(
+ Arrays
+ .asList(
+ new ComputeStartStopSchedule()
+ .withStatus(ScheduleStatus.ENABLED)
+ .withAction(ComputePowerAction.STOP)
+ .withTriggerType(TriggerType.CRON)
+ .withCron(
+ new Cron()
+ .withStartTime("2021-04-23T01:30:00")
+ .withTimeZone("Pacific Standard Time")
+ .withExpression("0 18 * * *")))))))
.create();
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/createOrUpdate/BasicAmlCompute.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/createOrUpdate/BasicAmlCompute.json
*/
/**
* Sample code: Create a AML Compute.
@@ -1245,7 +1531,7 @@ public final class ComputeCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/createOrUpdate/ComputeInstance.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/createOrUpdate/ComputeInstance.json
*/
/**
* Sample code: Create an ComputeInstance Compute.
@@ -1266,9 +1552,49 @@ public final class ComputeCreateOrUpdateSamples {
.withVmSize("STANDARD_NC6")
.withSubnet(new ResourceId().withId("test-subnet-resource-id"))
.withApplicationSharingPolicy(ApplicationSharingPolicy.PERSONAL)
+ .withAutologgerSettings(
+ new ComputeInstanceAutologgerSettings().withMlflowAutologger(MlflowAutologger.ENABLED))
.withSshSettings(
new ComputeInstanceSshSettings().withSshPublicAccess(SshPublicAccess.DISABLED))
+ .withCustomServices(
+ Arrays
+ .asList(
+ new CustomService()
+ .withName("rstudio-workbench")
+ .withImage(
+ new Image()
+ .withType(ImageType.DOCKER)
+ .withReference("ghcr.io/azure/rstudio-workbench:latest")
+ .withAdditionalProperties(mapOf()))
+ .withEnvironmentVariables(
+ mapOf(
+ "RSP_LICENSE",
+ new EnvironmentVariable()
+ .withType(EnvironmentVariableType.LOCAL)
+ .withValue("XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX")
+ .withAdditionalProperties(mapOf())))
+ .withDocker(
+ new Docker().withPrivileged(true).withAdditionalProperties(mapOf()))
+ .withEndpoints(
+ Arrays
+ .asList(
+ new Endpoint()
+ .withProtocol(Protocol.HTTP)
+ .withName("connect")
+ .withTarget(8787)
+ .withPublished(4444)))
+ .withVolumes(
+ Arrays
+ .asList(
+ new VolumeDefinition()
+ .withType(VolumeDefinitionType.BIND)
+ .withReadOnly(true)
+ .withSource("/mnt/azureuser/")
+ .withTarget("/home/testuser/")))
+ .withAdditionalProperties(mapOf())))
.withComputeInstanceAuthorizationType(ComputeInstanceAuthorizationType.PERSONAL)
+ .withEnableOSPatching(true)
+ .withReleaseQuotaOnStop(true)
.withPersonalComputeInstanceSettings(
new PersonalComputeInstanceSettings()
.withAssignedUser(
@@ -1279,7 +1605,7 @@ public final class ComputeCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/createOrUpdate/ComputeInstanceMinimal.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/createOrUpdate/ComputeInstanceMinimal.json
*/
/**
* Sample code: Create an ComputeInstance Compute with minimal inputs.
@@ -1299,7 +1625,7 @@ public final class ComputeCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/createOrUpdate/AmlCompute.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/createOrUpdate/AmlCompute.json
*/
/**
* Sample code: Update a AML Compute.
@@ -1326,7 +1652,7 @@ public final class ComputeCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/createOrUpdate/BasicDataFactoryCompute.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/createOrUpdate/BasicDataFactoryCompute.json
*/
/**
* Sample code: Create a DataFactory Compute.
@@ -1344,6 +1670,7 @@ public final class ComputeCreateOrUpdateSamples {
.create();
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -1365,7 +1692,7 @@ import com.azure.resourcemanager.machinelearning.models.UnderlyingResourceAction
/** Samples for Compute Delete. */
public final class ComputeDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/delete.json
*/
/**
* Sample code: Delete Compute.
@@ -1391,7 +1718,7 @@ public final class ComputeDeleteSamples {
/** Samples for Compute Get. */
public final class ComputeGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/get/AKSCompute.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/get/AKSCompute.json
*/
/**
* Sample code: Get a AKS Compute.
@@ -1405,7 +1732,7 @@ public final class ComputeGetSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/get/KubernetesCompute.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/get/KubernetesCompute.json
*/
/**
* Sample code: Get a Kubernetes Compute.
@@ -1419,7 +1746,7 @@ public final class ComputeGetSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/get/ComputeInstance.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/get/ComputeInstance.json
*/
/**
* Sample code: Get an ComputeInstance.
@@ -1433,7 +1760,7 @@ public final class ComputeGetSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/get/AmlCompute.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/get/AmlCompute.json
*/
/**
* Sample code: Get a AML Compute.
@@ -1448,13 +1775,35 @@ public final class ComputeGetSamples {
}
```
+### Compute_GetAllowedResizeSizes
+
+```java
+/** Samples for Compute GetAllowedResizeSizes. */
+public final class ComputeGetAllowedResizeSizesSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/getAllowedVMSizesForResize.json
+ */
+ /**
+ * Sample code: List VM Sizes.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listVMSizes(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .computes()
+ .getAllowedResizeSizesWithResponse(
+ "testrg123", "workspaces123", "compute123", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### Compute_List
```java
/** Samples for Compute List. */
public final class ComputeListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/list.json
*/
/**
* Sample code: Get Computes.
@@ -1473,7 +1822,7 @@ public final class ComputeListSamples {
/** Samples for Compute ListKeys. */
public final class ComputeListKeysSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/listKeys.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/listKeys.json
*/
/**
* Sample code: List AKS Compute Keys.
@@ -1494,7 +1843,7 @@ public final class ComputeListKeysSamples {
/** Samples for Compute ListNodes. */
public final class ComputeListNodesSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/listNodes.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/listNodes.json
*/
/**
* Sample code: Get compute nodes information for a compute.
@@ -1508,13 +1857,41 @@ public final class ComputeListNodesSamples {
}
```
+### Compute_Resize
+
+```java
+import com.azure.resourcemanager.machinelearning.models.ResizeSchema;
+
+/** Samples for Compute Resize. */
+public final class ComputeResizeSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/resize.json
+ */
+ /**
+ * Sample code: List VM Sizes.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listVMSizes(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .computes()
+ .resize(
+ "testrg123",
+ "workspaces123",
+ "compute123",
+ new ResizeSchema().withTargetVMSize("Standard_DS11_v2"),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### Compute_Restart
```java
/** Samples for Compute Restart. */
public final class ComputeRestartSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/restart.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/restart.json
*/
/**
* Sample code: Restart ComputeInstance Compute.
@@ -1534,7 +1911,7 @@ public final class ComputeRestartSamples {
/** Samples for Compute Start. */
public final class ComputeStartSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/start.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/start.json
*/
/**
* Sample code: Start ComputeInstance Compute.
@@ -1554,7 +1931,7 @@ public final class ComputeStartSamples {
/** Samples for Compute Stop. */
public final class ComputeStopSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/stop.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/stop.json
*/
/**
* Sample code: Stop ComputeInstance Compute.
@@ -1579,7 +1956,7 @@ import java.time.Duration;
/** Samples for Compute Update. */
public final class ComputeUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/patch.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/patch.json
*/
/**
* Sample code: Update a AmlCompute Compute.
@@ -1607,39 +1984,78 @@ public final class ComputeUpdateSamples {
}
```
-### DataContainers_CreateOrUpdate
+### Compute_UpdateCustomServices
```java
-import com.azure.resourcemanager.machinelearning.models.DataContainerProperties;
-import com.azure.resourcemanager.machinelearning.models.DataType;
+import com.azure.resourcemanager.machinelearning.models.CustomService;
+import com.azure.resourcemanager.machinelearning.models.Docker;
+import com.azure.resourcemanager.machinelearning.models.Endpoint;
+import com.azure.resourcemanager.machinelearning.models.EnvironmentVariable;
+import com.azure.resourcemanager.machinelearning.models.EnvironmentVariableType;
+import com.azure.resourcemanager.machinelearning.models.Image;
+import com.azure.resourcemanager.machinelearning.models.ImageType;
+import com.azure.resourcemanager.machinelearning.models.Protocol;
+import com.azure.resourcemanager.machinelearning.models.VolumeDefinition;
+import com.azure.resourcemanager.machinelearning.models.VolumeDefinitionType;
+import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
-/** Samples for DataContainers CreateOrUpdate. */
-public final class DataContainersCreateOrUpdateSamples {
+/** Samples for Compute UpdateCustomServices. */
+public final class ComputeUpdateCustomServicesSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/DataContainer/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/updateCustomServices.json
*/
/**
- * Sample code: CreateOrUpdate Data Container.
+ * Sample code: Update Custom Services.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateDataContainer(
- com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void updateCustomServices(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .dataContainers()
- .define("datacontainer123")
- .withExistingWorkspace("testrg123", "workspace123")
- .withProperties(
- new DataContainerProperties()
- .withDescription("string")
- .withProperties(mapOf("properties1", "value1", "properties2", "value2"))
- .withTags(mapOf("tag1", "value1", "tag2", "value2"))
- .withDataType(DataType.fromString("UriFile")))
- .create();
+ .computes()
+ .updateCustomServicesWithResponse(
+ "testrg123",
+ "workspaces123",
+ "compute123",
+ Arrays
+ .asList(
+ new CustomService()
+ .withName("rstudio-workbench")
+ .withImage(
+ new Image()
+ .withType(ImageType.DOCKER)
+ .withReference("ghcr.io/azure/rstudio-workbench:latest")
+ .withAdditionalProperties(mapOf()))
+ .withEnvironmentVariables(
+ mapOf(
+ "RSP_LICENSE",
+ new EnvironmentVariable()
+ .withType(EnvironmentVariableType.LOCAL)
+ .withValue("XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX")
+ .withAdditionalProperties(mapOf())))
+ .withDocker(new Docker().withPrivileged(true).withAdditionalProperties(mapOf()))
+ .withEndpoints(
+ Arrays
+ .asList(
+ new Endpoint()
+ .withProtocol(Protocol.HTTP)
+ .withName("connect")
+ .withTarget(8787)
+ .withPublished(4444)))
+ .withVolumes(
+ Arrays
+ .asList(
+ new VolumeDefinition()
+ .withType(VolumeDefinitionType.BIND)
+ .withReadOnly(true)
+ .withSource("/mnt/azureuser/")
+ .withTarget("/home/testuser/")))
+ .withAdditionalProperties(mapOf())),
+ com.azure.core.util.Context.NONE);
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -1653,47 +2069,129 @@ public final class DataContainersCreateOrUpdateSamples {
}
```
-### DataContainers_Delete
+### Compute_UpdateIdleShutdownSetting
```java
-/** Samples for DataContainers Delete. */
-public final class DataContainersDeleteSamples {
+import com.azure.resourcemanager.machinelearning.models.IdleShutdownSetting;
+
+/** Samples for Compute UpdateIdleShutdownSetting. */
+public final class ComputeUpdateIdleShutdownSettingSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/DataContainer/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/updateIdleShutdownSetting.json
*/
/**
- * Sample code: Delete Data Container.
+ * Sample code: Update idle shutdown setting of ComputeInstance.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteDataContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void updateIdleShutdownSettingOfComputeInstance(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .dataContainers()
- .deleteWithResponse("testrg123", "workspace123", "datacontainer123", com.azure.core.util.Context.NONE);
+ .computes()
+ .updateIdleShutdownSettingWithResponse(
+ "testrg123",
+ "workspaces123",
+ "compute123",
+ new IdleShutdownSetting().withIdleTimeBeforeShutdown("PT120M"),
+ com.azure.core.util.Context.NONE);
}
}
```
-### DataContainers_Get
+### DataContainers_CreateOrUpdate
```java
-/** Samples for DataContainers Get. */
-public final class DataContainersGetSamples {
+import com.azure.resourcemanager.machinelearning.fluent.models.DataContainerInner;
+import com.azure.resourcemanager.machinelearning.models.DataContainerProperties;
+import com.azure.resourcemanager.machinelearning.models.DataType;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for DataContainers CreateOrUpdate. */
+public final class DataContainersCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/DataContainer/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/DataContainer/createOrUpdate.json
*/
/**
- * Sample code: Get Data Container.
+ * Sample code: CreateOrUpdate Workspace Data Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getDataContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void createOrUpdateWorkspaceDataContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.dataContainers()
- .getWithResponse("testrg123", "workspace123", "datacontainer123", com.azure.core.util.Context.NONE);
- }
-}
-```
+ .createOrUpdateWithResponse(
+ "testrg123",
+ "workspace123",
+ "datacontainer123",
+ new DataContainerInner()
+ .withProperties(
+ new DataContainerProperties()
+ .withDescription("string")
+ .withProperties(mapOf("properties1", "value1", "properties2", "value2"))
+ .withTags(mapOf("tag1", "value1", "tag2", "value2"))
+ .withDataType(DataType.fromString("UriFile"))),
+ com.azure.core.util.Context.NONE);
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### DataContainers_Delete
+
+```java
+/** Samples for DataContainers Delete. */
+public final class DataContainersDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/DataContainer/delete.json
+ */
+ /**
+ * Sample code: Delete Workspace Data Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteWorkspaceDataContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .dataContainers()
+ .deleteWithResponse("testrg123", "workspace123", "datacontainer123", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### DataContainers_Get
+
+```java
+/** Samples for DataContainers Get. */
+public final class DataContainersGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/DataContainer/get.json
+ */
+ /**
+ * Sample code: Get Workspace Data Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getWorkspaceDataContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .dataContainers()
+ .getWithResponse("testrg123", "workspace123", "datacontainer123", com.azure.core.util.Context.NONE);
+ }
+}
+```
### DataContainers_List
@@ -1701,14 +2199,15 @@ public final class DataContainersGetSamples {
/** Samples for DataContainers List. */
public final class DataContainersListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/DataContainer/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/DataContainer/list.json
*/
/**
- * Sample code: List Data Container.
+ * Sample code: List Workspace Data Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listDataContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void listWorkspaceDataContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.dataContainers().list("testrg123", "workspace123", null, null, com.azure.core.util.Context.NONE);
}
}
@@ -1717,6 +2216,7 @@ public final class DataContainersListSamples {
### DataVersions_CreateOrUpdate
```java
+import com.azure.resourcemanager.machinelearning.fluent.models.DataVersionBaseInner;
import com.azure.resourcemanager.machinelearning.models.UriFileDataVersion;
import java.util.HashMap;
import java.util.Map;
@@ -1724,29 +2224,34 @@ import java.util.Map;
/** Samples for DataVersions CreateOrUpdate. */
public final class DataVersionsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/DataVersionBase/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/DataVersionBase/createOrUpdate.json
*/
/**
- * Sample code: CreateOrUpdate Data Version Base.
+ * Sample code: CreateOrUpdate Workspace Data Version Base.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateDataVersionBase(
+ public static void createOrUpdateWorkspaceDataVersionBase(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.dataVersions()
- .define("string")
- .withExistingData("test-rg", "my-aml-workspace", "string")
- .withProperties(
- new UriFileDataVersion()
- .withDescription("string")
- .withProperties(mapOf("string", "string"))
- .withTags(mapOf("string", "string"))
- .withIsAnonymous(false)
- .withDataUri("string"))
- .create();
+ .createOrUpdateWithResponse(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ "string",
+ new DataVersionBaseInner()
+ .withProperties(
+ new UriFileDataVersion()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsAnonymous(false)
+ .withDataUri("string")),
+ com.azure.core.util.Context.NONE);
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -1766,14 +2271,15 @@ public final class DataVersionsCreateOrUpdateSamples {
/** Samples for DataVersions Delete. */
public final class DataVersionsDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/DataVersionBase/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/DataVersionBase/delete.json
*/
/**
- * Sample code: Delete Data Version Base.
+ * Sample code: Delete Workspace Data Version Base.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteDataVersionBase(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void deleteWorkspaceDataVersionBase(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.dataVersions()
.deleteWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
@@ -1787,14 +2293,15 @@ public final class DataVersionsDeleteSamples {
/** Samples for DataVersions Get. */
public final class DataVersionsGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/DataVersionBase/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/DataVersionBase/get.json
*/
/**
- * Sample code: Get Data Version Base.
+ * Sample code: Get Workspace Data Version Base.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getDataVersionBase(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void getWorkspaceDataVersionBase(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.dataVersions()
.getWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
@@ -1808,14 +2315,15 @@ public final class DataVersionsGetSamples {
/** Samples for DataVersions List. */
public final class DataVersionsListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/DataVersionBase/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/DataVersionBase/list.json
*/
/**
- * Sample code: List Data Version Base.
+ * Sample code: List Workspace Data Version Base.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listDataVersionBase(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void listWorkspaceDataVersionBase(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.dataVersions()
.list(
@@ -1827,6 +2335,7 @@ public final class DataVersionsListSamples {
null,
"string",
null,
+ null,
com.azure.core.util.Context.NONE);
}
}
@@ -1850,7 +2359,7 @@ import java.util.UUID;
/** Samples for Datastores CreateOrUpdate. */
public final class DatastoresCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Datastore/AzureDataLakeGen1WServicePrincipal/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Datastore/AzureDataLakeGen1WServicePrincipal/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate datastore (Azure Data Lake Gen1 w/ ServicePrincipal).
@@ -1881,7 +2390,7 @@ public final class DatastoresCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Datastore/AzureDataLakeGen2WServicePrincipal/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Datastore/AzureDataLakeGen2WServicePrincipal/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate datastore (Azure Data Lake Gen2 w/ Service Principal).
@@ -1915,7 +2424,7 @@ public final class DatastoresCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Datastore/AzureBlobWAccountKey/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Datastore/AzureBlobWAccountKey/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate datastore (AzureBlob w/ AccountKey).
@@ -1944,7 +2453,7 @@ public final class DatastoresCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Datastore/AzureFileWAccountKey/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Datastore/AzureFileWAccountKey/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate datastore (Azure File store w/ AccountKey).
@@ -1972,6 +2481,7 @@ public final class DatastoresCreateOrUpdateSamples {
.create();
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -1991,7 +2501,7 @@ public final class DatastoresCreateOrUpdateSamples {
/** Samples for Datastores Delete. */
public final class DatastoresDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Datastore/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Datastore/delete.json
*/
/**
* Sample code: Delete datastore.
@@ -2012,7 +2522,7 @@ public final class DatastoresDeleteSamples {
/** Samples for Datastores Get. */
public final class DatastoresGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Datastore/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Datastore/get.json
*/
/**
* Sample code: Get datastore.
@@ -2033,7 +2543,7 @@ import java.util.Arrays;
/** Samples for Datastores List. */
public final class DatastoresListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Datastore/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Datastore/list.json
*/
/**
* Sample code: List datastores.
@@ -2064,7 +2574,7 @@ public final class DatastoresListSamples {
/** Samples for Datastores ListSecrets. */
public final class DatastoresListSecretsSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Datastore/listSecrets.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Datastore/listSecrets.json
*/
/**
* Sample code: Get datastore secrets.
@@ -2082,6 +2592,7 @@ public final class DatastoresListSecretsSamples {
### EnvironmentContainers_CreateOrUpdate
```java
+import com.azure.resourcemanager.machinelearning.fluent.models.EnvironmentContainerInner;
import com.azure.resourcemanager.machinelearning.models.EnvironmentContainerProperties;
import java.util.HashMap;
import java.util.Map;
@@ -2089,29 +2600,45 @@ import java.util.Map;
/** Samples for EnvironmentContainers CreateOrUpdate. */
public final class EnvironmentContainersCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/EnvironmentContainer/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/EnvironmentContainer/createOrUpdate.json
*/
/**
- * Sample code: CreateOrUpdate Environment Container.
+ * Sample code: CreateOrUpdate Workspace Environment Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateEnvironmentContainer(
+ public static void createOrUpdateWorkspaceEnvironmentContainer(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.environmentContainers()
- .define("testEnvironment")
- .withExistingWorkspace("testrg123", "testworkspace")
- .withProperties(
- new EnvironmentContainerProperties()
- .withDescription("string")
+ .createOrUpdateWithResponse(
+ "testrg123",
+ "testworkspace",
+ "testEnvironment",
+ new EnvironmentContainerInner()
.withProperties(
- mapOf("additionalProp1", "string", "additionalProp2", "string", "additionalProp3", "string"))
- .withTags(
- mapOf("additionalProp1", "string", "additionalProp2", "string", "additionalProp3", "string")))
- .create();
+ new EnvironmentContainerProperties()
+ .withDescription("string")
+ .withProperties(
+ mapOf(
+ "additionalProp1",
+ "string",
+ "additionalProp2",
+ "string",
+ "additionalProp3",
+ "string"))
+ .withTags(
+ mapOf(
+ "additionalProp1",
+ "string",
+ "additionalProp2",
+ "string",
+ "additionalProp3",
+ "string"))),
+ com.azure.core.util.Context.NONE);
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -2131,14 +2658,14 @@ public final class EnvironmentContainersCreateOrUpdateSamples {
/** Samples for EnvironmentContainers Delete. */
public final class EnvironmentContainersDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/EnvironmentContainer/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/EnvironmentContainer/delete.json
*/
/**
- * Sample code: Delete Environment Container.
+ * Sample code: Delete Workspace Environment Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteEnvironmentContainer(
+ public static void deleteWorkspaceEnvironmentContainer(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.environmentContainers()
@@ -2153,14 +2680,14 @@ public final class EnvironmentContainersDeleteSamples {
/** Samples for EnvironmentContainers Get. */
public final class EnvironmentContainersGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/EnvironmentContainer/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/EnvironmentContainer/get.json
*/
/**
- * Sample code: Get Environment Container.
+ * Sample code: Get Workspace Environment Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getEnvironmentContainer(
+ public static void getWorkspaceEnvironmentContainer(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.environmentContainers()
@@ -2175,14 +2702,14 @@ public final class EnvironmentContainersGetSamples {
/** Samples for EnvironmentContainers List. */
public final class EnvironmentContainersListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/EnvironmentContainer/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/EnvironmentContainer/list.json
*/
/**
- * Sample code: List Environment Container.
+ * Sample code: List Workspace Environment Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listEnvironmentContainer(
+ public static void listWorkspaceEnvironmentContainer(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.environmentContainers()
@@ -2194,6 +2721,7 @@ public final class EnvironmentContainersListSamples {
### EnvironmentVersions_CreateOrUpdate
```java
+import com.azure.resourcemanager.machinelearning.fluent.models.EnvironmentVersionInner;
import com.azure.resourcemanager.machinelearning.models.BuildContext;
import com.azure.resourcemanager.machinelearning.models.EnvironmentVersionProperties;
import com.azure.resourcemanager.machinelearning.models.InferenceContainerProperties;
@@ -2204,40 +2732,45 @@ import java.util.Map;
/** Samples for EnvironmentVersions CreateOrUpdate. */
public final class EnvironmentVersionsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/EnvironmentVersion/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/EnvironmentVersion/createOrUpdate.json
*/
/**
- * Sample code: CreateOrUpdate Environment Version.
+ * Sample code: CreateOrUpdate Workspace Environment Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateEnvironmentVersion(
+ public static void createOrUpdateWorkspaceEnvironmentVersion(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.environmentVersions()
- .define("string")
- .withExistingEnvironment("test-rg", "my-aml-workspace", "string")
- .withProperties(
- new EnvironmentVersionProperties()
- .withDescription("string")
- .withProperties(mapOf("string", "string"))
- .withTags(mapOf("string", "string"))
- .withIsAnonymous(false)
- .withBuild(
- new BuildContext()
- .withContextUri(
- "https://storage-account.blob.core.windows.net/azureml/DockerBuildContext/95ddede6b9b8c4e90472db3acd0a8d28/")
- .withDockerfilePath("prod/Dockerfile"))
- .withCondaFile("string")
- .withImage("docker.io/tensorflow/serving:latest")
- .withInferenceConfig(
- new InferenceContainerProperties()
- .withLivenessRoute(new Route().withPath("string").withPort(1))
- .withReadinessRoute(new Route().withPath("string").withPort(1))
- .withScoringRoute(new Route().withPath("string").withPort(1))))
- .create();
+ .createOrUpdateWithResponse(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ "string",
+ new EnvironmentVersionInner()
+ .withProperties(
+ new EnvironmentVersionProperties()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsAnonymous(false)
+ .withBuild(
+ new BuildContext()
+ .withContextUri(
+ "https://storage-account.blob.core.windows.net/azureml/DockerBuildContext/95ddede6b9b8c4e90472db3acd0a8d28/")
+ .withDockerfilePath("prod/Dockerfile"))
+ .withCondaFile("string")
+ .withImage("docker.io/tensorflow/serving:latest")
+ .withInferenceConfig(
+ new InferenceContainerProperties()
+ .withLivenessRoute(new Route().withPath("string").withPort(1))
+ .withReadinessRoute(new Route().withPath("string").withPort(1))
+ .withScoringRoute(new Route().withPath("string").withPort(1)))),
+ com.azure.core.util.Context.NONE);
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -2257,14 +2790,14 @@ public final class EnvironmentVersionsCreateOrUpdateSamples {
/** Samples for EnvironmentVersions Delete. */
public final class EnvironmentVersionsDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/EnvironmentVersion/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/EnvironmentVersion/delete.json
*/
/**
- * Sample code: Delete Environment Version.
+ * Sample code: Delete Workspace Environment Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteEnvironmentVersion(
+ public static void deleteWorkspaceEnvironmentVersion(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.environmentVersions()
@@ -2279,14 +2812,15 @@ public final class EnvironmentVersionsDeleteSamples {
/** Samples for EnvironmentVersions Get. */
public final class EnvironmentVersionsGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/EnvironmentVersion/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/EnvironmentVersion/get.json
*/
/**
- * Sample code: Get Environment Version.
+ * Sample code: Get Workspace Environment Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getEnvironmentVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void getWorkspaceEnvironmentVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.environmentVersions()
.getWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
@@ -2300,317 +2834,335 @@ public final class EnvironmentVersionsGetSamples {
/** Samples for EnvironmentVersions List. */
public final class EnvironmentVersionsListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/EnvironmentVersion/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/EnvironmentVersion/list.json
*/
/**
- * Sample code: List Environment Version.
+ * Sample code: List Workspace Environment Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listEnvironmentVersion(
+ public static void listWorkspaceEnvironmentVersion(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.environmentVersions()
- .list("test-rg", "my-aml-workspace", "string", "string", 1, null, null, com.azure.core.util.Context.NONE);
+ .list(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ "string",
+ 1,
+ null,
+ null,
+ null,
+ com.azure.core.util.Context.NONE);
}
}
```
-### Jobs_Cancel
+### Features_Get
```java
-/** Samples for Jobs Cancel. */
-public final class JobsCancelSamples {
+/** Samples for Features Get. */
+public final class FeaturesGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/cancel.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Feature/get.json
*/
/**
- * Sample code: Cancel Job.
+ * Sample code: Get Feature.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void cancelJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.jobs().cancel("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ public static void getFeature(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .features()
+ .getWithResponse(
+ "test-rg", "my-aml-workspace", "string", "string", "string", com.azure.core.util.Context.NONE);
}
}
```
-### Jobs_CreateOrUpdate
+### Features_List
```java
-import com.azure.core.management.serializer.SerializerFactory;
-import com.azure.core.util.serializer.SerializerEncoding;
-import com.azure.resourcemanager.machinelearning.models.AmlToken;
-import com.azure.resourcemanager.machinelearning.models.AutoMLJob;
-import com.azure.resourcemanager.machinelearning.models.CommandJob;
-import com.azure.resourcemanager.machinelearning.models.CommandJobLimits;
-import com.azure.resourcemanager.machinelearning.models.Goal;
-import com.azure.resourcemanager.machinelearning.models.GridSamplingAlgorithm;
-import com.azure.resourcemanager.machinelearning.models.ImageClassification;
-import com.azure.resourcemanager.machinelearning.models.ImageLimitSettings;
-import com.azure.resourcemanager.machinelearning.models.ImageModelDistributionSettingsClassification;
-import com.azure.resourcemanager.machinelearning.models.ImageModelSettingsClassification;
-import com.azure.resourcemanager.machinelearning.models.JobResourceConfiguration;
-import com.azure.resourcemanager.machinelearning.models.JobService;
-import com.azure.resourcemanager.machinelearning.models.LiteralJobInput;
-import com.azure.resourcemanager.machinelearning.models.MLTableJobInput;
-import com.azure.resourcemanager.machinelearning.models.MedianStoppingPolicy;
-import com.azure.resourcemanager.machinelearning.models.Mpi;
-import com.azure.resourcemanager.machinelearning.models.Objective;
-import com.azure.resourcemanager.machinelearning.models.OutputDeliveryMode;
-import com.azure.resourcemanager.machinelearning.models.PipelineJob;
-import com.azure.resourcemanager.machinelearning.models.SweepJob;
-import com.azure.resourcemanager.machinelearning.models.SweepJobLimits;
-import com.azure.resourcemanager.machinelearning.models.TensorFlow;
-import com.azure.resourcemanager.machinelearning.models.TrialComponent;
-import com.azure.resourcemanager.machinelearning.models.UriFileJobOutput;
-import java.io.IOException;
-import java.time.Duration;
-import java.util.Arrays;
+/** Samples for Features List. */
+public final class FeaturesListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Feature/list.json
+ */
+ /**
+ * Sample code: List Feature.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listFeature(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .features()
+ .list(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ "string",
+ null,
+ "string",
+ "string",
+ "string",
+ null,
+ null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### FeaturesetContainers_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.FeaturesetContainerProperties;
import java.util.HashMap;
import java.util.Map;
-/** Samples for Jobs CreateOrUpdate. */
-public final class JobsCreateOrUpdateSamples {
+/** Samples for FeaturesetContainers CreateOrUpdate. */
+public final class FeaturesetContainersCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/AutoMLJob/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/FeaturesetContainer/createOrUpdate.json
*/
/**
- * Sample code: CreateOrUpdate AutoML Job.
+ * Sample code: CreateOrUpdate Workspace Featureset Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateAutoMLJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager)
- throws IOException {
+ public static void createOrUpdateWorkspaceFeaturesetContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .jobs()
+ .featuresetContainers()
.define("string")
.withExistingWorkspace("test-rg", "my-aml-workspace")
.withProperties(
- new AutoMLJob()
+ new FeaturesetContainerProperties()
.withDescription("string")
.withProperties(mapOf("string", "string"))
.withTags(mapOf("string", "string"))
- .withComputeId("string")
- .withDisplayName("string")
- .withExperimentName("string")
- .withIdentity(new AmlToken())
- .withIsArchived(false)
- .withServices(
- mapOf(
- "string",
- new JobService()
- .withEndpoint("string")
- .withJobServiceType("string")
- .withPort(1)
- .withProperties(mapOf("string", "string"))))
- .withEnvironmentId("string")
- .withEnvironmentVariables(mapOf("string", "string"))
- .withOutputs(
- mapOf(
- "string",
- new UriFileJobOutput()
- .withDescription("string")
- .withMode(OutputDeliveryMode.READ_WRITE_MOUNT)
- .withUri("string")))
- .withResources(
- new JobResourceConfiguration()
- .withInstanceCount(1)
- .withInstanceType("string")
- .withProperties(
- mapOf(
- "string",
- SerializerFactory
- .createDefaultManagementSerializerAdapter()
- .deserialize(
- "{\"9bec0ab0-c62f-4fa9-a97c-7b24bbcc90ad\":null}",
- Object.class,
- SerializerEncoding.JSON))))
- .withTaskDetails(
- new ImageClassification()
- .withTargetColumnName("string")
- .withTrainingData(new MLTableJobInput().withUri("string"))
- .withModelSettings(new ImageModelSettingsClassification().withValidationCropSize(2))
- .withSearchSpace(
- Arrays
- .asList(
- new ImageModelDistributionSettingsClassification()
- .withValidationCropSize("choice(2, 360)")))
- .withLimitSettings(new ImageLimitSettings().withMaxTrials(2))))
+ .withIsArchived(false))
.create();
}
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### FeaturesetContainers_Delete
+
+```java
+/** Samples for FeaturesetContainers Delete. */
+public final class FeaturesetContainersDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/SweepJob/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/FeaturesetContainer/delete.json
*/
/**
- * Sample code: CreateOrUpdate Sweep Job.
+ * Sample code: Delete Workspace Featureset Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateSweepJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager)
- throws IOException {
+ public static void deleteWorkspaceFeaturesetContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .jobs()
- .define("string")
- .withExistingWorkspace("test-rg", "my-aml-workspace")
- .withProperties(
- new SweepJob()
- .withDescription("string")
- .withProperties(mapOf("string", "string"))
- .withTags(mapOf("string", "string"))
- .withComputeId("string")
- .withDisplayName("string")
- .withExperimentName("string")
- .withServices(
- mapOf(
- "string",
- new JobService()
- .withEndpoint("string")
- .withJobServiceType("string")
- .withPort(1)
- .withProperties(mapOf("string", "string"))))
- .withEarlyTermination(new MedianStoppingPolicy().withDelayEvaluation(1).withEvaluationInterval(1))
- .withLimits(
- new SweepJobLimits()
- .withMaxConcurrentTrials(1)
- .withMaxTotalTrials(1)
- .withTrialTimeout(Duration.parse("PT1S")))
- .withObjective(new Objective().withGoal(Goal.MINIMIZE).withPrimaryMetric("string"))
- .withSamplingAlgorithm(new GridSamplingAlgorithm())
- .withSearchSpace(
- SerializerFactory
- .createDefaultManagementSerializerAdapter()
- .deserialize("{\"string\":{}}", Object.class, SerializerEncoding.JSON))
- .withTrial(
- new TrialComponent()
- .withCodeId("fakeTokenPlaceholder")
- .withCommand("string")
- .withDistribution(new Mpi().withProcessCountPerInstance(1))
- .withEnvironmentId("string")
- .withEnvironmentVariables(mapOf("string", "string"))
- .withResources(
- new JobResourceConfiguration()
- .withInstanceCount(1)
- .withInstanceType("string")
- .withProperties(
- mapOf(
- "string",
- SerializerFactory
- .createDefaultManagementSerializerAdapter()
- .deserialize(
- "{\"e6b6493e-7d5e-4db3-be1e-306ec641327e\":null}",
- Object.class,
- SerializerEncoding.JSON))))))
- .create();
+ .featuresetContainers()
+ .delete("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
}
+}
+```
+
+### FeaturesetContainers_GetEntity
+```java
+/** Samples for FeaturesetContainers GetEntity. */
+public final class FeaturesetContainersGetEntitySamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/PipelineJob/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/FeaturesetContainer/getEntity.json
*/
/**
- * Sample code: CreateOrUpdate Pipeline Job.
+ * Sample code: GetEntity Workspace Featureset Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdatePipelineJob(
- com.azure.resourcemanager.machinelearning.MachineLearningManager manager) throws IOException {
+ public static void getEntityWorkspaceFeaturesetContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .jobs()
- .define("string")
- .withExistingWorkspace("test-rg", "my-aml-workspace")
- .withProperties(
- new PipelineJob()
+ .featuresetContainers()
+ .getEntityWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### FeaturesetContainers_List
+
+```java
+import com.azure.resourcemanager.machinelearning.models.ListViewType;
+
+/** Samples for FeaturesetContainers List. */
+public final class FeaturesetContainersListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/FeaturesetContainer/list.json
+ */
+ /**
+ * Sample code: List Workspace Featureset Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listWorkspaceFeaturesetContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .featuresetContainers()
+ .list(
+ "test-rg",
+ "my-aml-workspace",
+ null,
+ "string",
+ ListViewType.ARCHIVED_ONLY,
+ null,
+ null,
+ null,
+ null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### FeaturesetVersions_Backfill
+
+```java
+import com.azure.resourcemanager.machinelearning.models.FeatureWindow;
+import com.azure.resourcemanager.machinelearning.models.FeaturesetVersionBackfillRequest;
+import com.azure.resourcemanager.machinelearning.models.MaterializationComputeResource;
+import java.time.OffsetDateTime;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for FeaturesetVersions Backfill. */
+public final class FeaturesetVersionsBackfillSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/FeaturesetVersion/backfill.json
+ */
+ /**
+ * Sample code: Backfill Workspace Featureset Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void backfillWorkspaceFeaturesetVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .featuresetVersions()
+ .backfill(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ "string",
+ new FeaturesetVersionBackfillRequest()
.withDescription("string")
- .withProperties(mapOf("string", "string"))
- .withTags(mapOf("string", "string"))
- .withComputeId("string")
.withDisplayName("string")
- .withExperimentName("string")
- .withServices(
- mapOf(
- "string",
- new JobService()
- .withEndpoint("string")
- .withJobServiceType("string")
- .withPort(1)
- .withProperties(mapOf("string", "string"))))
- .withInputs(mapOf("string", new LiteralJobInput().withDescription("string").withValue("string")))
- .withOutputs(
- mapOf(
- "string",
- new UriFileJobOutput()
- .withDescription("string")
- .withMode(OutputDeliveryMode.UPLOAD)
- .withUri("string")))
- .withSettings(
- SerializerFactory
- .createDefaultManagementSerializerAdapter()
- .deserialize("{}", Object.class, SerializerEncoding.JSON)))
- .create();
+ .withFeatureWindow(
+ new FeatureWindow()
+ .withFeatureWindowEnd(OffsetDateTime.parse("2020-01-01T12:34:56.999+00:51"))
+ .withFeatureWindowStart(OffsetDateTime.parse("2020-01-01T12:34:56.999+00:51")))
+ .withResource(new MaterializationComputeResource().withInstanceType("string"))
+ .withSparkConfiguration(mapOf("string", "string"))
+ .withTags(mapOf("string", "string")),
+ com.azure.core.util.Context.NONE);
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
}
+}
+```
+
+### FeaturesetVersions_CreateOrUpdate
+```java
+import com.azure.resourcemanager.machinelearning.models.EmailNotificationEnableType;
+import com.azure.resourcemanager.machinelearning.models.FeaturesetSpecification;
+import com.azure.resourcemanager.machinelearning.models.FeaturesetVersionProperties;
+import com.azure.resourcemanager.machinelearning.models.MaterializationComputeResource;
+import com.azure.resourcemanager.machinelearning.models.MaterializationSettings;
+import com.azure.resourcemanager.machinelearning.models.MaterializationStoreType;
+import com.azure.resourcemanager.machinelearning.models.NotificationSetting;
+import com.azure.resourcemanager.machinelearning.models.RecurrenceFrequency;
+import com.azure.resourcemanager.machinelearning.models.RecurrenceSchedule;
+import com.azure.resourcemanager.machinelearning.models.RecurrenceTrigger;
+import com.azure.resourcemanager.machinelearning.models.WeekDay;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for FeaturesetVersions CreateOrUpdate. */
+public final class FeaturesetVersionsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/CommandJob/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/FeaturesetVersion/createOrUpdate.json
*/
/**
- * Sample code: CreateOrUpdate Command Job.
+ * Sample code: CreateOrUpdate Workspace Featureset Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateCommandJob(
- com.azure.resourcemanager.machinelearning.MachineLearningManager manager) throws IOException {
+ public static void createOrUpdateWorkspaceFeaturesetVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .jobs()
+ .featuresetVersions()
.define("string")
- .withExistingWorkspace("test-rg", "my-aml-workspace")
+ .withExistingFeatureset("test-rg", "my-aml-workspace", "string")
.withProperties(
- new CommandJob()
+ new FeaturesetVersionProperties()
.withDescription("string")
.withProperties(mapOf("string", "string"))
.withTags(mapOf("string", "string"))
- .withComputeId("string")
- .withDisplayName("string")
- .withExperimentName("string")
- .withIdentity(new AmlToken())
- .withServices(
- mapOf(
- "string",
- new JobService()
- .withEndpoint("string")
- .withJobServiceType("string")
- .withPort(1)
- .withProperties(mapOf("string", "string"))))
- .withCodeId("fakeTokenPlaceholder")
- .withCommand("string")
- .withDistribution(new TensorFlow().withParameterServerCount(1).withWorkerCount(1))
- .withEnvironmentId("string")
- .withEnvironmentVariables(mapOf("string", "string"))
- .withInputs(mapOf("string", new LiteralJobInput().withDescription("string").withValue("string")))
- .withLimits(new CommandJobLimits().withTimeout(Duration.parse("PT5M")))
- .withOutputs(
- mapOf(
- "string",
- new UriFileJobOutput()
- .withDescription("string")
- .withMode(OutputDeliveryMode.READ_WRITE_MOUNT)
- .withUri("string")))
- .withResources(
- new JobResourceConfiguration()
- .withInstanceCount(1)
- .withInstanceType("string")
- .withProperties(
- mapOf(
- "string",
- SerializerFactory
- .createDefaultManagementSerializerAdapter()
- .deserialize(
- "{\"e6b6493e-7d5e-4db3-be1e-306ec641327e\":null}",
- Object.class,
- SerializerEncoding.JSON)))))
+ .withIsAnonymous(false)
+ .withIsArchived(false)
+ .withEntities(Arrays.asList("string"))
+ .withMaterializationSettings(
+ new MaterializationSettings()
+ .withNotification(
+ new NotificationSetting()
+ .withEmailOn(Arrays.asList(EmailNotificationEnableType.JOB_FAILED))
+ .withEmails(Arrays.asList("string")))
+ .withResource(new MaterializationComputeResource().withInstanceType("string"))
+ .withSchedule(
+ new RecurrenceTrigger()
+ .withEndTime("string")
+ .withStartTime("string")
+ .withTimeZone("string")
+ .withFrequency(RecurrenceFrequency.DAY)
+ .withInterval(1)
+ .withSchedule(
+ new RecurrenceSchedule()
+ .withHours(Arrays.asList(1))
+ .withMinutes(Arrays.asList(1))
+ .withMonthDays(Arrays.asList(1))
+ .withWeekDays(Arrays.asList(WeekDay.MONDAY))))
+ .withSparkConfiguration(mapOf("string", "string"))
+ .withStoreType(MaterializationStoreType.ONLINE))
+ .withSpecification(new FeaturesetSpecification().withPath("string"))
+ .withStage("string"))
.create();
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -2624,171 +3176,3306 @@ public final class JobsCreateOrUpdateSamples {
}
```
-### Jobs_Delete
+### FeaturesetVersions_Delete
```java
-/** Samples for Jobs Delete. */
-public final class JobsDeleteSamples {
+/** Samples for FeaturesetVersions Delete. */
+public final class FeaturesetVersionsDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/FeaturesetVersion/delete.json
*/
/**
- * Sample code: Delete Job.
+ * Sample code: Delete Workspace Featureset Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.jobs().delete("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ public static void deleteWorkspaceFeaturesetVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .featuresetVersions()
+ .delete("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
}
}
```
-### Jobs_Get
+### FeaturesetVersions_Get
```java
-/** Samples for Jobs Get. */
-public final class JobsGetSamples {
+/** Samples for FeaturesetVersions Get. */
+public final class FeaturesetVersionsGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/CommandJob/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/FeaturesetVersion/get.json
*/
/**
- * Sample code: Get Command Job.
+ * Sample code: Get Workspace Featureset Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getCommandJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.jobs().getWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ public static void getWorkspaceFeaturesetVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .featuresetVersions()
+ .getWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
}
+}
+```
+
+### FeaturesetVersions_List
+
+```java
+import com.azure.resourcemanager.machinelearning.models.ListViewType;
+/** Samples for FeaturesetVersions List. */
+public final class FeaturesetVersionsListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/AutoMLJob/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/FeaturesetVersion/list.json
*/
/**
- * Sample code: Get AutoML Job.
+ * Sample code: List Workspace Featureset Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getAutoMLJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.jobs().getWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ public static void listWorkspaceFeaturesetVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .featuresetVersions()
+ .list(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ null,
+ "string",
+ ListViewType.ALL,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ com.azure.core.util.Context.NONE);
}
+}
+```
+
+### FeaturesetVersions_ListMaterializationJobs
+```java
+/** Samples for FeaturesetVersions ListMaterializationJobs. */
+public final class FeaturesetVersionsListMaterializationJobsSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/SweepJob/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/FeaturesetVersion/listMaterializationJobs.json
*/
/**
- * Sample code: Get Sweep Job.
+ * Sample code: ListMaterializationJobs Workspace Featureset Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getSweepJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.jobs().getWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ public static void listMaterializationJobsWorkspaceFeaturesetVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .featuresetVersions()
+ .listMaterializationJobs(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ "string",
+ null,
+ "string",
+ "string",
+ "string",
+ com.azure.core.util.Context.NONE);
}
+}
+```
+
+### FeaturestoreEntityContainers_CreateOrUpdate
+```java
+import com.azure.resourcemanager.machinelearning.models.FeaturestoreEntityContainerProperties;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for FeaturestoreEntityContainers CreateOrUpdate. */
+public final class FeaturestoreEntityContainersCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/PipelineJob/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/FeaturestoreEntityContainer/createOrUpdate.json
*/
/**
- * Sample code: Get Pipeline Job.
+ * Sample code: CreateOrUpdate Workspace Featurestore Entity Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getPipelineJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.jobs().getWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ public static void createOrUpdateWorkspaceFeaturestoreEntityContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .featurestoreEntityContainers()
+ .define("string")
+ .withExistingWorkspace("test-rg", "my-aml-workspace")
+ .withProperties(
+ new FeaturestoreEntityContainerProperties()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsArchived(false))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
}
}
```
-### Jobs_List
+### FeaturestoreEntityContainers_Delete
```java
-/** Samples for Jobs List. */
-public final class JobsListSamples {
+/** Samples for FeaturestoreEntityContainers Delete. */
+public final class FeaturestoreEntityContainersDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/CommandJob/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/FeaturestoreEntityContainer/delete.json
*/
/**
- * Sample code: List Command Job.
+ * Sample code: Delete Workspace Featurestore Entity Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listCommandJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void deleteWorkspaceFeaturestoreEntityContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .jobs()
- .list("test-rg", "my-aml-workspace", null, "string", "string", null, com.azure.core.util.Context.NONE);
+ .featurestoreEntityContainers()
+ .delete("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### FeaturestoreEntityContainers_GetEntity
+
+```java
+/** Samples for FeaturestoreEntityContainers GetEntity. */
+public final class FeaturestoreEntityContainersGetEntitySamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/FeaturestoreEntityContainer/getEntity.json
+ */
+ /**
+ * Sample code: GetEntity Workspace Featurestore Entity Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getEntityWorkspaceFeaturestoreEntityContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .featurestoreEntityContainers()
+ .getEntityWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### FeaturestoreEntityContainers_List
+
+```java
+import com.azure.resourcemanager.machinelearning.models.ListViewType;
+
+/** Samples for FeaturestoreEntityContainers List. */
+public final class FeaturestoreEntityContainersListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/FeaturestoreEntityContainer/list.json
+ */
+ /**
+ * Sample code: List Workspace Featurestore Entity Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listWorkspaceFeaturestoreEntityContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .featurestoreEntityContainers()
+ .list(
+ "test-rg",
+ "my-aml-workspace",
+ null,
+ "string",
+ ListViewType.ALL,
+ null,
+ null,
+ null,
+ null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### FeaturestoreEntityVersions_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.FeatureDataType;
+import com.azure.resourcemanager.machinelearning.models.FeaturestoreEntityVersionProperties;
+import com.azure.resourcemanager.machinelearning.models.IndexColumn;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for FeaturestoreEntityVersions CreateOrUpdate. */
+public final class FeaturestoreEntityVersionsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/FeaturestoreEntityVersion/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Workspace Featurestore Entity Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateWorkspaceFeaturestoreEntityVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .featurestoreEntityVersions()
+ .define("string")
+ .withExistingFeaturestoreEntity("test-rg", "my-aml-workspace", "string")
+ .withProperties(
+ new FeaturestoreEntityVersionProperties()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsAnonymous(false)
+ .withIsArchived(false)
+ .withIndexColumns(
+ Arrays
+ .asList(new IndexColumn().withColumnName("string").withDataType(FeatureDataType.DATETIME))))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### FeaturestoreEntityVersions_Delete
+
+```java
+/** Samples for FeaturestoreEntityVersions Delete. */
+public final class FeaturestoreEntityVersionsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/FeaturestoreEntityVersion/delete.json
+ */
+ /**
+ * Sample code: Delete Workspace Featurestore Entity Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteWorkspaceFeaturestoreEntityVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .featurestoreEntityVersions()
+ .delete("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### FeaturestoreEntityVersions_Get
+
+```java
+/** Samples for FeaturestoreEntityVersions Get. */
+public final class FeaturestoreEntityVersionsGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/FeaturestoreEntityVersion/get.json
+ */
+ /**
+ * Sample code: Get Workspace Featurestore Entity Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getWorkspaceFeaturestoreEntityVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .featurestoreEntityVersions()
+ .getWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### FeaturestoreEntityVersions_List
+
+```java
+import com.azure.resourcemanager.machinelearning.models.ListViewType;
+
+/** Samples for FeaturestoreEntityVersions List. */
+public final class FeaturestoreEntityVersionsListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/FeaturestoreEntityVersion/list.json
+ */
+ /**
+ * Sample code: List Workspace Featurestore Entity Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listWorkspaceFeaturestoreEntityVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .featurestoreEntityVersions()
+ .list(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ null,
+ "string",
+ ListViewType.ACTIVE_ONLY,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Jobs_Cancel
+
+```java
+/** Samples for Jobs Cancel. */
+public final class JobsCancelSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Job/cancel.json
+ */
+ /**
+ * Sample code: Cancel Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void cancelJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.jobs().cancel("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Jobs_CreateOrUpdate
+
+```java
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.machinelearning.models.AllNodes;
+import com.azure.resourcemanager.machinelearning.models.AmlToken;
+import com.azure.resourcemanager.machinelearning.models.AutologgerSettings;
+import com.azure.resourcemanager.machinelearning.models.CommandJob;
+import com.azure.resourcemanager.machinelearning.models.CommandJobLimits;
+import com.azure.resourcemanager.machinelearning.models.EmailNotificationEnableType;
+import com.azure.resourcemanager.machinelearning.models.JobResourceConfiguration;
+import com.azure.resourcemanager.machinelearning.models.JobService;
+import com.azure.resourcemanager.machinelearning.models.JobTier;
+import com.azure.resourcemanager.machinelearning.models.LiteralJobInput;
+import com.azure.resourcemanager.machinelearning.models.MLFlowAutologgerState;
+import com.azure.resourcemanager.machinelearning.models.NotificationSetting;
+import com.azure.resourcemanager.machinelearning.models.OutputDeliveryMode;
+import com.azure.resourcemanager.machinelearning.models.PipelineJob;
+import com.azure.resourcemanager.machinelearning.models.QueueSettings;
+import com.azure.resourcemanager.machinelearning.models.TensorFlow;
+import com.azure.resourcemanager.machinelearning.models.UriFileJobOutput;
+import java.io.IOException;
+import java.time.Duration;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for Jobs CreateOrUpdate. */
+public final class JobsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Job/AutoMLJob/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate AutoML Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateAutoMLJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager)
+ throws IOException {
+ manager
+ .jobs()
+ .define("string")
+ .withExistingWorkspace("test-rg", "my-aml-workspace")
+ .withProperties(
+ new CommandJob()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withComponentId("string")
+ .withComputeId("string")
+ .withDisplayName("string")
+ .withExperimentName("string")
+ .withIdentity(new AmlToken())
+ .withIsArchived(false)
+ .withNotificationSetting(
+ new NotificationSetting()
+ .withEmailOn(Arrays.asList(EmailNotificationEnableType.JOB_COMPLETED))
+ .withEmails(Arrays.asList("string")))
+ .withServices(
+ mapOf(
+ "string",
+ new JobService()
+ .withEndpoint("string")
+ .withJobServiceType("string")
+ .withNodes(new AllNodes())
+ .withPort(1)
+ .withProperties(mapOf("string", "string"))))
+ .withAutologgerSettings(
+ new AutologgerSettings().withMlflowAutologger(MLFlowAutologgerState.DISABLED))
+ .withCodeId("fakeTokenPlaceholder")
+ .withCommand("string")
+ .withDistribution(new TensorFlow().withParameterServerCount(1).withWorkerCount(1))
+ .withEnvironmentId("string")
+ .withEnvironmentVariables(mapOf("string", "string"))
+ .withInputs(mapOf("string", new LiteralJobInput().withDescription("string").withValue("string")))
+ .withLimits(new CommandJobLimits().withTimeout(Duration.parse("PT5M")))
+ .withOutputs(
+ mapOf(
+ "string",
+ new UriFileJobOutput()
+ .withDescription("string")
+ .withAssetName("string")
+ .withAssetVersion("string")
+ .withMode(OutputDeliveryMode.DIRECT)
+ .withUri("string")))
+ .withQueueSettings(new QueueSettings().withJobTier(JobTier.PREMIUM).withPriority(1))
+ .withResources(
+ new JobResourceConfiguration()
+ .withInstanceCount(1)
+ .withInstanceType("string")
+ .withLocations(Arrays.asList("string"))
+ .withProperties(
+ mapOf(
+ "string",
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize(
+ "{\"f69c8d5a-9b39-4183-92d3-a2b18944cf95\":null}",
+ Object.class,
+ SerializerEncoding.JSON)))
+ .withDockerArgs("string")
+ .withShmSize("2g")))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Job/SweepJob/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Sweep Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateSweepJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager)
+ throws IOException {
+ manager
+ .jobs()
+ .define("string")
+ .withExistingWorkspace("test-rg", "my-aml-workspace")
+ .withProperties(
+ new CommandJob()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withComponentId("string")
+ .withComputeId("string")
+ .withDisplayName("string")
+ .withExperimentName("string")
+ .withIdentity(new AmlToken())
+ .withIsArchived(false)
+ .withNotificationSetting(
+ new NotificationSetting()
+ .withEmailOn(Arrays.asList(EmailNotificationEnableType.JOB_COMPLETED))
+ .withEmails(Arrays.asList("string")))
+ .withServices(
+ mapOf(
+ "string",
+ new JobService()
+ .withEndpoint("string")
+ .withJobServiceType("string")
+ .withNodes(new AllNodes())
+ .withPort(1)
+ .withProperties(mapOf("string", "string"))))
+ .withAutologgerSettings(
+ new AutologgerSettings().withMlflowAutologger(MLFlowAutologgerState.DISABLED))
+ .withCodeId("fakeTokenPlaceholder")
+ .withCommand("string")
+ .withDistribution(new TensorFlow().withParameterServerCount(1).withWorkerCount(1))
+ .withEnvironmentId("string")
+ .withEnvironmentVariables(mapOf("string", "string"))
+ .withInputs(mapOf("string", new LiteralJobInput().withDescription("string").withValue("string")))
+ .withLimits(new CommandJobLimits().withTimeout(Duration.parse("PT5M")))
+ .withOutputs(
+ mapOf(
+ "string",
+ new UriFileJobOutput()
+ .withDescription("string")
+ .withAssetName("string")
+ .withAssetVersion("string")
+ .withMode(OutputDeliveryMode.READ_WRITE_MOUNT)
+ .withUri("string")))
+ .withQueueSettings(new QueueSettings().withJobTier(JobTier.BASIC).withPriority(1))
+ .withResources(
+ new JobResourceConfiguration()
+ .withInstanceCount(1)
+ .withInstanceType("string")
+ .withLocations(Arrays.asList("string"))
+ .withProperties(
+ mapOf(
+ "string",
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize(
+ "{\"5fc1f627-491e-45a0-a6a2-f5b4be884911\":null}",
+ Object.class,
+ SerializerEncoding.JSON)))
+ .withDockerArgs("string")
+ .withShmSize("2g")))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Job/PipelineJob/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Pipeline Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdatePipelineJob(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) throws IOException {
+ manager
+ .jobs()
+ .define("string")
+ .withExistingWorkspace("test-rg", "my-aml-workspace")
+ .withProperties(
+ new PipelineJob()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withComputeId("string")
+ .withDisplayName("string")
+ .withExperimentName("string")
+ .withServices(
+ mapOf(
+ "string",
+ new JobService()
+ .withEndpoint("string")
+ .withJobServiceType("string")
+ .withPort(1)
+ .withProperties(mapOf("string", "string"))))
+ .withInputs(mapOf("string", new LiteralJobInput().withDescription("string").withValue("string")))
+ .withOutputs(
+ mapOf(
+ "string",
+ new UriFileJobOutput()
+ .withDescription("string")
+ .withMode(OutputDeliveryMode.UPLOAD)
+ .withUri("string")))
+ .withSettings(
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize("{}", Object.class, SerializerEncoding.JSON)))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Job/CommandJob/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Command Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateCommandJob(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) throws IOException {
+ manager
+ .jobs()
+ .define("string")
+ .withExistingWorkspace("test-rg", "my-aml-workspace")
+ .withProperties(
+ new CommandJob()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withComponentId("string")
+ .withComputeId("string")
+ .withDisplayName("string")
+ .withExperimentName("string")
+ .withIdentity(new AmlToken())
+ .withIsArchived(false)
+ .withNotificationSetting(
+ new NotificationSetting()
+ .withEmailOn(Arrays.asList(EmailNotificationEnableType.JOB_CANCELLED))
+ .withEmails(Arrays.asList("string")))
+ .withServices(
+ mapOf(
+ "string",
+ new JobService()
+ .withEndpoint("string")
+ .withJobServiceType("string")
+ .withNodes(new AllNodes())
+ .withPort(1)
+ .withProperties(mapOf("string", "string"))))
+ .withAutologgerSettings(
+ new AutologgerSettings().withMlflowAutologger(MLFlowAutologgerState.DISABLED))
+ .withCodeId("fakeTokenPlaceholder")
+ .withCommand("string")
+ .withDistribution(new TensorFlow().withParameterServerCount(1).withWorkerCount(1))
+ .withEnvironmentId("string")
+ .withEnvironmentVariables(mapOf("string", "string"))
+ .withInputs(mapOf("string", new LiteralJobInput().withDescription("string").withValue("string")))
+ .withLimits(new CommandJobLimits().withTimeout(Duration.parse("PT5M")))
+ .withOutputs(
+ mapOf(
+ "string",
+ new UriFileJobOutput()
+ .withDescription("string")
+ .withAssetName("string")
+ .withAssetVersion("string")
+ .withMode(OutputDeliveryMode.UPLOAD)
+ .withUri("string")))
+ .withQueueSettings(new QueueSettings().withJobTier(JobTier.BASIC).withPriority(1))
+ .withResources(
+ new JobResourceConfiguration()
+ .withInstanceCount(1)
+ .withInstanceType("string")
+ .withLocations(Arrays.asList("string"))
+ .withProperties(
+ mapOf(
+ "string",
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize(
+ "{\"c9ac10d0-915b-4de5-afe8-a4c78a37a558\":null}",
+ Object.class,
+ SerializerEncoding.JSON)))
+ .withDockerArgs("string")
+ .withShmSize("2g")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Jobs_Delete
+
+```java
+/** Samples for Jobs Delete. */
+public final class JobsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Job/delete.json
+ */
+ /**
+ * Sample code: Delete Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.jobs().delete("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Jobs_Get
+
+```java
+/** Samples for Jobs Get. */
+public final class JobsGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Job/CommandJob/get.json
+ */
+ /**
+ * Sample code: Get Command Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getCommandJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.jobs().getWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Job/AutoMLJob/get.json
+ */
+ /**
+ * Sample code: Get AutoML Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getAutoMLJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.jobs().getWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Job/SweepJob/get.json
+ */
+ /**
+ * Sample code: Get Sweep Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getSweepJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.jobs().getWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Job/PipelineJob/get.json
+ */
+ /**
+ * Sample code: Get Pipeline Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getPipelineJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.jobs().getWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Jobs_List
+
+```java
+import com.azure.resourcemanager.machinelearning.models.ListViewType;
+
+/** Samples for Jobs List. */
+public final class JobsListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Job/CommandJob/list.json
+ */
+ /**
+ * Sample code: List Command Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listCommandJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .jobs()
+ .list(
+ "test-rg",
+ "my-aml-workspace",
+ null,
+ "string",
+ "string",
+ ListViewType.ACTIVE_ONLY,
+ "string",
+ false,
+ "string",
+ null,
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Job/PipelineJob/list.json
+ */
+ /**
+ * Sample code: List Pipeline Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listPipelineJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .jobs()
+ .list(
+ "test-rg",
+ "my-aml-workspace",
+ null,
+ "string",
+ "string",
+ null,
+ null,
+ null,
+ null,
+ null,
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Job/SweepJob/list.json
+ */
+ /**
+ * Sample code: List Sweep Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listSweepJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .jobs()
+ .list(
+ "test-rg",
+ "my-aml-workspace",
+ null,
+ "string",
+ "string",
+ ListViewType.ACTIVE_ONLY,
+ "string",
+ false,
+ "string",
+ null,
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Job/AutoMLJob/list.json
+ */
+ /**
+ * Sample code: List AutoML Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listAutoMLJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .jobs()
+ .list(
+ "test-rg",
+ "my-aml-workspace",
+ null,
+ "string",
+ "string",
+ ListViewType.ALL,
+ "string",
+ false,
+ "string",
+ null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Jobs_Update
+
+```java
+import com.azure.resourcemanager.machinelearning.models.AzureDevOpsWebhook;
+import com.azure.resourcemanager.machinelearning.models.JobBase;
+import com.azure.resourcemanager.machinelearning.models.PartialJobBase;
+import com.azure.resourcemanager.machinelearning.models.PartialNotificationSetting;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for Jobs Update. */
+public final class JobsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Job/update.json
+ */
+ /**
+ * Sample code: Update Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void updateJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ JobBase resource =
+ manager
+ .jobs()
+ .getWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withProperties(
+ new PartialJobBase()
+ .withNotificationSetting(
+ new PartialNotificationSetting()
+ .withWebhooks(mapOf("string", new AzureDevOpsWebhook().withEventType("string")))))
+ .apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### LabelingJobs_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.fluent.models.LabelingJobPropertiesInner;
+import com.azure.resourcemanager.machinelearning.models.LabelCategory;
+import com.azure.resourcemanager.machinelearning.models.LabelClass;
+import com.azure.resourcemanager.machinelearning.models.LabelingJobImageProperties;
+import com.azure.resourcemanager.machinelearning.models.LabelingJobInstructions;
+import com.azure.resourcemanager.machinelearning.models.MLAssistConfigurationEnabled;
+import com.azure.resourcemanager.machinelearning.models.MultiSelect;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for LabelingJobs CreateOrUpdate. */
+public final class LabelingJobsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/LabelingJob/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Labeling Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateLabelingJob(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .labelingJobs()
+ .define("testLabelingJob")
+ .withExistingWorkspace("workspace-1234", "testworkspace")
+ .withProperties(
+ new LabelingJobPropertiesInner()
+ .withDescription("string")
+ .withProperties(
+ mapOf("additionalProp1", "string", "additionalProp2", "string", "additionalProp3", "string"))
+ .withTags(
+ mapOf("additionalProp1", "string", "additionalProp2", "string", "additionalProp3", "string"))
+ .withJobInstructions(new LabelingJobInstructions().withUri("link/to/instructions"))
+ .withLabelCategories(
+ mapOf(
+ "myCategory1",
+ new LabelCategory()
+ .withClasses(
+ mapOf(
+ "myLabelClass1",
+ new LabelClass().withDisplayName("myLabelClass1").withSubclasses(mapOf()),
+ "myLabelClass2",
+ new LabelClass().withDisplayName("myLabelClass2").withSubclasses(mapOf())))
+ .withDisplayName("myCategory1Title")
+ .withMultiSelect(MultiSelect.DISABLED),
+ "myCategory2",
+ new LabelCategory()
+ .withClasses(
+ mapOf(
+ "myLabelClass1",
+ new LabelClass().withDisplayName("myLabelClass1").withSubclasses(mapOf()),
+ "myLabelClass2",
+ new LabelClass().withDisplayName("myLabelClass2").withSubclasses(mapOf())))
+ .withDisplayName("myCategory2Title")
+ .withMultiSelect(MultiSelect.DISABLED)))
+ .withLabelingJobMediaProperties(new LabelingJobImageProperties())
+ .withMlAssistConfiguration(
+ new MLAssistConfigurationEnabled()
+ .withInferencingComputeBinding(
+ "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/computes/myscoringcompute")
+ .withTrainingComputeBinding(
+ "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/computes/mytrainingompute")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### LabelingJobs_Delete
+
+```java
+/** Samples for LabelingJobs Delete. */
+public final class LabelingJobsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/LabelingJob/delete.json
+ */
+ /**
+ * Sample code: Delete Labeling Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteLabelingJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .labelingJobs()
+ .deleteWithResponse("workspace-1234", "testworkspace", "testLabelingJob", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### LabelingJobs_ExportLabels
+
+```java
+import com.azure.resourcemanager.machinelearning.models.DatasetExportSummary;
+
+/** Samples for LabelingJobs ExportLabels. */
+public final class LabelingJobsExportLabelsSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/LabelingJob/exportLabels.json
+ */
+ /**
+ * Sample code: ExportLabels Labeling Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void exportLabelsLabelingJob(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .labelingJobs()
+ .exportLabels(
+ "workspace-1234",
+ "testworkspace",
+ "testLabelingJob",
+ new DatasetExportSummary(),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### LabelingJobs_Get
+
+```java
+/** Samples for LabelingJobs Get. */
+public final class LabelingJobsGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/LabelingJob/get.json
+ */
+ /**
+ * Sample code: Get Labeling Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getLabelingJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .labelingJobs()
+ .getWithResponse("workspace-1234", "testworkspace", "testLabelingJob", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### LabelingJobs_List
+
+```java
+/** Samples for LabelingJobs List. */
+public final class LabelingJobsListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/LabelingJob/list.json
+ */
+ /**
+ * Sample code: List Labeling Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listLabelingJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.labelingJobs().list("workspace-1234", "testworkspace", null, null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### LabelingJobs_Pause
+
+```java
+/** Samples for LabelingJobs Pause. */
+public final class LabelingJobsPauseSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/LabelingJob/pause.json
+ */
+ /**
+ * Sample code: Pause Labeling Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void pauseLabelingJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .labelingJobs()
+ .pauseWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### LabelingJobs_Resume
+
+```java
+/** Samples for LabelingJobs Resume. */
+public final class LabelingJobsResumeSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/LabelingJob/resume.json
+ */
+ /**
+ * Sample code: Resume Labeling Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void resumeLabelingJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.labelingJobs().resume("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ManagedNetworkProvisions_ProvisionManagedNetwork
+
+```java
+import com.azure.resourcemanager.machinelearning.models.ManagedNetworkProvisionOptions;
+
+/** Samples for ManagedNetworkProvisions ProvisionManagedNetwork. */
+public final class ManagedNetworkProvisionsProvisionManagedNetworkSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/ManagedNetwork/provision.json
+ */
+ /**
+ * Sample code: Provision ManagedNetwork.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void provisionManagedNetwork(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .managedNetworkProvisions()
+ .provisionManagedNetwork(
+ "test-rg",
+ "aml-workspace-name",
+ new ManagedNetworkProvisionOptions().withIncludeSpark(false),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ManagedNetworkSettingsRule_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.FqdnOutboundRule;
+import com.azure.resourcemanager.machinelearning.models.RuleCategory;
+import com.azure.resourcemanager.machinelearning.models.RuleStatus;
+
+/** Samples for ManagedNetworkSettingsRule CreateOrUpdate. */
+public final class ManagedNetworkSettingsRuleCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/ManagedNetwork/createOrUpdateRule.json
+ */
+ /**
+ * Sample code: CreateOrUpdate ManagedNetworkSettingsRule.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateManagedNetworkSettingsRule(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .managedNetworkSettingsRules()
+ .define("some_string")
+ .withExistingWorkspace("test-rg", "aml-workspace-name")
+ .withProperties(
+ new FqdnOutboundRule()
+ .withCategory(RuleCategory.USER_DEFINED)
+ .withStatus(RuleStatus.ACTIVE)
+ .withDestination("some_string"))
+ .create();
+ }
+}
+```
+
+### ManagedNetworkSettingsRule_Delete
+
+```java
+/** Samples for ManagedNetworkSettingsRule Delete. */
+public final class ManagedNetworkSettingsRuleDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/ManagedNetwork/deleteRule.json
+ */
+ /**
+ * Sample code: Delete ManagedNetworkSettingsRule.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteManagedNetworkSettingsRule(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .managedNetworkSettingsRules()
+ .delete("test-rg", "aml-workspace-name", "some_string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ManagedNetworkSettingsRule_Get
+
+```java
+/** Samples for ManagedNetworkSettingsRule Get. */
+public final class ManagedNetworkSettingsRuleGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/ManagedNetwork/getRule.json
+ */
+ /**
+ * Sample code: Get ManagedNetworkSettingsRule.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getManagedNetworkSettingsRule(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .managedNetworkSettingsRules()
+ .getWithResponse("test-rg", "aml-workspace-name", "some_string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ManagedNetworkSettingsRule_List
+
+```java
+/** Samples for ManagedNetworkSettingsRule List. */
+public final class ManagedNetworkSettingsRuleListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/ManagedNetwork/listRule.json
+ */
+ /**
+ * Sample code: List ManagedNetworkSettingsRule.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listManagedNetworkSettingsRule(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.managedNetworkSettingsRules().list("test-rg", "aml-workspace-name", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ModelContainers_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.fluent.models.ModelContainerInner;
+import com.azure.resourcemanager.machinelearning.models.ModelContainerProperties;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for ModelContainers CreateOrUpdate. */
+public final class ModelContainersCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ModelContainer/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Workspace Model Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateWorkspaceModelContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .modelContainers()
+ .createOrUpdateWithResponse(
+ "testrg123",
+ "workspace123",
+ "testContainer",
+ new ModelContainerInner()
+ .withProperties(
+ new ModelContainerProperties()
+ .withDescription("Model container description")
+ .withTags(mapOf("tag1", "value1", "tag2", "value2"))),
+ com.azure.core.util.Context.NONE);
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### ModelContainers_Delete
+
+```java
+/** Samples for ModelContainers Delete. */
+public final class ModelContainersDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ModelContainer/delete.json
+ */
+ /**
+ * Sample code: Delete Workspace Model Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteWorkspaceModelContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .modelContainers()
+ .deleteWithResponse("testrg123", "workspace123", "testContainer", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ModelContainers_Get
+
+```java
+/** Samples for ModelContainers Get. */
+public final class ModelContainersGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ModelContainer/get.json
+ */
+ /**
+ * Sample code: Get Workspace Model Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getWorkspaceModelContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .modelContainers()
+ .getWithResponse("testrg123", "workspace123", "testContainer", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ModelContainers_List
+
+```java
+/** Samples for ModelContainers List. */
+public final class ModelContainersListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ModelContainer/list.json
+ */
+ /**
+ * Sample code: List Workspace Model Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listWorkspaceModelContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.modelContainers().list("testrg123", "workspace123", null, null, null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ModelVersions_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.fluent.models.ModelVersionInner;
+import com.azure.resourcemanager.machinelearning.models.FlavorData;
+import com.azure.resourcemanager.machinelearning.models.ModelVersionProperties;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for ModelVersions CreateOrUpdate. */
+public final class ModelVersionsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ModelVersion/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Workspace Model Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateWorkspaceModelVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .modelVersions()
+ .createOrUpdateWithResponse(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ "string",
+ new ModelVersionInner()
+ .withProperties(
+ new ModelVersionProperties()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsAnonymous(false)
+ .withFlavors(mapOf("string", new FlavorData().withData(mapOf("string", "string"))))
+ .withModelType("CustomModel")
+ .withModelUri("string")),
+ com.azure.core.util.Context.NONE);
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### ModelVersions_Delete
+
+```java
+/** Samples for ModelVersions Delete. */
+public final class ModelVersionsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ModelVersion/delete.json
+ */
+ /**
+ * Sample code: Delete Workspace Model Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteWorkspaceModelVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .modelVersions()
+ .deleteWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ModelVersions_Get
+
+```java
+/** Samples for ModelVersions Get. */
+public final class ModelVersionsGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ModelVersion/get.json
+ */
+ /**
+ * Sample code: Get Workspace Model Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getWorkspaceModelVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .modelVersions()
+ .getWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ModelVersions_List
+
+```java
+/** Samples for ModelVersions List. */
+public final class ModelVersionsListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ModelVersion/list.json
+ */
+ /**
+ * Sample code: List Workspace Model Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listWorkspaceModelVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .modelVersions()
+ .list(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ null,
+ "string",
+ 1,
+ "string",
+ "string",
+ 1,
+ "string",
+ "string",
+ null,
+ null,
+ null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ModelVersions_PackageMethod
+
+```java
+import com.azure.resourcemanager.machinelearning.models.AzureMLBatchInferencingServer;
+import com.azure.resourcemanager.machinelearning.models.BaseEnvironmentId;
+import com.azure.resourcemanager.machinelearning.models.CodeConfiguration;
+import com.azure.resourcemanager.machinelearning.models.ModelConfiguration;
+import com.azure.resourcemanager.machinelearning.models.ModelPackageInput;
+import com.azure.resourcemanager.machinelearning.models.PackageInputDeliveryMode;
+import com.azure.resourcemanager.machinelearning.models.PackageInputPathUrl;
+import com.azure.resourcemanager.machinelearning.models.PackageInputType;
+import com.azure.resourcemanager.machinelearning.models.PackageRequest;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for ModelVersions PackageMethod. */
+public final class ModelVersionsPackageMethodSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ModelVersion/package.json
+ */
+ /**
+ * Sample code: Package Workspace Model Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void packageWorkspaceModelVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .modelVersions()
+ .packageMethod(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ "string",
+ new PackageRequest()
+ .withBaseEnvironmentSource(new BaseEnvironmentId().withResourceId("string"))
+ .withEnvironmentVariables(mapOf("string", "string"))
+ .withInferencingServer(
+ new AzureMLBatchInferencingServer()
+ .withCodeConfiguration(
+ new CodeConfiguration().withCodeId("fakeTokenPlaceholder").withScoringScript("string")))
+ .withInputs(
+ Arrays
+ .asList(
+ new ModelPackageInput()
+ .withInputType(PackageInputType.URI_FILE)
+ .withMode(PackageInputDeliveryMode.DOWNLOAD)
+ .withMountPath("string")
+ .withPath(new PackageInputPathUrl().withUrl("string"))))
+ .withModelConfiguration(
+ new ModelConfiguration()
+ .withMode(PackageInputDeliveryMode.fromString("ReadOnlyMount"))
+ .withMountPath("string"))
+ .withTags(mapOf("string", "string"))
+ .withTargetEnvironmentId("string"),
+ com.azure.core.util.Context.NONE);
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### OnlineDeployments_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.CodeConfiguration;
+import com.azure.resourcemanager.machinelearning.models.ContainerResourceRequirements;
+import com.azure.resourcemanager.machinelearning.models.ContainerResourceSettings;
+import com.azure.resourcemanager.machinelearning.models.DefaultScaleSettings;
+import com.azure.resourcemanager.machinelearning.models.KubernetesOnlineDeployment;
+import com.azure.resourcemanager.machinelearning.models.ManagedOnlineDeployment;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.machinelearning.models.OnlineRequestSettings;
+import com.azure.resourcemanager.machinelearning.models.ProbeSettings;
+import com.azure.resourcemanager.machinelearning.models.Sku;
+import com.azure.resourcemanager.machinelearning.models.SkuTier;
+import com.azure.resourcemanager.machinelearning.models.UserAssignedIdentity;
+import java.time.Duration;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for OnlineDeployments CreateOrUpdate. */
+public final class OnlineDeploymentsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Kubernetes Online Deployment.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateKubernetesOnlineDeployment(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .onlineDeployments()
+ .define("testDeploymentName")
+ .withRegion("string")
+ .withExistingOnlineEndpoint("test-rg", "my-aml-workspace", "testEndpointName")
+ .withProperties(
+ new KubernetesOnlineDeployment()
+ .withCodeConfiguration(
+ new CodeConfiguration().withCodeId("fakeTokenPlaceholder").withScoringScript("string"))
+ .withDescription("string")
+ .withEnvironmentId("string")
+ .withEnvironmentVariables(mapOf("string", "string"))
+ .withProperties(mapOf("string", "string"))
+ .withAppInsightsEnabled(false)
+ .withInstanceType("string")
+ .withLivenessProbe(
+ new ProbeSettings()
+ .withFailureThreshold(1)
+ .withInitialDelay(Duration.parse("PT5M"))
+ .withPeriod(Duration.parse("PT5M"))
+ .withSuccessThreshold(1)
+ .withTimeout(Duration.parse("PT5M")))
+ .withModel("string")
+ .withModelMountPath("string")
+ .withRequestSettings(
+ new OnlineRequestSettings()
+ .withMaxConcurrentRequestsPerInstance(1)
+ .withMaxQueueWait(Duration.parse("PT5M"))
+ .withRequestTimeout(Duration.parse("PT5M")))
+ .withScaleSettings(new DefaultScaleSettings())
+ .withContainerResourceRequirements(
+ new ContainerResourceRequirements()
+ .withContainerResourceLimits(
+ new ContainerResourceSettings().withCpu("\"1\"").withGpu("\"1\"").withMemory("\"2Gi\""))
+ .withContainerResourceRequests(
+ new ContainerResourceSettings()
+ .withCpu("\"1\"")
+ .withGpu("\"1\"")
+ .withMemory("\"2Gi\""))))
+ .withTags(mapOf())
+ .withIdentity(
+ new ManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
+ .withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withKind("string")
+ .withSku(
+ new Sku()
+ .withName("string")
+ .withTier(SkuTier.FREE)
+ .withSize("string")
+ .withFamily("string")
+ .withCapacity(1))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Managed Online Deployment.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateManagedOnlineDeployment(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .onlineDeployments()
+ .define("testDeploymentName")
+ .withRegion("string")
+ .withExistingOnlineEndpoint("test-rg", "my-aml-workspace", "testEndpointName")
+ .withProperties(
+ new ManagedOnlineDeployment()
+ .withCodeConfiguration(
+ new CodeConfiguration().withCodeId("fakeTokenPlaceholder").withScoringScript("string"))
+ .withDescription("string")
+ .withEnvironmentId("string")
+ .withEnvironmentVariables(mapOf("string", "string"))
+ .withProperties(mapOf("string", "string"))
+ .withAppInsightsEnabled(false)
+ .withInstanceType("string")
+ .withLivenessProbe(
+ new ProbeSettings()
+ .withFailureThreshold(1)
+ .withInitialDelay(Duration.parse("PT5M"))
+ .withPeriod(Duration.parse("PT5M"))
+ .withSuccessThreshold(1)
+ .withTimeout(Duration.parse("PT5M")))
+ .withModel("string")
+ .withModelMountPath("string")
+ .withReadinessProbe(
+ new ProbeSettings()
+ .withFailureThreshold(30)
+ .withInitialDelay(Duration.parse("PT1S"))
+ .withPeriod(Duration.parse("PT10S"))
+ .withSuccessThreshold(1)
+ .withTimeout(Duration.parse("PT2S")))
+ .withRequestSettings(
+ new OnlineRequestSettings()
+ .withMaxConcurrentRequestsPerInstance(1)
+ .withMaxQueueWait(Duration.parse("PT5M"))
+ .withRequestTimeout(Duration.parse("PT5M")))
+ .withScaleSettings(new DefaultScaleSettings()))
+ .withTags(mapOf())
+ .withIdentity(
+ new ManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
+ .withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withKind("string")
+ .withSku(
+ new Sku()
+ .withName("string")
+ .withTier(SkuTier.FREE)
+ .withSize("string")
+ .withFamily("string")
+ .withCapacity(1))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### OnlineDeployments_Delete
+
+```java
+/** Samples for OnlineDeployments Delete. */
+public final class OnlineDeploymentsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/OnlineDeployment/delete.json
+ */
+ /**
+ * Sample code: Delete Workspace Online Deployment.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteWorkspaceOnlineDeployment(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .onlineDeployments()
+ .delete("testrg123", "workspace123", "testEndpoint", "testDeployment", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### OnlineDeployments_Get
+
+```java
+/** Samples for OnlineDeployments Get. */
+public final class OnlineDeploymentsGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/get.json
+ */
+ /**
+ * Sample code: Get Kubernetes Online Deployment.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getKubernetesOnlineDeployment(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .onlineDeployments()
+ .getWithResponse(
+ "test-rg",
+ "my-aml-workspace",
+ "testEndpointName",
+ "testDeploymentName",
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/get.json
+ */
+ /**
+ * Sample code: Get Managed Online Deployment.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getManagedOnlineDeployment(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .onlineDeployments()
+ .getWithResponse(
+ "test-rg",
+ "my-aml-workspace",
+ "testEndpointName",
+ "testDeploymentName",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### OnlineDeployments_GetLogs
+
+```java
+import com.azure.resourcemanager.machinelearning.models.ContainerType;
+import com.azure.resourcemanager.machinelearning.models.DeploymentLogsRequest;
+
+/** Samples for OnlineDeployments GetLogs. */
+public final class OnlineDeploymentsGetLogsSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/OnlineDeployment/getLogs.json
+ */
+ /**
+ * Sample code: Get Online Deployment Logs.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getOnlineDeploymentLogs(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .onlineDeployments()
+ .getLogsWithResponse(
+ "testrg123",
+ "workspace123",
+ "testEndpoint",
+ "testDeployment",
+ new DeploymentLogsRequest().withContainerType(ContainerType.STORAGE_INITIALIZER).withTail(0),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### OnlineDeployments_List
+
+```java
+/** Samples for OnlineDeployments List. */
+public final class OnlineDeploymentsListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/OnlineDeployment/list.json
+ */
+ /**
+ * Sample code: List Online Deployments.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listOnlineDeployments(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .onlineDeployments()
+ .list(
+ "test-rg", "my-aml-workspace", "testEndpointName", "string", 1, null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### OnlineDeployments_ListSkus
+
+```java
+/** Samples for OnlineDeployments ListSkus. */
+public final class OnlineDeploymentsListSkusSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/listSkus.json
+ */
+ /**
+ * Sample code: List Managed Online Deployment Skus.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listManagedOnlineDeploymentSkus(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .onlineDeployments()
+ .listSkus(
+ "test-rg",
+ "my-aml-workspace",
+ "testEndpointName",
+ "testDeploymentName",
+ 1,
+ null,
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/listSkus.json
+ */
+ /**
+ * Sample code: List Kubernetes Online Deployment Skus.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listKubernetesOnlineDeploymentSkus(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .onlineDeployments()
+ .listSkus(
+ "test-rg",
+ "my-aml-workspace",
+ "testEndpointName",
+ "testDeploymentName",
+ 1,
+ null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### OnlineDeployments_Update
+
+```java
+import com.azure.resourcemanager.machinelearning.models.OnlineDeployment;
+import com.azure.resourcemanager.machinelearning.models.PartialSku;
+import com.azure.resourcemanager.machinelearning.models.SkuTier;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for OnlineDeployments Update. */
+public final class OnlineDeploymentsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/update.json
+ */
+ /**
+ * Sample code: Update Managed Online Deployment.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void updateManagedOnlineDeployment(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ OnlineDeployment resource =
+ manager
+ .onlineDeployments()
+ .getWithResponse(
+ "test-rg",
+ "my-aml-workspace",
+ "testEndpointName",
+ "testDeploymentName",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withTags(mapOf())
+ .withSku(
+ new PartialSku()
+ .withCapacity(1)
+ .withFamily("string")
+ .withName("string")
+ .withSize("string")
+ .withTier(SkuTier.FREE))
+ .apply();
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/update.json
+ */
+ /**
+ * Sample code: Update Kubernetes Online Deployment.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void updateKubernetesOnlineDeployment(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ OnlineDeployment resource =
+ manager
+ .onlineDeployments()
+ .getWithResponse(
+ "test-rg",
+ "my-aml-workspace",
+ "testEndpointName",
+ "testDeploymentName",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withTags(mapOf())
+ .withSku(
+ new PartialSku()
+ .withCapacity(1)
+ .withFamily("string")
+ .withName("string")
+ .withSize("string")
+ .withTier(SkuTier.FREE))
+ .apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### OnlineEndpoints_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.EndpointAuthMode;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.machinelearning.models.OnlineEndpointProperties;
+import com.azure.resourcemanager.machinelearning.models.Sku;
+import com.azure.resourcemanager.machinelearning.models.SkuTier;
+import com.azure.resourcemanager.machinelearning.models.UserAssignedIdentity;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for OnlineEndpoints CreateOrUpdate. */
+public final class OnlineEndpointsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/OnlineEndpoint/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Workspace Online Endpoint.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateWorkspaceOnlineEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .onlineEndpoints()
+ .define("testEndpointName")
+ .withRegion("string")
+ .withExistingWorkspace("test-rg", "my-aml-workspace")
+ .withProperties(
+ new OnlineEndpointProperties()
+ .withAuthMode(EndpointAuthMode.AMLTOKEN)
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withCompute("string")
+ .withTraffic(mapOf("string", 1)))
+ .withTags(mapOf())
+ .withIdentity(
+ new ManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
+ .withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withKind("string")
+ .withSku(
+ new Sku()
+ .withName("string")
+ .withTier(SkuTier.FREE)
+ .withSize("string")
+ .withFamily("string")
+ .withCapacity(1))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### OnlineEndpoints_Delete
+
+```java
+/** Samples for OnlineEndpoints Delete. */
+public final class OnlineEndpointsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/OnlineEndpoint/delete.json
+ */
+ /**
+ * Sample code: Delete Workspace Online Endpoint.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteWorkspaceOnlineEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .onlineEndpoints()
+ .delete("test-rg", "my-aml-workspace", "testEndpointName", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### OnlineEndpoints_Get
+
+```java
+/** Samples for OnlineEndpoints Get. */
+public final class OnlineEndpointsGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/OnlineEndpoint/get.json
+ */
+ /**
+ * Sample code: Get Workspace Online Endpoint.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getWorkspaceOnlineEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .onlineEndpoints()
+ .getWithResponse("test-rg", "my-aml-workspace", "testEndpointName", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### OnlineEndpoints_GetToken
+
+```java
+/** Samples for OnlineEndpoints GetToken. */
+public final class OnlineEndpointsGetTokenSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/OnlineEndpoint/getToken.json
+ */
+ /**
+ * Sample code: GetToken Workspace Online Endpoint.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getTokenWorkspaceOnlineEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .onlineEndpoints()
+ .getTokenWithResponse("test-rg", "my-aml-workspace", "testEndpointName", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### OnlineEndpoints_List
+
+```java
+import com.azure.resourcemanager.machinelearning.models.EndpointComputeType;
+import com.azure.resourcemanager.machinelearning.models.OrderString;
+
+/** Samples for OnlineEndpoints List. */
+public final class OnlineEndpointsListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/OnlineEndpoint/list.json
+ */
+ /**
+ * Sample code: List Workspace Online Endpoint.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listWorkspaceOnlineEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .onlineEndpoints()
+ .list(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ 1,
+ EndpointComputeType.MANAGED,
+ null,
+ "string",
+ "string",
+ OrderString.CREATED_AT_DESC,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### OnlineEndpoints_ListKeys
+
+```java
+/** Samples for OnlineEndpoints ListKeys. */
+public final class OnlineEndpointsListKeysSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/OnlineEndpoint/listKeys.json
+ */
+ /**
+ * Sample code: ListKeys Workspace Online Endpoint.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listKeysWorkspaceOnlineEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .onlineEndpoints()
+ .listKeysWithResponse("test-rg", "my-aml-workspace", "testEndpointName", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### OnlineEndpoints_RegenerateKeys
+
+```java
+import com.azure.resourcemanager.machinelearning.models.KeyType;
+import com.azure.resourcemanager.machinelearning.models.RegenerateEndpointKeysRequest;
+
+/** Samples for OnlineEndpoints RegenerateKeys. */
+public final class OnlineEndpointsRegenerateKeysSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/OnlineEndpoint/regenerateKeys.json
+ */
+ /**
+ * Sample code: RegenerateKeys Workspace Online Endpoint.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void regenerateKeysWorkspaceOnlineEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .onlineEndpoints()
+ .regenerateKeys(
+ "test-rg",
+ "my-aml-workspace",
+ "testEndpointName",
+ new RegenerateEndpointKeysRequest().withKeyType(KeyType.PRIMARY).withKeyValue("fakeTokenPlaceholder"),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### OnlineEndpoints_Update
+
+```java
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.machinelearning.models.OnlineEndpoint;
+import com.azure.resourcemanager.machinelearning.models.PartialManagedServiceIdentity;
+import java.io.IOException;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for OnlineEndpoints Update. */
+public final class OnlineEndpointsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/OnlineEndpoint/update.json
+ */
+ /**
+ * Sample code: Update Workspace Online Endpoint.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void updateWorkspaceOnlineEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) throws IOException {
+ OnlineEndpoint resource =
+ manager
+ .onlineEndpoints()
+ .getWithResponse("test-rg", "my-aml-workspace", "testEndpointName", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withTags(mapOf())
+ .withIdentity(
+ new PartialManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
+ .withUserAssignedIdentities(
+ mapOf(
+ "string",
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize("{}", Object.class, SerializerEncoding.JSON))))
+ .apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Operations_List
+
+```java
+/** Samples for Operations List. */
+public final class OperationsListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/operationsList.json
+ */
+ /**
+ * Sample code: OperationsList.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void operationsList(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.operations().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### PrivateEndpointConnections_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.EndpointServiceConnectionStatus;
+import com.azure.resourcemanager.machinelearning.models.PrivateLinkServiceConnectionState;
+
+/** Samples for PrivateEndpointConnections CreateOrUpdate. */
+public final class PrivateEndpointConnectionsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/PrivateEndpointConnection/createOrUpdate.json
+ */
+ /**
+ * Sample code: WorkspacePutPrivateEndpointConnection.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void workspacePutPrivateEndpointConnection(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .privateEndpointConnections()
+ .define("{privateEndpointConnectionName}")
+ .withExistingWorkspace("rg-1234", "testworkspace")
+ .withPrivateLinkServiceConnectionState(
+ new PrivateLinkServiceConnectionState()
+ .withDescription("Auto-Approved")
+ .withStatus(EndpointServiceConnectionStatus.APPROVED))
+ .create();
+ }
+}
+```
+
+### PrivateEndpointConnections_Delete
+
+```java
+/** Samples for PrivateEndpointConnections Delete. */
+public final class PrivateEndpointConnectionsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/PrivateEndpointConnection/delete.json
+ */
+ /**
+ * Sample code: WorkspacePutPrivateEndpointConnection.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void workspacePutPrivateEndpointConnection(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .privateEndpointConnections()
+ .deleteWithResponse(
+ "rg-1234", "testworkspace", "{privateEndpointConnectionName}", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### PrivateEndpointConnections_Get
+
+```java
+/** Samples for PrivateEndpointConnections Get. */
+public final class PrivateEndpointConnectionsGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/PrivateEndpointConnection/get.json
+ */
+ /**
+ * Sample code: WorkspaceGetPrivateEndpointConnection.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void workspaceGetPrivateEndpointConnection(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .privateEndpointConnections()
+ .getWithResponse(
+ "rg-1234", "testworkspace", "{privateEndpointConnectionName}", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### PrivateEndpointConnections_List
+
+```java
+/** Samples for PrivateEndpointConnections List. */
+public final class PrivateEndpointConnectionsListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/PrivateEndpointConnection/list.json
+ */
+ /**
+ * Sample code: StorageAccountListPrivateEndpointConnections.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void storageAccountListPrivateEndpointConnections(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.privateEndpointConnections().list("rg-1234", "testworkspace", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### PrivateLinkResources_List
+
+```java
+/** Samples for PrivateLinkResources List. */
+public final class PrivateLinkResourcesListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/PrivateLinkResource/list.json
+ */
+ /**
+ * Sample code: WorkspaceListPrivateLinkResources.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void workspaceListPrivateLinkResources(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.privateLinkResources().list("rg-1234", "testworkspace", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Quotas_List
+
+```java
+/** Samples for Quotas List. */
+public final class QuotasListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Quota/list.json
+ */
+ /**
+ * Sample code: List workspace quotas by VMFamily.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listWorkspaceQuotasByVMFamily(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.quotas().list("eastus", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Quotas_Update
+
+```java
+import com.azure.resourcemanager.machinelearning.models.QuotaBaseProperties;
+import com.azure.resourcemanager.machinelearning.models.QuotaUnit;
+import com.azure.resourcemanager.machinelearning.models.QuotaUpdateParameters;
+import java.util.Arrays;
+
+/** Samples for Quotas Update. */
+public final class QuotasUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Quota/update.json
+ */
+ /**
+ * Sample code: update quotas.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void updateQuotas(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .quotas()
+ .updateWithResponse(
+ "eastus",
+ new QuotaUpdateParameters()
+ .withValue(
+ Arrays
+ .asList(
+ new QuotaBaseProperties()
+ .withId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace1/quotas/Standard_DSv2_Family_Cluster_Dedicated_vCPUs")
+ .withType("Microsoft.MachineLearningServices/workspaces/quotas")
+ .withLimit(100L)
+ .withUnit(QuotaUnit.COUNT),
+ new QuotaBaseProperties()
+ .withId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace2/quotas/Standard_DSv2_Family_Cluster_Dedicated_vCPUs")
+ .withType("Microsoft.MachineLearningServices/workspaces/quotas")
+ .withLimit(200L)
+ .withUnit(QuotaUnit.COUNT))),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Registries_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.AcrDetails;
+import com.azure.resourcemanager.machinelearning.models.ArmResourceId;
+import com.azure.resourcemanager.machinelearning.models.EndpointServiceConnectionStatus;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.machinelearning.models.PrivateEndpointResource;
+import com.azure.resourcemanager.machinelearning.models.RegistryPrivateEndpointConnection;
+import com.azure.resourcemanager.machinelearning.models.RegistryPrivateLinkServiceConnectionState;
+import com.azure.resourcemanager.machinelearning.models.RegistryRegionArmDetails;
+import com.azure.resourcemanager.machinelearning.models.Sku;
+import com.azure.resourcemanager.machinelearning.models.SkuTier;
+import com.azure.resourcemanager.machinelearning.models.StorageAccountDetails;
+import com.azure.resourcemanager.machinelearning.models.SystemCreatedAcrAccount;
+import com.azure.resourcemanager.machinelearning.models.SystemCreatedStorageAccount;
+import com.azure.resourcemanager.machinelearning.models.UserAssignedIdentity;
+import com.azure.resourcemanager.machinelearning.models.UserCreatedAcrAccount;
+import com.azure.resourcemanager.machinelearning.models.UserCreatedStorageAccount;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for Registries CreateOrUpdate. */
+public final class RegistriesCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registries/createOrUpdate-SystemCreated.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Registry with system created accounts.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateRegistryWithSystemCreatedAccounts(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registries()
+ .define("string")
+ .withRegion("string")
+ .withExistingResourceGroup("test-rg")
+ .withTags(mapOf())
+ .withIdentity(
+ new ManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.NONE)
+ .withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withKind("string")
+ .withSku(
+ new Sku()
+ .withName("string")
+ .withTier(SkuTier.FREE)
+ .withSize("string")
+ .withFamily("string")
+ .withCapacity(1))
+ .withDiscoveryUrl("string")
+ .withIntellectualPropertyPublisher("string")
+ .withManagedResourceGroup(new ArmResourceId().withResourceId("string"))
+ .withMlFlowRegistryUri("string")
+ .withRegistryPrivateEndpointConnections(
+ Arrays
+ .asList(
+ new RegistryPrivateEndpointConnection()
+ .withId("string")
+ .withLocation("string")
+ .withGroupIds(Arrays.asList("string"))
+ .withPrivateEndpoint(new PrivateEndpointResource().withSubnetArmId("string"))
+ .withRegistryPrivateLinkServiceConnectionState(
+ new RegistryPrivateLinkServiceConnectionState()
+ .withActionsRequired("string")
+ .withDescription("string")
+ .withStatus(EndpointServiceConnectionStatus.APPROVED))
+ .withProvisioningState("string")))
+ .withPublicNetworkAccess("string")
+ .withRegionDetails(
+ Arrays
+ .asList(
+ new RegistryRegionArmDetails()
+ .withAcrDetails(
+ Arrays
+ .asList(
+ new AcrDetails()
+ .withSystemCreatedAcrAccount(
+ new SystemCreatedAcrAccount()
+ .withAcrAccountName("string")
+ .withAcrAccountSku("string")
+ .withArmResourceId(new ArmResourceId().withResourceId("string")))))
+ .withLocation("string")
+ .withStorageAccountDetails(
+ Arrays
+ .asList(
+ new StorageAccountDetails()
+ .withSystemCreatedStorageAccount(
+ new SystemCreatedStorageAccount()
+ .withAllowBlobPublicAccess(false)
+ .withArmResourceId(new ArmResourceId().withResourceId("string"))
+ .withStorageAccountHnsEnabled(false)
+ .withStorageAccountName("string")
+ .withStorageAccountType("string"))))))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registries/createOrUpdate-UserCreated.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Registry with user created accounts.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateRegistryWithUserCreatedAccounts(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registries()
+ .define("string")
+ .withRegion("string")
+ .withExistingResourceGroup("test-rg")
+ .withTags(mapOf())
+ .withIdentity(
+ new ManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.NONE)
+ .withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withKind("string")
+ .withSku(
+ new Sku()
+ .withName("string")
+ .withTier(SkuTier.FREE)
+ .withSize("string")
+ .withFamily("string")
+ .withCapacity(1))
+ .withDiscoveryUrl("string")
+ .withIntellectualPropertyPublisher("string")
+ .withManagedResourceGroup(new ArmResourceId().withResourceId("string"))
+ .withMlFlowRegistryUri("string")
+ .withRegistryPrivateEndpointConnections(
+ Arrays
+ .asList(
+ new RegistryPrivateEndpointConnection()
+ .withId("string")
+ .withLocation("string")
+ .withGroupIds(Arrays.asList("string"))
+ .withPrivateEndpoint(new PrivateEndpointResource().withSubnetArmId("string"))
+ .withRegistryPrivateLinkServiceConnectionState(
+ new RegistryPrivateLinkServiceConnectionState()
+ .withActionsRequired("string")
+ .withDescription("string")
+ .withStatus(EndpointServiceConnectionStatus.APPROVED))
+ .withProvisioningState("string")))
+ .withPublicNetworkAccess("string")
+ .withRegionDetails(
+ Arrays
+ .asList(
+ new RegistryRegionArmDetails()
+ .withAcrDetails(
+ Arrays
+ .asList(
+ new AcrDetails()
+ .withUserCreatedAcrAccount(
+ new UserCreatedAcrAccount()
+ .withArmResourceId(new ArmResourceId().withResourceId("string")))))
+ .withLocation("string")
+ .withStorageAccountDetails(
+ Arrays
+ .asList(
+ new StorageAccountDetails()
+ .withUserCreatedStorageAccount(
+ new UserCreatedStorageAccount()
+ .withArmResourceId(
+ new ArmResourceId().withResourceId("string")))))))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Registries_Delete
+
+```java
+/** Samples for Registries Delete. */
+public final class RegistriesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registries/delete.json
+ */
+ /**
+ * Sample code: Delete Registry.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteRegistry(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.registries().delete("test-rg", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Registries_GetByResourceGroup
+
+```java
+/** Samples for Registries GetByResourceGroup. */
+public final class RegistriesGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registries/get-UserCreated.json
+ */
+ /**
+ * Sample code: Get Registry with user created accounts.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getRegistryWithUserCreatedAccounts(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.registries().getByResourceGroupWithResponse("test-rg", "string", com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registries/get-SystemCreated.json
+ */
+ /**
+ * Sample code: Get Registry with system created accounts.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getRegistryWithSystemCreatedAccounts(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.registries().getByResourceGroupWithResponse("test-rg", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Registries_List
+
+```java
+/** Samples for Registries List. */
+public final class RegistriesListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registries/listBySubscription.json
+ */
+ /**
+ * Sample code: List registries by subscription.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listRegistriesBySubscription(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.registries().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Registries_ListByResourceGroup
+
+```java
+/** Samples for Registries ListByResourceGroup. */
+public final class RegistriesListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registries/list-UserCreated.json
+ */
+ /**
+ * Sample code: List registries with user created accounts.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listRegistriesWithUserCreatedAccounts(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.registries().listByResourceGroup("test-rg", com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registries/list-SystemCreated.json
+ */
+ /**
+ * Sample code: List registries with system created accounts.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listRegistriesWithSystemCreatedAccounts(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.registries().listByResourceGroup("test-rg", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Registries_RemoveRegions
+
+```java
+import com.azure.resourcemanager.machinelearning.fluent.models.RegistryInner;
+import com.azure.resourcemanager.machinelearning.models.AcrDetails;
+import com.azure.resourcemanager.machinelearning.models.ArmResourceId;
+import com.azure.resourcemanager.machinelearning.models.EndpointServiceConnectionStatus;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.machinelearning.models.PrivateEndpointResource;
+import com.azure.resourcemanager.machinelearning.models.RegistryPrivateEndpointConnection;
+import com.azure.resourcemanager.machinelearning.models.RegistryPrivateLinkServiceConnectionState;
+import com.azure.resourcemanager.machinelearning.models.RegistryRegionArmDetails;
+import com.azure.resourcemanager.machinelearning.models.Sku;
+import com.azure.resourcemanager.machinelearning.models.SkuTier;
+import com.azure.resourcemanager.machinelearning.models.StorageAccountDetails;
+import com.azure.resourcemanager.machinelearning.models.SystemCreatedAcrAccount;
+import com.azure.resourcemanager.machinelearning.models.SystemCreatedStorageAccount;
+import com.azure.resourcemanager.machinelearning.models.UserAssignedIdentity;
+import com.azure.resourcemanager.machinelearning.models.UserCreatedAcrAccount;
+import com.azure.resourcemanager.machinelearning.models.UserCreatedStorageAccount;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for Registries RemoveRegions. */
+public final class RegistriesRemoveRegionsSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registries/removeRegions.json
+ */
+ /**
+ * Sample code: Remove regions from registry.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void removeRegionsFromRegistry(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registries()
+ .removeRegions(
+ "test-rg",
+ "string",
+ new RegistryInner()
+ .withLocation("string")
+ .withTags(mapOf())
+ .withIdentity(
+ new ManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.NONE)
+ .withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withKind("string")
+ .withSku(
+ new Sku()
+ .withName("string")
+ .withTier(SkuTier.FREE)
+ .withSize("string")
+ .withFamily("string")
+ .withCapacity(1))
+ .withDiscoveryUrl("string")
+ .withIntellectualPropertyPublisher("string")
+ .withManagedResourceGroup(new ArmResourceId().withResourceId("string"))
+ .withMlFlowRegistryUri("string")
+ .withRegistryPrivateEndpointConnections(
+ Arrays
+ .asList(
+ new RegistryPrivateEndpointConnection()
+ .withId("string")
+ .withLocation("string")
+ .withGroupIds(Arrays.asList("string"))
+ .withPrivateEndpoint(new PrivateEndpointResource().withSubnetArmId("string"))
+ .withRegistryPrivateLinkServiceConnectionState(
+ new RegistryPrivateLinkServiceConnectionState()
+ .withActionsRequired("string")
+ .withDescription("string")
+ .withStatus(EndpointServiceConnectionStatus.APPROVED))
+ .withProvisioningState("string")))
+ .withPublicNetworkAccess("string")
+ .withRegionDetails(
+ Arrays
+ .asList(
+ new RegistryRegionArmDetails()
+ .withAcrDetails(
+ Arrays
+ .asList(
+ new AcrDetails()
+ .withSystemCreatedAcrAccount(
+ new SystemCreatedAcrAccount()
+ .withAcrAccountName("string")
+ .withAcrAccountSku("string")
+ .withArmResourceId(
+ new ArmResourceId().withResourceId("string")))
+ .withUserCreatedAcrAccount(
+ new UserCreatedAcrAccount()
+ .withArmResourceId(
+ new ArmResourceId().withResourceId("string")))))
+ .withLocation("string")
+ .withStorageAccountDetails(
+ Arrays
+ .asList(
+ new StorageAccountDetails()
+ .withSystemCreatedStorageAccount(
+ new SystemCreatedStorageAccount()
+ .withAllowBlobPublicAccess(false)
+ .withArmResourceId(
+ new ArmResourceId().withResourceId("string"))
+ .withStorageAccountHnsEnabled(false)
+ .withStorageAccountName("string")
+ .withStorageAccountType("string"))
+ .withUserCreatedStorageAccount(
+ new UserCreatedStorageAccount()
+ .withArmResourceId(
+ new ArmResourceId().withResourceId("string"))))))),
+ com.azure.core.util.Context.NONE);
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Registries_Update
+
+```java
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.machinelearning.models.PartialSku;
+import com.azure.resourcemanager.machinelearning.models.Registry;
+import com.azure.resourcemanager.machinelearning.models.RegistryPartialManagedServiceIdentity;
+import com.azure.resourcemanager.machinelearning.models.SkuTier;
+import com.azure.resourcemanager.machinelearning.models.UserAssignedIdentity;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for Registries Update. */
+public final class RegistriesUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registries/update-UserCreated.json
+ */
+ /**
+ * Sample code: Update Registry with user created accounts.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void updateRegistryWithUserCreatedAccounts(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ Registry resource =
+ manager
+ .registries()
+ .getByResourceGroupWithResponse("test-rg", "string", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withTags(mapOf())
+ .withIdentity(
+ new RegistryPartialManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.USER_ASSIGNED)
+ .withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withSku(
+ new PartialSku()
+ .withCapacity(1)
+ .withFamily("string")
+ .withName("string")
+ .withSize("string")
+ .withTier(SkuTier.BASIC))
+ .apply();
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registries/update-SystemCreated.json
+ */
+ /**
+ * Sample code: Update Registry with system created accounts.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void updateRegistryWithSystemCreatedAccounts(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ Registry resource =
+ manager
+ .registries()
+ .getByResourceGroupWithResponse("test-rg", "string", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withTags(mapOf())
+ .withIdentity(
+ new RegistryPartialManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
+ .withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withSku(
+ new PartialSku()
+ .withCapacity(1)
+ .withFamily("string")
+ .withName("string")
+ .withSize("string")
+ .withTier(SkuTier.BASIC))
+ .apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### RegistryCodeContainers_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.CodeContainerProperties;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for RegistryCodeContainers CreateOrUpdate. */
+public final class RegistryCodeContainersCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/CodeContainer/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Registry Code Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateRegistryCodeContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryCodeContainers()
+ .define("testContainer")
+ .withExistingRegistry("testrg123", "testregistry")
+ .withProperties(
+ new CodeContainerProperties()
+ .withDescription("string")
+ .withTags(mapOf("tag1", "value1", "tag2", "value2")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### RegistryCodeContainers_Delete
+
+```java
+/** Samples for RegistryCodeContainers Delete. */
+public final class RegistryCodeContainersDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/CodeContainer/delete.json
+ */
+ /**
+ * Sample code: Delete Registry Code Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteRegistryCodeContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryCodeContainers()
+ .delete("testrg123", "testregistry", "testContainer", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RegistryCodeContainers_Get
+
+```java
+/** Samples for RegistryCodeContainers Get. */
+public final class RegistryCodeContainersGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/CodeContainer/get.json
+ */
+ /**
+ * Sample code: Get Registry Code Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getRegistryCodeContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryCodeContainers()
+ .getWithResponse("testrg123", "testregistry", "testContainer", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RegistryCodeContainers_List
+
+```java
+/** Samples for RegistryCodeContainers List. */
+public final class RegistryCodeContainersListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/CodeContainer/list.json
+ */
+ /**
+ * Sample code: List Registry Code Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listRegistryCodeContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.registryCodeContainers().list("testrg123", "testregistry", null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RegistryCodeVersions_CreateOrGetStartPendingUpload
+
+```java
+import com.azure.resourcemanager.machinelearning.models.PendingUploadRequestDto;
+import com.azure.resourcemanager.machinelearning.models.PendingUploadType;
+
+/** Samples for RegistryCodeVersions CreateOrGetStartPendingUpload. */
+public final class RegistryCodeVersionsCreateOrGetStartPendingUploadSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/CodeVersion/createOrGetStartPendingUpload.json
+ */
+ /**
+ * Sample code: CreateOrGetStartPendingUpload Registry Code Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrGetStartPendingUploadRegistryCodeVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryCodeVersions()
+ .createOrGetStartPendingUploadWithResponse(
+ "test-rg",
+ "registryName",
+ "string",
+ "string",
+ new PendingUploadRequestDto()
+ .withPendingUploadId("string")
+ .withPendingUploadType(PendingUploadType.NONE),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RegistryCodeVersions_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.CodeVersionProperties;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for RegistryCodeVersions CreateOrUpdate. */
+public final class RegistryCodeVersionsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/CodeVersion/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Registry Code Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateRegistryCodeVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryCodeVersions()
+ .define("string")
+ .withExistingCode("test-rg", "my-aml-registry", "string")
+ .withProperties(
+ new CodeVersionProperties()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsAnonymous(false)
+ .withCodeUri("fakeTokenPlaceholder"))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
}
+}
+```
+
+### RegistryCodeVersions_Delete
+```java
+/** Samples for RegistryCodeVersions Delete. */
+public final class RegistryCodeVersionsDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/PipelineJob/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/CodeVersion/delete.json
*/
/**
- * Sample code: List Pipeline Job.
+ * Sample code: Delete Registry Code Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listPipelineJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void deleteRegistryCodeVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .jobs()
- .list("test-rg", "my-aml-workspace", null, "string", "string", null, com.azure.core.util.Context.NONE);
+ .registryCodeVersions()
+ .delete("test-rg", "my-aml-registry", "string", "string", com.azure.core.util.Context.NONE);
}
+}
+```
+
+### RegistryCodeVersions_Get
+```java
+/** Samples for RegistryCodeVersions Get. */
+public final class RegistryCodeVersionsGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/SweepJob/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/CodeVersion/get.json
*/
/**
- * Sample code: List Sweep Job.
+ * Sample code: Get Registry Code Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listSweepJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void getRegistryCodeVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .jobs()
- .list("test-rg", "my-aml-workspace", null, "string", "string", null, com.azure.core.util.Context.NONE);
+ .registryCodeVersions()
+ .getWithResponse("test-rg", "my-aml-registry", "string", "string", com.azure.core.util.Context.NONE);
}
+}
+```
+
+### RegistryCodeVersions_List
+```java
+/** Samples for RegistryCodeVersions List. */
+public final class RegistryCodeVersionsListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/AutoMLJob/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/CodeVersion/list.json
*/
/**
- * Sample code: List AutoML Job.
+ * Sample code: List Registry Code Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listAutoMLJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.jobs().list("test-rg", "my-aml-workspace", null, null, null, null, com.azure.core.util.Context.NONE);
+ public static void listRegistryCodeVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryCodeVersions()
+ .list("test-rg", "my-aml-registry", "string", "string", 1, null, com.azure.core.util.Context.NONE);
}
}
```
-### ModelContainers_CreateOrUpdate
+### RegistryComponentContainers_CreateOrUpdate
```java
-import com.azure.resourcemanager.machinelearning.models.ModelContainerProperties;
+import com.azure.resourcemanager.machinelearning.models.ComponentContainerProperties;
import java.util.HashMap;
import java.util.Map;
-/** Samples for ModelContainers CreateOrUpdate. */
-public final class ModelContainersCreateOrUpdateSamples {
+/** Samples for RegistryComponentContainers CreateOrUpdate. */
+public final class RegistryComponentContainersCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ModelContainer/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/ComponentContainer/createOrUpdate.json
*/
/**
- * Sample code: CreateOrUpdate Model Container.
+ * Sample code: CreateOrUpdate Registry Component Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateModelContainer(
+ public static void createOrUpdateRegistryComponentContainer(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .modelContainers()
- .define("testContainer")
- .withExistingWorkspace("testrg123", "workspace123")
+ .registryComponentContainers()
+ .define("string")
+ .withExistingRegistry("test-rg", "my-aml-registry")
.withProperties(
- new ModelContainerProperties()
- .withDescription("Model container description")
- .withTags(mapOf("tag1", "value1", "tag2", "value2")))
+ new ComponentContainerProperties()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string")))
.create();
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -2802,103 +6489,115 @@ public final class ModelContainersCreateOrUpdateSamples {
}
```
-### ModelContainers_Delete
+### RegistryComponentContainers_Delete
```java
-/** Samples for ModelContainers Delete. */
-public final class ModelContainersDeleteSamples {
+/** Samples for RegistryComponentContainers Delete. */
+public final class RegistryComponentContainersDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ModelContainer/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/ComponentContainer/delete.json
*/
/**
- * Sample code: Delete Model Container.
+ * Sample code: Delete Registry Component Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteModelContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void deleteRegistryComponentContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .modelContainers()
- .deleteWithResponse("testrg123", "workspace123", "testContainer", com.azure.core.util.Context.NONE);
+ .registryComponentContainers()
+ .delete("test-rg", "my-aml-registry", "string", com.azure.core.util.Context.NONE);
}
}
```
-### ModelContainers_Get
+### RegistryComponentContainers_Get
```java
-/** Samples for ModelContainers Get. */
-public final class ModelContainersGetSamples {
+/** Samples for RegistryComponentContainers Get. */
+public final class RegistryComponentContainersGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ModelContainer/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/ComponentContainer/get.json
*/
/**
- * Sample code: Get Model Container.
+ * Sample code: Get Registry Component Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getModelContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void getRegistryComponentContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .modelContainers()
- .getWithResponse("testrg123", "workspace123", "testContainer", com.azure.core.util.Context.NONE);
+ .registryComponentContainers()
+ .getWithResponse("test-rg", "my-aml-registry", "string", com.azure.core.util.Context.NONE);
}
}
```
-### ModelContainers_List
+### RegistryComponentContainers_List
```java
-/** Samples for ModelContainers List. */
-public final class ModelContainersListSamples {
+/** Samples for RegistryComponentContainers List. */
+public final class RegistryComponentContainersListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ModelContainer/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/ComponentContainer/list.json
*/
/**
- * Sample code: List Model Container.
+ * Sample code: List Registry Component Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listModelContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.modelContainers().list("testrg123", "workspace123", null, null, null, com.azure.core.util.Context.NONE);
+ public static void listRegistryComponentContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryComponentContainers()
+ .list("test-rg", "my-aml-registry", null, com.azure.core.util.Context.NONE);
}
}
```
-### ModelVersions_CreateOrUpdate
+### RegistryComponentVersions_CreateOrUpdate
```java
-import com.azure.resourcemanager.machinelearning.models.FlavorData;
-import com.azure.resourcemanager.machinelearning.models.ModelVersionProperties;
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.machinelearning.models.ComponentVersionProperties;
+import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
-/** Samples for ModelVersions CreateOrUpdate. */
-public final class ModelVersionsCreateOrUpdateSamples {
+/** Samples for RegistryComponentVersions CreateOrUpdate. */
+public final class RegistryComponentVersionsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ModelVersion/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/ComponentVersion/createOrUpdate.json
*/
/**
- * Sample code: CreateOrUpdate Model Version.
+ * Sample code: CreateOrUpdate Registry Component Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateModelVersion(
- com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void createOrUpdateRegistryComponentVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) throws IOException {
manager
- .modelVersions()
+ .registryComponentVersions()
.define("string")
- .withExistingModel("test-rg", "my-aml-workspace", "string")
+ .withExistingComponent("test-rg", "my-aml-registry", "string")
.withProperties(
- new ModelVersionProperties()
+ new ComponentVersionProperties()
.withDescription("string")
.withProperties(mapOf("string", "string"))
.withTags(mapOf("string", "string"))
.withIsAnonymous(false)
- .withFlavors(mapOf("string", new FlavorData().withData(mapOf("string", "string"))))
- .withModelType("CustomModel")
- .withModelUri("string"))
+ .withComponentSpec(
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize(
+ "{\"8ced901b-d826-477d-bfef-329da9672513\":null}",
+ Object.class,
+ SerializerEncoding.JSON)))
.create();
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -2912,233 +6611,107 @@ public final class ModelVersionsCreateOrUpdateSamples {
}
```
-### ModelVersions_Delete
+### RegistryComponentVersions_Delete
```java
-/** Samples for ModelVersions Delete. */
-public final class ModelVersionsDeleteSamples {
+/** Samples for RegistryComponentVersions Delete. */
+public final class RegistryComponentVersionsDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ModelVersion/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/ComponentVersion/delete.json
*/
/**
- * Sample code: Delete Model Version.
+ * Sample code: Delete Registry Component Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteModelVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void deleteRegistryComponentVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .modelVersions()
- .deleteWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
+ .registryComponentVersions()
+ .delete("test-rg", "my-aml-registry", "string", "string", com.azure.core.util.Context.NONE);
}
}
```
-### ModelVersions_Get
+### RegistryComponentVersions_Get
```java
-/** Samples for ModelVersions Get. */
-public final class ModelVersionsGetSamples {
+/** Samples for RegistryComponentVersions Get. */
+public final class RegistryComponentVersionsGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ModelVersion/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/ComponentVersion/get.json
*/
/**
- * Sample code: Get Model Version.
+ * Sample code: Get Registry Component Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getModelVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void getRegistryComponentVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .modelVersions()
- .getWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
+ .registryComponentVersions()
+ .getWithResponse("test-rg", "my-aml-registry", "string", "string", com.azure.core.util.Context.NONE);
}
}
```
-### ModelVersions_List
+### RegistryComponentVersions_List
```java
-/** Samples for ModelVersions List. */
-public final class ModelVersionsListSamples {
+/** Samples for RegistryComponentVersions List. */
+public final class RegistryComponentVersionsListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ModelVersion/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/ComponentVersion/list.json
*/
/**
- * Sample code: List Model Version.
+ * Sample code: List Registry Component Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listModelVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void listRegistryComponentVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .modelVersions()
- .list(
- "test-rg",
- "my-aml-workspace",
- "string",
- null,
- "string",
- 1,
- "string",
- "string",
- 1,
- "string",
- "string",
- null,
- null,
- com.azure.core.util.Context.NONE);
+ .registryComponentVersions()
+ .list("test-rg", "my-aml-registry", "string", "string", 1, null, null, com.azure.core.util.Context.NONE);
}
}
```
-### OnlineDeployments_CreateOrUpdate
+### RegistryDataContainers_CreateOrUpdate
```java
-import com.azure.resourcemanager.machinelearning.models.CodeConfiguration;
-import com.azure.resourcemanager.machinelearning.models.ContainerResourceRequirements;
-import com.azure.resourcemanager.machinelearning.models.ContainerResourceSettings;
-import com.azure.resourcemanager.machinelearning.models.DefaultScaleSettings;
-import com.azure.resourcemanager.machinelearning.models.KubernetesOnlineDeployment;
-import com.azure.resourcemanager.machinelearning.models.ManagedOnlineDeployment;
-import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentity;
-import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
-import com.azure.resourcemanager.machinelearning.models.OnlineRequestSettings;
-import com.azure.resourcemanager.machinelearning.models.ProbeSettings;
-import com.azure.resourcemanager.machinelearning.models.Sku;
-import com.azure.resourcemanager.machinelearning.models.SkuTier;
-import com.azure.resourcemanager.machinelearning.models.UserAssignedIdentity;
-import java.time.Duration;
+import com.azure.resourcemanager.machinelearning.models.DataContainerProperties;
+import com.azure.resourcemanager.machinelearning.models.DataType;
import java.util.HashMap;
import java.util.Map;
-/** Samples for OnlineDeployments CreateOrUpdate. */
-public final class OnlineDeploymentsCreateOrUpdateSamples {
- /*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineDeployment/KubernetesOnlineDeployment/createOrUpdate.json
- */
- /**
- * Sample code: CreateOrUpdate Kubernetes Online Deployment.
- *
- * @param manager Entry point to MachineLearningManager.
- */
- public static void createOrUpdateKubernetesOnlineDeployment(
- com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager
- .onlineDeployments()
- .define("testDeploymentName")
- .withRegion("string")
- .withExistingOnlineEndpoint("test-rg", "my-aml-workspace", "testEndpointName")
- .withProperties(
- new KubernetesOnlineDeployment()
- .withCodeConfiguration(
- new CodeConfiguration().withCodeId("fakeTokenPlaceholder").withScoringScript("string"))
- .withDescription("string")
- .withEnvironmentId("string")
- .withEnvironmentVariables(mapOf("string", "string"))
- .withProperties(mapOf("string", "string"))
- .withAppInsightsEnabled(false)
- .withInstanceType("string")
- .withLivenessProbe(
- new ProbeSettings()
- .withFailureThreshold(1)
- .withInitialDelay(Duration.parse("PT5M"))
- .withPeriod(Duration.parse("PT5M"))
- .withSuccessThreshold(1)
- .withTimeout(Duration.parse("PT5M")))
- .withModel("string")
- .withModelMountPath("string")
- .withRequestSettings(
- new OnlineRequestSettings()
- .withMaxConcurrentRequestsPerInstance(1)
- .withMaxQueueWait(Duration.parse("PT5M"))
- .withRequestTimeout(Duration.parse("PT5M")))
- .withScaleSettings(new DefaultScaleSettings())
- .withContainerResourceRequirements(
- new ContainerResourceRequirements()
- .withContainerResourceLimits(
- new ContainerResourceSettings().withCpu("\"1\"").withGpu("\"1\"").withMemory("\"2Gi\""))
- .withContainerResourceRequests(
- new ContainerResourceSettings()
- .withCpu("\"1\"")
- .withGpu("\"1\"")
- .withMemory("\"2Gi\""))))
- .withTags(mapOf())
- .withIdentity(
- new ManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
- .withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
- .withKind("string")
- .withSku(
- new Sku()
- .withName("string")
- .withTier(SkuTier.FREE)
- .withSize("string")
- .withFamily("string")
- .withCapacity(1))
- .create();
- }
-
- /*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineDeployment/ManagedOnlineDeployment/createOrUpdate.json
- */
- /**
- * Sample code: CreateOrUpdate Managed Online Deployment.
- *
- * @param manager Entry point to MachineLearningManager.
- */
- public static void createOrUpdateManagedOnlineDeployment(
- com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager
- .onlineDeployments()
- .define("testDeploymentName")
- .withRegion("string")
- .withExistingOnlineEndpoint("test-rg", "my-aml-workspace", "testEndpointName")
- .withProperties(
- new ManagedOnlineDeployment()
- .withCodeConfiguration(
- new CodeConfiguration().withCodeId("fakeTokenPlaceholder").withScoringScript("string"))
- .withDescription("string")
- .withEnvironmentId("string")
- .withEnvironmentVariables(mapOf("string", "string"))
- .withProperties(mapOf("string", "string"))
- .withAppInsightsEnabled(false)
- .withInstanceType("string")
- .withLivenessProbe(
- new ProbeSettings()
- .withFailureThreshold(1)
- .withInitialDelay(Duration.parse("PT5M"))
- .withPeriod(Duration.parse("PT5M"))
- .withSuccessThreshold(1)
- .withTimeout(Duration.parse("PT5M")))
- .withModel("string")
- .withModelMountPath("string")
- .withReadinessProbe(
- new ProbeSettings()
- .withFailureThreshold(30)
- .withInitialDelay(Duration.parse("PT1S"))
- .withPeriod(Duration.parse("PT10S"))
- .withSuccessThreshold(1)
- .withTimeout(Duration.parse("PT2S")))
- .withRequestSettings(
- new OnlineRequestSettings()
- .withMaxConcurrentRequestsPerInstance(1)
- .withMaxQueueWait(Duration.parse("PT5M"))
- .withRequestTimeout(Duration.parse("PT5M")))
- .withScaleSettings(new DefaultScaleSettings()))
- .withTags(mapOf())
- .withIdentity(
- new ManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
- .withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
- .withKind("string")
- .withSku(
- new Sku()
- .withName("string")
- .withTier(SkuTier.FREE)
- .withSize("string")
- .withFamily("string")
- .withCapacity(1))
+/** Samples for RegistryDataContainers CreateOrUpdate. */
+public final class RegistryDataContainersCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/DataContainer/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Registry Data Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateRegistryDataContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryDataContainers()
+ .define("string")
+ .withExistingRegistry("test-rg", "registryName")
+ .withProperties(
+ new DataContainerProperties()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsArchived(false)
+ .withDataType(DataType.URI_FOLDER))
.create();
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -3152,256 +6725,266 @@ public final class OnlineDeploymentsCreateOrUpdateSamples {
}
```
-### OnlineDeployments_Delete
+### RegistryDataContainers_Delete
```java
-/** Samples for OnlineDeployments Delete. */
-public final class OnlineDeploymentsDeleteSamples {
+/** Samples for RegistryDataContainers Delete. */
+public final class RegistryDataContainersDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineDeployment/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/DataContainer/delete.json
*/
/**
- * Sample code: Delete Online Deployment.
+ * Sample code: Delete Registry Data Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteOnlineDeployment(
+ public static void deleteRegistryDataContainer(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager
- .onlineDeployments()
- .delete("testrg123", "workspace123", "testEndpoint", "testDeployment", com.azure.core.util.Context.NONE);
+ manager.registryDataContainers().delete("test-rg", "registryName", "string", com.azure.core.util.Context.NONE);
}
}
```
-### OnlineDeployments_Get
+### RegistryDataContainers_Get
```java
-/** Samples for OnlineDeployments Get. */
-public final class OnlineDeploymentsGetSamples {
+/** Samples for RegistryDataContainers Get. */
+public final class RegistryDataContainersGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineDeployment/KubernetesOnlineDeployment/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/DataContainer/get.json
*/
/**
- * Sample code: Get Kubernetes Online Deployment.
+ * Sample code: Get Registry Data Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getKubernetesOnlineDeployment(
+ public static void getRegistryDataContainer(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .onlineDeployments()
- .getWithResponse(
- "test-rg",
- "my-aml-workspace",
- "testEndpointName",
- "testDeploymentName",
- com.azure.core.util.Context.NONE);
+ .registryDataContainers()
+ .getWithResponse("test-rg", "registryName", "string", com.azure.core.util.Context.NONE);
}
+}
+```
+
+### RegistryDataContainers_List
+```java
+import com.azure.resourcemanager.machinelearning.models.ListViewType;
+
+/** Samples for RegistryDataContainers List. */
+public final class RegistryDataContainersListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineDeployment/ManagedOnlineDeployment/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/DataContainer/registryList.json
*/
/**
- * Sample code: Get Managed Online Deployment.
+ * Sample code: RegistryList Registry Data Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getManagedOnlineDeployment(
+ public static void registryListRegistryDataContainer(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .onlineDeployments()
- .getWithResponse(
- "test-rg",
- "my-aml-workspace",
- "testEndpointName",
- "testDeploymentName",
- com.azure.core.util.Context.NONE);
+ .registryDataContainers()
+ .list("test-rg", "registryName", null, ListViewType.ALL, com.azure.core.util.Context.NONE);
}
}
```
-### OnlineDeployments_GetLogs
+### RegistryDataVersions_CreateOrGetStartPendingUpload
```java
-import com.azure.resourcemanager.machinelearning.models.ContainerType;
-import com.azure.resourcemanager.machinelearning.models.DeploymentLogsRequest;
+import com.azure.resourcemanager.machinelearning.models.PendingUploadRequestDto;
+import com.azure.resourcemanager.machinelearning.models.PendingUploadType;
-/** Samples for OnlineDeployments GetLogs. */
-public final class OnlineDeploymentsGetLogsSamples {
+/** Samples for RegistryDataVersions CreateOrGetStartPendingUpload. */
+public final class RegistryDataVersionsCreateOrGetStartPendingUploadSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineDeployment/getLogs.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/DataVersionBase/createOrGetStartPendingUpload.json
*/
/**
- * Sample code: Get Online Deployment Logs.
+ * Sample code: CreateOrGetStartPendingUpload Registry Data Version Base.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getOnlineDeploymentLogs(
+ public static void createOrGetStartPendingUploadRegistryDataVersionBase(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .onlineDeployments()
- .getLogsWithResponse(
- "testrg123",
- "workspace123",
- "testEndpoint",
- "testDeployment",
- new DeploymentLogsRequest().withContainerType(ContainerType.STORAGE_INITIALIZER).withTail(0),
+ .registryDataVersions()
+ .createOrGetStartPendingUploadWithResponse(
+ "test-rg",
+ "registryName",
+ "string",
+ "string",
+ new PendingUploadRequestDto()
+ .withPendingUploadId("string")
+ .withPendingUploadType(PendingUploadType.NONE),
com.azure.core.util.Context.NONE);
}
}
```
-### OnlineDeployments_List
+### RegistryDataVersions_CreateOrUpdate
```java
-/** Samples for OnlineDeployments List. */
-public final class OnlineDeploymentsListSamples {
+import com.azure.resourcemanager.machinelearning.models.MLTableData;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for RegistryDataVersions CreateOrUpdate. */
+public final class RegistryDataVersionsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineDeployment/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/DataVersionBase/createOrUpdate.json
*/
/**
- * Sample code: List Online Deployments.
+ * Sample code: CreateOrUpdate Registry Data Version Base.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listOnlineDeployments(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void createOrUpdateRegistryDataVersionBase(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .onlineDeployments()
- .list(
- "test-rg", "my-aml-workspace", "testEndpointName", "string", 1, null, com.azure.core.util.Context.NONE);
+ .registryDataVersions()
+ .define("string")
+ .withExistingData("test-rg", "registryName", "string")
+ .withProperties(
+ new MLTableData()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsAnonymous(false)
+ .withIsArchived(false)
+ .withDataUri("string")
+ .withReferencedUris(Arrays.asList("string")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
}
}
```
-### OnlineDeployments_ListSkus
+### RegistryDataVersions_Delete
```java
-/** Samples for OnlineDeployments ListSkus. */
-public final class OnlineDeploymentsListSkusSamples {
+/** Samples for RegistryDataVersions Delete. */
+public final class RegistryDataVersionsDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineDeployment/ManagedOnlineDeployment/listSkus.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/DataVersionBase/delete.json
*/
/**
- * Sample code: List Managed Online Deployment Skus.
+ * Sample code: Delete Registry Data Version Base.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listManagedOnlineDeploymentSkus(
+ public static void deleteRegistryDataVersionBase(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .onlineDeployments()
- .listSkus(
- "test-rg",
- "my-aml-workspace",
- "testEndpointName",
- "testDeploymentName",
- 1,
- null,
- com.azure.core.util.Context.NONE);
+ .registryDataVersions()
+ .delete("test-rg", "registryName", "string", "string", com.azure.core.util.Context.NONE);
}
+}
+```
+### RegistryDataVersions_Get
+
+```java
+/** Samples for RegistryDataVersions Get. */
+public final class RegistryDataVersionsGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineDeployment/KubernetesOnlineDeployment/listSkus.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/DataVersionBase/get.json
*/
/**
- * Sample code: List Kubernetes Online Deployment Skus.
+ * Sample code: Get Registry Data Version Base.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listKubernetesOnlineDeploymentSkus(
+ public static void getRegistryDataVersionBase(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .onlineDeployments()
- .listSkus(
- "test-rg",
- "my-aml-workspace",
- "testEndpointName",
- "testDeploymentName",
- 1,
- null,
- com.azure.core.util.Context.NONE);
+ .registryDataVersions()
+ .getWithResponse("test-rg", "registryName", "string", "string", com.azure.core.util.Context.NONE);
}
}
```
-### OnlineDeployments_Update
+### RegistryDataVersions_List
```java
-import com.azure.resourcemanager.machinelearning.models.OnlineDeployment;
-import com.azure.resourcemanager.machinelearning.models.PartialSku;
-import com.azure.resourcemanager.machinelearning.models.SkuTier;
-import java.util.HashMap;
-import java.util.Map;
+import com.azure.resourcemanager.machinelearning.models.ListViewType;
-/** Samples for OnlineDeployments Update. */
-public final class OnlineDeploymentsUpdateSamples {
+/** Samples for RegistryDataVersions List. */
+public final class RegistryDataVersionsListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineDeployment/ManagedOnlineDeployment/update.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/DataVersionBase/registryList.json
*/
/**
- * Sample code: Update Managed Online Deployment.
+ * Sample code: RegistryList Registry Data Version Base.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void updateManagedOnlineDeployment(
+ public static void registryListRegistryDataVersionBase(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- OnlineDeployment resource =
- manager
- .onlineDeployments()
- .getWithResponse(
- "test-rg",
- "my-aml-workspace",
- "testEndpointName",
- "testDeploymentName",
- com.azure.core.util.Context.NONE)
- .getValue();
- resource
- .update()
- .withTags(mapOf())
- .withSku(
- new PartialSku()
- .withCapacity(1)
- .withFamily("string")
- .withName("string")
- .withSize("string")
- .withTier(SkuTier.FREE))
- .apply();
+ manager
+ .registryDataVersions()
+ .list(
+ "test-rg",
+ "registryName",
+ "string",
+ "string",
+ 1,
+ null,
+ "string",
+ ListViewType.ARCHIVED_ONLY,
+ com.azure.core.util.Context.NONE);
}
+}
+```
+
+### RegistryEnvironmentContainers_CreateOrUpdate
+```java
+import com.azure.resourcemanager.machinelearning.models.EnvironmentContainerProperties;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for RegistryEnvironmentContainers CreateOrUpdate. */
+public final class RegistryEnvironmentContainersCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineDeployment/KubernetesOnlineDeployment/update.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/EnvironmentContainer/createOrUpdate.json
*/
/**
- * Sample code: Update Kubernetes Online Deployment.
+ * Sample code: CreateOrUpdate Registry Environment Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void updateKubernetesOnlineDeployment(
+ public static void createOrUpdateRegistryEnvironmentContainer(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- OnlineDeployment resource =
- manager
- .onlineDeployments()
- .getWithResponse(
- "test-rg",
- "my-aml-workspace",
- "testEndpointName",
- "testDeploymentName",
- com.azure.core.util.Context.NONE)
- .getValue();
- resource
- .update()
- .withTags(mapOf())
- .withSku(
- new PartialSku()
- .withCapacity(1)
- .withFamily("string")
- .withName("string")
- .withSize("string")
- .withTier(SkuTier.FREE))
- .apply();
+ manager
+ .registryEnvironmentContainers()
+ .define("testEnvironment")
+ .withExistingRegistry("testrg123", "testregistry")
+ .withProperties(
+ new EnvironmentContainerProperties()
+ .withDescription("string")
+ .withProperties(
+ mapOf("additionalProp1", "string", "additionalProp2", "string", "additionalProp3", "string"))
+ .withTags(
+ mapOf("additionalProp1", "string", "additionalProp2", "string", "additionalProp3", "string")))
+ .create();
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -3415,266 +6998,239 @@ public final class OnlineDeploymentsUpdateSamples {
}
```
-### OnlineEndpoints_CreateOrUpdate
+### RegistryEnvironmentContainers_Delete
```java
-import com.azure.resourcemanager.machinelearning.models.EndpointAuthMode;
-import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentity;
-import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
-import com.azure.resourcemanager.machinelearning.models.OnlineEndpointProperties;
-import com.azure.resourcemanager.machinelearning.models.Sku;
-import com.azure.resourcemanager.machinelearning.models.SkuTier;
-import com.azure.resourcemanager.machinelearning.models.UserAssignedIdentity;
-import java.util.HashMap;
-import java.util.Map;
-
-/** Samples for OnlineEndpoints CreateOrUpdate. */
-public final class OnlineEndpointsCreateOrUpdateSamples {
+/** Samples for RegistryEnvironmentContainers Delete. */
+public final class RegistryEnvironmentContainersDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineEndpoint/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/EnvironmentContainer/delete.json
*/
/**
- * Sample code: CreateOrUpdate Online Endpoint.
+ * Sample code: Delete Registry Environment Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateOnlineEndpoint(
+ public static void deleteRegistryEnvironmentContainer(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .onlineEndpoints()
- .define("testEndpointName")
- .withRegion("string")
- .withExistingWorkspace("test-rg", "my-aml-workspace")
- .withProperties(
- new OnlineEndpointProperties()
- .withAuthMode(EndpointAuthMode.AMLTOKEN)
- .withDescription("string")
- .withProperties(mapOf("string", "string"))
- .withCompute("string")
- .withTraffic(mapOf("string", 1)))
- .withTags(mapOf())
- .withIdentity(
- new ManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
- .withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
- .withKind("string")
- .withSku(
- new Sku()
- .withName("string")
- .withTier(SkuTier.FREE)
- .withSize("string")
- .withFamily("string")
- .withCapacity(1))
- .create();
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
+ .registryEnvironmentContainers()
+ .delete("testrg123", "testregistry", "testContainer", com.azure.core.util.Context.NONE);
}
}
```
-### OnlineEndpoints_Delete
+### RegistryEnvironmentContainers_Get
```java
-/** Samples for OnlineEndpoints Delete. */
-public final class OnlineEndpointsDeleteSamples {
+/** Samples for RegistryEnvironmentContainers Get. */
+public final class RegistryEnvironmentContainersGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineEndpoint/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/EnvironmentContainer/get.json
*/
/**
- * Sample code: Delete Online Endpoint.
+ * Sample code: Get Registry Environment Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteOnlineEndpoint(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void getRegistryEnvironmentContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .onlineEndpoints()
- .delete("test-rg", "my-aml-workspace", "testEndpointName", com.azure.core.util.Context.NONE);
+ .registryEnvironmentContainers()
+ .getWithResponse("testrg123", "testregistry", "testEnvironment", com.azure.core.util.Context.NONE);
}
}
```
-### OnlineEndpoints_Get
+### RegistryEnvironmentContainers_List
```java
-/** Samples for OnlineEndpoints Get. */
-public final class OnlineEndpointsGetSamples {
+/** Samples for RegistryEnvironmentContainers List. */
+public final class RegistryEnvironmentContainersListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineEndpoint/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/EnvironmentContainer/list.json
*/
/**
- * Sample code: Get Online Endpoint.
+ * Sample code: List Registry Environment Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getOnlineEndpoint(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void listRegistryEnvironmentContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .onlineEndpoints()
- .getWithResponse("test-rg", "my-aml-workspace", "testEndpointName", com.azure.core.util.Context.NONE);
+ .registryEnvironmentContainers()
+ .list("testrg123", "testregistry", null, null, com.azure.core.util.Context.NONE);
}
}
```
-### OnlineEndpoints_GetToken
+### RegistryEnvironmentVersions_CreateOrUpdate
```java
-/** Samples for OnlineEndpoints GetToken. */
-public final class OnlineEndpointsGetTokenSamples {
+import com.azure.resourcemanager.machinelearning.models.BuildContext;
+import com.azure.resourcemanager.machinelearning.models.EnvironmentVersionProperties;
+import com.azure.resourcemanager.machinelearning.models.InferenceContainerProperties;
+import com.azure.resourcemanager.machinelearning.models.Route;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for RegistryEnvironmentVersions CreateOrUpdate. */
+public final class RegistryEnvironmentVersionsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineEndpoint/getToken.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/EnvironmentVersion/createOrUpdate.json
*/
/**
- * Sample code: GetToken Online Endpoint.
+ * Sample code: CreateOrUpdate Registry Environment Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getTokenOnlineEndpoint(
+ public static void createOrUpdateRegistryEnvironmentVersion(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .onlineEndpoints()
- .getTokenWithResponse("test-rg", "my-aml-workspace", "testEndpointName", com.azure.core.util.Context.NONE);
+ .registryEnvironmentVersions()
+ .define("string")
+ .withExistingEnvironment("test-rg", "my-aml-registry", "string")
+ .withProperties(
+ new EnvironmentVersionProperties()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsAnonymous(false)
+ .withBuild(
+ new BuildContext()
+ .withContextUri(
+ "https://storage-account.blob.core.windows.net/azureml/DockerBuildContext/95ddede6b9b8c4e90472db3acd0a8d28/")
+ .withDockerfilePath("prod/Dockerfile"))
+ .withCondaFile("string")
+ .withImage("docker.io/tensorflow/serving:latest")
+ .withInferenceConfig(
+ new InferenceContainerProperties()
+ .withLivenessRoute(new Route().withPath("string").withPort(1))
+ .withReadinessRoute(new Route().withPath("string").withPort(1))
+ .withScoringRoute(new Route().withPath("string").withPort(1))))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
}
}
```
-### OnlineEndpoints_List
+### RegistryEnvironmentVersions_Delete
```java
-import com.azure.resourcemanager.machinelearning.models.EndpointComputeType;
-import com.azure.resourcemanager.machinelearning.models.OrderString;
-
-/** Samples for OnlineEndpoints List. */
-public final class OnlineEndpointsListSamples {
+/** Samples for RegistryEnvironmentVersions Delete. */
+public final class RegistryEnvironmentVersionsDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineEndpoint/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/EnvironmentVersion/delete.json
*/
/**
- * Sample code: List Online Endpoint.
+ * Sample code: Delete Registry Environment Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listOnlineEndpoint(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void deleteRegistryEnvironmentVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .onlineEndpoints()
- .list(
- "test-rg",
- "my-aml-workspace",
- "string",
- 1,
- EndpointComputeType.MANAGED,
- null,
- "string",
- "string",
- OrderString.CREATED_AT_DESC,
- com.azure.core.util.Context.NONE);
+ .registryEnvironmentVersions()
+ .delete("test-rg", "my-aml-registry", "string", "string", com.azure.core.util.Context.NONE);
}
}
```
-### OnlineEndpoints_ListKeys
+### RegistryEnvironmentVersions_Get
```java
-/** Samples for OnlineEndpoints ListKeys. */
-public final class OnlineEndpointsListKeysSamples {
+/** Samples for RegistryEnvironmentVersions Get. */
+public final class RegistryEnvironmentVersionsGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineEndpoint/listKeys.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/EnvironmentVersion/get.json
*/
/**
- * Sample code: ListKeys Online Endpoint.
+ * Sample code: Get Registry Environment Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listKeysOnlineEndpoint(
+ public static void getRegistryEnvironmentVersion(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .onlineEndpoints()
- .listKeysWithResponse("test-rg", "my-aml-workspace", "testEndpointName", com.azure.core.util.Context.NONE);
+ .registryEnvironmentVersions()
+ .getWithResponse("test-rg", "my-aml-registry", "string", "string", com.azure.core.util.Context.NONE);
}
}
```
-### OnlineEndpoints_RegenerateKeys
+### RegistryEnvironmentVersions_List
```java
-import com.azure.resourcemanager.machinelearning.models.KeyType;
-import com.azure.resourcemanager.machinelearning.models.RegenerateEndpointKeysRequest;
-
-/** Samples for OnlineEndpoints RegenerateKeys. */
-public final class OnlineEndpointsRegenerateKeysSamples {
+/** Samples for RegistryEnvironmentVersions List. */
+public final class RegistryEnvironmentVersionsListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineEndpoint/regenerateKeys.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/EnvironmentVersion/list.json
*/
/**
- * Sample code: RegenerateKeys Online Endpoint.
+ * Sample code: List Registry Environment Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void regenerateKeysOnlineEndpoint(
+ public static void listRegistryEnvironmentVersion(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .onlineEndpoints()
- .regenerateKeys(
+ .registryEnvironmentVersions()
+ .list(
"test-rg",
- "my-aml-workspace",
- "testEndpointName",
- new RegenerateEndpointKeysRequest().withKeyType(KeyType.PRIMARY).withKeyValue("fakeTokenPlaceholder"),
+ "my-aml-regsitry",
+ "string",
+ "string",
+ 1,
+ null,
+ null,
+ null,
com.azure.core.util.Context.NONE);
}
}
```
-### OnlineEndpoints_Update
+### RegistryModelContainers_CreateOrUpdate
```java
-import com.azure.core.management.serializer.SerializerFactory;
-import com.azure.core.util.serializer.SerializerEncoding;
-import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
-import com.azure.resourcemanager.machinelearning.models.OnlineEndpoint;
-import com.azure.resourcemanager.machinelearning.models.PartialManagedServiceIdentity;
-import java.io.IOException;
+import com.azure.resourcemanager.machinelearning.models.ModelContainerProperties;
import java.util.HashMap;
import java.util.Map;
-/** Samples for OnlineEndpoints Update. */
-public final class OnlineEndpointsUpdateSamples {
+/** Samples for RegistryModelContainers CreateOrUpdate. */
+public final class RegistryModelContainersCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineEndpoint/update.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/ModelContainer/createOrUpdate.json
*/
/**
- * Sample code: Update Online Endpoint.
+ * Sample code: CreateOrUpdate Registry Model Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void updateOnlineEndpoint(com.azure.resourcemanager.machinelearning.MachineLearningManager manager)
- throws IOException {
- OnlineEndpoint resource =
- manager
- .onlineEndpoints()
- .getWithResponse("test-rg", "my-aml-workspace", "testEndpointName", com.azure.core.util.Context.NONE)
- .getValue();
- resource
- .update()
- .withTags(mapOf())
- .withIdentity(
- new PartialManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
- .withUserAssignedIdentities(
- mapOf(
- "string",
- SerializerFactory
- .createDefaultManagementSerializerAdapter()
- .deserialize("{}", Object.class, SerializerEncoding.JSON))))
- .apply();
+ public static void createOrUpdateRegistryModelContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryModelContainers()
+ .define("testContainer")
+ .withExistingRegistry("testrg123", "registry123")
+ .withProperties(
+ new ModelContainerProperties()
+ .withDescription("Model container description")
+ .withTags(mapOf("tag1", "value1", "tag2", "value2")))
+ .create();
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -3688,203 +7244,303 @@ public final class OnlineEndpointsUpdateSamples {
}
```
-### Operations_List
+### RegistryModelContainers_Delete
```java
-/** Samples for Operations List. */
-public final class OperationsListSamples {
+/** Samples for RegistryModelContainers Delete. */
+public final class RegistryModelContainersDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Workspace/operationsList.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/ModelContainer/delete.json
*/
/**
- * Sample code: OperationsList.
+ * Sample code: Delete Registry Model Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void operationsList(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.operations().list(com.azure.core.util.Context.NONE);
+ public static void deleteRegistryModelContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryModelContainers()
+ .delete("testrg123", "registry123", "testContainer", com.azure.core.util.Context.NONE);
}
}
```
-### PrivateEndpointConnections_CreateOrUpdate
+### RegistryModelContainers_Get
```java
-import com.azure.resourcemanager.machinelearning.models.PrivateEndpointServiceConnectionStatus;
-import com.azure.resourcemanager.machinelearning.models.PrivateLinkServiceConnectionState;
+/** Samples for RegistryModelContainers Get. */
+public final class RegistryModelContainersGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/ModelContainer/get.json
+ */
+ /**
+ * Sample code: Get Registry Model Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getRegistryModelContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryModelContainers()
+ .getWithResponse("testrg123", "registry123", "testContainer", com.azure.core.util.Context.NONE);
+ }
+}
+```
-/** Samples for PrivateEndpointConnections CreateOrUpdate. */
-public final class PrivateEndpointConnectionsCreateOrUpdateSamples {
+### RegistryModelContainers_List
+
+```java
+/** Samples for RegistryModelContainers List. */
+public final class RegistryModelContainersListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/PrivateEndpointConnection/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/ModelContainer/list.json
*/
/**
- * Sample code: WorkspacePutPrivateEndpointConnection.
+ * Sample code: List Registry Model Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void workspacePutPrivateEndpointConnection(
+ public static void listRegistryModelContainer(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .privateEndpointConnections()
- .define("{privateEndpointConnectionName}")
- .withExistingWorkspace("rg-1234", "testworkspace")
- .withPrivateLinkServiceConnectionState(
- new PrivateLinkServiceConnectionState()
- .withStatus(PrivateEndpointServiceConnectionStatus.APPROVED)
- .withDescription("Auto-Approved"))
- .create();
+ .registryModelContainers()
+ .list("testrg123", "registry123", null, null, com.azure.core.util.Context.NONE);
}
}
```
-### PrivateEndpointConnections_Delete
+### RegistryModelVersions_CreateOrGetStartPendingUpload
```java
-/** Samples for PrivateEndpointConnections Delete. */
-public final class PrivateEndpointConnectionsDeleteSamples {
+import com.azure.resourcemanager.machinelearning.models.PendingUploadRequestDto;
+import com.azure.resourcemanager.machinelearning.models.PendingUploadType;
+
+/** Samples for RegistryModelVersions CreateOrGetStartPendingUpload. */
+public final class RegistryModelVersionsCreateOrGetStartPendingUploadSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/PrivateEndpointConnection/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/ModelVersion/createOrGetStartPendingUpload.json
*/
/**
- * Sample code: WorkspaceDeletePrivateEndpointConnection.
+ * Sample code: CreateOrGetStartPendingUpload Registry Model Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void workspaceDeletePrivateEndpointConnection(
+ public static void createOrGetStartPendingUploadRegistryModelVersion(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .privateEndpointConnections()
- .deleteWithResponse(
- "rg-1234", "testworkspace", "{privateEndpointConnectionName}", com.azure.core.util.Context.NONE);
+ .registryModelVersions()
+ .createOrGetStartPendingUploadWithResponse(
+ "test-rg",
+ "registryName",
+ "string",
+ "string",
+ new PendingUploadRequestDto()
+ .withPendingUploadId("string")
+ .withPendingUploadType(PendingUploadType.NONE),
+ com.azure.core.util.Context.NONE);
}
}
```
-### PrivateEndpointConnections_Get
+### RegistryModelVersions_CreateOrUpdate
```java
-/** Samples for PrivateEndpointConnections Get. */
-public final class PrivateEndpointConnectionsGetSamples {
+import com.azure.resourcemanager.machinelearning.models.FlavorData;
+import com.azure.resourcemanager.machinelearning.models.ModelVersionProperties;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for RegistryModelVersions CreateOrUpdate. */
+public final class RegistryModelVersionsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/PrivateEndpointConnection/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/ModelVersion/createOrUpdate.json
*/
/**
- * Sample code: WorkspaceGetPrivateEndpointConnection.
+ * Sample code: CreateOrUpdate Registry Model Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void workspaceGetPrivateEndpointConnection(
+ public static void createOrUpdateRegistryModelVersion(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .privateEndpointConnections()
- .getWithResponse(
- "rg-1234", "testworkspace", "{privateEndpointConnectionName}", com.azure.core.util.Context.NONE);
+ .registryModelVersions()
+ .define("string")
+ .withExistingModel("test-rg", "my-aml-registry", "string")
+ .withProperties(
+ new ModelVersionProperties()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsAnonymous(false)
+ .withFlavors(mapOf("string", new FlavorData().withData(mapOf("string", "string"))))
+ .withModelType("CustomModel")
+ .withModelUri("string"))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
}
}
```
-### PrivateEndpointConnections_List
+### RegistryModelVersions_Delete
```java
-/** Samples for PrivateEndpointConnections List. */
-public final class PrivateEndpointConnectionsListSamples {
+/** Samples for RegistryModelVersions Delete. */
+public final class RegistryModelVersionsDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/PrivateEndpointConnection/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/ModelVersion/delete.json
*/
/**
- * Sample code: StorageAccountListPrivateEndpointConnections.
+ * Sample code: Delete Registry Model Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void storageAccountListPrivateEndpointConnections(
+ public static void deleteRegistryModelVersion(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.privateEndpointConnections().list("rg-1234", "testworkspace", com.azure.core.util.Context.NONE);
+ manager
+ .registryModelVersions()
+ .delete("test-rg", "my-aml-registry", "string", "string", com.azure.core.util.Context.NONE);
}
}
```
-### PrivateLinkResources_List
+### RegistryModelVersions_Get
```java
-/** Samples for PrivateLinkResources List. */
-public final class PrivateLinkResourcesListSamples {
+/** Samples for RegistryModelVersions Get. */
+public final class RegistryModelVersionsGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/PrivateLinkResource/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/ModelVersion/get.json
*/
/**
- * Sample code: WorkspaceListPrivateLinkResources.
+ * Sample code: Get Registry Model Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void workspaceListPrivateLinkResources(
+ public static void getRegistryModelVersion(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.privateLinkResources().listWithResponse("rg-1234", "testworkspace", com.azure.core.util.Context.NONE);
+ manager
+ .registryModelVersions()
+ .getWithResponse("test-rg", "my-aml-registry", "string", "string", com.azure.core.util.Context.NONE);
}
}
```
-### Quotas_List
+### RegistryModelVersions_List
```java
-/** Samples for Quotas List. */
-public final class QuotasListSamples {
+/** Samples for RegistryModelVersions List. */
+public final class RegistryModelVersionsListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Quota/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/ModelVersion/list.json
*/
/**
- * Sample code: List workspace quotas by VMFamily.
+ * Sample code: List Registry Model Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listWorkspaceQuotasByVMFamily(
+ public static void listRegistryModelVersion(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.quotas().list("eastus", com.azure.core.util.Context.NONE);
+ manager
+ .registryModelVersions()
+ .list(
+ "test-rg",
+ "my-aml-registry",
+ "string",
+ null,
+ "string",
+ 1,
+ "string",
+ "string",
+ "string",
+ "string",
+ null,
+ com.azure.core.util.Context.NONE);
}
}
```
-### Quotas_Update
+### RegistryModelVersions_PackageMethod
```java
-import com.azure.resourcemanager.machinelearning.models.QuotaBaseProperties;
-import com.azure.resourcemanager.machinelearning.models.QuotaUnit;
-import com.azure.resourcemanager.machinelearning.models.QuotaUpdateParameters;
+import com.azure.resourcemanager.machinelearning.models.AzureMLBatchInferencingServer;
+import com.azure.resourcemanager.machinelearning.models.BaseEnvironmentId;
+import com.azure.resourcemanager.machinelearning.models.CodeConfiguration;
+import com.azure.resourcemanager.machinelearning.models.ModelConfiguration;
+import com.azure.resourcemanager.machinelearning.models.ModelPackageInput;
+import com.azure.resourcemanager.machinelearning.models.PackageInputDeliveryMode;
+import com.azure.resourcemanager.machinelearning.models.PackageInputPathUrl;
+import com.azure.resourcemanager.machinelearning.models.PackageInputType;
+import com.azure.resourcemanager.machinelearning.models.PackageRequest;
import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
-/** Samples for Quotas Update. */
-public final class QuotasUpdateSamples {
+/** Samples for RegistryModelVersions PackageMethod. */
+public final class RegistryModelVersionsPackageMethodSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Quota/update.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/ModelVersion/package.json
*/
/**
- * Sample code: update quotas.
+ * Sample code: Package Registry Model Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void updateQuotas(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void packageRegistryModelVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .quotas()
- .updateWithResponse(
- "eastus",
- new QuotaUpdateParameters()
- .withValue(
+ .registryModelVersions()
+ .packageMethod(
+ "test-rg",
+ "my-aml-registry",
+ "string",
+ "string",
+ new PackageRequest()
+ .withBaseEnvironmentSource(new BaseEnvironmentId().withResourceId("string"))
+ .withEnvironmentVariables(mapOf("string", "string"))
+ .withInferencingServer(
+ new AzureMLBatchInferencingServer()
+ .withCodeConfiguration(
+ new CodeConfiguration().withCodeId("fakeTokenPlaceholder").withScoringScript("string")))
+ .withInputs(
Arrays
.asList(
- new QuotaBaseProperties()
- .withId(
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace1/quotas/Standard_DSv2_Family_Cluster_Dedicated_vCPUs")
- .withType("Microsoft.MachineLearningServices/workspaces/quotas")
- .withLimit(100L)
- .withUnit(QuotaUnit.COUNT),
- new QuotaBaseProperties()
- .withId(
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace2/quotas/Standard_DSv2_Family_Cluster_Dedicated_vCPUs")
- .withType("Microsoft.MachineLearningServices/workspaces/quotas")
- .withLimit(200L)
- .withUnit(QuotaUnit.COUNT))),
+ new ModelPackageInput()
+ .withInputType(PackageInputType.URI_FILE)
+ .withMode(PackageInputDeliveryMode.DOWNLOAD)
+ .withMountPath("string")
+ .withPath(new PackageInputPathUrl().withUrl("string"))))
+ .withModelConfiguration(
+ new ModelConfiguration()
+ .withMode(PackageInputDeliveryMode.fromString("ReadOnlyMount"))
+ .withMountPath("string"))
+ .withTags(mapOf("string", "string"))
+ .withTargetEnvironmentId("string"),
com.azure.core.util.Context.NONE);
}
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
}
```
@@ -3903,7 +7559,7 @@ import java.util.Map;
/** Samples for Schedules CreateOrUpdate. */
public final class SchedulesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Schedule/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Schedule/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Schedule.
@@ -3941,6 +7597,7 @@ public final class SchedulesCreateOrUpdateSamples {
.create();
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -3960,7 +7617,7 @@ public final class SchedulesCreateOrUpdateSamples {
/** Samples for Schedules Delete. */
public final class SchedulesDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Schedule/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Schedule/delete.json
*/
/**
* Sample code: Delete Schedule.
@@ -3979,7 +7636,7 @@ public final class SchedulesDeleteSamples {
/** Samples for Schedules Get. */
public final class SchedulesGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Schedule/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Schedule/get.json
*/
/**
* Sample code: Get Schedule.
@@ -3998,7 +7655,7 @@ public final class SchedulesGetSamples {
/** Samples for Schedules List. */
public final class SchedulesListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Schedule/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Schedule/list.json
*/
/**
* Sample code: List Schedules.
@@ -4011,13 +7668,230 @@ public final class SchedulesListSamples {
}
```
+### ServerlessEndpoints_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.machinelearning.models.ModelProfile;
+import com.azure.resourcemanager.machinelearning.models.ServerlessEndpointProperties;
+import com.azure.resourcemanager.machinelearning.models.Sku;
+import com.azure.resourcemanager.machinelearning.models.SkuTier;
+import com.azure.resourcemanager.machinelearning.models.UserAssignedIdentity;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for ServerlessEndpoints CreateOrUpdate. */
+public final class ServerlessEndpointsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ServerlessEndpoint/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Workspace Serverless Endpoint.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateWorkspaceServerlessEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .serverlessEndpoints()
+ .define("string")
+ .withRegion("string")
+ .withExistingWorkspace("test-rg", "my-aml-workspace")
+ .withProperties(
+ new ServerlessEndpointProperties().withModelProfile(new ModelProfile().withModelUri("string")))
+ .withTags(mapOf())
+ .withIdentity(
+ new ManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
+ .withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withKind("string")
+ .withSku(
+ new Sku()
+ .withName("string")
+ .withTier(SkuTier.STANDARD)
+ .withSize("string")
+ .withFamily("string")
+ .withCapacity(1))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### ServerlessEndpoints_Delete
+
+```java
+/** Samples for ServerlessEndpoints Delete. */
+public final class ServerlessEndpointsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ServerlessEndpoint/delete.json
+ */
+ /**
+ * Sample code: Delete Workspace Serverless Endpoint.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteWorkspaceServerlessEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.serverlessEndpoints().delete("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ServerlessEndpoints_Get
+
+```java
+/** Samples for ServerlessEndpoints Get. */
+public final class ServerlessEndpointsGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ServerlessEndpoint/get.json
+ */
+ /**
+ * Sample code: Get Workspace Serverless Endpoint.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getWorkspaceServerlessEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .serverlessEndpoints()
+ .getWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ServerlessEndpoints_List
+
+```java
+/** Samples for ServerlessEndpoints List. */
+public final class ServerlessEndpointsListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ServerlessEndpoint/list.json
+ */
+ /**
+ * Sample code: List Workspace Serverless Endpoint.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listWorkspaceServerlessEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.serverlessEndpoints().list("test-rg", "my-aml-workspace", null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ServerlessEndpoints_ListKeys
+
+```java
+/** Samples for ServerlessEndpoints ListKeys. */
+public final class ServerlessEndpointsListKeysSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ServerlessEndpoint/listKeys.json
+ */
+ /**
+ * Sample code: ListKeys Workspace Serverless Endpoint.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listKeysWorkspaceServerlessEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .serverlessEndpoints()
+ .listKeysWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ServerlessEndpoints_RegenerateKeys
+
+```java
+import com.azure.resourcemanager.machinelearning.models.KeyType;
+import com.azure.resourcemanager.machinelearning.models.RegenerateEndpointKeysRequest;
+
+/** Samples for ServerlessEndpoints RegenerateKeys. */
+public final class ServerlessEndpointsRegenerateKeysSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ServerlessEndpoint/regenerateKeys.json
+ */
+ /**
+ * Sample code: RegenerateKeys Workspace Serverless Endpoint.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void regenerateKeysWorkspaceServerlessEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .serverlessEndpoints()
+ .regenerateKeys(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ new RegenerateEndpointKeysRequest().withKeyType(KeyType.PRIMARY).withKeyValue("fakeTokenPlaceholder"),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ServerlessEndpoints_Update
+
+```java
+import com.azure.resourcemanager.machinelearning.models.ServerlessEndpoint;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for ServerlessEndpoints Update. */
+public final class ServerlessEndpointsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ServerlessEndpoint/update.json
+ */
+ /**
+ * Sample code: Update Workspace Serverless Endpoint.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void updateWorkspaceServerlessEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ ServerlessEndpoint resource =
+ manager
+ .serverlessEndpoints()
+ .getWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf()).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
### Usages_List
```java
/** Samples for Usages List. */
public final class UsagesListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Usage/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Usage/list.json
*/
/**
* Sample code: List Usages.
@@ -4036,7 +7910,7 @@ public final class UsagesListSamples {
/** Samples for VirtualMachineSizes List. */
public final class VirtualMachineSizesListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/VirtualMachineSize/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/VirtualMachineSize/list.json
*/
/**
* Sample code: List VM Sizes.
@@ -4054,11 +7928,12 @@ public final class VirtualMachineSizesListSamples {
```java
import com.azure.resourcemanager.machinelearning.models.ConnectionCategory;
import com.azure.resourcemanager.machinelearning.models.NoneAuthTypeWorkspaceConnectionProperties;
+import java.time.OffsetDateTime;
/** Samples for WorkspaceConnections Create. */
public final class WorkspaceConnectionsCreateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/WorkspaceConnection/create.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/WorkspaceConnection/create.json
*/
/**
* Sample code: CreateWorkspaceConnection.
@@ -4074,6 +7949,7 @@ public final class WorkspaceConnectionsCreateSamples {
.withProperties(
new NoneAuthTypeWorkspaceConnectionProperties()
.withCategory(ConnectionCategory.CONTAINER_REGISTRY)
+ .withExpiryTime(OffsetDateTime.parse("2024-03-15T14:30:00Z"))
.withTarget("www.facebook.com"))
.create();
}
@@ -4086,7 +7962,7 @@ public final class WorkspaceConnectionsCreateSamples {
/** Samples for WorkspaceConnections Delete. */
public final class WorkspaceConnectionsDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/WorkspaceConnection/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/WorkspaceConnection/delete.json
*/
/**
* Sample code: DeleteWorkspaceConnection.
@@ -4108,7 +7984,7 @@ public final class WorkspaceConnectionsDeleteSamples {
/** Samples for WorkspaceConnections Get. */
public final class WorkspaceConnectionsGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/WorkspaceConnection/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/WorkspaceConnection/get.json
*/
/**
* Sample code: GetWorkspaceConnection.
@@ -4130,7 +8006,7 @@ public final class WorkspaceConnectionsGetSamples {
/** Samples for WorkspaceConnections List. */
public final class WorkspaceConnectionsListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/WorkspaceConnection/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/WorkspaceConnection/list.json
*/
/**
* Sample code: ListWorkspaceConnections.
@@ -4151,13 +8027,84 @@ public final class WorkspaceConnectionsListSamples {
}
```
+### WorkspaceConnections_ListSecrets
+
+```java
+/** Samples for WorkspaceConnections ListSecrets. */
+public final class WorkspaceConnectionsListSecretsSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/WorkspaceConnection/listSecrets.json
+ */
+ /**
+ * Sample code: GetWorkspaceConnection.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getWorkspaceConnection(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .workspaceConnections()
+ .listSecretsWithResponse("test-rg", "aml-workspace-name", "some_string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WorkspaceConnections_Update
+
+```java
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.machinelearning.models.AccessKeyAuthTypeWorkspaceConnectionProperties;
+import com.azure.resourcemanager.machinelearning.models.ConnectionCategory;
+import com.azure.resourcemanager.machinelearning.models.WorkspaceConnectionAccessKey;
+import com.azure.resourcemanager.machinelearning.models.WorkspaceConnectionPropertiesV2BasicResource;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+
+/** Samples for WorkspaceConnections Update. */
+public final class WorkspaceConnectionsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/WorkspaceConnection/update.json
+ */
+ /**
+ * Sample code: UpdateWorkspaceConnection.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void updateWorkspaceConnection(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) throws IOException {
+ WorkspaceConnectionPropertiesV2BasicResource resource =
+ manager
+ .workspaceConnections()
+ .getWithResponse("test-rg", "aml-workspace-name", "some_string", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withProperties(
+ new AccessKeyAuthTypeWorkspaceConnectionProperties()
+ .withCategory(ConnectionCategory.ADLSGEN2)
+ .withExpiryTime(OffsetDateTime.parse("2020-01-01T00:00:00Z"))
+ .withMetadata(
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize("{}", Object.class, SerializerEncoding.JSON))
+ .withTarget("some_string")
+ .withCredentials(
+ new WorkspaceConnectionAccessKey()
+ .withAccessKeyId("fakeTokenPlaceholder")
+ .withSecretAccessKey("fakeTokenPlaceholder")))
+ .apply();
+ }
+}
+```
+
### WorkspaceFeatures_List
```java
/** Samples for WorkspaceFeatures List. */
public final class WorkspaceFeaturesListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/WorkspaceFeature/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/WorkspaceFeature/list.json
*/
/**
* Sample code: List Workspace features.
@@ -4173,13 +8120,13 @@ public final class WorkspaceFeaturesListSamples {
### Workspaces_CreateOrUpdate
```java
-import com.azure.resourcemanager.machinelearning.models.EncryptionKeyVaultProperties;
import com.azure.resourcemanager.machinelearning.models.EncryptionProperty;
import com.azure.resourcemanager.machinelearning.models.EncryptionStatus;
+import com.azure.resourcemanager.machinelearning.models.EndpointServiceConnectionStatus;
import com.azure.resourcemanager.machinelearning.models.IdentityForCmk;
+import com.azure.resourcemanager.machinelearning.models.KeyVaultProperties;
import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentity;
import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
-import com.azure.resourcemanager.machinelearning.models.PrivateEndpointServiceConnectionStatus;
import com.azure.resourcemanager.machinelearning.models.SharedPrivateLinkResource;
import com.azure.resourcemanager.machinelearning.models.UserAssignedIdentity;
import java.util.Arrays;
@@ -4189,7 +8136,7 @@ import java.util.Map;
/** Samples for Workspaces CreateOrUpdate. */
public final class WorkspacesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Workspace/create.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/create.json
*/
/**
* Sample code: Create Workspace.
@@ -4209,42 +8156,43 @@ public final class WorkspacesCreateOrUpdateSamples {
mapOf(
"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testuai",
new UserAssignedIdentity())))
- .withDescription("test description")
- .withFriendlyName("HelloName")
- .withKeyVault(
- "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.KeyVault/vaults/testkv")
.withApplicationInsights(
"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/microsoft.insights/components/testinsights")
.withContainerRegistry(
"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.ContainerRegistry/registries/testRegistry")
- .withStorageAccount(
- "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/accountcrud-1234/providers/Microsoft.Storage/storageAccounts/testStorageAccount")
+ .withDescription("test description")
.withEncryption(
new EncryptionProperty()
- .withStatus(EncryptionStatus.ENABLED)
.withIdentity(
new IdentityForCmk()
.withUserAssignedIdentity(
"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testuai"))
.withKeyVaultProperties(
- new EncryptionKeyVaultProperties()
- .withKeyVaultArmId("fakeTokenPlaceholder")
+ new KeyVaultProperties()
+ .withIdentityClientId("")
.withKeyIdentifier("fakeTokenPlaceholder")
- .withIdentityClientId("")))
+ .withKeyVaultArmId("fakeTokenPlaceholder"))
+ .withStatus(EncryptionStatus.ENABLED))
+ .withFriendlyName("HelloName")
.withHbiWorkspace(false)
+ .withKeyVault(
+ "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.KeyVault/vaults/testkv")
.withSharedPrivateLinkResources(
Arrays
.asList(
new SharedPrivateLinkResource()
.withName("testdbresource")
+ .withGroupId("Sql")
.withPrivateLinkResourceId(
"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.DocumentDB/databaseAccounts/testdbresource/privateLinkResources/Sql")
- .withGroupId("Sql")
.withRequestMessage("Please approve")
- .withStatus(PrivateEndpointServiceConnectionStatus.APPROVED)))
+ .withStatus(EndpointServiceConnectionStatus.APPROVED)))
+ .withStorageAccount(
+ "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/accountcrud-1234/providers/Microsoft.Storage/storageAccounts/testStorageAccount")
.create();
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -4264,7 +8212,7 @@ public final class WorkspacesCreateOrUpdateSamples {
/** Samples for Workspaces Delete. */
public final class WorkspacesDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Workspace/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/delete.json
*/
/**
* Sample code: Delete Workspace.
@@ -4272,7 +8220,7 @@ public final class WorkspacesDeleteSamples {
* @param manager Entry point to MachineLearningManager.
*/
public static void deleteWorkspace(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.workspaces().delete("workspace-1234", "testworkspace", com.azure.core.util.Context.NONE);
+ manager.workspaces().delete("workspace-1234", "testworkspace", null, com.azure.core.util.Context.NONE);
}
}
```
@@ -4288,7 +8236,7 @@ import java.util.Map;
/** Samples for Workspaces Diagnose. */
public final class WorkspacesDiagnoseSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Workspace/diagnose.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/diagnose.json
*/
/**
* Sample code: Diagnose Workspace.
@@ -4304,18 +8252,19 @@ public final class WorkspacesDiagnoseSamples {
new DiagnoseWorkspaceParameters()
.withValue(
new DiagnoseRequestProperties()
- .withUdr(mapOf())
+ .withApplicationInsights(mapOf())
+ .withContainerRegistry(mapOf())
+ .withDnsResolution(mapOf())
+ .withKeyVault(mapOf())
.withNsg(mapOf())
+ .withOthers(mapOf())
.withResourceLock(mapOf())
- .withDnsResolution(mapOf())
.withStorageAccount(mapOf())
- .withKeyVault(mapOf())
- .withContainerRegistry(mapOf())
- .withApplicationInsights(mapOf())
- .withOthers(mapOf())),
+ .withUdr(mapOf())),
com.azure.core.util.Context.NONE);
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -4335,7 +8284,7 @@ public final class WorkspacesDiagnoseSamples {
/** Samples for Workspaces GetByResourceGroup. */
public final class WorkspacesGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Workspace/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/get.json
*/
/**
* Sample code: Get Workspace.
@@ -4356,7 +8305,7 @@ public final class WorkspacesGetByResourceGroupSamples {
/** Samples for Workspaces List. */
public final class WorkspacesListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Workspace/listBySubscription.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/listBySubscription.json
*/
/**
* Sample code: Get Workspaces by subscription.
@@ -4365,7 +8314,7 @@ public final class WorkspacesListSamples {
*/
public static void getWorkspacesBySubscription(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.workspaces().list(null, com.azure.core.util.Context.NONE);
+ manager.workspaces().list(null, null, com.azure.core.util.Context.NONE);
}
}
```
@@ -4376,7 +8325,7 @@ public final class WorkspacesListSamples {
/** Samples for Workspaces ListByResourceGroup. */
public final class WorkspacesListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Workspace/listByResourceGroup.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/listByResourceGroup.json
*/
/**
* Sample code: Get Workspaces by Resource Group.
@@ -4385,7 +8334,7 @@ public final class WorkspacesListByResourceGroupSamples {
*/
public static void getWorkspacesByResourceGroup(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.workspaces().listByResourceGroup("workspace-1234", null, com.azure.core.util.Context.NONE);
+ manager.workspaces().listByResourceGroup("workspace-1234", null, null, com.azure.core.util.Context.NONE);
}
}
```
@@ -4396,7 +8345,7 @@ public final class WorkspacesListByResourceGroupSamples {
/** Samples for Workspaces ListKeys. */
public final class WorkspacesListKeysSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Workspace/listKeys.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/listKeys.json
*/
/**
* Sample code: List Workspace Keys.
@@ -4415,7 +8364,7 @@ public final class WorkspacesListKeysSamples {
/** Samples for Workspaces ListNotebookAccessToken. */
public final class WorkspacesListNotebookAccessTokenSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Workspace/listNotebookAccessToken.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/listNotebookAccessToken.json
*/
/**
* Sample code: List Workspace Keys.
@@ -4436,7 +8385,7 @@ public final class WorkspacesListNotebookAccessTokenSamples {
/** Samples for Workspaces ListNotebookKeys. */
public final class WorkspacesListNotebookKeysSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Notebook/listKeys.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Notebook/listKeys.json
*/
/**
* Sample code: List Workspace Keys.
@@ -4457,7 +8406,7 @@ public final class WorkspacesListNotebookKeysSamples {
/** Samples for Workspaces ListOutboundNetworkDependenciesEndpoints. */
public final class WorkspacesListOutboundNetworkDependenciesEndpointsSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ExternalFQDN/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/ExternalFQDN/get.json
*/
/**
* Sample code: ListOutboundNetworkDependenciesEndpoints.
@@ -4480,7 +8429,7 @@ public final class WorkspacesListOutboundNetworkDependenciesEndpointsSamples {
/** Samples for Workspaces ListStorageAccountKeys. */
public final class WorkspacesListStorageAccountKeysSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Workspace/listStorageAccountKeys.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/listStorageAccountKeys.json
*/
/**
* Sample code: List Workspace Keys.
@@ -4501,7 +8450,7 @@ public final class WorkspacesListStorageAccountKeysSamples {
/** Samples for Workspaces PrepareNotebook. */
public final class WorkspacesPrepareNotebookSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Notebook/prepare.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Notebook/prepare.json
*/
/**
* Sample code: Prepare Notebook.
@@ -4520,7 +8469,7 @@ public final class WorkspacesPrepareNotebookSamples {
/** Samples for Workspaces ResyncKeys. */
public final class WorkspacesResyncKeysSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Workspace/resyncKeys.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/resyncKeys.json
*/
/**
* Sample code: Resync Workspace Keys.
@@ -4536,13 +8485,13 @@ public final class WorkspacesResyncKeysSamples {
### Workspaces_Update
```java
-import com.azure.resourcemanager.machinelearning.models.PublicNetworkAccess;
+import com.azure.resourcemanager.machinelearning.models.PublicNetworkAccessType;
import com.azure.resourcemanager.machinelearning.models.Workspace;
/** Samples for Workspaces Update. */
public final class WorkspacesUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Workspace/update.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/update.json
*/
/**
* Sample code: Update Workspace.
@@ -4559,7 +8508,7 @@ public final class WorkspacesUpdateSamples {
.update()
.withDescription("new description")
.withFriendlyName("New friendly name")
- .withPublicNetworkAccess(PublicNetworkAccess.DISABLED)
+ .withPublicNetworkAccess(PublicNetworkAccessType.DISABLED)
.apply();
}
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/pom.xml b/sdk/machinelearning/azure-resourcemanager-machinelearning/pom.xml
index 794ff02d770ce..6787478acbf30 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/pom.xml
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/pom.xml
@@ -1,3 +1,8 @@
+
4.0.0
@@ -13,7 +18,7 @@
jar
Microsoft Azure SDK for Machine Learning Management
- This package contains Microsoft Azure SDK for Machine Learning Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. These APIs allow end users to operate on Azure Machine Learning Workspace resources. Package tag package-2022-10.
+ This package contains Microsoft Azure SDK for Machine Learning Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. These APIs allow end users to operate on Azure Machine Learning Workspace resources. Package tag package-preview-2023-08.
https://github.com/Azure/azure-sdk-for-java
@@ -38,7 +43,9 @@
UTF-8
- true
+ 0
+ 0
+ true
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/MachineLearningManager.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/MachineLearningManager.java
index a212fe3e6c4a3..6034615ad9a28 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/MachineLearningManager.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/MachineLearningManager.java
@@ -23,8 +23,8 @@
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.machinelearning.fluent.AzureMachineLearningWorkspaces;
-import com.azure.resourcemanager.machinelearning.implementation.AzureMachineLearningWorkspacesBuilder;
+import com.azure.resourcemanager.machinelearning.fluent.AzureMachineLearningServices;
+import com.azure.resourcemanager.machinelearning.implementation.AzureMachineLearningServicesBuilder;
import com.azure.resourcemanager.machinelearning.implementation.BatchDeploymentsImpl;
import com.azure.resourcemanager.machinelearning.implementation.BatchEndpointsImpl;
import com.azure.resourcemanager.machinelearning.implementation.CodeContainersImpl;
@@ -37,7 +37,15 @@
import com.azure.resourcemanager.machinelearning.implementation.DatastoresImpl;
import com.azure.resourcemanager.machinelearning.implementation.EnvironmentContainersImpl;
import com.azure.resourcemanager.machinelearning.implementation.EnvironmentVersionsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.FeaturesImpl;
+import com.azure.resourcemanager.machinelearning.implementation.FeaturesetContainersImpl;
+import com.azure.resourcemanager.machinelearning.implementation.FeaturesetVersionsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.FeaturestoreEntityContainersImpl;
+import com.azure.resourcemanager.machinelearning.implementation.FeaturestoreEntityVersionsImpl;
import com.azure.resourcemanager.machinelearning.implementation.JobsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.LabelingJobsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.ManagedNetworkProvisionsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.ManagedNetworkSettingsRulesImpl;
import com.azure.resourcemanager.machinelearning.implementation.ModelContainersImpl;
import com.azure.resourcemanager.machinelearning.implementation.ModelVersionsImpl;
import com.azure.resourcemanager.machinelearning.implementation.OnlineDeploymentsImpl;
@@ -46,7 +54,19 @@
import com.azure.resourcemanager.machinelearning.implementation.PrivateEndpointConnectionsImpl;
import com.azure.resourcemanager.machinelearning.implementation.PrivateLinkResourcesImpl;
import com.azure.resourcemanager.machinelearning.implementation.QuotasImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RegistriesImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RegistryCodeContainersImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RegistryCodeVersionsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RegistryComponentContainersImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RegistryComponentVersionsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RegistryDataContainersImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RegistryDataVersionsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RegistryEnvironmentContainersImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RegistryEnvironmentVersionsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RegistryModelContainersImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RegistryModelVersionsImpl;
import com.azure.resourcemanager.machinelearning.implementation.SchedulesImpl;
+import com.azure.resourcemanager.machinelearning.implementation.ServerlessEndpointsImpl;
import com.azure.resourcemanager.machinelearning.implementation.UsagesImpl;
import com.azure.resourcemanager.machinelearning.implementation.VirtualMachineSizesImpl;
import com.azure.resourcemanager.machinelearning.implementation.WorkspaceConnectionsImpl;
@@ -64,7 +84,15 @@
import com.azure.resourcemanager.machinelearning.models.Datastores;
import com.azure.resourcemanager.machinelearning.models.EnvironmentContainers;
import com.azure.resourcemanager.machinelearning.models.EnvironmentVersions;
+import com.azure.resourcemanager.machinelearning.models.Features;
+import com.azure.resourcemanager.machinelearning.models.FeaturesetContainers;
+import com.azure.resourcemanager.machinelearning.models.FeaturesetVersions;
+import com.azure.resourcemanager.machinelearning.models.FeaturestoreEntityContainers;
+import com.azure.resourcemanager.machinelearning.models.FeaturestoreEntityVersions;
import com.azure.resourcemanager.machinelearning.models.Jobs;
+import com.azure.resourcemanager.machinelearning.models.LabelingJobs;
+import com.azure.resourcemanager.machinelearning.models.ManagedNetworkProvisions;
+import com.azure.resourcemanager.machinelearning.models.ManagedNetworkSettingsRules;
import com.azure.resourcemanager.machinelearning.models.ModelContainers;
import com.azure.resourcemanager.machinelearning.models.ModelVersions;
import com.azure.resourcemanager.machinelearning.models.OnlineDeployments;
@@ -73,7 +101,19 @@
import com.azure.resourcemanager.machinelearning.models.PrivateEndpointConnections;
import com.azure.resourcemanager.machinelearning.models.PrivateLinkResources;
import com.azure.resourcemanager.machinelearning.models.Quotas;
+import com.azure.resourcemanager.machinelearning.models.Registries;
+import com.azure.resourcemanager.machinelearning.models.RegistryCodeContainers;
+import com.azure.resourcemanager.machinelearning.models.RegistryCodeVersions;
+import com.azure.resourcemanager.machinelearning.models.RegistryComponentContainers;
+import com.azure.resourcemanager.machinelearning.models.RegistryComponentVersions;
+import com.azure.resourcemanager.machinelearning.models.RegistryDataContainers;
+import com.azure.resourcemanager.machinelearning.models.RegistryDataVersions;
+import com.azure.resourcemanager.machinelearning.models.RegistryEnvironmentContainers;
+import com.azure.resourcemanager.machinelearning.models.RegistryEnvironmentVersions;
+import com.azure.resourcemanager.machinelearning.models.RegistryModelContainers;
+import com.azure.resourcemanager.machinelearning.models.RegistryModelVersions;
import com.azure.resourcemanager.machinelearning.models.Schedules;
+import com.azure.resourcemanager.machinelearning.models.ServerlessEndpoints;
import com.azure.resourcemanager.machinelearning.models.Usages;
import com.azure.resourcemanager.machinelearning.models.VirtualMachineSizes;
import com.azure.resourcemanager.machinelearning.models.WorkspaceConnections;
@@ -91,10 +131,6 @@
* resources.
*/
public final class MachineLearningManager {
- private Operations operations;
-
- private Workspaces workspaces;
-
private Usages usages;
private VirtualMachineSizes virtualMachineSizes;
@@ -103,11 +139,25 @@ public final class MachineLearningManager {
private Computes computes;
- private PrivateEndpointConnections privateEndpointConnections;
+ private RegistryCodeContainers registryCodeContainers;
- private PrivateLinkResources privateLinkResources;
+ private RegistryCodeVersions registryCodeVersions;
- private WorkspaceConnections workspaceConnections;
+ private RegistryComponentContainers registryComponentContainers;
+
+ private RegistryComponentVersions registryComponentVersions;
+
+ private RegistryDataContainers registryDataContainers;
+
+ private RegistryDataVersions registryDataVersions;
+
+ private RegistryEnvironmentContainers registryEnvironmentContainers;
+
+ private RegistryEnvironmentVersions registryEnvironmentVersions;
+
+ private RegistryModelContainers registryModelContainers;
+
+ private RegistryModelVersions registryModelVersions;
private BatchEndpoints batchEndpoints;
@@ -131,8 +181,20 @@ public final class MachineLearningManager {
private EnvironmentVersions environmentVersions;
+ private FeaturesetContainers featuresetContainers;
+
+ private Features features;
+
+ private FeaturesetVersions featuresetVersions;
+
+ private FeaturestoreEntityContainers featurestoreEntityContainers;
+
+ private FeaturestoreEntityVersions featurestoreEntityVersions;
+
private Jobs jobs;
+ private LabelingJobs labelingJobs;
+
private ModelContainers modelContainers;
private ModelVersions modelVersions;
@@ -143,15 +205,33 @@ public final class MachineLearningManager {
private Schedules schedules;
+ private ServerlessEndpoints serverlessEndpoints;
+
+ private Registries registries;
+
private WorkspaceFeatures workspaceFeatures;
- private final AzureMachineLearningWorkspaces clientObject;
+ private Operations operations;
+
+ private Workspaces workspaces;
+
+ private WorkspaceConnections workspaceConnections;
+
+ private ManagedNetworkSettingsRules managedNetworkSettingsRules;
+
+ private PrivateEndpointConnections privateEndpointConnections;
+
+ private PrivateLinkResources privateLinkResources;
+
+ private ManagedNetworkProvisions managedNetworkProvisions;
+
+ private final AzureMachineLearningServices clientObject;
private MachineLearningManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
this.clientObject =
- new AzureMachineLearningWorkspacesBuilder()
+ new AzureMachineLearningServicesBuilder()
.pipeline(httpPipeline)
.endpoint(profile.getEnvironment().getResourceManagerEndpoint())
.subscriptionId(profile.getSubscriptionId())
@@ -310,7 +390,7 @@ public MachineLearningManager authenticate(TokenCredential credential, AzureProf
.append("-")
.append("com.azure.resourcemanager.machinelearning")
.append("/")
- .append("1.0.0");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
@@ -367,30 +447,6 @@ public MachineLearningManager authenticate(TokenCredential credential, AzureProf
}
}
- /**
- * Gets the resource collection API of Operations.
- *
- * @return Resource collection API of Operations.
- */
- public Operations operations() {
- if (this.operations == null) {
- this.operations = new OperationsImpl(clientObject.getOperations(), this);
- }
- return operations;
- }
-
- /**
- * Gets the resource collection API of Workspaces. It manages Workspace.
- *
- * @return Resource collection API of Workspaces.
- */
- public Workspaces workspaces() {
- if (this.workspaces == null) {
- this.workspaces = new WorkspacesImpl(clientObject.getWorkspaces(), this);
- }
- return workspaces;
- }
-
/**
* Gets the resource collection API of Usages.
*
@@ -440,41 +496,130 @@ public Computes computes() {
}
/**
- * Gets the resource collection API of PrivateEndpointConnections. It manages PrivateEndpointConnection.
+ * Gets the resource collection API of RegistryCodeContainers. It manages CodeContainer.
*
- * @return Resource collection API of PrivateEndpointConnections.
+ * @return Resource collection API of RegistryCodeContainers.
*/
- public PrivateEndpointConnections privateEndpointConnections() {
- if (this.privateEndpointConnections == null) {
- this.privateEndpointConnections =
- new PrivateEndpointConnectionsImpl(clientObject.getPrivateEndpointConnections(), this);
+ public RegistryCodeContainers registryCodeContainers() {
+ if (this.registryCodeContainers == null) {
+ this.registryCodeContainers =
+ new RegistryCodeContainersImpl(clientObject.getRegistryCodeContainers(), this);
}
- return privateEndpointConnections;
+ return registryCodeContainers;
}
/**
- * Gets the resource collection API of PrivateLinkResources.
+ * Gets the resource collection API of RegistryCodeVersions. It manages CodeVersion.
*
- * @return Resource collection API of PrivateLinkResources.
+ * @return Resource collection API of RegistryCodeVersions.
*/
- public PrivateLinkResources privateLinkResources() {
- if (this.privateLinkResources == null) {
- this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this);
+ public RegistryCodeVersions registryCodeVersions() {
+ if (this.registryCodeVersions == null) {
+ this.registryCodeVersions = new RegistryCodeVersionsImpl(clientObject.getRegistryCodeVersions(), this);
}
- return privateLinkResources;
+ return registryCodeVersions;
}
/**
- * Gets the resource collection API of WorkspaceConnections. It manages
- * WorkspaceConnectionPropertiesV2BasicResource.
+ * Gets the resource collection API of RegistryComponentContainers. It manages ComponentContainer.
*
- * @return Resource collection API of WorkspaceConnections.
+ * @return Resource collection API of RegistryComponentContainers.
*/
- public WorkspaceConnections workspaceConnections() {
- if (this.workspaceConnections == null) {
- this.workspaceConnections = new WorkspaceConnectionsImpl(clientObject.getWorkspaceConnections(), this);
+ public RegistryComponentContainers registryComponentContainers() {
+ if (this.registryComponentContainers == null) {
+ this.registryComponentContainers =
+ new RegistryComponentContainersImpl(clientObject.getRegistryComponentContainers(), this);
}
- return workspaceConnections;
+ return registryComponentContainers;
+ }
+
+ /**
+ * Gets the resource collection API of RegistryComponentVersions. It manages ComponentVersion.
+ *
+ * @return Resource collection API of RegistryComponentVersions.
+ */
+ public RegistryComponentVersions registryComponentVersions() {
+ if (this.registryComponentVersions == null) {
+ this.registryComponentVersions =
+ new RegistryComponentVersionsImpl(clientObject.getRegistryComponentVersions(), this);
+ }
+ return registryComponentVersions;
+ }
+
+ /**
+ * Gets the resource collection API of RegistryDataContainers. It manages DataContainer.
+ *
+ * @return Resource collection API of RegistryDataContainers.
+ */
+ public RegistryDataContainers registryDataContainers() {
+ if (this.registryDataContainers == null) {
+ this.registryDataContainers =
+ new RegistryDataContainersImpl(clientObject.getRegistryDataContainers(), this);
+ }
+ return registryDataContainers;
+ }
+
+ /**
+ * Gets the resource collection API of RegistryDataVersions. It manages DataVersionBase.
+ *
+ * @return Resource collection API of RegistryDataVersions.
+ */
+ public RegistryDataVersions registryDataVersions() {
+ if (this.registryDataVersions == null) {
+ this.registryDataVersions = new RegistryDataVersionsImpl(clientObject.getRegistryDataVersions(), this);
+ }
+ return registryDataVersions;
+ }
+
+ /**
+ * Gets the resource collection API of RegistryEnvironmentContainers. It manages EnvironmentContainer.
+ *
+ * @return Resource collection API of RegistryEnvironmentContainers.
+ */
+ public RegistryEnvironmentContainers registryEnvironmentContainers() {
+ if (this.registryEnvironmentContainers == null) {
+ this.registryEnvironmentContainers =
+ new RegistryEnvironmentContainersImpl(clientObject.getRegistryEnvironmentContainers(), this);
+ }
+ return registryEnvironmentContainers;
+ }
+
+ /**
+ * Gets the resource collection API of RegistryEnvironmentVersions. It manages EnvironmentVersion.
+ *
+ * @return Resource collection API of RegistryEnvironmentVersions.
+ */
+ public RegistryEnvironmentVersions registryEnvironmentVersions() {
+ if (this.registryEnvironmentVersions == null) {
+ this.registryEnvironmentVersions =
+ new RegistryEnvironmentVersionsImpl(clientObject.getRegistryEnvironmentVersions(), this);
+ }
+ return registryEnvironmentVersions;
+ }
+
+ /**
+ * Gets the resource collection API of RegistryModelContainers. It manages ModelContainer.
+ *
+ * @return Resource collection API of RegistryModelContainers.
+ */
+ public RegistryModelContainers registryModelContainers() {
+ if (this.registryModelContainers == null) {
+ this.registryModelContainers =
+ new RegistryModelContainersImpl(clientObject.getRegistryModelContainers(), this);
+ }
+ return registryModelContainers;
+ }
+
+ /**
+ * Gets the resource collection API of RegistryModelVersions. It manages ModelVersion.
+ *
+ * @return Resource collection API of RegistryModelVersions.
+ */
+ public RegistryModelVersions registryModelVersions() {
+ if (this.registryModelVersions == null) {
+ this.registryModelVersions = new RegistryModelVersionsImpl(clientObject.getRegistryModelVersions(), this);
+ }
+ return registryModelVersions;
}
/**
@@ -502,7 +647,7 @@ public BatchDeployments batchDeployments() {
}
/**
- * Gets the resource collection API of CodeContainers. It manages CodeContainer.
+ * Gets the resource collection API of CodeContainers.
*
* @return Resource collection API of CodeContainers.
*/
@@ -514,7 +659,7 @@ public CodeContainers codeContainers() {
}
/**
- * Gets the resource collection API of CodeVersions. It manages CodeVersion.
+ * Gets the resource collection API of CodeVersions.
*
* @return Resource collection API of CodeVersions.
*/
@@ -526,7 +671,7 @@ public CodeVersions codeVersions() {
}
/**
- * Gets the resource collection API of ComponentContainers. It manages ComponentContainer.
+ * Gets the resource collection API of ComponentContainers.
*
* @return Resource collection API of ComponentContainers.
*/
@@ -538,7 +683,7 @@ public ComponentContainers componentContainers() {
}
/**
- * Gets the resource collection API of ComponentVersions. It manages ComponentVersion.
+ * Gets the resource collection API of ComponentVersions.
*
* @return Resource collection API of ComponentVersions.
*/
@@ -550,7 +695,7 @@ public ComponentVersions componentVersions() {
}
/**
- * Gets the resource collection API of DataContainers. It manages DataContainer.
+ * Gets the resource collection API of DataContainers.
*
* @return Resource collection API of DataContainers.
*/
@@ -562,7 +707,7 @@ public DataContainers dataContainers() {
}
/**
- * Gets the resource collection API of DataVersions. It manages DataVersionBase.
+ * Gets the resource collection API of DataVersions.
*
* @return Resource collection API of DataVersions.
*/
@@ -586,7 +731,7 @@ public Datastores datastores() {
}
/**
- * Gets the resource collection API of EnvironmentContainers. It manages EnvironmentContainer.
+ * Gets the resource collection API of EnvironmentContainers.
*
* @return Resource collection API of EnvironmentContainers.
*/
@@ -598,7 +743,7 @@ public EnvironmentContainers environmentContainers() {
}
/**
- * Gets the resource collection API of EnvironmentVersions. It manages EnvironmentVersion.
+ * Gets the resource collection API of EnvironmentVersions.
*
* @return Resource collection API of EnvironmentVersions.
*/
@@ -609,6 +754,68 @@ public EnvironmentVersions environmentVersions() {
return environmentVersions;
}
+ /**
+ * Gets the resource collection API of FeaturesetContainers. It manages FeaturesetContainer.
+ *
+ * @return Resource collection API of FeaturesetContainers.
+ */
+ public FeaturesetContainers featuresetContainers() {
+ if (this.featuresetContainers == null) {
+ this.featuresetContainers = new FeaturesetContainersImpl(clientObject.getFeaturesetContainers(), this);
+ }
+ return featuresetContainers;
+ }
+
+ /**
+ * Gets the resource collection API of Features.
+ *
+ * @return Resource collection API of Features.
+ */
+ public Features features() {
+ if (this.features == null) {
+ this.features = new FeaturesImpl(clientObject.getFeatures(), this);
+ }
+ return features;
+ }
+
+ /**
+ * Gets the resource collection API of FeaturesetVersions. It manages FeaturesetVersion.
+ *
+ * @return Resource collection API of FeaturesetVersions.
+ */
+ public FeaturesetVersions featuresetVersions() {
+ if (this.featuresetVersions == null) {
+ this.featuresetVersions = new FeaturesetVersionsImpl(clientObject.getFeaturesetVersions(), this);
+ }
+ return featuresetVersions;
+ }
+
+ /**
+ * Gets the resource collection API of FeaturestoreEntityContainers. It manages FeaturestoreEntityContainer.
+ *
+ * @return Resource collection API of FeaturestoreEntityContainers.
+ */
+ public FeaturestoreEntityContainers featurestoreEntityContainers() {
+ if (this.featurestoreEntityContainers == null) {
+ this.featurestoreEntityContainers =
+ new FeaturestoreEntityContainersImpl(clientObject.getFeaturestoreEntityContainers(), this);
+ }
+ return featurestoreEntityContainers;
+ }
+
+ /**
+ * Gets the resource collection API of FeaturestoreEntityVersions. It manages FeaturestoreEntityVersion.
+ *
+ * @return Resource collection API of FeaturestoreEntityVersions.
+ */
+ public FeaturestoreEntityVersions featurestoreEntityVersions() {
+ if (this.featurestoreEntityVersions == null) {
+ this.featurestoreEntityVersions =
+ new FeaturestoreEntityVersionsImpl(clientObject.getFeaturestoreEntityVersions(), this);
+ }
+ return featurestoreEntityVersions;
+ }
+
/**
* Gets the resource collection API of Jobs. It manages JobBase.
*
@@ -622,7 +829,19 @@ public Jobs jobs() {
}
/**
- * Gets the resource collection API of ModelContainers. It manages ModelContainer.
+ * Gets the resource collection API of LabelingJobs. It manages LabelingJob.
+ *
+ * @return Resource collection API of LabelingJobs.
+ */
+ public LabelingJobs labelingJobs() {
+ if (this.labelingJobs == null) {
+ this.labelingJobs = new LabelingJobsImpl(clientObject.getLabelingJobs(), this);
+ }
+ return labelingJobs;
+ }
+
+ /**
+ * Gets the resource collection API of ModelContainers.
*
* @return Resource collection API of ModelContainers.
*/
@@ -634,7 +853,7 @@ public ModelContainers modelContainers() {
}
/**
- * Gets the resource collection API of ModelVersions. It manages ModelVersion.
+ * Gets the resource collection API of ModelVersions.
*
* @return Resource collection API of ModelVersions.
*/
@@ -681,6 +900,30 @@ public Schedules schedules() {
return schedules;
}
+ /**
+ * Gets the resource collection API of ServerlessEndpoints. It manages ServerlessEndpoint.
+ *
+ * @return Resource collection API of ServerlessEndpoints.
+ */
+ public ServerlessEndpoints serverlessEndpoints() {
+ if (this.serverlessEndpoints == null) {
+ this.serverlessEndpoints = new ServerlessEndpointsImpl(clientObject.getServerlessEndpoints(), this);
+ }
+ return serverlessEndpoints;
+ }
+
+ /**
+ * Gets the resource collection API of Registries. It manages Registry.
+ *
+ * @return Resource collection API of Registries.
+ */
+ public Registries registries() {
+ if (this.registries == null) {
+ this.registries = new RegistriesImpl(clientObject.getRegistries(), this);
+ }
+ return registries;
+ }
+
/**
* Gets the resource collection API of WorkspaceFeatures.
*
@@ -694,10 +937,100 @@ public WorkspaceFeatures workspaceFeatures() {
}
/**
- * @return Wrapped service client AzureMachineLearningWorkspaces providing direct access to the underlying
- * auto-generated API implementation, based on Azure REST API.
+ * Gets the resource collection API of Operations.
+ *
+ * @return Resource collection API of Operations.
+ */
+ public Operations operations() {
+ if (this.operations == null) {
+ this.operations = new OperationsImpl(clientObject.getOperations(), this);
+ }
+ return operations;
+ }
+
+ /**
+ * Gets the resource collection API of Workspaces. It manages Workspace.
+ *
+ * @return Resource collection API of Workspaces.
+ */
+ public Workspaces workspaces() {
+ if (this.workspaces == null) {
+ this.workspaces = new WorkspacesImpl(clientObject.getWorkspaces(), this);
+ }
+ return workspaces;
+ }
+
+ /**
+ * Gets the resource collection API of WorkspaceConnections. It manages
+ * WorkspaceConnectionPropertiesV2BasicResource.
+ *
+ * @return Resource collection API of WorkspaceConnections.
+ */
+ public WorkspaceConnections workspaceConnections() {
+ if (this.workspaceConnections == null) {
+ this.workspaceConnections = new WorkspaceConnectionsImpl(clientObject.getWorkspaceConnections(), this);
+ }
+ return workspaceConnections;
+ }
+
+ /**
+ * Gets the resource collection API of ManagedNetworkSettingsRules. It manages OutboundRuleBasicResource.
+ *
+ * @return Resource collection API of ManagedNetworkSettingsRules.
+ */
+ public ManagedNetworkSettingsRules managedNetworkSettingsRules() {
+ if (this.managedNetworkSettingsRules == null) {
+ this.managedNetworkSettingsRules =
+ new ManagedNetworkSettingsRulesImpl(clientObject.getManagedNetworkSettingsRules(), this);
+ }
+ return managedNetworkSettingsRules;
+ }
+
+ /**
+ * Gets the resource collection API of PrivateEndpointConnections. It manages PrivateEndpointConnection.
+ *
+ * @return Resource collection API of PrivateEndpointConnections.
+ */
+ public PrivateEndpointConnections privateEndpointConnections() {
+ if (this.privateEndpointConnections == null) {
+ this.privateEndpointConnections =
+ new PrivateEndpointConnectionsImpl(clientObject.getPrivateEndpointConnections(), this);
+ }
+ return privateEndpointConnections;
+ }
+
+ /**
+ * Gets the resource collection API of PrivateLinkResources.
+ *
+ * @return Resource collection API of PrivateLinkResources.
+ */
+ public PrivateLinkResources privateLinkResources() {
+ if (this.privateLinkResources == null) {
+ this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this);
+ }
+ return privateLinkResources;
+ }
+
+ /**
+ * Gets the resource collection API of ManagedNetworkProvisions.
+ *
+ * @return Resource collection API of ManagedNetworkProvisions.
+ */
+ public ManagedNetworkProvisions managedNetworkProvisions() {
+ if (this.managedNetworkProvisions == null) {
+ this.managedNetworkProvisions =
+ new ManagedNetworkProvisionsImpl(clientObject.getManagedNetworkProvisions(), this);
+ }
+ return managedNetworkProvisions;
+ }
+
+ /**
+ * Gets wrapped service client AzureMachineLearningServices providing direct access to the underlying auto-generated
+ * API implementation, based on Azure REST API.
+ *
+ * @return Wrapped service client AzureMachineLearningServices.
*/
- public AzureMachineLearningWorkspaces serviceClient() {
+ public AzureMachineLearningServices serviceClient() {
return this.clientObject;
}
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/AzureMachineLearningServices.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/AzureMachineLearningServices.java
new file mode 100644
index 0000000000000..263dd115d1776
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/AzureMachineLearningServices.java
@@ -0,0 +1,375 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.machinelearning.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/** The interface for AzureMachineLearningServices class. */
+public interface AzureMachineLearningServices {
+ /**
+ * Gets The ID of the target subscription.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ String getEndpoint();
+
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ String getApiVersion();
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ HttpPipeline getHttpPipeline();
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ Duration getDefaultPollInterval();
+
+ /**
+ * Gets the UsagesClient object to access its operations.
+ *
+ * @return the UsagesClient object.
+ */
+ UsagesClient getUsages();
+
+ /**
+ * Gets the VirtualMachineSizesClient object to access its operations.
+ *
+ * @return the VirtualMachineSizesClient object.
+ */
+ VirtualMachineSizesClient getVirtualMachineSizes();
+
+ /**
+ * Gets the QuotasClient object to access its operations.
+ *
+ * @return the QuotasClient object.
+ */
+ QuotasClient getQuotas();
+
+ /**
+ * Gets the ComputesClient object to access its operations.
+ *
+ * @return the ComputesClient object.
+ */
+ ComputesClient getComputes();
+
+ /**
+ * Gets the RegistryCodeContainersClient object to access its operations.
+ *
+ * @return the RegistryCodeContainersClient object.
+ */
+ RegistryCodeContainersClient getRegistryCodeContainers();
+
+ /**
+ * Gets the RegistryCodeVersionsClient object to access its operations.
+ *
+ * @return the RegistryCodeVersionsClient object.
+ */
+ RegistryCodeVersionsClient getRegistryCodeVersions();
+
+ /**
+ * Gets the RegistryComponentContainersClient object to access its operations.
+ *
+ * @return the RegistryComponentContainersClient object.
+ */
+ RegistryComponentContainersClient getRegistryComponentContainers();
+
+ /**
+ * Gets the RegistryComponentVersionsClient object to access its operations.
+ *
+ * @return the RegistryComponentVersionsClient object.
+ */
+ RegistryComponentVersionsClient getRegistryComponentVersions();
+
+ /**
+ * Gets the RegistryDataContainersClient object to access its operations.
+ *
+ * @return the RegistryDataContainersClient object.
+ */
+ RegistryDataContainersClient getRegistryDataContainers();
+
+ /**
+ * Gets the RegistryDataVersionsClient object to access its operations.
+ *
+ * @return the RegistryDataVersionsClient object.
+ */
+ RegistryDataVersionsClient getRegistryDataVersions();
+
+ /**
+ * Gets the RegistryEnvironmentContainersClient object to access its operations.
+ *
+ * @return the RegistryEnvironmentContainersClient object.
+ */
+ RegistryEnvironmentContainersClient getRegistryEnvironmentContainers();
+
+ /**
+ * Gets the RegistryEnvironmentVersionsClient object to access its operations.
+ *
+ * @return the RegistryEnvironmentVersionsClient object.
+ */
+ RegistryEnvironmentVersionsClient getRegistryEnvironmentVersions();
+
+ /**
+ * Gets the RegistryModelContainersClient object to access its operations.
+ *
+ * @return the RegistryModelContainersClient object.
+ */
+ RegistryModelContainersClient getRegistryModelContainers();
+
+ /**
+ * Gets the RegistryModelVersionsClient object to access its operations.
+ *
+ * @return the RegistryModelVersionsClient object.
+ */
+ RegistryModelVersionsClient getRegistryModelVersions();
+
+ /**
+ * Gets the BatchEndpointsClient object to access its operations.
+ *
+ * @return the BatchEndpointsClient object.
+ */
+ BatchEndpointsClient getBatchEndpoints();
+
+ /**
+ * Gets the BatchDeploymentsClient object to access its operations.
+ *
+ * @return the BatchDeploymentsClient object.
+ */
+ BatchDeploymentsClient getBatchDeployments();
+
+ /**
+ * Gets the CodeContainersClient object to access its operations.
+ *
+ * @return the CodeContainersClient object.
+ */
+ CodeContainersClient getCodeContainers();
+
+ /**
+ * Gets the CodeVersionsClient object to access its operations.
+ *
+ * @return the CodeVersionsClient object.
+ */
+ CodeVersionsClient getCodeVersions();
+
+ /**
+ * Gets the ComponentContainersClient object to access its operations.
+ *
+ * @return the ComponentContainersClient object.
+ */
+ ComponentContainersClient getComponentContainers();
+
+ /**
+ * Gets the ComponentVersionsClient object to access its operations.
+ *
+ * @return the ComponentVersionsClient object.
+ */
+ ComponentVersionsClient getComponentVersions();
+
+ /**
+ * Gets the DataContainersClient object to access its operations.
+ *
+ * @return the DataContainersClient object.
+ */
+ DataContainersClient getDataContainers();
+
+ /**
+ * Gets the DataVersionsClient object to access its operations.
+ *
+ * @return the DataVersionsClient object.
+ */
+ DataVersionsClient getDataVersions();
+
+ /**
+ * Gets the DatastoresClient object to access its operations.
+ *
+ * @return the DatastoresClient object.
+ */
+ DatastoresClient getDatastores();
+
+ /**
+ * Gets the EnvironmentContainersClient object to access its operations.
+ *
+ * @return the EnvironmentContainersClient object.
+ */
+ EnvironmentContainersClient getEnvironmentContainers();
+
+ /**
+ * Gets the EnvironmentVersionsClient object to access its operations.
+ *
+ * @return the EnvironmentVersionsClient object.
+ */
+ EnvironmentVersionsClient getEnvironmentVersions();
+
+ /**
+ * Gets the FeaturesetContainersClient object to access its operations.
+ *
+ * @return the FeaturesetContainersClient object.
+ */
+ FeaturesetContainersClient getFeaturesetContainers();
+
+ /**
+ * Gets the FeaturesClient object to access its operations.
+ *
+ * @return the FeaturesClient object.
+ */
+ FeaturesClient getFeatures();
+
+ /**
+ * Gets the FeaturesetVersionsClient object to access its operations.
+ *
+ * @return the FeaturesetVersionsClient object.
+ */
+ FeaturesetVersionsClient getFeaturesetVersions();
+
+ /**
+ * Gets the FeaturestoreEntityContainersClient object to access its operations.
+ *
+ * @return the FeaturestoreEntityContainersClient object.
+ */
+ FeaturestoreEntityContainersClient getFeaturestoreEntityContainers();
+
+ /**
+ * Gets the FeaturestoreEntityVersionsClient object to access its operations.
+ *
+ * @return the FeaturestoreEntityVersionsClient object.
+ */
+ FeaturestoreEntityVersionsClient getFeaturestoreEntityVersions();
+
+ /**
+ * Gets the JobsClient object to access its operations.
+ *
+ * @return the JobsClient object.
+ */
+ JobsClient getJobs();
+
+ /**
+ * Gets the LabelingJobsClient object to access its operations.
+ *
+ * @return the LabelingJobsClient object.
+ */
+ LabelingJobsClient getLabelingJobs();
+
+ /**
+ * Gets the ModelContainersClient object to access its operations.
+ *
+ * @return the ModelContainersClient object.
+ */
+ ModelContainersClient getModelContainers();
+
+ /**
+ * Gets the ModelVersionsClient object to access its operations.
+ *
+ * @return the ModelVersionsClient object.
+ */
+ ModelVersionsClient getModelVersions();
+
+ /**
+ * Gets the OnlineEndpointsClient object to access its operations.
+ *
+ * @return the OnlineEndpointsClient object.
+ */
+ OnlineEndpointsClient getOnlineEndpoints();
+
+ /**
+ * Gets the OnlineDeploymentsClient object to access its operations.
+ *
+ * @return the OnlineDeploymentsClient object.
+ */
+ OnlineDeploymentsClient getOnlineDeployments();
+
+ /**
+ * Gets the SchedulesClient object to access its operations.
+ *
+ * @return the SchedulesClient object.
+ */
+ SchedulesClient getSchedules();
+
+ /**
+ * Gets the ServerlessEndpointsClient object to access its operations.
+ *
+ * @return the ServerlessEndpointsClient object.
+ */
+ ServerlessEndpointsClient getServerlessEndpoints();
+
+ /**
+ * Gets the RegistriesClient object to access its operations.
+ *
+ * @return the RegistriesClient object.
+ */
+ RegistriesClient getRegistries();
+
+ /**
+ * Gets the WorkspaceFeaturesClient object to access its operations.
+ *
+ * @return the WorkspaceFeaturesClient object.
+ */
+ WorkspaceFeaturesClient getWorkspaceFeatures();
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
+
+ /**
+ * Gets the WorkspacesClient object to access its operations.
+ *
+ * @return the WorkspacesClient object.
+ */
+ WorkspacesClient getWorkspaces();
+
+ /**
+ * Gets the WorkspaceConnectionsClient object to access its operations.
+ *
+ * @return the WorkspaceConnectionsClient object.
+ */
+ WorkspaceConnectionsClient getWorkspaceConnections();
+
+ /**
+ * Gets the ManagedNetworkSettingsRulesClient object to access its operations.
+ *
+ * @return the ManagedNetworkSettingsRulesClient object.
+ */
+ ManagedNetworkSettingsRulesClient getManagedNetworkSettingsRules();
+
+ /**
+ * Gets the PrivateEndpointConnectionsClient object to access its operations.
+ *
+ * @return the PrivateEndpointConnectionsClient object.
+ */
+ PrivateEndpointConnectionsClient getPrivateEndpointConnections();
+
+ /**
+ * Gets the PrivateLinkResourcesClient object to access its operations.
+ *
+ * @return the PrivateLinkResourcesClient object.
+ */
+ PrivateLinkResourcesClient getPrivateLinkResources();
+
+ /**
+ * Gets the ManagedNetworkProvisionsClient object to access its operations.
+ *
+ * @return the ManagedNetworkProvisionsClient object.
+ */
+ ManagedNetworkProvisionsClient getManagedNetworkProvisions();
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/AzureMachineLearningWorkspaces.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/AzureMachineLearningWorkspaces.java
deleted file mode 100644
index e8a40ef9b43c9..0000000000000
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/AzureMachineLearningWorkspaces.java
+++ /dev/null
@@ -1,235 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.machinelearning.fluent;
-
-import com.azure.core.http.HttpPipeline;
-import java.time.Duration;
-
-/** The interface for AzureMachineLearningWorkspaces class. */
-public interface AzureMachineLearningWorkspaces {
- /**
- * Gets The ID of the target subscription.
- *
- * @return the subscriptionId value.
- */
- String getSubscriptionId();
-
- /**
- * Gets server parameter.
- *
- * @return the endpoint value.
- */
- String getEndpoint();
-
- /**
- * Gets Api Version.
- *
- * @return the apiVersion value.
- */
- String getApiVersion();
-
- /**
- * Gets The HTTP pipeline to send requests through.
- *
- * @return the httpPipeline value.
- */
- HttpPipeline getHttpPipeline();
-
- /**
- * Gets The default poll interval for long-running operation.
- *
- * @return the defaultPollInterval value.
- */
- Duration getDefaultPollInterval();
-
- /**
- * Gets the OperationsClient object to access its operations.
- *
- * @return the OperationsClient object.
- */
- OperationsClient getOperations();
-
- /**
- * Gets the WorkspacesClient object to access its operations.
- *
- * @return the WorkspacesClient object.
- */
- WorkspacesClient getWorkspaces();
-
- /**
- * Gets the UsagesClient object to access its operations.
- *
- * @return the UsagesClient object.
- */
- UsagesClient getUsages();
-
- /**
- * Gets the VirtualMachineSizesClient object to access its operations.
- *
- * @return the VirtualMachineSizesClient object.
- */
- VirtualMachineSizesClient getVirtualMachineSizes();
-
- /**
- * Gets the QuotasClient object to access its operations.
- *
- * @return the QuotasClient object.
- */
- QuotasClient getQuotas();
-
- /**
- * Gets the ComputesClient object to access its operations.
- *
- * @return the ComputesClient object.
- */
- ComputesClient getComputes();
-
- /**
- * Gets the PrivateEndpointConnectionsClient object to access its operations.
- *
- * @return the PrivateEndpointConnectionsClient object.
- */
- PrivateEndpointConnectionsClient getPrivateEndpointConnections();
-
- /**
- * Gets the PrivateLinkResourcesClient object to access its operations.
- *
- * @return the PrivateLinkResourcesClient object.
- */
- PrivateLinkResourcesClient getPrivateLinkResources();
-
- /**
- * Gets the WorkspaceConnectionsClient object to access its operations.
- *
- * @return the WorkspaceConnectionsClient object.
- */
- WorkspaceConnectionsClient getWorkspaceConnections();
-
- /**
- * Gets the BatchEndpointsClient object to access its operations.
- *
- * @return the BatchEndpointsClient object.
- */
- BatchEndpointsClient getBatchEndpoints();
-
- /**
- * Gets the BatchDeploymentsClient object to access its operations.
- *
- * @return the BatchDeploymentsClient object.
- */
- BatchDeploymentsClient getBatchDeployments();
-
- /**
- * Gets the CodeContainersClient object to access its operations.
- *
- * @return the CodeContainersClient object.
- */
- CodeContainersClient getCodeContainers();
-
- /**
- * Gets the CodeVersionsClient object to access its operations.
- *
- * @return the CodeVersionsClient object.
- */
- CodeVersionsClient getCodeVersions();
-
- /**
- * Gets the ComponentContainersClient object to access its operations.
- *
- * @return the ComponentContainersClient object.
- */
- ComponentContainersClient getComponentContainers();
-
- /**
- * Gets the ComponentVersionsClient object to access its operations.
- *
- * @return the ComponentVersionsClient object.
- */
- ComponentVersionsClient getComponentVersions();
-
- /**
- * Gets the DataContainersClient object to access its operations.
- *
- * @return the DataContainersClient object.
- */
- DataContainersClient getDataContainers();
-
- /**
- * Gets the DataVersionsClient object to access its operations.
- *
- * @return the DataVersionsClient object.
- */
- DataVersionsClient getDataVersions();
-
- /**
- * Gets the DatastoresClient object to access its operations.
- *
- * @return the DatastoresClient object.
- */
- DatastoresClient getDatastores();
-
- /**
- * Gets the EnvironmentContainersClient object to access its operations.
- *
- * @return the EnvironmentContainersClient object.
- */
- EnvironmentContainersClient getEnvironmentContainers();
-
- /**
- * Gets the EnvironmentVersionsClient object to access its operations.
- *
- * @return the EnvironmentVersionsClient object.
- */
- EnvironmentVersionsClient getEnvironmentVersions();
-
- /**
- * Gets the JobsClient object to access its operations.
- *
- * @return the JobsClient object.
- */
- JobsClient getJobs();
-
- /**
- * Gets the ModelContainersClient object to access its operations.
- *
- * @return the ModelContainersClient object.
- */
- ModelContainersClient getModelContainers();
-
- /**
- * Gets the ModelVersionsClient object to access its operations.
- *
- * @return the ModelVersionsClient object.
- */
- ModelVersionsClient getModelVersions();
-
- /**
- * Gets the OnlineEndpointsClient object to access its operations.
- *
- * @return the OnlineEndpointsClient object.
- */
- OnlineEndpointsClient getOnlineEndpoints();
-
- /**
- * Gets the OnlineDeploymentsClient object to access its operations.
- *
- * @return the OnlineDeploymentsClient object.
- */
- OnlineDeploymentsClient getOnlineDeployments();
-
- /**
- * Gets the SchedulesClient object to access its operations.
- *
- * @return the SchedulesClient object.
- */
- SchedulesClient getSchedules();
-
- /**
- * Gets the WorkspaceFeaturesClient object to access its operations.
- *
- * @return the WorkspaceFeaturesClient object.
- */
- WorkspaceFeaturesClient getWorkspaceFeatures();
-}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/CodeVersionsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/CodeVersionsClient.java
index fa5b5e3a44693..b619227035501 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/CodeVersionsClient.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/CodeVersionsClient.java
@@ -10,6 +10,8 @@
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.machinelearning.fluent.models.CodeVersionInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.PendingUploadResponseDtoInner;
+import com.azure.resourcemanager.machinelearning.models.PendingUploadRequestDto;
/** An instance of this class provides access to all the operations defined in CodeVersionsClient. */
public interface CodeVersionsClient {
@@ -36,6 +38,8 @@ public interface CodeVersionsClient {
* @param orderBy Ordering of list.
* @param top Maximum number of records to return.
* @param skip Continuation token for pagination.
+ * @param hash If specified, return CodeVersion assets with specified content hash value, regardless of name.
+ * @param hashVersion Hash algorithm version when listing by hash.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -50,6 +54,8 @@ PagedIterable list(
String orderBy,
Integer top,
String skip,
+ String hash,
+ String hashVersion,
Context context);
/**
@@ -154,4 +160,44 @@ Response createOrUpdateWithResponse(
@ServiceMethod(returns = ReturnType.SINGLE)
CodeVersionInner createOrUpdate(
String resourceGroupName, String workspaceName, String name, String version, CodeVersionInner body);
+
+ /**
+ * Generate a storage location and credential for the client to upload a code asset to.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Pending upload request object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrGetStartPendingUploadWithResponse(
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ String version,
+ PendingUploadRequestDto body,
+ Context context);
+
+ /**
+ * Generate a storage location and credential for the client to upload a code asset to.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Pending upload request object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PendingUploadResponseDtoInner createOrGetStartPendingUpload(
+ String resourceGroupName, String workspaceName, String name, String version, PendingUploadRequestDto body);
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ComponentVersionsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ComponentVersionsClient.java
index c1374059eaa05..55ccee820c554 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ComponentVersionsClient.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ComponentVersionsClient.java
@@ -38,6 +38,7 @@ public interface ComponentVersionsClient {
* @param top Maximum number of records to return.
* @param skip Continuation token for pagination.
* @param listViewType View type for including/excluding (for example) archived entities.
+ * @param stage Component stage.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -53,6 +54,7 @@ PagedIterable list(
Integer top,
String skip,
ListViewType listViewType,
+ String stage,
Context context);
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ComputesClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ComputesClient.java
index 5676a642b1704..037a3fadd7249 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ComputesClient.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ComputesClient.java
@@ -13,9 +13,14 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.machinelearning.fluent.models.ComputeResourceInner;
import com.azure.resourcemanager.machinelearning.fluent.models.ComputeSecretsInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.VirtualMachineSizeListResultInner;
import com.azure.resourcemanager.machinelearning.models.AmlComputeNodeInformation;
import com.azure.resourcemanager.machinelearning.models.ClusterUpdateParameters;
+import com.azure.resourcemanager.machinelearning.models.CustomService;
+import com.azure.resourcemanager.machinelearning.models.IdleShutdownSetting;
+import com.azure.resourcemanager.machinelearning.models.ResizeSchema;
import com.azure.resourcemanager.machinelearning.models.UnderlyingResourceAction;
+import java.util.List;
/** An instance of this class provides access to all the operations defined in ComputesClient. */
public interface ComputesClient {
@@ -318,6 +323,42 @@ void delete(
UnderlyingResourceAction underlyingResourceAction,
Context context);
+ /**
+ * Updates the custom services list. The list of custom services provided shall be overwritten.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param computeName Name of the Azure Machine Learning compute.
+ * @param customServices New list of Custom Services.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateCustomServicesWithResponse(
+ String resourceGroupName,
+ String workspaceName,
+ String computeName,
+ List customServices,
+ Context context);
+
+ /**
+ * Updates the custom services list. The list of custom services provided shall be overwritten.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param computeName Name of the Azure Machine Learning compute.
+ * @param customServices New list of Custom Services.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void updateCustomServices(
+ String resourceGroupName, String workspaceName, String computeName, List customServices);
+
/**
* Get the details (e.g IP address, port etc) of all the compute nodes in the compute.
*
@@ -552,4 +593,134 @@ SyncPoller, Void> beginRestart(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void restart(String resourceGroupName, String workspaceName, String computeName, Context context);
+
+ /**
+ * Updates the idle shutdown setting of a compute instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param computeName Name of the Azure Machine Learning compute.
+ * @param parameters The object for updating idle shutdown setting of specified ComputeInstance.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateIdleShutdownSettingWithResponse(
+ String resourceGroupName,
+ String workspaceName,
+ String computeName,
+ IdleShutdownSetting parameters,
+ Context context);
+
+ /**
+ * Updates the idle shutdown setting of a compute instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param computeName Name of the Azure Machine Learning compute.
+ * @param parameters The object for updating idle shutdown setting of specified ComputeInstance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void updateIdleShutdownSetting(
+ String resourceGroupName, String workspaceName, String computeName, IdleShutdownSetting parameters);
+
+ /**
+ * Returns supported virtual machine sizes for resize.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param computeName Name of the Azure Machine Learning compute.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the List Virtual Machine size operation response along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getAllowedResizeSizesWithResponse(
+ String resourceGroupName, String workspaceName, String computeName, Context context);
+
+ /**
+ * Returns supported virtual machine sizes for resize.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param computeName Name of the Azure Machine Learning compute.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the List Virtual Machine size operation response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VirtualMachineSizeListResultInner getAllowedResizeSizes(
+ String resourceGroupName, String workspaceName, String computeName);
+
+ /**
+ * Updates the size of a Compute Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param computeName Name of the Azure Machine Learning compute.
+ * @param parameters The object for updating VM size setting of specified Compute Instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginResize(
+ String resourceGroupName, String workspaceName, String computeName, ResizeSchema parameters);
+
+ /**
+ * Updates the size of a Compute Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param computeName Name of the Azure Machine Learning compute.
+ * @param parameters The object for updating VM size setting of specified Compute Instance.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginResize(
+ String resourceGroupName, String workspaceName, String computeName, ResizeSchema parameters, Context context);
+
+ /**
+ * Updates the size of a Compute Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param computeName Name of the Azure Machine Learning compute.
+ * @param parameters The object for updating VM size setting of specified Compute Instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void resize(String resourceGroupName, String workspaceName, String computeName, ResizeSchema parameters);
+
+ /**
+ * Updates the size of a Compute Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param computeName Name of the Azure Machine Learning compute.
+ * @param parameters The object for updating VM size setting of specified Compute Instance.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void resize(
+ String resourceGroupName, String workspaceName, String computeName, ResizeSchema parameters, Context context);
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/DataVersionsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/DataVersionsClient.java
index bf43827ba11f0..13f4c1913326c 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/DataVersionsClient.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/DataVersionsClient.java
@@ -41,6 +41,7 @@ public interface DataVersionsClient {
* @param tags Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2.
* @param listViewType [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for
* including/excluding (for example) archived entities.
+ * @param stage data stage.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -57,6 +58,7 @@ PagedIterable list(
String skip,
String tags,
ListViewType listViewType,
+ String stage,
Context context);
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/EnvironmentVersionsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/EnvironmentVersionsClient.java
index 9b6667f2237ec..83d15a43c9650 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/EnvironmentVersionsClient.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/EnvironmentVersionsClient.java
@@ -38,6 +38,7 @@ public interface EnvironmentVersionsClient {
* @param top Maximum number of records to return.
* @param skip Continuation token for pagination.
* @param listViewType View type for including/excluding (for example) archived entities.
+ * @param stage Stage for including/excluding (for example) archived entities. Takes priority over listViewType.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -53,6 +54,7 @@ PagedIterable list(
Integer top,
String skip,
ListViewType listViewType,
+ String stage,
Context context);
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/FeaturesClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/FeaturesClient.java
new file mode 100644
index 0000000000000..d270e75fe0acb
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/FeaturesClient.java
@@ -0,0 +1,110 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.machinelearning.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.machinelearning.fluent.models.FeatureInner;
+import com.azure.resourcemanager.machinelearning.models.ListViewType;
+
+/** An instance of this class provides access to all the operations defined in FeaturesClient. */
+public interface FeaturesClient {
+ /**
+ * List Features.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param featuresetName Featureset name. This is case-sensitive.
+ * @param featuresetVersion Featureset Version identifier. This is case-sensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of Feature entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName, String workspaceName, String featuresetName, String featuresetVersion);
+
+ /**
+ * List Features.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param featuresetName Featureset name. This is case-sensitive.
+ * @param featuresetVersion Featureset Version identifier. This is case-sensitive.
+ * @param skip Continuation token for pagination.
+ * @param tags Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2.
+ * @param featureName feature name.
+ * @param description Description of the featureset.
+ * @param listViewType [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for
+ * including/excluding (for example) archived entities.
+ * @param pageSize Page size.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of Feature entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName,
+ String workspaceName,
+ String featuresetName,
+ String featuresetVersion,
+ String skip,
+ String tags,
+ String featureName,
+ String description,
+ ListViewType listViewType,
+ Integer pageSize,
+ Context context);
+
+ /**
+ * Get feature.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param featuresetName Feature set name. This is case-sensitive.
+ * @param featuresetVersion Feature set version identifier. This is case-sensitive.
+ * @param featureName Feature Name. This is case-sensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return feature along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName,
+ String workspaceName,
+ String featuresetName,
+ String featuresetVersion,
+ String featureName,
+ Context context);
+
+ /**
+ * Get feature.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param featuresetName Feature set name. This is case-sensitive.
+ * @param featuresetVersion Feature set version identifier. This is case-sensitive.
+ * @param featureName Feature Name. This is case-sensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return feature.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FeatureInner get(
+ String resourceGroupName,
+ String workspaceName,
+ String featuresetName,
+ String featuresetVersion,
+ String featureName);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/FeaturesetContainersClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/FeaturesetContainersClient.java
new file mode 100644
index 0000000000000..7a1756fad503c
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/FeaturesetContainersClient.java
@@ -0,0 +1,216 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.machinelearning.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.machinelearning.fluent.models.FeaturesetContainerInner;
+import com.azure.resourcemanager.machinelearning.models.ListViewType;
+
+/** An instance of this class provides access to all the operations defined in FeaturesetContainersClient. */
+public interface FeaturesetContainersClient {
+ /**
+ * List featurestore entity containers.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of FeaturesetContainer entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String workspaceName);
+
+ /**
+ * List featurestore entity containers.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param skip Continuation token for pagination.
+ * @param tags Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2.
+ * @param listViewType [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for
+ * including/excluding (for example) archived entities.
+ * @param pageSize page size.
+ * @param name name for the featureset.
+ * @param description description for the feature set.
+ * @param createdBy createdBy user name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of FeaturesetContainer entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName,
+ String workspaceName,
+ String skip,
+ String tags,
+ ListViewType listViewType,
+ Integer pageSize,
+ String name,
+ String description,
+ String createdBy,
+ Context context);
+
+ /**
+ * Delete container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, String name);
+
+ /**
+ * Delete container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String workspaceName, String name, Context context);
+
+ /**
+ * Delete container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String name);
+
+ /**
+ * Delete container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String name, Context context);
+
+ /**
+ * Get container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getEntityWithResponse(
+ String resourceGroupName, String workspaceName, String name, Context context);
+
+ /**
+ * Get container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FeaturesetContainerInner getEntity(String resourceGroupName, String workspaceName, String name);
+
+ /**
+ * Create or update container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param body Container entity to create or update.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, FeaturesetContainerInner> beginCreateOrUpdate(
+ String resourceGroupName, String workspaceName, String name, FeaturesetContainerInner body);
+
+ /**
+ * Create or update container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param body Container entity to create or update.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, FeaturesetContainerInner> beginCreateOrUpdate(
+ String resourceGroupName, String workspaceName, String name, FeaturesetContainerInner body, Context context);
+
+ /**
+ * Create or update container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param body Container entity to create or update.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FeaturesetContainerInner createOrUpdate(
+ String resourceGroupName, String workspaceName, String name, FeaturesetContainerInner body);
+
+ /**
+ * Create or update container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param body Container entity to create or update.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FeaturesetContainerInner createOrUpdate(
+ String resourceGroupName, String workspaceName, String name, FeaturesetContainerInner body, Context context);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/FeaturesetVersionsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/FeaturesetVersionsClient.java
new file mode 100644
index 0000000000000..c4b4abbbd0f7d
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/FeaturesetVersionsClient.java
@@ -0,0 +1,379 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.machinelearning.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.machinelearning.fluent.models.FeaturesetJobInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.FeaturesetVersionInner;
+import com.azure.resourcemanager.machinelearning.models.FeaturesetVersionBackfillRequest;
+import com.azure.resourcemanager.machinelearning.models.ListViewType;
+
+/** An instance of this class provides access to all the operations defined in FeaturesetVersionsClient. */
+public interface FeaturesetVersionsClient {
+ /**
+ * List versions.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Featureset name. This is case-sensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of FeaturesetVersion entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String workspaceName, String name);
+
+ /**
+ * List versions.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Featureset name. This is case-sensitive.
+ * @param skip Continuation token for pagination.
+ * @param tags Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2.
+ * @param listViewType [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for
+ * including/excluding (for example) archived entities.
+ * @param pageSize page size.
+ * @param versionName name for the featureset version.
+ * @param version featureset version.
+ * @param description description for the feature set version.
+ * @param createdBy createdBy user name.
+ * @param stage Specifies the featurestore stage.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of FeaturesetVersion entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ String skip,
+ String tags,
+ ListViewType listViewType,
+ Integer pageSize,
+ String versionName,
+ String version,
+ String description,
+ String createdBy,
+ String stage,
+ Context context);
+
+ /**
+ * Delete version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String workspaceName, String name, String version);
+
+ /**
+ * Delete version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String workspaceName, String name, String version, Context context);
+
+ /**
+ * Delete version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String name, String version);
+
+ /**
+ * Delete version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String name, String version, Context context);
+
+ /**
+ * Get version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return version along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String workspaceName, String name, String version, Context context);
+
+ /**
+ * Get version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return version.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FeaturesetVersionInner get(String resourceGroupName, String workspaceName, String name, String version);
+
+ /**
+ * Create or update version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Version entity to create or update.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, FeaturesetVersionInner> beginCreateOrUpdate(
+ String resourceGroupName, String workspaceName, String name, String version, FeaturesetVersionInner body);
+
+ /**
+ * Create or update version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Version entity to create or update.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, FeaturesetVersionInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ String version,
+ FeaturesetVersionInner body,
+ Context context);
+
+ /**
+ * Create or update version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Version entity to create or update.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FeaturesetVersionInner createOrUpdate(
+ String resourceGroupName, String workspaceName, String name, String version, FeaturesetVersionInner body);
+
+ /**
+ * Create or update version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Version entity to create or update.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FeaturesetVersionInner createOrUpdate(
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ String version,
+ FeaturesetVersionInner body,
+ Context context);
+
+ /**
+ * Backfill.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Feature set version backfill request entity.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of dto object representing the feature set job.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, FeaturesetJobInner> beginBackfill(
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ String version,
+ FeaturesetVersionBackfillRequest body);
+
+ /**
+ * Backfill.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Feature set version backfill request entity.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of dto object representing the feature set job.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, FeaturesetJobInner> beginBackfill(
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ String version,
+ FeaturesetVersionBackfillRequest body,
+ Context context);
+
+ /**
+ * Backfill.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Feature set version backfill request entity.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return dto object representing the feature set job.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FeaturesetJobInner backfill(
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ String version,
+ FeaturesetVersionBackfillRequest body);
+
+ /**
+ * Backfill.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Feature set version backfill request entity.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return dto object representing the feature set job.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FeaturesetJobInner backfill(
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ String version,
+ FeaturesetVersionBackfillRequest body,
+ Context context);
+
+ /**
+ * List materialization Jobs.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of FeaturesetJob entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMaterializationJobs(
+ String resourceGroupName, String workspaceName, String name, String version);
+
+ /**
+ * List materialization Jobs.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param skip Continuation token for pagination.
+ * @param filters Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2.
+ * @param featureWindowStart Start time of the feature window to filter materialization jobs.
+ * @param featureWindowEnd End time of the feature window to filter materialization jobs.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of FeaturesetJob entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMaterializationJobs(
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ String version,
+ String skip,
+ String filters,
+ String featureWindowStart,
+ String featureWindowEnd,
+ Context context);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/FeaturestoreEntityContainersClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/FeaturestoreEntityContainersClient.java
new file mode 100644
index 0000000000000..17f5cbe9d1925
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/FeaturestoreEntityContainersClient.java
@@ -0,0 +1,226 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.machinelearning.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.machinelearning.fluent.models.FeaturestoreEntityContainerInner;
+import com.azure.resourcemanager.machinelearning.models.ListViewType;
+
+/** An instance of this class provides access to all the operations defined in FeaturestoreEntityContainersClient. */
+public interface FeaturestoreEntityContainersClient {
+ /**
+ * List featurestore entity containers.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of FeaturestoreEntityContainer entities as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String workspaceName);
+
+ /**
+ * List featurestore entity containers.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param skip Continuation token for pagination.
+ * @param tags Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2.
+ * @param listViewType [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for
+ * including/excluding (for example) archived entities.
+ * @param pageSize page size.
+ * @param name name for the featurestore entity.
+ * @param description description for the featurestore entity.
+ * @param createdBy createdBy user name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of FeaturestoreEntityContainer entities as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName,
+ String workspaceName,
+ String skip,
+ String tags,
+ ListViewType listViewType,
+ Integer pageSize,
+ String name,
+ String description,
+ String createdBy,
+ Context context);
+
+ /**
+ * Delete container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, String name);
+
+ /**
+ * Delete container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String workspaceName, String name, Context context);
+
+ /**
+ * Delete container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String name);
+
+ /**
+ * Delete container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String name, Context context);
+
+ /**
+ * Get container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getEntityWithResponse(
+ String resourceGroupName, String workspaceName, String name, Context context);
+
+ /**
+ * Get container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FeaturestoreEntityContainerInner getEntity(String resourceGroupName, String workspaceName, String name);
+
+ /**
+ * Create or update container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param body Container entity to create or update.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, FeaturestoreEntityContainerInner> beginCreateOrUpdate(
+ String resourceGroupName, String workspaceName, String name, FeaturestoreEntityContainerInner body);
+
+ /**
+ * Create or update container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param body Container entity to create or update.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, FeaturestoreEntityContainerInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ FeaturestoreEntityContainerInner body,
+ Context context);
+
+ /**
+ * Create or update container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param body Container entity to create or update.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FeaturestoreEntityContainerInner createOrUpdate(
+ String resourceGroupName, String workspaceName, String name, FeaturestoreEntityContainerInner body);
+
+ /**
+ * Create or update container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param body Container entity to create or update.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FeaturestoreEntityContainerInner createOrUpdate(
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ FeaturestoreEntityContainerInner body,
+ Context context);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/FeaturestoreEntityVersionsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/FeaturestoreEntityVersionsClient.java
new file mode 100644
index 0000000000000..c9309a685edad
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/FeaturestoreEntityVersionsClient.java
@@ -0,0 +1,252 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.machinelearning.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.machinelearning.fluent.models.FeaturestoreEntityVersionInner;
+import com.azure.resourcemanager.machinelearning.models.ListViewType;
+
+/** An instance of this class provides access to all the operations defined in FeaturestoreEntityVersionsClient. */
+public interface FeaturestoreEntityVersionsClient {
+ /**
+ * List versions.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Feature entity name. This is case-sensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of FeaturestoreEntityVersion entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String workspaceName, String name);
+
+ /**
+ * List versions.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Feature entity name. This is case-sensitive.
+ * @param skip Continuation token for pagination.
+ * @param tags Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2.
+ * @param listViewType [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for
+ * including/excluding (for example) archived entities.
+ * @param pageSize page size.
+ * @param versionName name for the featurestore entity version.
+ * @param version featurestore entity version.
+ * @param description description for the feature entity version.
+ * @param createdBy createdBy user name.
+ * @param stage Specifies the featurestore stage.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of FeaturestoreEntityVersion entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ String skip,
+ String tags,
+ ListViewType listViewType,
+ Integer pageSize,
+ String versionName,
+ String version,
+ String description,
+ String createdBy,
+ String stage,
+ Context context);
+
+ /**
+ * Delete version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String workspaceName, String name, String version);
+
+ /**
+ * Delete version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String workspaceName, String name, String version, Context context);
+
+ /**
+ * Delete version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String name, String version);
+
+ /**
+ * Delete version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String name, String version, Context context);
+
+ /**
+ * Get version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return version along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String workspaceName, String name, String version, Context context);
+
+ /**
+ * Get version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return version.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FeaturestoreEntityVersionInner get(String resourceGroupName, String workspaceName, String name, String version);
+
+ /**
+ * Create or update version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Version entity to create or update.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, FeaturestoreEntityVersionInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ String version,
+ FeaturestoreEntityVersionInner body);
+
+ /**
+ * Create or update version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Version entity to create or update.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, FeaturestoreEntityVersionInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ String version,
+ FeaturestoreEntityVersionInner body,
+ Context context);
+
+ /**
+ * Create or update version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Version entity to create or update.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FeaturestoreEntityVersionInner createOrUpdate(
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ String version,
+ FeaturestoreEntityVersionInner body);
+
+ /**
+ * Create or update version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Version entity to create or update.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FeaturestoreEntityVersionInner createOrUpdate(
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ String version,
+ FeaturestoreEntityVersionInner body,
+ Context context);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/JobsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/JobsClient.java
index c4660d91fa818..c8dd3f9ad320f 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/JobsClient.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/JobsClient.java
@@ -13,6 +13,7 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.machinelearning.fluent.models.JobBaseInner;
import com.azure.resourcemanager.machinelearning.models.ListViewType;
+import com.azure.resourcemanager.machinelearning.models.PartialJobBasePartialResource;
/** An instance of this class provides access to all the operations defined in JobsClient. */
public interface JobsClient {
@@ -38,6 +39,11 @@ public interface JobsClient {
* @param jobType Type of job to be returned.
* @param tag Jobs returned will have this tag key.
* @param listViewType View type for including/excluding (for example) archived entities.
+ * @param assetName Asset name the job's named output is registered with.
+ * @param scheduled Indicator whether the job is scheduled job.
+ * @param scheduleId The scheduled id for listing the job triggered from.
+ * @param properties Comma-separated list of user property names (and optionally values). Example:
+ * prop1,prop2=value2.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -52,6 +58,10 @@ PagedIterable list(
String jobType,
String tag,
ListViewType listViewType,
+ String assetName,
+ Boolean scheduled,
+ String scheduleId,
+ String properties,
Context context);
/**
@@ -140,6 +150,38 @@ SyncPoller, Void> beginDelete(
@ServiceMethod(returns = ReturnType.SINGLE)
JobBaseInner get(String resourceGroupName, String workspaceName, String id);
+ /**
+ * Updates a Job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param id The name and identifier for the Job. This is case-sensitive.
+ * @param body Job definition to apply during the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azure Resource Manager resource envelope along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName, String workspaceName, String id, PartialJobBasePartialResource body, Context context);
+
+ /**
+ * Updates a Job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param id The name and identifier for the Job. This is case-sensitive.
+ * @param body Job definition to apply during the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ JobBaseInner update(String resourceGroupName, String workspaceName, String id, PartialJobBasePartialResource body);
+
/**
* Creates and executes a Job.
*
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/LabelingJobsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/LabelingJobsClient.java
new file mode 100644
index 0000000000000..65c640862a474
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/LabelingJobsClient.java
@@ -0,0 +1,331 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.machinelearning.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.machinelearning.fluent.models.ExportSummaryInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.LabelingJobInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.LabelingJobPropertiesInner;
+
+/** An instance of this class provides access to all the operations defined in LabelingJobsClient. */
+public interface LabelingJobsClient {
+ /**
+ * Lists labeling jobs in the workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of LabelingJob entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String workspaceName);
+
+ /**
+ * Lists labeling jobs in the workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param skip Continuation token for pagination.
+ * @param top Number of labeling jobs to return.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of LabelingJob entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName, String workspaceName, String skip, Integer top, Context context);
+
+ /**
+ * Delete a labeling job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param id The name and identifier for the LabelingJob.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceGroupName, String workspaceName, String id, Context context);
+
+ /**
+ * Delete a labeling job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param id The name and identifier for the LabelingJob.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String id);
+
+ /**
+ * Gets a labeling job by name/id.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param id The name and identifier for the LabelingJob.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a labeling job by name/id along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String workspaceName, String id, Context context);
+
+ /**
+ * Gets a labeling job by name/id.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param id The name and identifier for the LabelingJob.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a labeling job by name/id.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LabelingJobInner get(String resourceGroupName, String workspaceName, String id);
+
+ /**
+ * Creates or updates a labeling job (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param id The name and identifier for the LabelingJob.
+ * @param body LabelingJob definition object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, LabelingJobInner> beginCreateOrUpdate(
+ String resourceGroupName, String workspaceName, String id, LabelingJobInner body);
+
+ /**
+ * Creates or updates a labeling job (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param id The name and identifier for the LabelingJob.
+ * @param body LabelingJob definition object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, LabelingJobInner> beginCreateOrUpdate(
+ String resourceGroupName, String workspaceName, String id, LabelingJobInner body, Context context);
+
+ /**
+ * Creates or updates a labeling job (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param id The name and identifier for the LabelingJob.
+ * @param body LabelingJob definition object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LabelingJobInner createOrUpdate(String resourceGroupName, String workspaceName, String id, LabelingJobInner body);
+
+ /**
+ * Creates or updates a labeling job (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param id The name and identifier for the LabelingJob.
+ * @param body LabelingJob definition object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LabelingJobInner createOrUpdate(
+ String resourceGroupName, String workspaceName, String id, LabelingJobInner body, Context context);
+
+ /**
+ * Export labels from a labeling job (asynchronous). Using the URL in the Location header, the status of the job
+ * export operation can be tracked.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param id The name and identifier for the LabelingJob.
+ * @param body The export summary.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ExportSummaryInner> beginExportLabels(
+ String resourceGroupName, String workspaceName, String id, ExportSummaryInner body);
+
+ /**
+ * Export labels from a labeling job (asynchronous). Using the URL in the Location header, the status of the job
+ * export operation can be tracked.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param id The name and identifier for the LabelingJob.
+ * @param body The export summary.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ExportSummaryInner> beginExportLabels(
+ String resourceGroupName, String workspaceName, String id, ExportSummaryInner body, Context context);
+
+ /**
+ * Export labels from a labeling job (asynchronous). Using the URL in the Location header, the status of the job
+ * export operation can be tracked.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param id The name and identifier for the LabelingJob.
+ * @param body The export summary.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ExportSummaryInner exportLabels(String resourceGroupName, String workspaceName, String id, ExportSummaryInner body);
+
+ /**
+ * Export labels from a labeling job (asynchronous). Using the URL in the Location header, the status of the job
+ * export operation can be tracked.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param id The name and identifier for the LabelingJob.
+ * @param body The export summary.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ExportSummaryInner exportLabels(
+ String resourceGroupName, String workspaceName, String id, ExportSummaryInner body, Context context);
+
+ /**
+ * Pause a labeling job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param id The name and identifier for the LabelingJob.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return labeling job definition along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response pauseWithResponse(
+ String resourceGroupName, String workspaceName, String id, Context context);
+
+ /**
+ * Pause a labeling job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param id The name and identifier for the LabelingJob.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return labeling job definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LabelingJobPropertiesInner pause(String resourceGroupName, String workspaceName, String id);
+
+ /**
+ * Resume a labeling job (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param id The name and identifier for the LabelingJob.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of labeling job definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, LabelingJobPropertiesInner> beginResume(
+ String resourceGroupName, String workspaceName, String id);
+
+ /**
+ * Resume a labeling job (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param id The name and identifier for the LabelingJob.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of labeling job definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, LabelingJobPropertiesInner> beginResume(
+ String resourceGroupName, String workspaceName, String id, Context context);
+
+ /**
+ * Resume a labeling job (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param id The name and identifier for the LabelingJob.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return labeling job definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LabelingJobPropertiesInner resume(String resourceGroupName, String workspaceName, String id);
+
+ /**
+ * Resume a labeling job (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param id The name and identifier for the LabelingJob.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return labeling job definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LabelingJobPropertiesInner resume(String resourceGroupName, String workspaceName, String id, Context context);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ManagedNetworkProvisionsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ManagedNetworkProvisionsClient.java
new file mode 100644
index 0000000000000..8950519245948
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ManagedNetworkProvisionsClient.java
@@ -0,0 +1,78 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.machinelearning.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.machinelearning.fluent.models.ManagedNetworkProvisionStatusInner;
+import com.azure.resourcemanager.machinelearning.models.ManagedNetworkProvisionOptions;
+
+/** An instance of this class provides access to all the operations defined in ManagedNetworkProvisionsClient. */
+public interface ManagedNetworkProvisionsClient {
+ /**
+ * Provisions the managed network of a machine learning workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of status of the Provisioning for the managed network of a machine
+ * learning workspace.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ManagedNetworkProvisionStatusInner>
+ beginProvisionManagedNetwork(String resourceGroupName, String workspaceName);
+
+ /**
+ * Provisions the managed network of a machine learning workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param body Managed Network Provisioning Options for a machine learning workspace.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of status of the Provisioning for the managed network of a machine
+ * learning workspace.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ManagedNetworkProvisionStatusInner>
+ beginProvisionManagedNetwork(
+ String resourceGroupName, String workspaceName, ManagedNetworkProvisionOptions body, Context context);
+
+ /**
+ * Provisions the managed network of a machine learning workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return status of the Provisioning for the managed network of a machine learning workspace.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ManagedNetworkProvisionStatusInner provisionManagedNetwork(String resourceGroupName, String workspaceName);
+
+ /**
+ * Provisions the managed network of a machine learning workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param body Managed Network Provisioning Options for a machine learning workspace.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return status of the Provisioning for the managed network of a machine learning workspace.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ManagedNetworkProvisionStatusInner provisionManagedNetwork(
+ String resourceGroupName, String workspaceName, ManagedNetworkProvisionOptions body, Context context);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ManagedNetworkSettingsRulesClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ManagedNetworkSettingsRulesClient.java
new file mode 100644
index 0000000000000..737dae45384b1
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ManagedNetworkSettingsRulesClient.java
@@ -0,0 +1,209 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.machinelearning.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.machinelearning.fluent.models.OutboundRuleBasicResourceInner;
+
+/** An instance of this class provides access to all the operations defined in ManagedNetworkSettingsRulesClient. */
+public interface ManagedNetworkSettingsRulesClient {
+ /**
+ * Lists the managed network outbound rules for a machine learning workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of outbound rules for the managed network of a machine learning workspace as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String workspaceName);
+
+ /**
+ * Lists the managed network outbound rules for a machine learning workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of outbound rules for the managed network of a machine learning workspace as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String workspaceName, Context context);
+
+ /**
+ * Deletes an outbound rule from the managed network of a machine learning workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param ruleName Name of the workspace managed network outbound rule.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, String ruleName);
+
+ /**
+ * Deletes an outbound rule from the managed network of a machine learning workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param ruleName Name of the workspace managed network outbound rule.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String workspaceName, String ruleName, Context context);
+
+ /**
+ * Deletes an outbound rule from the managed network of a machine learning workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param ruleName Name of the workspace managed network outbound rule.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String ruleName);
+
+ /**
+ * Deletes an outbound rule from the managed network of a machine learning workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param ruleName Name of the workspace managed network outbound rule.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String ruleName, Context context);
+
+ /**
+ * Gets an outbound rule from the managed network of a machine learning workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param ruleName Name of the workspace managed network outbound rule.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an outbound rule from the managed network of a machine learning workspace along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String workspaceName, String ruleName, Context context);
+
+ /**
+ * Gets an outbound rule from the managed network of a machine learning workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param ruleName Name of the workspace managed network outbound rule.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an outbound rule from the managed network of a machine learning workspace.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OutboundRuleBasicResourceInner get(String resourceGroupName, String workspaceName, String ruleName);
+
+ /**
+ * Creates or updates an outbound rule in the managed network of a machine learning workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param ruleName Name of the workspace managed network outbound rule.
+ * @param body Outbound Rule to be created or updated in the managed network of a machine learning workspace.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of outbound Rule Basic Resource for the managed network of a machine
+ * learning workspace.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, OutboundRuleBasicResourceInner> beginCreateOrUpdate(
+ String resourceGroupName, String workspaceName, String ruleName, OutboundRuleBasicResourceInner body);
+
+ /**
+ * Creates or updates an outbound rule in the managed network of a machine learning workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param ruleName Name of the workspace managed network outbound rule.
+ * @param body Outbound Rule to be created or updated in the managed network of a machine learning workspace.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of outbound Rule Basic Resource for the managed network of a machine
+ * learning workspace.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, OutboundRuleBasicResourceInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String workspaceName,
+ String ruleName,
+ OutboundRuleBasicResourceInner body,
+ Context context);
+
+ /**
+ * Creates or updates an outbound rule in the managed network of a machine learning workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param ruleName Name of the workspace managed network outbound rule.
+ * @param body Outbound Rule to be created or updated in the managed network of a machine learning workspace.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return outbound Rule Basic Resource for the managed network of a machine learning workspace.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OutboundRuleBasicResourceInner createOrUpdate(
+ String resourceGroupName, String workspaceName, String ruleName, OutboundRuleBasicResourceInner body);
+
+ /**
+ * Creates or updates an outbound rule in the managed network of a machine learning workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param ruleName Name of the workspace managed network outbound rule.
+ * @param body Outbound Rule to be created or updated in the managed network of a machine learning workspace.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return outbound Rule Basic Resource for the managed network of a machine learning workspace.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OutboundRuleBasicResourceInner createOrUpdate(
+ String resourceGroupName,
+ String workspaceName,
+ String ruleName,
+ OutboundRuleBasicResourceInner body,
+ Context context);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ModelVersionsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ModelVersionsClient.java
index 92582d819da13..8defceb879489 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ModelVersionsClient.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ModelVersionsClient.java
@@ -8,9 +8,13 @@
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.machinelearning.fluent.models.ModelVersionInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.PackageResponseInner;
import com.azure.resourcemanager.machinelearning.models.ListViewType;
+import com.azure.resourcemanager.machinelearning.models.PackageRequest;
/** An instance of this class provides access to all the operations defined in ModelVersionsClient. */
public interface ModelVersionsClient {
@@ -44,6 +48,7 @@ public interface ModelVersionsClient {
* @param properties Comma-separated list of property names (and optionally values). Example: prop1,prop2=value2.
* @param feed Name of the feed.
* @param listViewType View type for including/excluding (for example) archived entities.
+ * @param stage Model stage.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -65,6 +70,7 @@ PagedIterable list(
String properties,
String feed,
ListViewType listViewType,
+ String stage,
Context context);
/**
@@ -169,4 +175,86 @@ Response createOrUpdateWithResponse(
@ServiceMethod(returns = ReturnType.SINGLE)
ModelVersionInner createOrUpdate(
String resourceGroupName, String workspaceName, String name, String version, ModelVersionInner body);
+
+ /**
+ * Model Version Package operation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Package operation request body.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of package response returned after async package operation completes
+ * successfully.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, PackageResponseInner> beginPackageMethod(
+ String resourceGroupName, String workspaceName, String name, String version, PackageRequest body);
+
+ /**
+ * Model Version Package operation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Package operation request body.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of package response returned after async package operation completes
+ * successfully.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, PackageResponseInner> beginPackageMethod(
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ String version,
+ PackageRequest body,
+ Context context);
+
+ /**
+ * Model Version Package operation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Package operation request body.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return package response returned after async package operation completes successfully.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PackageResponseInner packageMethod(
+ String resourceGroupName, String workspaceName, String name, String version, PackageRequest body);
+
+ /**
+ * Model Version Package operation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Package operation request body.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return package response returned after async package operation completes successfully.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PackageResponseInner packageMethod(
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ String version,
+ PackageRequest body,
+ Context context);
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/OnlineEndpointsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/OnlineEndpointsClient.java
index 8b04958fc924d..392113c0f5231 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/OnlineEndpointsClient.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/OnlineEndpointsClient.java
@@ -403,7 +403,7 @@ void regenerateKeys(
Context context);
/**
- * Retrieve a valid AAD token for an Endpoint using AMLToken-based authentication.
+ * Retrieve a valid AML token for an Endpoint using AMLToken-based authentication.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
@@ -419,7 +419,7 @@ Response getTokenWithResponse(
String resourceGroupName, String workspaceName, String endpointName, Context context);
/**
- * Retrieve a valid AAD token for an Endpoint using AMLToken-based authentication.
+ * Retrieve a valid AML token for an Endpoint using AMLToken-based authentication.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/PrivateEndpointConnectionsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/PrivateEndpointConnectionsClient.java
index 2b613c7f88e3f..6e8c7373dcca2 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/PrivateEndpointConnectionsClient.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/PrivateEndpointConnectionsClient.java
@@ -14,7 +14,7 @@
/** An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient. */
public interface PrivateEndpointConnectionsClient {
/**
- * List all the private endpoint connections associated with the workspace.
+ * Called by end-users to get all PE connections.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
@@ -28,7 +28,7 @@ public interface PrivateEndpointConnectionsClient {
PagedIterable list(String resourceGroupName, String workspaceName);
/**
- * List all the private endpoint connections associated with the workspace.
+ * Called by end-users to get all PE connections.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
@@ -43,43 +43,40 @@ public interface PrivateEndpointConnectionsClient {
PagedIterable list(String resourceGroupName, String workspaceName, Context context);
/**
- * Gets the specified private endpoint connection associated with the workspace.
+ * Called by end-users to delete a PE connection.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the workspace.
+ * @param privateEndpointConnectionName NRP Private Endpoint Connection Name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified private endpoint connection associated with the workspace along with {@link Response}.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
+ Response deleteWithResponse(
String resourceGroupName, String workspaceName, String privateEndpointConnectionName, Context context);
/**
- * Gets the specified private endpoint connection associated with the workspace.
+ * Called by end-users to delete a PE connection.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the workspace.
+ * @param privateEndpointConnectionName NRP Private Endpoint Connection Name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified private endpoint connection associated with the workspace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PrivateEndpointConnectionInner get(
- String resourceGroupName, String workspaceName, String privateEndpointConnectionName);
+ void delete(String resourceGroupName, String workspaceName, String privateEndpointConnectionName);
/**
- * Update the state of specified private endpoint connection associated with the workspace.
+ * Called by end-users to get a PE connection.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the workspace.
- * @param properties The private endpoint connection properties.
+ * @param privateEndpointConnectionName NRP Private Endpoint Connection Name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -87,58 +84,61 @@ PrivateEndpointConnectionInner get(
* @return the Private Endpoint Connection resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
- String resourceGroupName,
- String workspaceName,
- String privateEndpointConnectionName,
- PrivateEndpointConnectionInner properties,
- Context context);
+ Response getWithResponse(
+ String resourceGroupName, String workspaceName, String privateEndpointConnectionName, Context context);
/**
- * Update the state of specified private endpoint connection associated with the workspace.
+ * Called by end-users to get a PE connection.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the workspace.
- * @param properties The private endpoint connection properties.
+ * @param privateEndpointConnectionName NRP Private Endpoint Connection Name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the Private Endpoint Connection resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PrivateEndpointConnectionInner createOrUpdate(
- String resourceGroupName,
- String workspaceName,
- String privateEndpointConnectionName,
- PrivateEndpointConnectionInner properties);
+ PrivateEndpointConnectionInner get(
+ String resourceGroupName, String workspaceName, String privateEndpointConnectionName);
/**
- * Deletes the specified private endpoint connection associated with the workspace.
+ * Called by end-users to approve or reject a PE connection. This method must validate and forward the call to NRP.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the workspace.
+ * @param privateEndpointConnectionName NRP Private Endpoint Connection Name.
+ * @param body PrivateEndpointConnection object.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
+ * @return the Private Endpoint Connection resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(
- String resourceGroupName, String workspaceName, String privateEndpointConnectionName, Context context);
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String workspaceName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner body,
+ Context context);
/**
- * Deletes the specified private endpoint connection associated with the workspace.
+ * Called by end-users to approve or reject a PE connection. This method must validate and forward the call to NRP.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the workspace.
+ * @param privateEndpointConnectionName NRP Private Endpoint Connection Name.
+ * @param body PrivateEndpointConnection object.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Private Endpoint Connection resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String workspaceName, String privateEndpointConnectionName);
+ PrivateEndpointConnectionInner createOrUpdate(
+ String resourceGroupName,
+ String workspaceName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner body);
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/PrivateLinkResourcesClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/PrivateLinkResourcesClient.java
index 1dc6edf69f64a..a21e13df08a05 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/PrivateLinkResourcesClient.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/PrivateLinkResourcesClient.java
@@ -6,37 +6,44 @@
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.PagedIterable;
import com.azure.core.util.Context;
-import com.azure.resourcemanager.machinelearning.fluent.models.PrivateLinkResourceListResultInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.PrivateLinkResourceInner;
/** An instance of this class provides access to all the operations defined in PrivateLinkResourcesClient. */
public interface PrivateLinkResourcesClient {
/**
- * Gets the private link resources that need to be created for a workspace.
+ * Called by Client (Portal, CLI, etc) to get available "private link resources" for the workspace. Each "private
+ * link resource" is a connection endpoint (IP address) to the resource. Pre single connection endpoint per
+ * workspace: the Data Plane IP address, returned by DNS resolution. Other RPs, such as Azure Storage, have multiple
+ * - one for Blobs, other for Queues, etc. Defined in the "[NRP] Private Endpoint Design" doc, topic "GET API for
+ * GroupIds".
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the private link resources that need to be created for a workspace along with {@link Response}.
+ * @return a list of private link resources as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response listWithResponse(
- String resourceGroupName, String workspaceName, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String workspaceName);
/**
- * Gets the private link resources that need to be created for a workspace.
+ * Called by Client (Portal, CLI, etc) to get available "private link resources" for the workspace. Each "private
+ * link resource" is a connection endpoint (IP address) to the resource. Pre single connection endpoint per
+ * workspace: the Data Plane IP address, returned by DNS resolution. Other RPs, such as Azure Storage, have multiple
+ * - one for Blobs, other for Queues, etc. Defined in the "[NRP] Private Endpoint Design" doc, topic "GET API for
+ * GroupIds".
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the private link resources that need to be created for a workspace.
+ * @return a list of private link resources as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- PrivateLinkResourceListResultInner list(String resourceGroupName, String workspaceName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String workspaceName, Context context);
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistriesClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistriesClient.java
new file mode 100644
index 0000000000000..e3f2ab26fe5a3
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistriesClient.java
@@ -0,0 +1,295 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.machinelearning.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.machinelearning.fluent.models.RegistryInner;
+import com.azure.resourcemanager.machinelearning.models.PartialRegistryPartialTrackedResource;
+
+/** An instance of this class provides access to all the operations defined in RegistriesClient. */
+public interface RegistriesClient {
+ /**
+ * List registries by subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of Registry entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List registries by subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of Registry entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * List registries.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of Registry entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * List registries.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of Registry entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Delete registry.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String registryName);
+
+ /**
+ * Delete registry.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String registryName, Context context);
+
+ /**
+ * Delete registry.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName);
+
+ /**
+ * Delete registry.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, Context context);
+
+ /**
+ * Get registry.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return registry along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String registryName, Context context);
+
+ /**
+ * Get registry.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RegistryInner getByResourceGroup(String resourceGroupName, String registryName);
+
+ /**
+ * Update tags.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param body Details required to create the registry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName, String registryName, PartialRegistryPartialTrackedResource body, Context context);
+
+ /**
+ * Update tags.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param body Details required to create the registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RegistryInner update(String resourceGroupName, String registryName, PartialRegistryPartialTrackedResource body);
+
+ /**
+ * Create or update registry.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param body Details required to create the registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RegistryInner> beginCreateOrUpdate(
+ String resourceGroupName, String registryName, RegistryInner body);
+
+ /**
+ * Create or update registry.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param body Details required to create the registry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RegistryInner> beginCreateOrUpdate(
+ String resourceGroupName, String registryName, RegistryInner body, Context context);
+
+ /**
+ * Create or update registry.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param body Details required to create the registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RegistryInner createOrUpdate(String resourceGroupName, String registryName, RegistryInner body);
+
+ /**
+ * Create or update registry.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param body Details required to create the registry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RegistryInner createOrUpdate(String resourceGroupName, String registryName, RegistryInner body, Context context);
+
+ /**
+ * Remove regions from registry.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param body Details required to create the registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RegistryInner> beginRemoveRegions(
+ String resourceGroupName, String registryName, RegistryInner body);
+
+ /**
+ * Remove regions from registry.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param body Details required to create the registry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller