diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/CHANGELOG.md b/sdk/machinelearning/azure-resourcemanager-machinelearning/CHANGELOG.md
index 22cf70d8f223..e086b1e40ab3 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-03-03)
+
+- 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-02. 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 1521aeacd892..d0f5d17a06bb 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-02. 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})
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/SAMPLE.md b/sdk/machinelearning/azure-resourcemanager-machinelearning/SAMPLE.md
index aace5155fc33..e86d3801d673 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/SAMPLE.md
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/SAMPLE.md
@@ -58,6 +58,8 @@
- [Start](#compute_start)
- [Stop](#compute_stop)
- [Update](#compute_update)
+- [UpdateCustomServices](#compute_updatecustomservices)
+- [UpdateIdleShutdownSetting](#compute_updateidleshutdownsetting)
## DataContainers
@@ -95,6 +97,38 @@
- [Get](#environmentversions_get)
- [List](#environmentversions_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)
+- [GetFeature](#featuresetversions_getfeature)
+- [List](#featuresetversions_list)
+- [ListFeatures](#featuresetversions_listfeatures)
+- [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)
@@ -103,6 +137,16 @@
- [Get](#jobs_get)
- [List](#jobs_list)
+## LabelingJobs
+
+- [CreateOrUpdate](#labelingjobs_createorupdate)
+- [Delete](#labelingjobs_delete)
+- [ExportLabels](#labelingjobs_exportlabels)
+- [Get](#labelingjobs_get)
+- [List](#labelingjobs_list)
+- [Pause](#labelingjobs_pause)
+- [Resume](#labelingjobs_resume)
+
## ModelContainers
- [CreateOrUpdate](#modelcontainers_createorupdate)
@@ -116,6 +160,7 @@
- [Delete](#modelversions_delete)
- [Get](#modelversions_get)
- [List](#modelversions_list)
+- [PackageMethod](#modelversions_packagemethod)
## OnlineDeployments
@@ -158,6 +203,85 @@
- [List](#quotas_list)
- [Update](#quotas_update)
+## Registries
+
+- [CreateOrUpdate](#registries_createorupdate)
+- [Delete](#registries_delete)
+- [GetByResourceGroup](#registries_getbyresourcegroup)
+- [List](#registries_list)
+- [ListByResourceGroup](#registries_listbyresourcegroup)
+- [Update](#registries_update)
+
+## RegistryCodeContainers
+
+- [CreateOrUpdate](#registrycodecontainers_createorupdate)
+- [Delete](#registrycodecontainers_delete)
+- [Get](#registrycodecontainers_get)
+- [List](#registrycodecontainers_list)
+
+## RegistryCodeVersions
+
+- [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
+
+- [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
+
+- [CreateOrUpdate](#registrymodelversions_createorupdate)
+- [Delete](#registrymodelversions_delete)
+- [Get](#registrymodelversions_get)
+- [List](#registrymodelversions_list)
+
## Schedules
- [CreateOrUpdate](#schedules_createorupdate)
@@ -225,14 +349,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-02-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()
@@ -304,14 +428,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-02-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 +455,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-02-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 +482,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-02-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 +510,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-02-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()
@@ -438,14 +566,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-02-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()
@@ -493,14 +621,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-02-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 +643,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-02-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 +665,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-02-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 +685,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-02-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 +716,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-02-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()
@@ -629,6 +761,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,24 +769,27 @@ 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-02-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);
}
@SuppressWarnings("unchecked")
@@ -675,14 +811,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-02-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 +833,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-02-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,14 +855,15 @@ 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-02-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);
}
}
@@ -733,6 +872,7 @@ public final class CodeContainersListSamples {
### 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,27 +880,31 @@ 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-02-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);
}
@SuppressWarnings("unchecked")
@@ -782,14 +926,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-02-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 +948,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-02-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,14 +970,15 @@ 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-02-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);
@@ -842,6 +989,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,25 +997,28 @@ 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-02-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);
}
@SuppressWarnings("unchecked")
@@ -889,14 +1040,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-02-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 +1062,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-02-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 +1084,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-02-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 +1103,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,33 +1112,37 @@ 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-02-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);
}
@SuppressWarnings("unchecked")
@@ -1007,14 +1164,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-02-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 +1186,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-02-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,14 +1208,15 @@ 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-02-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);
@@ -1076,29 +1235,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.CronTrigger;
+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-02-01-preview/examples/Compute/createOrUpdate/BasicAKSCompute.json
*/
/**
* Sample code: Create an AKS Compute.
@@ -1116,7 +1294,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-02-01-preview/examples/Compute/createOrUpdate/AKSCompute.json
*/
/**
* Sample code: Update an AKS Compute.
@@ -1139,7 +1317,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-02-01-preview/examples/Compute/createOrUpdate/KubernetesCompute.json
*/
/**
* Sample code: Attach a Kubernetes Compute.
@@ -1176,7 +1354,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-02-01-preview/examples/Compute/createOrUpdate/ComputeInstanceWithSchedules.json
*/
/**
* Sample code: Create an ComputeInstance Compute with Schedules.
@@ -1204,12 +1382,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 CronTrigger()
+ .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-02-01-preview/examples/Compute/createOrUpdate/BasicAmlCompute.json
*/
/**
* Sample code: Create a AML Compute.
@@ -1245,7 +1437,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-02-01-preview/examples/Compute/createOrUpdate/ComputeInstance.json
*/
/**
* Sample code: Create an ComputeInstance Compute.
@@ -1266,8 +1458,46 @@ 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)
.withPersonalComputeInstanceSettings(
new PersonalComputeInstanceSettings()
@@ -1279,7 +1509,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-02-01-preview/examples/Compute/createOrUpdate/ComputeInstanceMinimal.json
*/
/**
* Sample code: Create an ComputeInstance Compute with minimal inputs.
@@ -1299,7 +1529,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-02-01-preview/examples/Compute/createOrUpdate/AmlCompute.json
*/
/**
* Sample code: Update a AML Compute.
@@ -1326,7 +1556,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-02-01-preview/examples/Compute/createOrUpdate/BasicDataFactoryCompute.json
*/
/**
* Sample code: Create a DataFactory Compute.
@@ -1365,7 +1595,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-02-01-preview/examples/Compute/delete.json
*/
/**
* Sample code: Delete Compute.
@@ -1391,7 +1621,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-02-01-preview/examples/Compute/get/AKSCompute.json
*/
/**
* Sample code: Get a AKS Compute.
@@ -1405,7 +1635,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-02-01-preview/examples/Compute/get/KubernetesCompute.json
*/
/**
* Sample code: Get a Kubernetes Compute.
@@ -1419,7 +1649,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-02-01-preview/examples/Compute/get/ComputeInstance.json
*/
/**
* Sample code: Get an ComputeInstance.
@@ -1433,7 +1663,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-02-01-preview/examples/Compute/get/AmlCompute.json
*/
/**
* Sample code: Get a AML Compute.
@@ -1454,7 +1684,7 @@ public final class ComputeGetSamples {
/** 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-02-01-preview/examples/Compute/list.json
*/
/**
* Sample code: Get Computes.
@@ -1473,7 +1703,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-02-01-preview/examples/Compute/listKeys.json
*/
/**
* Sample code: List AKS Compute Keys.
@@ -1494,7 +1724,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-02-01-preview/examples/Compute/listNodes.json
*/
/**
* Sample code: Get compute nodes information for a compute.
@@ -1514,7 +1744,7 @@ public final class ComputeListNodesSamples {
/** 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-02-01-preview/examples/Compute/restart.json
*/
/**
* Sample code: Restart ComputeInstance Compute.
@@ -1534,7 +1764,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-02-01-preview/examples/Compute/start.json
*/
/**
* Sample code: Start ComputeInstance Compute.
@@ -1554,7 +1784,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-02-01-preview/examples/Compute/stop.json
*/
/**
* Sample code: Stop ComputeInstance Compute.
@@ -1579,7 +1809,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-02-01-preview/examples/Compute/patch.json
*/
/**
* Sample code: Update a AmlCompute Compute.
@@ -1607,9 +1837,123 @@ public final class ComputeUpdateSamples {
}
```
+### Compute_UpdateCustomServices
+
+```java
+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 Compute UpdateCustomServices. */
+public final class ComputeUpdateCustomServicesSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-02-01-preview/examples/Compute/updateCustomServices.json
+ */
+ /**
+ * Sample code: Update Custom Services.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void updateCustomServices(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .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);
+ }
+
+ @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;
+ }
+}
+```
+
+### Compute_UpdateIdleShutdownSetting
+
+```java
+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/preview/2023-02-01-preview/examples/Compute/updateIdleShutdownSetting.json
+ */
+ /**
+ * Sample code: Update idle shutdown setting of ComputeInstance.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void updateIdleShutdownSettingOfComputeInstance(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .computes()
+ .updateIdleShutdownSettingWithResponse(
+ "testrg123",
+ "workspaces123",
+ "compute123",
+ new IdleShutdownSetting().withIdleTimeBeforeShutdown("PT120M"),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### DataContainers_CreateOrUpdate
```java
+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;
@@ -1618,26 +1962,29 @@ 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/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-02-01-preview/examples/Workspace/DataContainer/createOrUpdate.json
*/
/**
- * Sample code: CreateOrUpdate Data Container.
+ * Sample code: CreateOrUpdate Workspace Data Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateDataContainer(
+ public static void createOrUpdateWorkspaceDataContainer(
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();
+ .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);
}
@SuppressWarnings("unchecked")
@@ -1659,14 +2006,15 @@ public final class DataContainersCreateOrUpdateSamples {
/** Samples for DataContainers Delete. */
public final class DataContainersDeleteSamples {
/*
- * 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-02-01-preview/examples/Workspace/DataContainer/delete.json
*/
/**
- * Sample code: Delete Data Container.
+ * Sample code: Delete Workspace Data Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteDataContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void deleteWorkspaceDataContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.dataContainers()
.deleteWithResponse("testrg123", "workspace123", "datacontainer123", com.azure.core.util.Context.NONE);
@@ -1680,14 +2028,15 @@ public final class DataContainersDeleteSamples {
/** Samples for DataContainers Get. */
public final class DataContainersGetSamples {
/*
- * 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-02-01-preview/examples/Workspace/DataContainer/get.json
*/
/**
- * Sample code: Get Data Container.
+ * Sample code: Get Workspace Data Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getDataContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void getWorkspaceDataContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.dataContainers()
.getWithResponse("testrg123", "workspace123", "datacontainer123", com.azure.core.util.Context.NONE);
@@ -1701,14 +2050,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-02-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 +2067,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,27 +2075,31 @@ 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-02-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);
}
@SuppressWarnings("unchecked")
@@ -1766,14 +2121,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-02-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 +2143,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-02-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 +2165,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-02-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(
@@ -1850,7 +2208,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-02-01-preview/examples/Datastore/AzureDataLakeGen1WServicePrincipal/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate datastore (Azure Data Lake Gen1 w/ ServicePrincipal).
@@ -1881,7 +2239,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-02-01-preview/examples/Datastore/AzureDataLakeGen2WServicePrincipal/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate datastore (Azure Data Lake Gen2 w/ Service Principal).
@@ -1915,7 +2273,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-02-01-preview/examples/Datastore/AzureBlobWAccountKey/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate datastore (AzureBlob w/ AccountKey).
@@ -1944,7 +2302,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-02-01-preview/examples/Datastore/AzureFileWAccountKey/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate datastore (Azure File store w/ AccountKey).
@@ -1991,7 +2349,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-02-01-preview/examples/Datastore/delete.json
*/
/**
* Sample code: Delete datastore.
@@ -2012,7 +2370,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-02-01-preview/examples/Datastore/get.json
*/
/**
* Sample code: Get datastore.
@@ -2033,7 +2391,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-02-01-preview/examples/Datastore/list.json
*/
/**
* Sample code: List datastores.
@@ -2064,7 +2422,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-02-01-preview/examples/Datastore/listSecrets.json
*/
/**
* Sample code: Get datastore secrets.
@@ -2082,6 +2440,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,27 +2448,42 @@ 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-02-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);
}
@SuppressWarnings("unchecked")
@@ -2131,14 +2505,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-02-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 +2527,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-02-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 +2549,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-02-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 +2568,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,38 +2579,42 @@ 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-02-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);
}
@SuppressWarnings("unchecked")
@@ -2257,14 +2636,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-02-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 +2658,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-02-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,14 +2680,14 @@ 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-02-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()
@@ -2316,299 +2696,2966 @@ public final class EnvironmentVersionsListSamples {
}
```
-### Jobs_Cancel
+### FeaturesetContainers_CreateOrUpdate
```java
-/** Samples for Jobs Cancel. */
-public final class JobsCancelSamples {
- /*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/cancel.json
- */
+import com.azure.resourcemanager.machinelearning.models.FeaturesetContainerProperties;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for FeaturesetContainers CreateOrUpdate. */
+public final class FeaturesetContainersCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-02-01-preview/examples/Workspace/FeaturesetContainer/createOrUpdate.json
+ */
/**
- * Sample code: Cancel Job.
+ * Sample code: CreateOrUpdate Workspace Featureset Container.
*
* @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 createOrUpdateWorkspaceFeaturesetContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .featuresetContainers()
+ .define("string")
+ .withExistingWorkspace("test-rg", "my-aml-workspace")
+ .withProperties(
+ new FeaturesetContainerProperties()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsArchived(false))
+ .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;
}
}
```
-### Jobs_CreateOrUpdate
+### FeaturesetContainers_Delete
```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;
+/** Samples for FeaturesetContainers Delete. */
+public final class FeaturesetContainersDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-02-01-preview/examples/Workspace/FeaturesetContainer/delete.json
+ */
+ /**
+ * Sample code: Delete Workspace Featureset Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteWorkspaceFeaturesetContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .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/preview/2023-02-01-preview/examples/Workspace/FeaturesetContainer/getEntity.json
+ */
+ /**
+ * Sample code: GetEntity Workspace Featureset Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getEntityWorkspaceFeaturesetContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .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-02-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,
+ 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-02-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")
+ .withDisplayName("string")
+ .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);
+ }
+
+ @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 Jobs CreateOrUpdate. */
-public final class JobsCreateOrUpdateSamples {
+/** Samples for FeaturesetVersions CreateOrUpdate. */
+public final class FeaturesetVersionsCreateOrUpdateSamples {
/*
- * 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-02-01-preview/examples/Workspace/FeaturesetVersion/createOrUpdate.json
*/
/**
- * Sample code: CreateOrUpdate AutoML Job.
+ * Sample code: CreateOrUpdate Workspace Featureset Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateAutoMLJob(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 AutoMLJob()
+ new FeaturesetVersionProperties()
.withDescription("string")
.withProperties(mapOf("string", "string"))
.withTags(mapOf("string", "string"))
- .withComputeId("string")
- .withDisplayName("string")
- .withExperimentName("string")
- .withIdentity(new AmlToken())
+ .withIsAnonymous(false)
.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))))
+ .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();
}
+ @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_Delete
+
+```java
+/** Samples for FeaturesetVersions Delete. */
+public final class FeaturesetVersionsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-02-01-preview/examples/Workspace/FeaturesetVersion/delete.json
+ */
+ /**
+ * Sample code: Delete Workspace Featureset Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ 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);
+ }
+}
+```
+
+### FeaturesetVersions_Get
+
+```java
+/** Samples for FeaturesetVersions Get. */
+public final class FeaturesetVersionsGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-02-01-preview/examples/Workspace/FeaturesetVersion/get.json
+ */
+ /**
+ * Sample code: Get Workspace Featureset Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ 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_GetFeature
+
+```java
+import com.azure.resourcemanager.machinelearning.models.GetFeatureRequest;
+
+/** Samples for FeaturesetVersions GetFeature. */
+public final class FeaturesetVersionsGetFeatureSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-02-01-preview/examples/Workspace/FeaturesetVersion/getFeature.json
+ */
+ /**
+ * Sample code: GetFeature Workspace Featureset Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getFeatureWorkspaceFeaturesetVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .featuresetVersions()
+ .getFeatureWithResponse(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ "string",
+ new GetFeatureRequest().withFeatureName("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/preview/2023-02-01-preview/examples/Workspace/FeaturesetVersion/list.json
+ */
+ /**
+ * Sample code: List Workspace Featureset Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listWorkspaceFeaturesetVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .featuresetVersions()
+ .list(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ null,
+ "string",
+ ListViewType.ALL,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### FeaturesetVersions_ListFeatures
+
+```java
+/** Samples for FeaturesetVersions ListFeatures. */
+public final class FeaturesetVersionsListFeaturesSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-02-01-preview/examples/Workspace/FeaturesetVersion/listFeatures.json
+ */
+ /**
+ * Sample code: ListFeatures Workspace Featureset Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listFeaturesWorkspaceFeaturesetVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .featuresetVersions()
+ .listFeatures(
+ "test-rg", "my-aml-workspace", "string", "string", 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/preview/2023-02-01-preview/examples/Workspace/FeaturesetVersion/listMaterializationJobs.json
+ */
+ /**
+ * Sample code: ListMaterializationJobs Workspace Featureset Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ 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/preview/2023-02-01-preview/examples/Workspace/FeaturestoreEntityContainer/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Workspace Featurestore Entity Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ 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();
+ }
+
+ @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;
+ }
+}
+```
+
+### FeaturestoreEntityContainers_Delete
+
+```java
+/** Samples for FeaturestoreEntityContainers Delete. */
+public final class FeaturestoreEntityContainersDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-02-01-preview/examples/Workspace/FeaturestoreEntityContainer/delete.json
+ */
+ /**
+ * Sample code: Delete Workspace Featurestore Entity Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteWorkspaceFeaturestoreEntityContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .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-02-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-02-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, 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-02-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();
+ }
+
+ @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-02-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-02-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-02-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,
+ 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-02-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-02-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-02-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-02-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-02-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();
+ }
+
+ @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-02-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-02-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-02-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-02-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-02-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-02-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",
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-02-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,
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-02-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",
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-02-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",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### LabelingJobs_CreateOrUpdate
+
+```java
+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.LabelingJobProperties;
+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-02-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 LabelingJobProperties()
+ .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();
+ }
+
+ @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-02-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-02-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-02-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", true, true, 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-02-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-02-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("workspace-1234", "testworkspace", "testLabelingJob", 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-02-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("workspace-1234", "testworkspace", "testLabelingJob", 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-02-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);
+ }
+
+ @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-02-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-02-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-02-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-02-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);
+ }
+
+ @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-02-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-02-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-02-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,
+ 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-02-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.READ_ONLY_MOUNT)
+ .withMountPath("string"))
+ .withTags(mapOf("string", "string"))
+ .withTargetEnvironmentName("string")
+ .withTargetEnvironmentVersion("string"),
+ com.azure.core.util.Context.NONE);
+ }
+
+ @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-02-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-02-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();
+ }
+
+ @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-02-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-02-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-02-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-02-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-02-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-02-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-02-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-02-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-02-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();
+ }
+
+ @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-02-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();
+ }
+
+ @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-02-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-02-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-02-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-02-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-02-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-02-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-02-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();
+ }
+
+ @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-02-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.PrivateEndpointServiceConnectionStatus;
+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-02-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()
+ .withStatus(PrivateEndpointServiceConnectionStatus.APPROVED)
+ .withDescription("Auto-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-02-01-preview/examples/PrivateEndpointConnection/delete.json
+ */
+ /**
+ * Sample code: WorkspaceDeletePrivateEndpointConnection.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void workspaceDeletePrivateEndpointConnection(
+ 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-02-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-02-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-02-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().listWithResponse("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-02-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-02-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.ManagedServiceIdentity;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.machinelearning.models.RegistryProperties;
+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-02-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")
+ .withProperties(
+ new RegistryProperties()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withRegionDetails(
+ Arrays
+ .asList(
+ new RegistryRegionArmDetails()
+ .withAcrDetails(
+ Arrays
+ .asList(
+ new AcrDetails()
+ .withSystemCreatedAcrAccount(
+ new SystemCreatedAcrAccount()
+ .withAcrAccountSku("string")
+ .withArmResourceId(
+ new ArmResourceId().withResourceId("string")))))
+ .withLocation("string")
+ .withStorageAccountDetails(
+ Arrays
+ .asList(
+ new StorageAccountDetails()
+ .withSystemCreatedStorageAccount(
+ new SystemCreatedStorageAccount()
+ .withArmResourceId(
+ new ArmResourceId().withResourceId("string"))
+ .withStorageAccountHnsEnabled(false)
+ .withStorageAccountType("string")
+ .withAllowBlobPublicAccess(false)))))))
+ .withTags(mapOf())
+ .withIdentity(
+ new ManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.NONE)
+ .withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withKind("string")
+ .withSku(
+ new Sku()
+ .withName("string")
+ .withTier(SkuTier.BASIC)
+ .withSize("string")
+ .withFamily("string")
+ .withCapacity(1))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-02-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")
+ .withProperties(
+ new RegistryProperties()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "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"))))))))
+ .withTags(mapOf())
+ .withIdentity(
+ new ManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.NONE)
+ .withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withKind("string")
+ .withSku(
+ new Sku()
+ .withName("string")
+ .withTier(SkuTier.BASIC)
+ .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;
+ }
+}
+```
+
+### Registries_Delete
+
+```java
+/** Samples for Registries Delete. */
+public final class RegistriesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-02-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-02-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-02-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-02-01-preview/examples/Registries/listBySubscription.json
+ */
+ /**
+ * Sample code: List registries.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listRegistries(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.registries().list(null, 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-02-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", null, com.azure.core.util.Context.NONE);
+ }
+
/*
- * 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-02-01-preview/examples/Registries/list-SystemCreated.json
*/
/**
- * Sample code: CreateOrUpdate Sweep Job.
+ * Sample code: List registries with system created accounts.
*
* @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 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();
+ public static void listRegistriesWithSystemCreatedAccounts(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.registries().listByResourceGroup("test-rg", null, com.azure.core.util.Context.NONE);
}
+}
+```
+
+### Registries_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.PartialManagedServiceIdentity;
+import com.azure.resourcemanager.machinelearning.models.PartialSku;
+import com.azure.resourcemanager.machinelearning.models.Registry;
+import com.azure.resourcemanager.machinelearning.models.SkuTier;
+import java.io.IOException;
+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/stable/2022-10-01/examples/Job/PipelineJob/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-02-01-preview/examples/Registries/update-UserCreated.json
*/
/**
- * Sample code: CreateOrUpdate Pipeline Job.
+ * Sample code: Update Registry with user created accounts.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdatePipelineJob(
+ public static void updateRegistryWithUserCreatedAccounts(
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(
+ Registry resource =
+ manager
+ .registries()
+ .getByResourceGroupWithResponse("test-rg", "string", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withTags(mapOf())
+ .withIdentity(
+ new PartialManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.USER_ASSIGNED)
+ .withUserAssignedIdentities(
mapOf(
"string",
- new UriFileJobOutput()
- .withDescription("string")
- .withMode(OutputDeliveryMode.UPLOAD)
- .withUri("string")))
- .withSettings(
- SerializerFactory
- .createDefaultManagementSerializerAdapter()
- .deserialize("{}", Object.class, SerializerEncoding.JSON)))
- .create();
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize("{}", Object.class, SerializerEncoding.JSON))))
+ .withKind("string")
+ .withProperties(
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize("{}", Object.class, SerializerEncoding.JSON))
+ .withSku(
+ new PartialSku()
+ .withCapacity(1)
+ .withFamily("string")
+ .withName("string")
+ .withSize("string")
+ .withTier(SkuTier.PREMIUM))
+ .apply();
}
/*
- * 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-02-01-preview/examples/Registries/update-SystemCreated.json
*/
/**
- * Sample code: CreateOrUpdate Command Job.
+ * Sample code: Update Registry with system created accounts.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateCommandJob(
+ public static void updateRegistryWithSystemCreatedAccounts(
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"))
- .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(
+ Registry resource =
+ manager
+ .registries()
+ .getByResourceGroupWithResponse("test-rg", "string", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withTags(mapOf())
+ .withIdentity(
+ new PartialManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.USER_ASSIGNED)
+ .withUserAssignedIdentities(
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)))))
- .create();
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize("{}", Object.class, SerializerEncoding.JSON))))
+ .withKind("string")
+ .withProperties(
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize("{}", Object.class, SerializerEncoding.JSON))
+ .withSku(
+ new PartialSku()
+ .withCapacity(1)
+ .withFamily("string")
+ .withName("string")
+ .withSize("string")
+ .withTier(SkuTier.PREMIUM))
+ .apply();
}
@SuppressWarnings("unchecked")
@@ -2624,168 +5671,253 @@ public final class JobsCreateOrUpdateSamples {
}
```
-### Jobs_Delete
+### RegistryCodeContainers_CreateOrUpdate
```java
-/** Samples for Jobs Delete. */
-public final class JobsDeleteSamples {
+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/stable/2022-10-01/examples/Job/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-02-01-preview/examples/Registry/CodeContainer/createOrUpdate.json
*/
/**
- * Sample code: Delete Job.
+ * Sample code: CreateOrUpdate Registry Code Container.
*
* @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 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();
+ }
+
+ @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_Get
+### RegistryCodeContainers_Delete
```java
-/** Samples for Jobs Get. */
-public final class JobsGetSamples {
+/** Samples for RegistryCodeContainers Delete. */
+public final class RegistryCodeContainersDeleteSamples {
/*
- * 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-02-01-preview/examples/Registry/CodeContainer/delete.json
*/
/**
- * Sample code: Get Command Job.
+ * Sample code: Delete Registry Code Container.
*
* @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 deleteRegistryCodeContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryCodeContainers()
+ .delete("testrg123", "testregistry", "testContainer", com.azure.core.util.Context.NONE);
}
+}
+```
- /*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/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);
- }
+### RegistryCodeContainers_Get
+```java
+/** Samples for RegistryCodeContainers Get. */
+public final class RegistryCodeContainersGetSamples {
/*
- * 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-02-01-preview/examples/Registry/CodeContainer/get.json
*/
/**
- * Sample code: Get Sweep Job.
+ * Sample code: Get Registry Code Container.
*
* @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 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/stable/2022-10-01/examples/Job/PipelineJob/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-02-01-preview/examples/Registry/CodeContainer/list.json
*/
/**
- * Sample code: Get Pipeline Job.
+ * Sample code: List Registry Code 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 listRegistryCodeContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.registryCodeContainers().list("testrg123", "testregistry", null, com.azure.core.util.Context.NONE);
}
}
```
-### Jobs_List
+### RegistryCodeVersions_CreateOrUpdate
```java
-/** Samples for Jobs List. */
-public final class JobsListSamples {
+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/stable/2022-10-01/examples/Job/CommandJob/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-02-01-preview/examples/Registry/CodeVersion/createOrUpdate.json
*/
/**
- * Sample code: List Command Job.
+ * Sample code: CreateOrUpdate Registry Code Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listCommandJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void createOrUpdateRegistryCodeVersion(
+ 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()
+ .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();
+ }
+
+ @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-02-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-02-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-02-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-02-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();
}
@@ -2802,100 +5934,111 @@ 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-02-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-02-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-02-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-02-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();
}
@@ -2912,230 +6055,103 @@ 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-02-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-02-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-02-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, 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))
+import java.util.Map;
+
+/** Samples for RegistryDataContainers CreateOrUpdate. */
+public final class RegistryDataContainersCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-02-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();
}
@@ -3152,254 +6168,229 @@ 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-02-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-02-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-02-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_CreateOrUpdate
```java
-import com.azure.resourcemanager.machinelearning.models.ContainerType;
-import com.azure.resourcemanager.machinelearning.models.DeploymentLogsRequest;
+import com.azure.resourcemanager.machinelearning.models.MLTableData;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
-/** Samples for OnlineDeployments GetLogs. */
-public final class OnlineDeploymentsGetLogsSamples {
+/** Samples for RegistryDataVersions CreateOrUpdate. */
+public final class RegistryDataVersionsCreateOrUpdateSamples {
/*
- * 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-02-01-preview/examples/Registry/DataVersionBase/createOrUpdate.json
*/
/**
- * Sample code: Get Online Deployment Logs.
+ * Sample code: CreateOrUpdate Registry Data Version Base.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getOnlineDeploymentLogs(
+ public static void createOrUpdateRegistryDataVersionBase(
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);
+ .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();
+ }
+
+ @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_List
+### RegistryDataVersions_Delete
```java
-/** Samples for OnlineDeployments List. */
-public final class OnlineDeploymentsListSamples {
+/** Samples for RegistryDataVersions Delete. */
+public final class RegistryDataVersionsDeleteSamples {
/*
- * 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-02-01-preview/examples/Registry/DataVersionBase/delete.json
*/
/**
- * Sample code: List Online Deployments.
+ * Sample code: Delete Registry Data Version Base.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listOnlineDeployments(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void deleteRegistryDataVersionBase(
+ 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()
+ .delete("test-rg", "registryName", "string", "string", com.azure.core.util.Context.NONE);
}
}
```
-### OnlineDeployments_ListSkus
+### RegistryDataVersions_Get
```java
-/** Samples for OnlineDeployments ListSkus. */
-public final class OnlineDeploymentsListSkusSamples {
+/** Samples for RegistryDataVersions Get. */
+public final class RegistryDataVersionsGetSamples {
/*
- * 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-02-01-preview/examples/Registry/DataVersionBase/get.json
*/
/**
- * Sample code: List Managed Online Deployment Skus.
+ * Sample code: Get Registry Data Version Base.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listManagedOnlineDeploymentSkus(
+ 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);
}
+}
+```
+
+### RegistryDataVersions_List
+```java
+import com.azure.resourcemanager.machinelearning.models.ListViewType;
+
+/** Samples for RegistryDataVersions List. */
+public final class RegistryDataVersionsListSamples {
/*
- * 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-02-01-preview/examples/Registry/DataVersionBase/registryList.json
*/
/**
- * Sample code: List Kubernetes Online Deployment Skus.
+ * Sample code: RegistryList Registry Data Version Base.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listKubernetesOnlineDeploymentSkus(
+ public static void registryListRegistryDataVersionBase(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .onlineDeployments()
- .listSkus(
+ .registryDataVersions()
+ .list(
"test-rg",
- "my-aml-workspace",
- "testEndpointName",
- "testDeploymentName",
+ "registryName",
+ "string",
+ "string",
1,
null,
+ "string",
+ ListViewType.ARCHIVED_ONLY,
com.azure.core.util.Context.NONE);
}
}
```
-### OnlineDeployments_Update
+### RegistryEnvironmentContainers_CreateOrUpdate
```java
-import com.azure.resourcemanager.machinelearning.models.OnlineDeployment;
-import com.azure.resourcemanager.machinelearning.models.PartialSku;
-import com.azure.resourcemanager.machinelearning.models.SkuTier;
+import com.azure.resourcemanager.machinelearning.models.EnvironmentContainerProperties;
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/stable/2022-10-01/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();
- }
-
+/** 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-02-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();
}
@SuppressWarnings("unchecked")
@@ -3415,264 +6406,226 @@ 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-02-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-02-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-02-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-02-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();
+ }
+
+ @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-02-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-02-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-02-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(
- "test-rg",
- "my-aml-workspace",
- "testEndpointName",
- new RegenerateEndpointKeysRequest().withKeyType(KeyType.PRIMARY).withKeyValue("fakeTokenPlaceholder"),
- com.azure.core.util.Context.NONE);
+ .registryEnvironmentVersions()
+ .list("test-rg", "my-aml-regsitry", "string", "string", 1, 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-02-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();
}
@SuppressWarnings("unchecked")
@@ -3688,201 +6641,194 @@ 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-02-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 PrivateEndpointConnections CreateOrUpdate. */
-public final class PrivateEndpointConnectionsCreateOrUpdateSamples {
+/** Samples for RegistryModelContainers Get. */
+public final class RegistryModelContainersGetSamples {
/*
- * 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-02-01-preview/examples/Registry/ModelContainer/get.json
*/
/**
- * Sample code: WorkspacePutPrivateEndpointConnection.
+ * Sample code: Get Registry Model Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void workspacePutPrivateEndpointConnection(
+ public static void getRegistryModelContainer(
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()
+ .getWithResponse("testrg123", "registry123", "testContainer", com.azure.core.util.Context.NONE);
}
}
```
-### PrivateEndpointConnections_Delete
+### RegistryModelContainers_List
```java
-/** Samples for PrivateEndpointConnections Delete. */
-public final class PrivateEndpointConnectionsDeleteSamples {
+/** Samples for RegistryModelContainers List. */
+public final class RegistryModelContainersListSamples {
/*
- * 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-02-01-preview/examples/Registry/ModelContainer/list.json
*/
/**
- * Sample code: WorkspaceDeletePrivateEndpointConnection.
+ * Sample code: List Registry Model Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void workspaceDeletePrivateEndpointConnection(
+ public static void listRegistryModelContainer(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .privateEndpointConnections()
- .deleteWithResponse(
- "rg-1234", "testworkspace", "{privateEndpointConnectionName}", com.azure.core.util.Context.NONE);
+ .registryModelContainers()
+ .list("testrg123", "registry123", null, null, 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-02-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();
}
-}
-```
-
-### PrivateEndpointConnections_List
-```java
-/** Samples for PrivateEndpointConnections List. */
-public final class PrivateEndpointConnectionsListSamples {
- /*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/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);
+ @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;
}
}
```
-### PrivateLinkResources_List
+### RegistryModelVersions_Delete
```java
-/** Samples for PrivateLinkResources List. */
-public final class PrivateLinkResourcesListSamples {
+/** Samples for RegistryModelVersions Delete. */
+public final class RegistryModelVersionsDeleteSamples {
/*
- * 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-02-01-preview/examples/Registry/ModelVersion/delete.json
*/
/**
- * Sample code: WorkspaceListPrivateLinkResources.
+ * Sample code: Delete Registry Model Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void workspaceListPrivateLinkResources(
+ public static void deleteRegistryModelVersion(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.privateLinkResources().listWithResponse("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);
}
}
```
-### Quotas_List
+### RegistryModelVersions_Get
```java
-/** Samples for Quotas List. */
-public final class QuotasListSamples {
+/** Samples for RegistryModelVersions Get. */
+public final class RegistryModelVersionsGetSamples {
/*
- * 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-02-01-preview/examples/Registry/ModelVersion/get.json
*/
/**
- * Sample code: List workspace quotas by VMFamily.
+ * Sample code: Get Registry Model Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listWorkspaceQuotasByVMFamily(
+ public static void getRegistryModelVersion(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.quotas().list("eastus", com.azure.core.util.Context.NONE);
+ manager
+ .registryModelVersions()
+ .getWithResponse("test-rg", "my-aml-registry", "string", "string", com.azure.core.util.Context.NONE);
}
}
```
-### Quotas_Update
+### RegistryModelVersions_List
```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 {
+/** Samples for RegistryModelVersions List. */
+public final class RegistryModelVersionsListSamples {
/*
- * 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-02-01-preview/examples/Registry/ModelVersion/list.json
*/
/**
- * Sample code: update quotas.
+ * Sample code: List Registry Model Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void updateQuotas(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void listRegistryModelVersion(
+ 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))),
+ .registryModelVersions()
+ .list(
+ "test-rg",
+ "my-aml-registry",
+ "string",
+ null,
+ "string",
+ 1,
+ "string",
+ "string",
+ "string",
+ "string",
+ null,
com.azure.core.util.Context.NONE);
}
}
@@ -3903,7 +6849,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-02-01-preview/examples/Schedule/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Schedule.
@@ -3960,7 +6906,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-02-01-preview/examples/Schedule/delete.json
*/
/**
* Sample code: Delete Schedule.
@@ -3979,7 +6925,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-02-01-preview/examples/Schedule/get.json
*/
/**
* Sample code: Get Schedule.
@@ -3998,7 +6944,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-02-01-preview/examples/Schedule/list.json
*/
/**
* Sample code: List Schedules.
@@ -4017,7 +6963,7 @@ public final class SchedulesListSamples {
/** 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-02-01-preview/examples/Usage/list.json
*/
/**
* Sample code: List Usages.
@@ -4036,7 +6982,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-02-01-preview/examples/VirtualMachineSize/list.json
*/
/**
* Sample code: List VM Sizes.
@@ -4058,7 +7004,7 @@ import com.azure.resourcemanager.machinelearning.models.NoneAuthTypeWorkspaceCon
/** 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-02-01-preview/examples/WorkspaceConnection/create.json
*/
/**
* Sample code: CreateWorkspaceConnection.
@@ -4086,7 +7032,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-02-01-preview/examples/WorkspaceConnection/delete.json
*/
/**
* Sample code: DeleteWorkspaceConnection.
@@ -4108,7 +7054,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-02-01-preview/examples/WorkspaceConnection/get.json
*/
/**
* Sample code: GetWorkspaceConnection.
@@ -4130,7 +7076,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-02-01-preview/examples/WorkspaceConnection/list.json
*/
/**
* Sample code: ListWorkspaceConnections.
@@ -4157,7 +7103,7 @@ public final class WorkspaceConnectionsListSamples {
/** 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-02-01-preview/examples/WorkspaceFeature/list.json
*/
/**
* Sample code: List Workspace features.
@@ -4189,7 +7135,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-02-01-preview/examples/Workspace/create.json
*/
/**
* Sample code: Create Workspace.
@@ -4264,7 +7210,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-02-01-preview/examples/Workspace/delete.json
*/
/**
* Sample code: Delete Workspace.
@@ -4288,7 +7234,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-02-01-preview/examples/Workspace/diagnose.json
*/
/**
* Sample code: Diagnose Workspace.
@@ -4335,7 +7281,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-02-01-preview/examples/Workspace/get.json
*/
/**
* Sample code: Get Workspace.
@@ -4356,7 +7302,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-02-01-preview/examples/Workspace/listBySubscription.json
*/
/**
* Sample code: Get Workspaces by subscription.
@@ -4376,7 +7322,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-02-01-preview/examples/Workspace/listByResourceGroup.json
*/
/**
* Sample code: Get Workspaces by Resource Group.
@@ -4396,7 +7342,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-02-01-preview/examples/Workspace/listKeys.json
*/
/**
* Sample code: List Workspace Keys.
@@ -4415,7 +7361,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-02-01-preview/examples/Workspace/listNotebookAccessToken.json
*/
/**
* Sample code: List Workspace Keys.
@@ -4436,7 +7382,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-02-01-preview/examples/Notebook/listKeys.json
*/
/**
* Sample code: List Workspace Keys.
@@ -4457,7 +7403,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-02-01-preview/examples/ExternalFQDN/get.json
*/
/**
* Sample code: ListOutboundNetworkDependenciesEndpoints.
@@ -4480,7 +7426,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-02-01-preview/examples/Workspace/listStorageAccountKeys.json
*/
/**
* Sample code: List Workspace Keys.
@@ -4501,7 +7447,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-02-01-preview/examples/Notebook/prepare.json
*/
/**
* Sample code: Prepare Notebook.
@@ -4520,7 +7466,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-02-01-preview/examples/Workspace/resyncKeys.json
*/
/**
* Sample code: Resync Workspace Keys.
@@ -4542,7 +7488,7 @@ 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-02-01-preview/examples/Workspace/update.json
*/
/**
* Sample code: Update Workspace.
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/pom.xml b/sdk/machinelearning/azure-resourcemanager-machinelearning/pom.xml
index d977e62e8561..17ead10ed1fc 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-02.
https://github.com/Azure/azure-sdk-for-java
@@ -38,7 +43,8 @@
UTF-8
- true
+ 0
+ 0
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 a212fe3e6c4a..499122000245 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,12 @@
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.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.ModelContainersImpl;
import com.azure.resourcemanager.machinelearning.implementation.ModelVersionsImpl;
import com.azure.resourcemanager.machinelearning.implementation.OnlineDeploymentsImpl;
@@ -46,6 +51,17 @@
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.UsagesImpl;
import com.azure.resourcemanager.machinelearning.implementation.VirtualMachineSizesImpl;
@@ -64,7 +80,12 @@
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.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.ModelContainers;
import com.azure.resourcemanager.machinelearning.models.ModelVersions;
import com.azure.resourcemanager.machinelearning.models.OnlineDeployments;
@@ -73,6 +94,17 @@
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.Usages;
import com.azure.resourcemanager.machinelearning.models.VirtualMachineSizes;
@@ -109,6 +141,26 @@ public final class MachineLearningManager {
private WorkspaceConnections workspaceConnections;
+ private RegistryCodeContainers registryCodeContainers;
+
+ private RegistryCodeVersions registryCodeVersions;
+
+ 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;
private BatchDeployments batchDeployments;
@@ -131,8 +183,18 @@ public final class MachineLearningManager {
private EnvironmentVersions environmentVersions;
+ private FeaturesetContainers featuresetContainers;
+
+ private FeaturesetVersions featuresetVersions;
+
+ private FeaturestoreEntityContainers featurestoreEntityContainers;
+
+ private FeaturestoreEntityVersions featurestoreEntityVersions;
+
private Jobs jobs;
+ private LabelingJobs labelingJobs;
+
private ModelContainers modelContainers;
private ModelVersions modelVersions;
@@ -143,15 +205,17 @@ public final class MachineLearningManager {
private Schedules schedules;
+ private Registries registries;
+
private WorkspaceFeatures workspaceFeatures;
- private final AzureMachineLearningWorkspaces clientObject;
+ 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 +374,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(" (")
@@ -477,6 +541,133 @@ public WorkspaceConnections workspaceConnections() {
return workspaceConnections;
}
+ /**
+ * Gets the resource collection API of RegistryCodeContainers. It manages CodeContainer.
+ *
+ * @return Resource collection API of RegistryCodeContainers.
+ */
+ public RegistryCodeContainers registryCodeContainers() {
+ if (this.registryCodeContainers == null) {
+ this.registryCodeContainers =
+ new RegistryCodeContainersImpl(clientObject.getRegistryCodeContainers(), this);
+ }
+ return registryCodeContainers;
+ }
+
+ /**
+ * Gets the resource collection API of RegistryCodeVersions. It manages CodeVersion.
+ *
+ * @return Resource collection API of RegistryCodeVersions.
+ */
+ public RegistryCodeVersions registryCodeVersions() {
+ if (this.registryCodeVersions == null) {
+ this.registryCodeVersions = new RegistryCodeVersionsImpl(clientObject.getRegistryCodeVersions(), this);
+ }
+ return registryCodeVersions;
+ }
+
+ /**
+ * Gets the resource collection API of RegistryComponentContainers. It manages ComponentContainer.
+ *
+ * @return Resource collection API of RegistryComponentContainers.
+ */
+ public RegistryComponentContainers registryComponentContainers() {
+ if (this.registryComponentContainers == null) {
+ this.registryComponentContainers =
+ new RegistryComponentContainersImpl(clientObject.getRegistryComponentContainers(), this);
+ }
+ 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;
+ }
+
/**
* Gets the resource collection API of BatchEndpoints. It manages BatchEndpoint.
*
@@ -502,7 +693,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 +705,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 +717,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 +729,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 +741,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 +753,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 +777,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 +789,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 +800,56 @@ 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 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 +863,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 +887,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 +934,18 @@ public Schedules schedules() {
return schedules;
}
+ /**
+ * 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 +959,10 @@ public WorkspaceFeatures workspaceFeatures() {
}
/**
- * @return Wrapped service client AzureMachineLearningWorkspaces providing direct access to the underlying
+ * @return Wrapped service client AzureMachineLearningServices providing direct access to the underlying
* auto-generated API implementation, based on Azure REST API.
*/
- 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/AzureMachineLearningWorkspaces.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/AzureMachineLearningServices.java
similarity index 62%
rename from sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/AzureMachineLearningWorkspaces.java
rename to sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/AzureMachineLearningServices.java
index e8a40ef9b43c..b23e93e2b237 100644
--- 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/AzureMachineLearningServices.java
@@ -7,8 +7,8 @@
import com.azure.core.http.HttpPipeline;
import java.time.Duration;
-/** The interface for AzureMachineLearningWorkspaces class. */
-public interface AzureMachineLearningWorkspaces {
+/** The interface for AzureMachineLearningServices class. */
+public interface AzureMachineLearningServices {
/**
* Gets The ID of the target subscription.
*
@@ -107,6 +107,76 @@ public interface AzureMachineLearningWorkspaces {
*/
WorkspaceConnectionsClient getWorkspaceConnections();
+ /**
+ * 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.
*
@@ -184,6 +254,34 @@ public interface AzureMachineLearningWorkspaces {
*/
EnvironmentVersionsClient getEnvironmentVersions();
+ /**
+ * Gets the FeaturesetContainersClient object to access its operations.
+ *
+ * @return the FeaturesetContainersClient object.
+ */
+ FeaturesetContainersClient getFeaturesetContainers();
+
+ /**
+ * 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.
*
@@ -191,6 +289,13 @@ public interface AzureMachineLearningWorkspaces {
*/
JobsClient getJobs();
+ /**
+ * Gets the LabelingJobsClient object to access its operations.
+ *
+ * @return the LabelingJobsClient object.
+ */
+ LabelingJobsClient getLabelingJobs();
+
/**
* Gets the ModelContainersClient object to access its operations.
*
@@ -226,6 +331,13 @@ public interface AzureMachineLearningWorkspaces {
*/
SchedulesClient getSchedules();
+ /**
+ * Gets the RegistriesClient object to access its operations.
+ *
+ * @return the RegistriesClient object.
+ */
+ RegistriesClient getRegistries();
+
/**
* Gets the WorkspaceFeaturesClient object to access its operations.
*
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 5676a642b170..c231832b90dd 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
@@ -15,7 +15,10 @@
import com.azure.resourcemanager.machinelearning.fluent.models.ComputeSecretsInner;
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.UnderlyingResourceAction;
+import java.util.List;
/** An instance of this class provides access to all the operations defined in ComputesClient. */
public interface ComputesClient {
@@ -318,6 +321,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 +591,40 @@ 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);
}
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 000000000000..ef5c7d626475
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/FeaturesetContainersClient.java
@@ -0,0 +1,208 @@
+// 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 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,
+ 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 000000000000..6dd351b3346f
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/FeaturesetVersionsClient.java
@@ -0,0 +1,455 @@
+// 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.FeatureInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.FeaturesetJobInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.FeaturesetVersionBackfillResponseInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.FeaturesetVersionInner;
+import com.azure.resourcemanager.machinelearning.models.FeaturesetVersionBackfillRequest;
+import com.azure.resourcemanager.machinelearning.models.GetFeatureRequest;
+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 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,
+ 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 response payload for creating a backfill request for a given
+ * feature set version.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, FeaturesetVersionBackfillResponseInner>
+ 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 response payload for creating a backfill request for a given
+ * feature set version.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, FeaturesetVersionBackfillResponseInner>
+ 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 response payload for creating a backfill request for a given feature set version.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FeaturesetVersionBackfillResponseInner 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 response payload for creating a backfill request for a given feature set version.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FeaturesetVersionBackfillResponseInner backfill(
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ String version,
+ FeaturesetVersionBackfillRequest body,
+ 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 name Feature set name. This is case-sensitive.
+ * @param version Feature set version identifier. This is case-sensitive.
+ * @param body Feature Name request. 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 getFeatureWithResponse(
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ String version,
+ GetFeatureRequest body,
+ 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 name Feature set name. This is case-sensitive.
+ * @param version Feature set version identifier. This is case-sensitive.
+ * @param body Feature Name request. 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 getFeature(
+ String resourceGroupName, String workspaceName, String name, String version, GetFeatureRequest body);
+
+ /**
+ * List Features.
+ *
+ * @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 version 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 listFeatures(
+ String resourceGroupName, String workspaceName, String name, String version);
+
+ /**
+ * List Features.
+ *
+ * @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 version 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 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 listFeatures(
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ String version,
+ String skip,
+ String tags,
+ 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 000000000000..d9782a614b2b
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/FeaturestoreEntityContainersClient.java
@@ -0,0 +1,218 @@
+// 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 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,
+ 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 000000000000..7b3d04720a07
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/FeaturestoreEntityVersionsClient.java
@@ -0,0 +1,240 @@
+// 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 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,
+ 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 c4660d91fa81..0a1afd876770 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
@@ -38,6 +38,9 @@ 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 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 +55,9 @@ PagedIterable list(
String jobType,
String tag,
ListViewType listViewType,
+ String assetName,
+ Boolean scheduled,
+ String scheduleId,
Context context);
/**
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 000000000000..ade623c67706
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/LabelingJobsClient.java
@@ -0,0 +1,328 @@
+// 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;
+
+/** 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 includeJobInstructions Boolean value to indicate whether to include JobInstructions in response.
+ * @param includeLabelCategories Boolean value to indicate Whether to include LabelCategories in response.
+ * @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,
+ Boolean includeJobInstructions,
+ Boolean includeLabelCategories,
+ 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).
+ *
+ * @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).
+ *
+ * @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).
+ *
+ * @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).
+ *
+ * @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 the {@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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void 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 long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> 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 long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void 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/ModelVersionsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ModelVersionsClient.java
index 92582d819da1..3f9cfa103225 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 {
@@ -169,4 +173,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/OperationsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/OperationsClient.java
index cf8b8217b303..c216f9607b5f 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/OperationsClient.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/OperationsClient.java
@@ -13,7 +13,7 @@
/** An instance of this class provides access to all the operations defined in OperationsClient. */
public interface OperationsClient {
/**
- * Lists all of the available Azure Machine Learning Workspaces REST API operations.
+ * Lists all of the available Azure Machine Learning Services REST API operations.
*
* @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.
@@ -24,7 +24,7 @@ public interface OperationsClient {
PagedIterable list();
/**
- * Lists all of the available Azure Machine Learning Workspaces REST API operations.
+ * Lists all of the available Azure Machine Learning Services REST API operations.
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
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 000000000000..64b2448e8e50
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistriesClient.java
@@ -0,0 +1,268 @@
+// 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 skip Continuation token for pagination.
+ * @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(String skip, 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 skip Continuation token for pagination.
+ * @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, String skip, Context context);
+
+ /**
+ * Delete registry.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of 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 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 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 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 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 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 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> beginUpdate(
+ String resourceGroupName, String registryName, PartialRegistryPartialTrackedResource body);
+
+ /**
+ * Update tags.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of 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> beginUpdate(
+ 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 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);
+
+ /**
+ * Update tags.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of 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 update(
+ String resourceGroupName, String registryName, PartialRegistryPartialTrackedResource body, Context context);
+
+ /**
+ * Create or update registry.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of 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 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 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 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);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryCodeContainersClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryCodeContainersClient.java
new file mode 100644
index 000000000000..42c8a28385e4
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryCodeContainersClient.java
@@ -0,0 +1,198 @@
+// 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.CodeContainerInner;
+
+/** An instance of this class provides access to all the operations defined in RegistryCodeContainersClient. */
+public interface RegistryCodeContainersClient {
+ /**
+ * List containers.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning 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 a paginated list of CodeContainer entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName);
+
+ /**
+ * List containers.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param skip Continuation token for pagination.
+ * @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 CodeContainer entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName, String skip, Context context);
+
+ /**
+ * Delete container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param codeName Container 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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String registryName, String codeName);
+
+ /**
+ * Delete container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param codeName Container 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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String codeName, Context context);
+
+ /**
+ * Delete container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param codeName Container 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String codeName);
+
+ /**
+ * Delete container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param codeName Container 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String codeName, Context context);
+
+ /**
+ * Get container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param codeName Container 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 container along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String registryName, String codeName, Context context);
+
+ /**
+ * Get container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param codeName Container 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 container.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CodeContainerInner get(String resourceGroupName, String registryName, String codeName);
+
+ /**
+ * Create or update container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param codeName Container name.
+ * @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, CodeContainerInner> beginCreateOrUpdate(
+ String resourceGroupName, String registryName, String codeName, CodeContainerInner body);
+
+ /**
+ * Create or update container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param codeName Container name.
+ * @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, CodeContainerInner> beginCreateOrUpdate(
+ String resourceGroupName, String registryName, String codeName, CodeContainerInner body, Context context);
+
+ /**
+ * Create or update container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param codeName Container name.
+ * @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)
+ CodeContainerInner createOrUpdate(
+ String resourceGroupName, String registryName, String codeName, CodeContainerInner body);
+
+ /**
+ * Create or update container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param codeName Container name.
+ * @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)
+ CodeContainerInner createOrUpdate(
+ String resourceGroupName, String registryName, String codeName, CodeContainerInner body, Context context);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryCodeVersionsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryCodeVersionsClient.java
new file mode 100644
index 000000000000..89574be7fc48
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryCodeVersionsClient.java
@@ -0,0 +1,230 @@
+// 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.CodeVersionInner;
+
+/** An instance of this class provides access to all the operations defined in RegistryCodeVersionsClient. */
+public interface RegistryCodeVersionsClient {
+ /**
+ * List versions.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param codeName Container 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 a paginated list of CodeVersion entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName, String codeName);
+
+ /**
+ * List versions.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param codeName Container name.
+ * @param orderBy Ordering of list.
+ * @param top Maximum number of records to return.
+ * @param skip Continuation token for pagination.
+ * @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 CodeVersion entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName,
+ String registryName,
+ String codeName,
+ String orderBy,
+ Integer top,
+ String skip,
+ Context context);
+
+ /**
+ * Delete version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param codeName Container name.
+ * @param version Version identifier.
+ * @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, String codeName, String version);
+
+ /**
+ * Delete version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param codeName Container name.
+ * @param version Version identifier.
+ * @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, String codeName, String version, Context context);
+
+ /**
+ * Delete version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param codeName Container name.
+ * @param version Version identifier.
+ * @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, String codeName, String version);
+
+ /**
+ * Delete version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param codeName Container name.
+ * @param version Version identifier.
+ * @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, String codeName, String version, Context context);
+
+ /**
+ * Get version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param codeName Container name.
+ * @param version Version identifier.
+ * @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 registryName, String codeName, String version, Context context);
+
+ /**
+ * Get version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param codeName Container name.
+ * @param version Version identifier.
+ * @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)
+ CodeVersionInner get(String resourceGroupName, String registryName, String codeName, String version);
+
+ /**
+ * Create or update version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param codeName Container name.
+ * @param version Version identifier.
+ * @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, CodeVersionInner> beginCreateOrUpdate(
+ String resourceGroupName, String registryName, String codeName, String version, CodeVersionInner body);
+
+ /**
+ * Create or update version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param codeName Container name.
+ * @param version Version identifier.
+ * @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, CodeVersionInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String registryName,
+ String codeName,
+ String version,
+ CodeVersionInner body,
+ Context context);
+
+ /**
+ * Create or update version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param codeName Container name.
+ * @param version Version identifier.
+ * @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)
+ CodeVersionInner createOrUpdate(
+ String resourceGroupName, String registryName, String codeName, String version, CodeVersionInner body);
+
+ /**
+ * Create or update version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param codeName Container name.
+ * @param version Version identifier.
+ * @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)
+ CodeVersionInner createOrUpdate(
+ String resourceGroupName,
+ String registryName,
+ String codeName,
+ String version,
+ CodeVersionInner body,
+ Context context);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryComponentContainersClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryComponentContainersClient.java
new file mode 100644
index 000000000000..3197fdd9b318
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryComponentContainersClient.java
@@ -0,0 +1,207 @@
+// 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.ComponentContainerInner;
+
+/** An instance of this class provides access to all the operations defined in RegistryComponentContainersClient. */
+public interface RegistryComponentContainersClient {
+ /**
+ * List containers.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning 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 a paginated list of ComponentContainer entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName);
+
+ /**
+ * List containers.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param skip Continuation token for pagination.
+ * @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 ComponentContainer entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName, String registryName, String skip, Context context);
+
+ /**
+ * Delete container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param componentName Container 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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String registryName, String componentName);
+
+ /**
+ * Delete container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param componentName Container 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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String componentName, Context context);
+
+ /**
+ * Delete container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param componentName Container 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String componentName);
+
+ /**
+ * Delete container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param componentName Container 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String componentName, Context context);
+
+ /**
+ * Get container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param componentName Container 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 container along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String registryName, String componentName, Context context);
+
+ /**
+ * Get container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param componentName Container 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 container.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ComponentContainerInner get(String resourceGroupName, String registryName, String componentName);
+
+ /**
+ * Create or update container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param componentName Container name.
+ * @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, ComponentContainerInner> beginCreateOrUpdate(
+ String resourceGroupName, String registryName, String componentName, ComponentContainerInner body);
+
+ /**
+ * Create or update container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param componentName Container name.
+ * @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, ComponentContainerInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String registryName,
+ String componentName,
+ ComponentContainerInner body,
+ Context context);
+
+ /**
+ * Create or update container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param componentName Container name.
+ * @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)
+ ComponentContainerInner createOrUpdate(
+ String resourceGroupName, String registryName, String componentName, ComponentContainerInner body);
+
+ /**
+ * Create or update container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param componentName Container name.
+ * @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)
+ ComponentContainerInner createOrUpdate(
+ String resourceGroupName,
+ String registryName,
+ String componentName,
+ ComponentContainerInner body,
+ Context context);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryComponentVersionsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryComponentVersionsClient.java
new file mode 100644
index 000000000000..321e73f57f65
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryComponentVersionsClient.java
@@ -0,0 +1,238 @@
+// 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.ComponentVersionInner;
+
+/** An instance of this class provides access to all the operations defined in RegistryComponentVersionsClient. */
+public interface RegistryComponentVersionsClient {
+ /**
+ * List versions.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param componentName Container 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 a paginated list of ComponentVersion entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName, String componentName);
+
+ /**
+ * List versions.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param componentName Container name.
+ * @param orderBy Ordering of list.
+ * @param top Maximum number of records to return.
+ * @param skip Continuation token for pagination.
+ * @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 ComponentVersion entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName,
+ String registryName,
+ String componentName,
+ String orderBy,
+ Integer top,
+ String skip,
+ Context context);
+
+ /**
+ * Delete version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param componentName Container name.
+ * @param version Version identifier.
+ * @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, String componentName, String version);
+
+ /**
+ * Delete version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param componentName Container name.
+ * @param version Version identifier.
+ * @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, String componentName, String version, Context context);
+
+ /**
+ * Delete version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param componentName Container name.
+ * @param version Version identifier.
+ * @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, String componentName, String version);
+
+ /**
+ * Delete version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param componentName Container name.
+ * @param version Version identifier.
+ * @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, String componentName, String version, Context context);
+
+ /**
+ * Get version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param componentName Container name.
+ * @param version Version identifier.
+ * @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 registryName, String componentName, String version, Context context);
+
+ /**
+ * Get version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param componentName Container name.
+ * @param version Version identifier.
+ * @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)
+ ComponentVersionInner get(String resourceGroupName, String registryName, String componentName, String version);
+
+ /**
+ * Create or update version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param componentName Container name.
+ * @param version Version identifier.
+ * @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, ComponentVersionInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String registryName,
+ String componentName,
+ String version,
+ ComponentVersionInner body);
+
+ /**
+ * Create or update version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param componentName Container name.
+ * @param version Version identifier.
+ * @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, ComponentVersionInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String registryName,
+ String componentName,
+ String version,
+ ComponentVersionInner body,
+ Context context);
+
+ /**
+ * Create or update version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param componentName Container name.
+ * @param version Version identifier.
+ * @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)
+ ComponentVersionInner createOrUpdate(
+ String resourceGroupName,
+ String registryName,
+ String componentName,
+ String version,
+ ComponentVersionInner body);
+
+ /**
+ * Create or update version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param componentName Container name.
+ * @param version Version identifier.
+ * @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)
+ ComponentVersionInner createOrUpdate(
+ String resourceGroupName,
+ String registryName,
+ String componentName,
+ String version,
+ ComponentVersionInner body,
+ Context context);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryDataContainersClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryDataContainersClient.java
new file mode 100644
index 000000000000..d552c5ff620b
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryDataContainersClient.java
@@ -0,0 +1,201 @@
+// 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.DataContainerInner;
+import com.azure.resourcemanager.machinelearning.models.ListViewType;
+
+/** An instance of this class provides access to all the operations defined in RegistryDataContainersClient. */
+public interface RegistryDataContainersClient {
+ /**
+ * List containers.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning 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 a paginated list of DataContainer entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName);
+
+ /**
+ * List containers.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param skip Continuation token for pagination.
+ * @param listViewType View type for including/excluding (for example) archived entities.
+ * @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 DataContainer entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName, String registryName, String skip, ListViewType listViewType, Context context);
+
+ /**
+ * Delete container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param name Container 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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String registryName, String name);
+
+ /**
+ * Delete container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param name Container 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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String name, Context context);
+
+ /**
+ * Delete container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param name Container 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String name);
+
+ /**
+ * Delete container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param name Container 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String name, Context context);
+
+ /**
+ * Get container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param name Container 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 container along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String registryName, String name, Context context);
+
+ /**
+ * Get container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param name Container 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 container.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DataContainerInner get(String resourceGroupName, String registryName, String name);
+
+ /**
+ * Create or update container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param name Container name.
+ * @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, DataContainerInner> beginCreateOrUpdate(
+ String resourceGroupName, String registryName, String name, DataContainerInner body);
+
+ /**
+ * Create or update container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param name Container name.
+ * @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, DataContainerInner> beginCreateOrUpdate(
+ String resourceGroupName, String registryName, String name, DataContainerInner body, Context context);
+
+ /**
+ * Create or update container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param name Container name.
+ * @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)
+ DataContainerInner createOrUpdate(
+ String resourceGroupName, String registryName, String name, DataContainerInner body);
+
+ /**
+ * Create or update container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param name Container name.
+ * @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)
+ DataContainerInner createOrUpdate(
+ String resourceGroupName, String registryName, String name, DataContainerInner body, Context context);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryDataVersionsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryDataVersionsClient.java
new file mode 100644
index 000000000000..7f992ca5eaaa
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryDataVersionsClient.java
@@ -0,0 +1,237 @@
+// 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.DataVersionBaseInner;
+import com.azure.resourcemanager.machinelearning.models.ListViewType;
+
+/** An instance of this class provides access to all the operations defined in RegistryDataVersionsClient. */
+public interface RegistryDataVersionsClient {
+ /**
+ * List data versions in the data container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param name Data container's 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 a paginated list of DataVersionBase entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName, String name);
+
+ /**
+ * List data versions in the data container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param name Data container's name.
+ * @param orderBy Please choose OrderBy value from ['createdtime', 'modifiedtime'].
+ * @param top Top count of results, top count cannot be greater than the page size. If topCount > page size,
+ * results with be default page size count will be returned.
+ * @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 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 DataVersionBase entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName,
+ String registryName,
+ String name,
+ String orderBy,
+ Integer top,
+ String skip,
+ String tags,
+ ListViewType listViewType,
+ Context context);
+
+ /**
+ * Delete version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param name Container name.
+ * @param version Version identifier.
+ * @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, String name, String version);
+
+ /**
+ * Delete version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param name Container name.
+ * @param version Version identifier.
+ * @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, String name, String version, Context context);
+
+ /**
+ * Delete version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param name Container name.
+ * @param version Version identifier.
+ * @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, String name, String version);
+
+ /**
+ * Delete version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param name Container name.
+ * @param version Version identifier.
+ * @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, String name, String version, Context context);
+
+ /**
+ * Get version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param name Container name.
+ * @param version Version identifier.
+ * @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 registryName, String name, String version, Context context);
+
+ /**
+ * Get version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param name Container name.
+ * @param version Version identifier.
+ * @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)
+ DataVersionBaseInner get(String resourceGroupName, String registryName, String name, String version);
+
+ /**
+ * Create or update version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param name Container name.
+ * @param version Version identifier.
+ * @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, DataVersionBaseInner> beginCreateOrUpdate(
+ String resourceGroupName, String registryName, String name, String version, DataVersionBaseInner body);
+
+ /**
+ * Create or update version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param name Container name.
+ * @param version Version identifier.
+ * @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, DataVersionBaseInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String registryName,
+ String name,
+ String version,
+ DataVersionBaseInner body,
+ Context context);
+
+ /**
+ * Create or update version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param name Container name.
+ * @param version Version identifier.
+ * @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)
+ DataVersionBaseInner createOrUpdate(
+ String resourceGroupName, String registryName, String name, String version, DataVersionBaseInner body);
+
+ /**
+ * Create or update version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param name Container name.
+ * @param version Version identifier.
+ * @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)
+ DataVersionBaseInner createOrUpdate(
+ String resourceGroupName,
+ String registryName,
+ String name,
+ String version,
+ DataVersionBaseInner body,
+ Context context);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryEnvironmentContainersClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryEnvironmentContainersClient.java
new file mode 100644
index 000000000000..2c958ed581ed
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryEnvironmentContainersClient.java
@@ -0,0 +1,210 @@
+// 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.EnvironmentContainerInner;
+import com.azure.resourcemanager.machinelearning.models.ListViewType;
+
+/** An instance of this class provides access to all the operations defined in RegistryEnvironmentContainersClient. */
+public interface RegistryEnvironmentContainersClient {
+ /**
+ * List environment containers.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning 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 a paginated list of EnvironmentContainer entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName);
+
+ /**
+ * List environment containers.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param skip Continuation token for pagination.
+ * @param listViewType View type for including/excluding (for example) archived entities.
+ * @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 EnvironmentContainer entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName, String registryName, String skip, ListViewType listViewType, Context context);
+
+ /**
+ * Delete container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param environmentName Container 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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String environmentName);
+
+ /**
+ * Delete container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param environmentName Container 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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String environmentName, Context context);
+
+ /**
+ * Delete container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param environmentName Container 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String environmentName);
+
+ /**
+ * Delete container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param environmentName Container 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String environmentName, Context context);
+
+ /**
+ * Get container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param environmentName 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 getWithResponse(
+ String resourceGroupName, String registryName, String environmentName, Context context);
+
+ /**
+ * Get container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param environmentName 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)
+ EnvironmentContainerInner get(String resourceGroupName, String registryName, String environmentName);
+
+ /**
+ * Create or update container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param environmentName Container name.
+ * @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, EnvironmentContainerInner> beginCreateOrUpdate(
+ String resourceGroupName, String registryName, String environmentName, EnvironmentContainerInner body);
+
+ /**
+ * Create or update container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param environmentName Container name.
+ * @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, EnvironmentContainerInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String registryName,
+ String environmentName,
+ EnvironmentContainerInner body,
+ Context context);
+
+ /**
+ * Create or update container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param environmentName Container name.
+ * @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)
+ EnvironmentContainerInner createOrUpdate(
+ String resourceGroupName, String registryName, String environmentName, EnvironmentContainerInner body);
+
+ /**
+ * Create or update container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param environmentName Container name.
+ * @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)
+ EnvironmentContainerInner createOrUpdate(
+ String resourceGroupName,
+ String registryName,
+ String environmentName,
+ EnvironmentContainerInner body,
+ Context context);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryEnvironmentVersionsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryEnvironmentVersionsClient.java
new file mode 100644
index 000000000000..319296cafbe3
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryEnvironmentVersionsClient.java
@@ -0,0 +1,241 @@
+// 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.EnvironmentVersionInner;
+import com.azure.resourcemanager.machinelearning.models.ListViewType;
+
+/** An instance of this class provides access to all the operations defined in RegistryEnvironmentVersionsClient. */
+public interface RegistryEnvironmentVersionsClient {
+ /**
+ * List versions.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param environmentName 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 a paginated list of EnvironmentVersion entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName, String environmentName);
+
+ /**
+ * List versions.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param environmentName Container name. This is case-sensitive.
+ * @param orderBy Ordering of list.
+ * @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 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 EnvironmentVersion entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName,
+ String registryName,
+ String environmentName,
+ String orderBy,
+ Integer top,
+ String skip,
+ ListViewType listViewType,
+ Context context);
+
+ /**
+ * Delete version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param environmentName Container name.
+ * @param version Version identifier.
+ * @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, String environmentName, String version);
+
+ /**
+ * Delete version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param environmentName Container name.
+ * @param version Version identifier.
+ * @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, String environmentName, String version, Context context);
+
+ /**
+ * Delete version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param environmentName Container name.
+ * @param version Version identifier.
+ * @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, String environmentName, String version);
+
+ /**
+ * Delete version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param environmentName Container name.
+ * @param version Version identifier.
+ * @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, String environmentName, String version, Context context);
+
+ /**
+ * Get version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param environmentName 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 registryName, String environmentName, String version, Context context);
+
+ /**
+ * Get version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param environmentName 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)
+ EnvironmentVersionInner get(String resourceGroupName, String registryName, String environmentName, String version);
+
+ /**
+ * Create or update version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param environmentName Container name.
+ * @param version Version identifier.
+ * @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, EnvironmentVersionInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String registryName,
+ String environmentName,
+ String version,
+ EnvironmentVersionInner body);
+
+ /**
+ * Create or update version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param environmentName Container name.
+ * @param version Version identifier.
+ * @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, EnvironmentVersionInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String registryName,
+ String environmentName,
+ String version,
+ EnvironmentVersionInner body,
+ Context context);
+
+ /**
+ * Create or update version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param environmentName Container name.
+ * @param version Version identifier.
+ * @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)
+ EnvironmentVersionInner createOrUpdate(
+ String resourceGroupName,
+ String registryName,
+ String environmentName,
+ String version,
+ EnvironmentVersionInner body);
+
+ /**
+ * Create or update version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param environmentName Container name.
+ * @param version Version identifier.
+ * @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)
+ EnvironmentVersionInner createOrUpdate(
+ String resourceGroupName,
+ String registryName,
+ String environmentName,
+ String version,
+ EnvironmentVersionInner body,
+ Context context);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryModelContainersClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryModelContainersClient.java
new file mode 100644
index 000000000000..0432dfff608c
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryModelContainersClient.java
@@ -0,0 +1,201 @@
+// 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.ModelContainerInner;
+import com.azure.resourcemanager.machinelearning.models.ListViewType;
+
+/** An instance of this class provides access to all the operations defined in RegistryModelContainersClient. */
+public interface RegistryModelContainersClient {
+ /**
+ * List model containers.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning 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 a paginated list of ModelContainer entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName);
+
+ /**
+ * List model containers.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param skip Continuation token for pagination.
+ * @param listViewType View type for including/excluding (for example) archived entities.
+ * @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 ModelContainer entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName, String registryName, String skip, ListViewType listViewType, Context context);
+
+ /**
+ * Delete container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param modelName Container 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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String registryName, String modelName);
+
+ /**
+ * Delete container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param modelName Container 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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String modelName, Context context);
+
+ /**
+ * Delete container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param modelName Container 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String modelName);
+
+ /**
+ * Delete container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param modelName Container 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String modelName, Context context);
+
+ /**
+ * Get container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param modelName 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 getWithResponse(
+ String resourceGroupName, String registryName, String modelName, Context context);
+
+ /**
+ * Get container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param modelName 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)
+ ModelContainerInner get(String resourceGroupName, String registryName, String modelName);
+
+ /**
+ * Create or update model container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param modelName Container name.
+ * @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, ModelContainerInner> beginCreateOrUpdate(
+ String resourceGroupName, String registryName, String modelName, ModelContainerInner body);
+
+ /**
+ * Create or update model container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param modelName Container name.
+ * @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, ModelContainerInner> beginCreateOrUpdate(
+ String resourceGroupName, String registryName, String modelName, ModelContainerInner body, Context context);
+
+ /**
+ * Create or update model container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param modelName Container name.
+ * @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)
+ ModelContainerInner createOrUpdate(
+ String resourceGroupName, String registryName, String modelName, ModelContainerInner body);
+
+ /**
+ * Create or update model container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param modelName Container name.
+ * @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)
+ ModelContainerInner createOrUpdate(
+ String resourceGroupName, String registryName, String modelName, ModelContainerInner body, Context context);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryModelVersionsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryModelVersionsClient.java
new file mode 100644
index 000000000000..cd674f8a6e94
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryModelVersionsClient.java
@@ -0,0 +1,241 @@
+// 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.ModelVersionInner;
+import com.azure.resourcemanager.machinelearning.models.ListViewType;
+
+/** An instance of this class provides access to all the operations defined in RegistryModelVersionsClient. */
+public interface RegistryModelVersionsClient {
+ /**
+ * List versions.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param modelName 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 a paginated list of ModelVersion entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName, String modelName);
+
+ /**
+ * List versions.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param modelName Container name. This is case-sensitive.
+ * @param skip Continuation token for pagination.
+ * @param orderBy Ordering of list.
+ * @param top Maximum number of records to return.
+ * @param version Version identifier.
+ * @param description Model description.
+ * @param tags Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2.
+ * @param properties Comma-separated list of property names (and optionally values). Example: prop1,prop2=value2.
+ * @param listViewType View type for including/excluding (for example) archived entities.
+ * @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 ModelVersion entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName,
+ String registryName,
+ String modelName,
+ String skip,
+ String orderBy,
+ Integer top,
+ String version,
+ String description,
+ String tags,
+ String properties,
+ ListViewType listViewType,
+ Context context);
+
+ /**
+ * Delete version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param modelName Container name.
+ * @param version Version identifier.
+ * @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, String modelName, String version);
+
+ /**
+ * Delete version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param modelName Container name.
+ * @param version Version identifier.
+ * @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, String modelName, String version, Context context);
+
+ /**
+ * Delete version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param modelName Container name.
+ * @param version Version identifier.
+ * @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, String modelName, String version);
+
+ /**
+ * Delete version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param modelName Container name.
+ * @param version Version identifier.
+ * @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, String modelName, String version, Context context);
+
+ /**
+ * Get version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param modelName 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 registryName, String modelName, String version, Context context);
+
+ /**
+ * Get version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param modelName 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)
+ ModelVersionInner get(String resourceGroupName, String registryName, String modelName, String version);
+
+ /**
+ * Create or update version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param modelName Container name.
+ * @param version Version identifier.
+ * @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, ModelVersionInner> beginCreateOrUpdate(
+ String resourceGroupName, String registryName, String modelName, String version, ModelVersionInner body);
+
+ /**
+ * Create or update version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param modelName Container name.
+ * @param version Version identifier.
+ * @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, ModelVersionInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String registryName,
+ String modelName,
+ String version,
+ ModelVersionInner body,
+ Context context);
+
+ /**
+ * Create or update version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param modelName Container name.
+ * @param version Version identifier.
+ * @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)
+ ModelVersionInner createOrUpdate(
+ String resourceGroupName, String registryName, String modelName, String version, ModelVersionInner body);
+
+ /**
+ * Create or update version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry.
+ * @param modelName Container name.
+ * @param version Version identifier.
+ * @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)
+ ModelVersionInner createOrUpdate(
+ String resourceGroupName,
+ String registryName,
+ String modelName,
+ String version,
+ ModelVersionInner body,
+ Context context);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/AmlOperationInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/AmlOperationInner.java
index a21e00f4df18..351abd4f5d19 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/AmlOperationInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/AmlOperationInner.java
@@ -8,7 +8,7 @@
import com.azure.resourcemanager.machinelearning.models.AmlOperationDisplay;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** Azure Machine Learning workspace REST API operation. */
+/** Azure Machine Learning REST API operation. */
@Fluent
public final class AmlOperationInner {
/*
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/DatastoreSecretsInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/DatastoreSecretsInner.java
index 2cb1bcd99147..c71d340ef707 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/DatastoreSecretsInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/DatastoreSecretsInner.java
@@ -7,6 +7,8 @@
import com.azure.core.annotation.Immutable;
import com.azure.resourcemanager.machinelearning.models.AccountKeyDatastoreSecrets;
import com.azure.resourcemanager.machinelearning.models.CertificateDatastoreSecrets;
+import com.azure.resourcemanager.machinelearning.models.KerberosKeytabSecrets;
+import com.azure.resourcemanager.machinelearning.models.KerberosPasswordSecrets;
import com.azure.resourcemanager.machinelearning.models.SasDatastoreSecrets;
import com.azure.resourcemanager.machinelearning.models.ServicePrincipalDatastoreSecrets;
import com.fasterxml.jackson.annotation.JsonSubTypes;
@@ -23,6 +25,8 @@
@JsonSubTypes({
@JsonSubTypes.Type(name = "AccountKey", value = AccountKeyDatastoreSecrets.class),
@JsonSubTypes.Type(name = "Certificate", value = CertificateDatastoreSecrets.class),
+ @JsonSubTypes.Type(name = "KerberosKeytab", value = KerberosKeytabSecrets.class),
+ @JsonSubTypes.Type(name = "KerberosPassword", value = KerberosPasswordSecrets.class),
@JsonSubTypes.Type(name = "Sas", value = SasDatastoreSecrets.class),
@JsonSubTypes.Type(name = "ServicePrincipal", value = ServicePrincipalDatastoreSecrets.class)
})
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ExportSummaryInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ExportSummaryInner.java
new file mode 100644
index 000000000000..ac7a9f1a822b
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ExportSummaryInner.java
@@ -0,0 +1,102 @@
+// 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.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.resourcemanager.machinelearning.models.CocoExportSummary;
+import com.azure.resourcemanager.machinelearning.models.CsvExportSummary;
+import com.azure.resourcemanager.machinelearning.models.DatasetExportSummary;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonSubTypes;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import java.time.OffsetDateTime;
+
+/** The ExportSummary model. */
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.PROPERTY,
+ property = "format",
+ defaultImpl = ExportSummaryInner.class)
+@JsonTypeName("ExportSummary")
+@JsonSubTypes({
+ @JsonSubTypes.Type(name = "Coco", value = CocoExportSummary.class),
+ @JsonSubTypes.Type(name = "CSV", value = CsvExportSummary.class),
+ @JsonSubTypes.Type(name = "Dataset", value = DatasetExportSummary.class)
+})
+@Immutable
+public class ExportSummaryInner {
+ /*
+ * The time when the export was completed.
+ */
+ @JsonProperty(value = "endDateTime", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime endDateTime;
+
+ /*
+ * The total number of labeled datapoints exported.
+ */
+ @JsonProperty(value = "exportedRowCount", access = JsonProperty.Access.WRITE_ONLY)
+ private Long exportedRowCount;
+
+ /*
+ * Name and identifier of the job containing exported labels.
+ */
+ @JsonProperty(value = "labelingJobId", access = JsonProperty.Access.WRITE_ONLY)
+ private String labelingJobId;
+
+ /*
+ * The time when the export was requested.
+ */
+ @JsonProperty(value = "startDateTime", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime startDateTime;
+
+ /** Creates an instance of ExportSummaryInner class. */
+ public ExportSummaryInner() {
+ }
+
+ /**
+ * Get the endDateTime property: The time when the export was completed.
+ *
+ * @return the endDateTime value.
+ */
+ public OffsetDateTime endDateTime() {
+ return this.endDateTime;
+ }
+
+ /**
+ * Get the exportedRowCount property: The total number of labeled datapoints exported.
+ *
+ * @return the exportedRowCount value.
+ */
+ public Long exportedRowCount() {
+ return this.exportedRowCount;
+ }
+
+ /**
+ * Get the labelingJobId property: Name and identifier of the job containing exported labels.
+ *
+ * @return the labelingJobId value.
+ */
+ public String labelingJobId() {
+ return this.labelingJobId;
+ }
+
+ /**
+ * Get the startDateTime property: The time when the export was requested.
+ *
+ * @return the startDateTime value.
+ */
+ public OffsetDateTime startDateTime() {
+ return this.startDateTime;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeatureInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeatureInner.java
new file mode 100644
index 000000000000..cc33ad5cad2b
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeatureInner.java
@@ -0,0 +1,132 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.machinelearning.models.FeatureDataType;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** Dto object representing feature. */
+@Fluent
+public final class FeatureInner {
+ /*
+ * Specifies type
+ */
+ @JsonProperty(value = "dataType")
+ private FeatureDataType dataType;
+
+ /*
+ * Specifies description
+ */
+ @JsonProperty(value = "description")
+ private String description;
+
+ /*
+ * Specifies name
+ */
+ @JsonProperty(value = "featureName")
+ private String featureName;
+
+ /*
+ * Specifies tags
+ */
+ @JsonProperty(value = "tags")
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map tags;
+
+ /** Creates an instance of FeatureInner class. */
+ public FeatureInner() {
+ }
+
+ /**
+ * Get the dataType property: Specifies type.
+ *
+ * @return the dataType value.
+ */
+ public FeatureDataType dataType() {
+ return this.dataType;
+ }
+
+ /**
+ * Set the dataType property: Specifies type.
+ *
+ * @param dataType the dataType value to set.
+ * @return the FeatureInner object itself.
+ */
+ public FeatureInner withDataType(FeatureDataType dataType) {
+ this.dataType = dataType;
+ return this;
+ }
+
+ /**
+ * Get the description property: Specifies description.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Set the description property: Specifies description.
+ *
+ * @param description the description value to set.
+ * @return the FeatureInner object itself.
+ */
+ public FeatureInner withDescription(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * Get the featureName property: Specifies name.
+ *
+ * @return the featureName value.
+ */
+ public String featureName() {
+ return this.featureName;
+ }
+
+ /**
+ * Set the featureName property: Specifies name.
+ *
+ * @param featureName the featureName value to set.
+ * @return the FeatureInner object itself.
+ */
+ public FeatureInner withFeatureName(String featureName) {
+ this.featureName = featureName;
+ return this;
+ }
+
+ /**
+ * Get the tags property: Specifies tags.
+ *
+ * @return the tags value.
+ */
+ public Map tags() {
+ return this.tags;
+ }
+
+ /**
+ * Set the tags property: Specifies tags.
+ *
+ * @param tags the tags value to set.
+ * @return the FeatureInner object itself.
+ */
+ public FeatureInner withTags(Map tags) {
+ this.tags = tags;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturesetContainerInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturesetContainerInner.java
new file mode 100644
index 000000000000..c5b1b9bce0c7
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturesetContainerInner.java
@@ -0,0 +1,79 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.machinelearning.models.FeaturesetContainerProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Azure Resource Manager resource envelope. */
+@Fluent
+public final class FeaturesetContainerInner extends ProxyResource {
+ /*
+ * [Required] Additional attributes of the entity.
+ */
+ @JsonProperty(value = "properties", required = true)
+ private FeaturesetContainerProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /** Creates an instance of FeaturesetContainerInner class. */
+ public FeaturesetContainerInner() {
+ }
+
+ /**
+ * Get the properties property: [Required] Additional attributes of the entity.
+ *
+ * @return the properties value.
+ */
+ public FeaturesetContainerProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: [Required] Additional attributes of the entity.
+ *
+ * @param properties the properties value to set.
+ * @return the FeaturesetContainerInner object itself.
+ */
+ public FeaturesetContainerInner withProperties(FeaturesetContainerProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property properties in model FeaturesetContainerInner"));
+ } else {
+ properties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(FeaturesetContainerInner.class);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturesetJobInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturesetJobInner.java
new file mode 100644
index 000000000000..90901f6dfdbf
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturesetJobInner.java
@@ -0,0 +1,269 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.machinelearning.models.FeatureWindow;
+import com.azure.resourcemanager.machinelearning.models.FeaturestoreJobType;
+import com.azure.resourcemanager.machinelearning.models.JobStatus;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.Duration;
+import java.time.OffsetDateTime;
+import java.util.Map;
+
+/** Dto object representing the feature set job. */
+@Fluent
+public final class FeaturesetJobInner {
+ /*
+ * Specifies the created date
+ */
+ @JsonProperty(value = "createdDate")
+ private OffsetDateTime createdDate;
+
+ /*
+ * Specifies the display name
+ */
+ @JsonProperty(value = "displayName")
+ private String displayName;
+
+ /*
+ * Specifies the duration
+ */
+ @JsonProperty(value = "duration")
+ private Duration duration;
+
+ /*
+ * Specifies the experiment id
+ */
+ @JsonProperty(value = "experimentId")
+ private String experimentId;
+
+ /*
+ * Specifies the backfill feature window to be materialized
+ */
+ @JsonProperty(value = "featureWindow")
+ private FeatureWindow featureWindow;
+
+ /*
+ * Specifies the job id
+ */
+ @JsonProperty(value = "jobId")
+ private String jobId;
+
+ /*
+ * Specifies the job status
+ */
+ @JsonProperty(value = "status")
+ private JobStatus status;
+
+ /*
+ * Specifies the tags if any
+ */
+ @JsonProperty(value = "tags")
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map tags;
+
+ /*
+ * Specifies the feature store job type
+ */
+ @JsonProperty(value = "type")
+ private FeaturestoreJobType type;
+
+ /** Creates an instance of FeaturesetJobInner class. */
+ public FeaturesetJobInner() {
+ }
+
+ /**
+ * Get the createdDate property: Specifies the created date.
+ *
+ * @return the createdDate value.
+ */
+ public OffsetDateTime createdDate() {
+ return this.createdDate;
+ }
+
+ /**
+ * Set the createdDate property: Specifies the created date.
+ *
+ * @param createdDate the createdDate value to set.
+ * @return the FeaturesetJobInner object itself.
+ */
+ public FeaturesetJobInner withCreatedDate(OffsetDateTime createdDate) {
+ this.createdDate = createdDate;
+ return this;
+ }
+
+ /**
+ * Get the displayName property: Specifies the display name.
+ *
+ * @return the displayName value.
+ */
+ public String displayName() {
+ return this.displayName;
+ }
+
+ /**
+ * Set the displayName property: Specifies the display name.
+ *
+ * @param displayName the displayName value to set.
+ * @return the FeaturesetJobInner object itself.
+ */
+ public FeaturesetJobInner withDisplayName(String displayName) {
+ this.displayName = displayName;
+ return this;
+ }
+
+ /**
+ * Get the duration property: Specifies the duration.
+ *
+ * @return the duration value.
+ */
+ public Duration duration() {
+ return this.duration;
+ }
+
+ /**
+ * Set the duration property: Specifies the duration.
+ *
+ * @param duration the duration value to set.
+ * @return the FeaturesetJobInner object itself.
+ */
+ public FeaturesetJobInner withDuration(Duration duration) {
+ this.duration = duration;
+ return this;
+ }
+
+ /**
+ * Get the experimentId property: Specifies the experiment id.
+ *
+ * @return the experimentId value.
+ */
+ public String experimentId() {
+ return this.experimentId;
+ }
+
+ /**
+ * Set the experimentId property: Specifies the experiment id.
+ *
+ * @param experimentId the experimentId value to set.
+ * @return the FeaturesetJobInner object itself.
+ */
+ public FeaturesetJobInner withExperimentId(String experimentId) {
+ this.experimentId = experimentId;
+ return this;
+ }
+
+ /**
+ * Get the featureWindow property: Specifies the backfill feature window to be materialized.
+ *
+ * @return the featureWindow value.
+ */
+ public FeatureWindow featureWindow() {
+ return this.featureWindow;
+ }
+
+ /**
+ * Set the featureWindow property: Specifies the backfill feature window to be materialized.
+ *
+ * @param featureWindow the featureWindow value to set.
+ * @return the FeaturesetJobInner object itself.
+ */
+ public FeaturesetJobInner withFeatureWindow(FeatureWindow featureWindow) {
+ this.featureWindow = featureWindow;
+ return this;
+ }
+
+ /**
+ * Get the jobId property: Specifies the job id.
+ *
+ * @return the jobId value.
+ */
+ public String jobId() {
+ return this.jobId;
+ }
+
+ /**
+ * Set the jobId property: Specifies the job id.
+ *
+ * @param jobId the jobId value to set.
+ * @return the FeaturesetJobInner object itself.
+ */
+ public FeaturesetJobInner withJobId(String jobId) {
+ this.jobId = jobId;
+ return this;
+ }
+
+ /**
+ * Get the status property: Specifies the job status.
+ *
+ * @return the status value.
+ */
+ public JobStatus status() {
+ return this.status;
+ }
+
+ /**
+ * Set the status property: Specifies the job status.
+ *
+ * @param status the status value to set.
+ * @return the FeaturesetJobInner object itself.
+ */
+ public FeaturesetJobInner withStatus(JobStatus status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get the tags property: Specifies the tags if any.
+ *
+ * @return the tags value.
+ */
+ public Map tags() {
+ return this.tags;
+ }
+
+ /**
+ * Set the tags property: Specifies the tags if any.
+ *
+ * @param tags the tags value to set.
+ * @return the FeaturesetJobInner object itself.
+ */
+ public FeaturesetJobInner withTags(Map tags) {
+ this.tags = tags;
+ return this;
+ }
+
+ /**
+ * Get the type property: Specifies the feature store job type.
+ *
+ * @return the type value.
+ */
+ public FeaturestoreJobType type() {
+ return this.type;
+ }
+
+ /**
+ * Set the type property: Specifies the feature store job type.
+ *
+ * @param type the type value to set.
+ * @return the FeaturesetJobInner object itself.
+ */
+ public FeaturesetJobInner withType(FeaturestoreJobType type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (featureWindow() != null) {
+ featureWindow().validate();
+ }
+ }
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturesetVersionBackfillResponseInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturesetVersionBackfillResponseInner.java
new file mode 100644
index 000000000000..8b6864d25960
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturesetVersionBackfillResponseInner.java
@@ -0,0 +1,50 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Response payload for creating a backfill request for a given feature set version. */
+@Fluent
+public final class FeaturesetVersionBackfillResponseInner {
+ /*
+ * Job id created as part of request
+ */
+ @JsonProperty(value = "jobId")
+ private String jobId;
+
+ /** Creates an instance of FeaturesetVersionBackfillResponseInner class. */
+ public FeaturesetVersionBackfillResponseInner() {
+ }
+
+ /**
+ * Get the jobId property: Job id created as part of request.
+ *
+ * @return the jobId value.
+ */
+ public String jobId() {
+ return this.jobId;
+ }
+
+ /**
+ * Set the jobId property: Job id created as part of request.
+ *
+ * @param jobId the jobId value to set.
+ * @return the FeaturesetVersionBackfillResponseInner object itself.
+ */
+ public FeaturesetVersionBackfillResponseInner withJobId(String jobId) {
+ this.jobId = jobId;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturesetVersionInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturesetVersionInner.java
new file mode 100644
index 000000000000..53d1791f9213
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturesetVersionInner.java
@@ -0,0 +1,79 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.machinelearning.models.FeaturesetVersionProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Azure Resource Manager resource envelope. */
+@Fluent
+public final class FeaturesetVersionInner extends ProxyResource {
+ /*
+ * [Required] Additional attributes of the entity.
+ */
+ @JsonProperty(value = "properties", required = true)
+ private FeaturesetVersionProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /** Creates an instance of FeaturesetVersionInner class. */
+ public FeaturesetVersionInner() {
+ }
+
+ /**
+ * Get the properties property: [Required] Additional attributes of the entity.
+ *
+ * @return the properties value.
+ */
+ public FeaturesetVersionProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: [Required] Additional attributes of the entity.
+ *
+ * @param properties the properties value to set.
+ * @return the FeaturesetVersionInner object itself.
+ */
+ public FeaturesetVersionInner withProperties(FeaturesetVersionProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property properties in model FeaturesetVersionInner"));
+ } else {
+ properties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(FeaturesetVersionInner.class);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturestoreEntityContainerInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturestoreEntityContainerInner.java
new file mode 100644
index 000000000000..56f7e4881e7d
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturestoreEntityContainerInner.java
@@ -0,0 +1,79 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.machinelearning.models.FeaturestoreEntityContainerProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Azure Resource Manager resource envelope. */
+@Fluent
+public final class FeaturestoreEntityContainerInner extends ProxyResource {
+ /*
+ * [Required] Additional attributes of the entity.
+ */
+ @JsonProperty(value = "properties", required = true)
+ private FeaturestoreEntityContainerProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /** Creates an instance of FeaturestoreEntityContainerInner class. */
+ public FeaturestoreEntityContainerInner() {
+ }
+
+ /**
+ * Get the properties property: [Required] Additional attributes of the entity.
+ *
+ * @return the properties value.
+ */
+ public FeaturestoreEntityContainerProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: [Required] Additional attributes of the entity.
+ *
+ * @param properties the properties value to set.
+ * @return the FeaturestoreEntityContainerInner object itself.
+ */
+ public FeaturestoreEntityContainerInner withProperties(FeaturestoreEntityContainerProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property properties in model FeaturestoreEntityContainerInner"));
+ } else {
+ properties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(FeaturestoreEntityContainerInner.class);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturestoreEntityVersionInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturestoreEntityVersionInner.java
new file mode 100644
index 000000000000..58277a053be0
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturestoreEntityVersionInner.java
@@ -0,0 +1,79 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.machinelearning.models.FeaturestoreEntityVersionProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Azure Resource Manager resource envelope. */
+@Fluent
+public final class FeaturestoreEntityVersionInner extends ProxyResource {
+ /*
+ * [Required] Additional attributes of the entity.
+ */
+ @JsonProperty(value = "properties", required = true)
+ private FeaturestoreEntityVersionProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /** Creates an instance of FeaturestoreEntityVersionInner class. */
+ public FeaturestoreEntityVersionInner() {
+ }
+
+ /**
+ * Get the properties property: [Required] Additional attributes of the entity.
+ *
+ * @return the properties value.
+ */
+ public FeaturestoreEntityVersionProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: [Required] Additional attributes of the entity.
+ *
+ * @param properties the properties value to set.
+ * @return the FeaturestoreEntityVersionInner object itself.
+ */
+ public FeaturestoreEntityVersionInner withProperties(FeaturestoreEntityVersionProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property properties in model FeaturestoreEntityVersionInner"));
+ } else {
+ properties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(FeaturestoreEntityVersionInner.class);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/LabelingJobInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/LabelingJobInner.java
new file mode 100644
index 000000000000..3c5a018d5073
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/LabelingJobInner.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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.machinelearning.models.LabelingJobProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Azure Resource Manager resource envelope. */
+@Fluent
+public final class LabelingJobInner extends ProxyResource {
+ /*
+ * [Required] Additional attributes of the entity.
+ */
+ @JsonProperty(value = "properties", required = true)
+ private LabelingJobProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /** Creates an instance of LabelingJobInner class. */
+ public LabelingJobInner() {
+ }
+
+ /**
+ * Get the properties property: [Required] Additional attributes of the entity.
+ *
+ * @return the properties value.
+ */
+ public LabelingJobProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: [Required] Additional attributes of the entity.
+ *
+ * @param properties the properties value to set.
+ * @return the LabelingJobInner object itself.
+ */
+ public LabelingJobInner withProperties(LabelingJobProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property properties in model LabelingJobInner"));
+ } else {
+ properties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(LabelingJobInner.class);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/PackageResponseInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/PackageResponseInner.java
new file mode 100644
index 000000000000..1969076a617b
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/PackageResponseInner.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.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.resourcemanager.machinelearning.models.BaseEnvironmentSource;
+import com.azure.resourcemanager.machinelearning.models.InferencingServer;
+import com.azure.resourcemanager.machinelearning.models.ModelConfiguration;
+import com.azure.resourcemanager.machinelearning.models.ModelPackageInput;
+import com.azure.resourcemanager.machinelearning.models.PackageBuildState;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+import java.util.Map;
+
+/** Package response returned after async package operation completes successfully. */
+@Immutable
+public final class PackageResponseInner {
+ /*
+ * Base environment to start with.
+ */
+ @JsonProperty(value = "baseEnvironmentSource", access = JsonProperty.Access.WRITE_ONLY)
+ private BaseEnvironmentSource baseEnvironmentSource;
+
+ /*
+ * Build id of the image build operation.
+ */
+ @JsonProperty(value = "buildId", access = JsonProperty.Access.WRITE_ONLY)
+ private String buildId;
+
+ /*
+ * Build state of the image build operation.
+ */
+ @JsonProperty(value = "buildState", access = JsonProperty.Access.WRITE_ONLY)
+ private PackageBuildState buildState;
+
+ /*
+ * Collection of environment variables.
+ */
+ @JsonProperty(value = "environmentVariables", access = JsonProperty.Access.WRITE_ONLY)
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map environmentVariables;
+
+ /*
+ * Inferencing server configurations.
+ */
+ @JsonProperty(value = "inferencingServer", access = JsonProperty.Access.WRITE_ONLY)
+ private InferencingServer inferencingServer;
+
+ /*
+ * Collection of inputs.
+ */
+ @JsonProperty(value = "inputs", access = JsonProperty.Access.WRITE_ONLY)
+ private List inputs;
+
+ /*
+ * Log url of the image build operation.
+ */
+ @JsonProperty(value = "logUrl", access = JsonProperty.Access.WRITE_ONLY)
+ private String logUrl;
+
+ /*
+ * Model configuration including the mount mode.
+ */
+ @JsonProperty(value = "modelConfiguration", access = JsonProperty.Access.WRITE_ONLY)
+ private ModelConfiguration modelConfiguration;
+
+ /*
+ * Tag dictionary. Tags can be added, removed, and updated.
+ */
+ @JsonProperty(value = "tags", access = JsonProperty.Access.WRITE_ONLY)
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map tags;
+
+ /*
+ * Asset ID of the target environment created by package operation.
+ */
+ @JsonProperty(value = "targetEnvironmentId", access = JsonProperty.Access.WRITE_ONLY)
+ private String targetEnvironmentId;
+
+ /*
+ * Target environment name to be generated by package.
+ */
+ @JsonProperty(value = "targetEnvironmentName", access = JsonProperty.Access.WRITE_ONLY)
+ private String targetEnvironmentName;
+
+ /*
+ * Target environment version to be generated by package.
+ */
+ @JsonProperty(value = "targetEnvironmentVersion", access = JsonProperty.Access.WRITE_ONLY)
+ private String targetEnvironmentVersion;
+
+ /** Creates an instance of PackageResponseInner class. */
+ public PackageResponseInner() {
+ }
+
+ /**
+ * Get the baseEnvironmentSource property: Base environment to start with.
+ *
+ * @return the baseEnvironmentSource value.
+ */
+ public BaseEnvironmentSource baseEnvironmentSource() {
+ return this.baseEnvironmentSource;
+ }
+
+ /**
+ * Get the buildId property: Build id of the image build operation.
+ *
+ * @return the buildId value.
+ */
+ public String buildId() {
+ return this.buildId;
+ }
+
+ /**
+ * Get the buildState property: Build state of the image build operation.
+ *
+ * @return the buildState value.
+ */
+ public PackageBuildState buildState() {
+ return this.buildState;
+ }
+
+ /**
+ * Get the environmentVariables property: Collection of environment variables.
+ *
+ * @return the environmentVariables value.
+ */
+ public Map environmentVariables() {
+ return this.environmentVariables;
+ }
+
+ /**
+ * Get the inferencingServer property: Inferencing server configurations.
+ *
+ * @return the inferencingServer value.
+ */
+ public InferencingServer inferencingServer() {
+ return this.inferencingServer;
+ }
+
+ /**
+ * Get the inputs property: Collection of inputs.
+ *
+ * @return the inputs value.
+ */
+ public List inputs() {
+ return this.inputs;
+ }
+
+ /**
+ * Get the logUrl property: Log url of the image build operation.
+ *
+ * @return the logUrl value.
+ */
+ public String logUrl() {
+ return this.logUrl;
+ }
+
+ /**
+ * Get the modelConfiguration property: Model configuration including the mount mode.
+ *
+ * @return the modelConfiguration value.
+ */
+ public ModelConfiguration modelConfiguration() {
+ return this.modelConfiguration;
+ }
+
+ /**
+ * Get the tags property: Tag dictionary. Tags can be added, removed, and updated.
+ *
+ * @return the tags value.
+ */
+ public Map tags() {
+ return this.tags;
+ }
+
+ /**
+ * Get the targetEnvironmentId property: Asset ID of the target environment created by package operation.
+ *
+ * @return the targetEnvironmentId value.
+ */
+ public String targetEnvironmentId() {
+ return this.targetEnvironmentId;
+ }
+
+ /**
+ * Get the targetEnvironmentName property: Target environment name to be generated by package.
+ *
+ * @return the targetEnvironmentName value.
+ */
+ public String targetEnvironmentName() {
+ return this.targetEnvironmentName;
+ }
+
+ /**
+ * Get the targetEnvironmentVersion property: Target environment version to be generated by package.
+ *
+ * @return the targetEnvironmentVersion value.
+ */
+ public String targetEnvironmentVersion() {
+ return this.targetEnvironmentVersion;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (baseEnvironmentSource() != null) {
+ baseEnvironmentSource().validate();
+ }
+ if (inferencingServer() != null) {
+ inferencingServer().validate();
+ }
+ if (inputs() != null) {
+ inputs().forEach(e -> e.validate());
+ }
+ if (modelConfiguration() != null) {
+ modelConfiguration().validate();
+ }
+ }
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/RegistryInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/RegistryInner.java
new file mode 100644
index 000000000000..39ab272f6938
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/RegistryInner.java
@@ -0,0 +1,181 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.machinelearning.models.RegistryProperties;
+import com.azure.resourcemanager.machinelearning.models.Sku;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** The Registry model. */
+@Fluent
+public final class RegistryInner extends Resource {
+ /*
+ * Managed service identity (system assigned and/or user assigned identities)
+ */
+ @JsonProperty(value = "identity")
+ private ManagedServiceIdentity identity;
+
+ /*
+ * Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type.
+ */
+ @JsonProperty(value = "kind")
+ private String kind;
+
+ /*
+ * [Required] Additional attributes of the entity.
+ */
+ @JsonProperty(value = "properties", required = true)
+ private RegistryProperties properties;
+
+ /*
+ * Sku details required for ARM contract for Autoscaling.
+ */
+ @JsonProperty(value = "sku")
+ private Sku sku;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /** Creates an instance of RegistryInner class. */
+ public RegistryInner() {
+ }
+
+ /**
+ * Get the identity property: Managed service identity (system assigned and/or user assigned identities).
+ *
+ * @return the identity value.
+ */
+ public ManagedServiceIdentity identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: Managed service identity (system assigned and/or user assigned identities).
+ *
+ * @param identity the identity value to set.
+ * @return the RegistryInner object itself.
+ */
+ public RegistryInner withIdentity(ManagedServiceIdentity identity) {
+ this.identity = identity;
+ return this;
+ }
+
+ /**
+ * Get the kind property: Metadata used by portal/tooling/etc to render different UX experiences for resources of
+ * the same type.
+ *
+ * @return the kind value.
+ */
+ public String kind() {
+ return this.kind;
+ }
+
+ /**
+ * Set the kind property: Metadata used by portal/tooling/etc to render different UX experiences for resources of
+ * the same type.
+ *
+ * @param kind the kind value to set.
+ * @return the RegistryInner object itself.
+ */
+ public RegistryInner withKind(String kind) {
+ this.kind = kind;
+ return this;
+ }
+
+ /**
+ * Get the properties property: [Required] Additional attributes of the entity.
+ *
+ * @return the properties value.
+ */
+ public RegistryProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: [Required] Additional attributes of the entity.
+ *
+ * @param properties the properties value to set.
+ * @return the RegistryInner object itself.
+ */
+ public RegistryInner withProperties(RegistryProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the sku property: Sku details required for ARM contract for Autoscaling.
+ *
+ * @return the sku value.
+ */
+ public Sku sku() {
+ return this.sku;
+ }
+
+ /**
+ * Set the sku property: Sku details required for ARM contract for Autoscaling.
+ *
+ * @param sku the sku value to set.
+ * @return the RegistryInner object itself.
+ */
+ public RegistryInner withSku(Sku sku) {
+ this.sku = sku;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RegistryInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RegistryInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (identity() != null) {
+ identity().validate();
+ }
+ if (properties() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property properties in model RegistryInner"));
+ } else {
+ properties().validate();
+ }
+ if (sku() != null) {
+ sku().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(RegistryInner.class);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/WorkspaceInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/WorkspaceInner.java
index 0574f791c1fe..c9321c0274a4 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/WorkspaceInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/WorkspaceInner.java
@@ -629,6 +629,49 @@ public WorkspaceInner withV1LegacyMode(Boolean v1LegacyMode) {
return this;
}
+ /**
+ * Get the softDeletedAt property: The timestamp when the workspace was soft deleted.
+ *
+ * @return the softDeletedAt value.
+ */
+ public String softDeletedAt() {
+ return this.innerProperties() == null ? null : this.innerProperties().softDeletedAt();
+ }
+
+ /**
+ * Get the scheduledPurgeDate property: The timestamp when the soft deleted workspace is going to be purged.
+ *
+ * @return the scheduledPurgeDate value.
+ */
+ public String scheduledPurgeDate() {
+ return this.innerProperties() == null ? null : this.innerProperties().scheduledPurgeDate();
+ }
+
+ /**
+ * Get the systemDatastoresAuthMode property: The auth mode used for accessing the system datastores of the
+ * workspace.
+ *
+ * @return the systemDatastoresAuthMode value.
+ */
+ public String systemDatastoresAuthMode() {
+ return this.innerProperties() == null ? null : this.innerProperties().systemDatastoresAuthMode();
+ }
+
+ /**
+ * Set the systemDatastoresAuthMode property: The auth mode used for accessing the system datastores of the
+ * workspace.
+ *
+ * @param systemDatastoresAuthMode the systemDatastoresAuthMode value to set.
+ * @return the WorkspaceInner object itself.
+ */
+ public WorkspaceInner withSystemDatastoresAuthMode(String systemDatastoresAuthMode) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkspacePropertiesInner();
+ }
+ this.innerProperties().withSystemDatastoresAuthMode(systemDatastoresAuthMode);
+ return this;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/WorkspacePropertiesInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/WorkspacePropertiesInner.java
index 147434b8ed51..fba1dda3f8d6 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/WorkspacePropertiesInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/WorkspacePropertiesInner.java
@@ -170,6 +170,24 @@ public final class WorkspacePropertiesInner {
@JsonProperty(value = "v1LegacyMode")
private Boolean v1LegacyMode;
+ /*
+ * The timestamp when the workspace was soft deleted
+ */
+ @JsonProperty(value = "softDeletedAt", access = JsonProperty.Access.WRITE_ONLY)
+ private String softDeletedAt;
+
+ /*
+ * The timestamp when the soft deleted workspace is going to be purged
+ */
+ @JsonProperty(value = "scheduledPurgeDate", access = JsonProperty.Access.WRITE_ONLY)
+ private String scheduledPurgeDate;
+
+ /*
+ * The auth mode used for accessing the system datastores of the workspace
+ */
+ @JsonProperty(value = "systemDatastoresAuthMode")
+ private String systemDatastoresAuthMode;
+
/** Creates an instance of WorkspacePropertiesInner class. */
public WorkspacePropertiesInner() {
}
@@ -595,6 +613,46 @@ public WorkspacePropertiesInner withV1LegacyMode(Boolean v1LegacyMode) {
return this;
}
+ /**
+ * Get the softDeletedAt property: The timestamp when the workspace was soft deleted.
+ *
+ * @return the softDeletedAt value.
+ */
+ public String softDeletedAt() {
+ return this.softDeletedAt;
+ }
+
+ /**
+ * Get the scheduledPurgeDate property: The timestamp when the soft deleted workspace is going to be purged.
+ *
+ * @return the scheduledPurgeDate value.
+ */
+ public String scheduledPurgeDate() {
+ return this.scheduledPurgeDate;
+ }
+
+ /**
+ * Get the systemDatastoresAuthMode property: The auth mode used for accessing the system datastores of the
+ * workspace.
+ *
+ * @return the systemDatastoresAuthMode value.
+ */
+ public String systemDatastoresAuthMode() {
+ return this.systemDatastoresAuthMode;
+ }
+
+ /**
+ * Set the systemDatastoresAuthMode property: The auth mode used for accessing the system datastores of the
+ * workspace.
+ *
+ * @param systemDatastoresAuthMode the systemDatastoresAuthMode value to set.
+ * @return the WorkspacePropertiesInner object itself.
+ */
+ public WorkspacePropertiesInner withSystemDatastoresAuthMode(String systemDatastoresAuthMode) {
+ this.systemDatastoresAuthMode = systemDatastoresAuthMode;
+ return this;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/WorkspacePropertiesUpdateParameters.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/WorkspacePropertiesUpdateParameters.java
index ecf35a74ba33..058fc99d5d8b 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/WorkspacePropertiesUpdateParameters.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/WorkspacePropertiesUpdateParameters.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.machinelearning.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.machinelearning.models.EncryptionUpdateProperties;
import com.azure.resourcemanager.machinelearning.models.PublicNetworkAccess;
import com.azure.resourcemanager.machinelearning.models.ServiceManagedResourcesSettings;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -60,6 +61,12 @@ public final class WorkspacePropertiesUpdateParameters {
@JsonProperty(value = "containerRegistry")
private String containerRegistry;
+ /*
+ * The encryption settings of the workspace.
+ */
+ @JsonProperty(value = "encryption")
+ private EncryptionUpdateProperties encryption;
+
/** Creates an instance of WorkspacePropertiesUpdateParameters class. */
public WorkspacePropertiesUpdateParameters() {
}
@@ -227,6 +234,26 @@ public WorkspacePropertiesUpdateParameters withContainerRegistry(String containe
return this;
}
+ /**
+ * Get the encryption property: The encryption settings of the workspace.
+ *
+ * @return the encryption value.
+ */
+ public EncryptionUpdateProperties encryption() {
+ return this.encryption;
+ }
+
+ /**
+ * Set the encryption property: The encryption settings of the workspace.
+ *
+ * @param encryption the encryption value to set.
+ * @return the WorkspacePropertiesUpdateParameters object itself.
+ */
+ public WorkspacePropertiesUpdateParameters withEncryption(EncryptionUpdateProperties encryption) {
+ this.encryption = encryption;
+ return this;
+ }
+
/**
* Validates the instance.
*
@@ -236,5 +263,8 @@ public void validate() {
if (serviceManagedResourcesSettings() != null) {
serviceManagedResourcesSettings().validate();
}
+ if (encryption() != null) {
+ encryption().validate();
+ }
}
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/package-info.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/package-info.java
index 3e822d30cd96..c4a20504c94a 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/package-info.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/package-info.java
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
/**
- * Package containing the inner data models for AzureMachineLearningWorkspaces. These APIs allow end users to operate on
+ * Package containing the inner data models for AzureMachineLearningServices. These APIs allow end users to operate on
* Azure Machine Learning Workspace resources.
*/
package com.azure.resourcemanager.machinelearning.fluent.models;
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/package-info.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/package-info.java
index f5bef4622975..50522669a1fc 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/package-info.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/package-info.java
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
/**
- * Package containing the service clients for AzureMachineLearningWorkspaces. These APIs allow end users to operate on
+ * Package containing the service clients for AzureMachineLearningServices. These APIs allow end users to operate on
* Azure Machine Learning Workspace resources.
*/
package com.azure.resourcemanager.machinelearning.fluent;
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/AzureMachineLearningWorkspacesBuilder.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/AzureMachineLearningServicesBuilder.java
similarity index 71%
rename from sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/AzureMachineLearningWorkspacesBuilder.java
rename to sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/AzureMachineLearningServicesBuilder.java
index 018c1d288b6a..48795f9c5d6c 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/AzureMachineLearningWorkspacesBuilder.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/AzureMachineLearningServicesBuilder.java
@@ -14,9 +14,9 @@
import com.azure.core.util.serializer.SerializerAdapter;
import java.time.Duration;
-/** A builder for creating a new instance of the AzureMachineLearningWorkspacesImpl type. */
-@ServiceClientBuilder(serviceClients = {AzureMachineLearningWorkspacesImpl.class})
-public final class AzureMachineLearningWorkspacesBuilder {
+/** A builder for creating a new instance of the AzureMachineLearningServicesImpl type. */
+@ServiceClientBuilder(serviceClients = {AzureMachineLearningServicesImpl.class})
+public final class AzureMachineLearningServicesBuilder {
/*
* The ID of the target subscription.
*/
@@ -26,9 +26,9 @@ public final class AzureMachineLearningWorkspacesBuilder {
* Sets The ID of the target subscription.
*
* @param subscriptionId the subscriptionId value.
- * @return the AzureMachineLearningWorkspacesBuilder.
+ * @return the AzureMachineLearningServicesBuilder.
*/
- public AzureMachineLearningWorkspacesBuilder subscriptionId(String subscriptionId) {
+ public AzureMachineLearningServicesBuilder subscriptionId(String subscriptionId) {
this.subscriptionId = subscriptionId;
return this;
}
@@ -42,9 +42,9 @@ public AzureMachineLearningWorkspacesBuilder subscriptionId(String subscriptionI
* Sets server parameter.
*
* @param endpoint the endpoint value.
- * @return the AzureMachineLearningWorkspacesBuilder.
+ * @return the AzureMachineLearningServicesBuilder.
*/
- public AzureMachineLearningWorkspacesBuilder endpoint(String endpoint) {
+ public AzureMachineLearningServicesBuilder endpoint(String endpoint) {
this.endpoint = endpoint;
return this;
}
@@ -58,9 +58,9 @@ public AzureMachineLearningWorkspacesBuilder endpoint(String endpoint) {
* Sets The environment to connect to.
*
* @param environment the environment value.
- * @return the AzureMachineLearningWorkspacesBuilder.
+ * @return the AzureMachineLearningServicesBuilder.
*/
- public AzureMachineLearningWorkspacesBuilder environment(AzureEnvironment environment) {
+ public AzureMachineLearningServicesBuilder environment(AzureEnvironment environment) {
this.environment = environment;
return this;
}
@@ -74,9 +74,9 @@ public AzureMachineLearningWorkspacesBuilder environment(AzureEnvironment enviro
* Sets The HTTP pipeline to send requests through.
*
* @param pipeline the pipeline value.
- * @return the AzureMachineLearningWorkspacesBuilder.
+ * @return the AzureMachineLearningServicesBuilder.
*/
- public AzureMachineLearningWorkspacesBuilder pipeline(HttpPipeline pipeline) {
+ public AzureMachineLearningServicesBuilder pipeline(HttpPipeline pipeline) {
this.pipeline = pipeline;
return this;
}
@@ -90,9 +90,9 @@ public AzureMachineLearningWorkspacesBuilder pipeline(HttpPipeline pipeline) {
* Sets The default poll interval for long-running operation.
*
* @param defaultPollInterval the defaultPollInterval value.
- * @return the AzureMachineLearningWorkspacesBuilder.
+ * @return the AzureMachineLearningServicesBuilder.
*/
- public AzureMachineLearningWorkspacesBuilder defaultPollInterval(Duration defaultPollInterval) {
+ public AzureMachineLearningServicesBuilder defaultPollInterval(Duration defaultPollInterval) {
this.defaultPollInterval = defaultPollInterval;
return this;
}
@@ -106,19 +106,19 @@ public AzureMachineLearningWorkspacesBuilder defaultPollInterval(Duration defaul
* Sets The serializer to serialize an object into a string.
*
* @param serializerAdapter the serializerAdapter value.
- * @return the AzureMachineLearningWorkspacesBuilder.
+ * @return the AzureMachineLearningServicesBuilder.
*/
- public AzureMachineLearningWorkspacesBuilder serializerAdapter(SerializerAdapter serializerAdapter) {
+ public AzureMachineLearningServicesBuilder serializerAdapter(SerializerAdapter serializerAdapter) {
this.serializerAdapter = serializerAdapter;
return this;
}
/**
- * Builds an instance of AzureMachineLearningWorkspacesImpl with the provided parameters.
+ * Builds an instance of AzureMachineLearningServicesImpl with the provided parameters.
*
- * @return an instance of AzureMachineLearningWorkspacesImpl.
+ * @return an instance of AzureMachineLearningServicesImpl.
*/
- public AzureMachineLearningWorkspacesImpl buildClient() {
+ public AzureMachineLearningServicesImpl buildClient() {
String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com";
AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE;
HttpPipeline localPipeline =
@@ -131,8 +131,8 @@ public AzureMachineLearningWorkspacesImpl buildClient() {
(serializerAdapter != null)
? serializerAdapter
: SerializerFactory.createDefaultManagementSerializerAdapter();
- AzureMachineLearningWorkspacesImpl client =
- new AzureMachineLearningWorkspacesImpl(
+ AzureMachineLearningServicesImpl client =
+ new AzureMachineLearningServicesImpl(
localPipeline,
localSerializerAdapter,
localDefaultPollInterval,
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/AzureMachineLearningWorkspacesImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/AzureMachineLearningServicesImpl.java
similarity index 69%
rename from sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/AzureMachineLearningWorkspacesImpl.java
rename to sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/AzureMachineLearningServicesImpl.java
index 242efe7553fd..1fff0adadc5d 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/AzureMachineLearningWorkspacesImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/AzureMachineLearningServicesImpl.java
@@ -22,7 +22,7 @@
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.serializer.SerializerAdapter;
import com.azure.core.util.serializer.SerializerEncoding;
-import com.azure.resourcemanager.machinelearning.fluent.AzureMachineLearningWorkspaces;
+import com.azure.resourcemanager.machinelearning.fluent.AzureMachineLearningServices;
import com.azure.resourcemanager.machinelearning.fluent.BatchDeploymentsClient;
import com.azure.resourcemanager.machinelearning.fluent.BatchEndpointsClient;
import com.azure.resourcemanager.machinelearning.fluent.CodeContainersClient;
@@ -35,7 +35,12 @@
import com.azure.resourcemanager.machinelearning.fluent.DatastoresClient;
import com.azure.resourcemanager.machinelearning.fluent.EnvironmentContainersClient;
import com.azure.resourcemanager.machinelearning.fluent.EnvironmentVersionsClient;
+import com.azure.resourcemanager.machinelearning.fluent.FeaturesetContainersClient;
+import com.azure.resourcemanager.machinelearning.fluent.FeaturesetVersionsClient;
+import com.azure.resourcemanager.machinelearning.fluent.FeaturestoreEntityContainersClient;
+import com.azure.resourcemanager.machinelearning.fluent.FeaturestoreEntityVersionsClient;
import com.azure.resourcemanager.machinelearning.fluent.JobsClient;
+import com.azure.resourcemanager.machinelearning.fluent.LabelingJobsClient;
import com.azure.resourcemanager.machinelearning.fluent.ModelContainersClient;
import com.azure.resourcemanager.machinelearning.fluent.ModelVersionsClient;
import com.azure.resourcemanager.machinelearning.fluent.OnlineDeploymentsClient;
@@ -44,6 +49,17 @@
import com.azure.resourcemanager.machinelearning.fluent.PrivateEndpointConnectionsClient;
import com.azure.resourcemanager.machinelearning.fluent.PrivateLinkResourcesClient;
import com.azure.resourcemanager.machinelearning.fluent.QuotasClient;
+import com.azure.resourcemanager.machinelearning.fluent.RegistriesClient;
+import com.azure.resourcemanager.machinelearning.fluent.RegistryCodeContainersClient;
+import com.azure.resourcemanager.machinelearning.fluent.RegistryCodeVersionsClient;
+import com.azure.resourcemanager.machinelearning.fluent.RegistryComponentContainersClient;
+import com.azure.resourcemanager.machinelearning.fluent.RegistryComponentVersionsClient;
+import com.azure.resourcemanager.machinelearning.fluent.RegistryDataContainersClient;
+import com.azure.resourcemanager.machinelearning.fluent.RegistryDataVersionsClient;
+import com.azure.resourcemanager.machinelearning.fluent.RegistryEnvironmentContainersClient;
+import com.azure.resourcemanager.machinelearning.fluent.RegistryEnvironmentVersionsClient;
+import com.azure.resourcemanager.machinelearning.fluent.RegistryModelContainersClient;
+import com.azure.resourcemanager.machinelearning.fluent.RegistryModelVersionsClient;
import com.azure.resourcemanager.machinelearning.fluent.SchedulesClient;
import com.azure.resourcemanager.machinelearning.fluent.UsagesClient;
import com.azure.resourcemanager.machinelearning.fluent.VirtualMachineSizesClient;
@@ -59,9 +75,9 @@
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
-/** Initializes a new instance of the AzureMachineLearningWorkspacesImpl type. */
-@ServiceClient(builder = AzureMachineLearningWorkspacesBuilder.class)
-public final class AzureMachineLearningWorkspacesImpl implements AzureMachineLearningWorkspaces {
+/** Initializes a new instance of the AzureMachineLearningServicesImpl type. */
+@ServiceClient(builder = AzureMachineLearningServicesBuilder.class)
+public final class AzureMachineLearningServicesImpl implements AzureMachineLearningServices {
/** The ID of the target subscription. */
private final String subscriptionId;
@@ -242,6 +258,126 @@ public WorkspaceConnectionsClient getWorkspaceConnections() {
return this.workspaceConnections;
}
+ /** The RegistryCodeContainersClient object to access its operations. */
+ private final RegistryCodeContainersClient registryCodeContainers;
+
+ /**
+ * Gets the RegistryCodeContainersClient object to access its operations.
+ *
+ * @return the RegistryCodeContainersClient object.
+ */
+ public RegistryCodeContainersClient getRegistryCodeContainers() {
+ return this.registryCodeContainers;
+ }
+
+ /** The RegistryCodeVersionsClient object to access its operations. */
+ private final RegistryCodeVersionsClient registryCodeVersions;
+
+ /**
+ * Gets the RegistryCodeVersionsClient object to access its operations.
+ *
+ * @return the RegistryCodeVersionsClient object.
+ */
+ public RegistryCodeVersionsClient getRegistryCodeVersions() {
+ return this.registryCodeVersions;
+ }
+
+ /** The RegistryComponentContainersClient object to access its operations. */
+ private final RegistryComponentContainersClient registryComponentContainers;
+
+ /**
+ * Gets the RegistryComponentContainersClient object to access its operations.
+ *
+ * @return the RegistryComponentContainersClient object.
+ */
+ public RegistryComponentContainersClient getRegistryComponentContainers() {
+ return this.registryComponentContainers;
+ }
+
+ /** The RegistryComponentVersionsClient object to access its operations. */
+ private final RegistryComponentVersionsClient registryComponentVersions;
+
+ /**
+ * Gets the RegistryComponentVersionsClient object to access its operations.
+ *
+ * @return the RegistryComponentVersionsClient object.
+ */
+ public RegistryComponentVersionsClient getRegistryComponentVersions() {
+ return this.registryComponentVersions;
+ }
+
+ /** The RegistryDataContainersClient object to access its operations. */
+ private final RegistryDataContainersClient registryDataContainers;
+
+ /**
+ * Gets the RegistryDataContainersClient object to access its operations.
+ *
+ * @return the RegistryDataContainersClient object.
+ */
+ public RegistryDataContainersClient getRegistryDataContainers() {
+ return this.registryDataContainers;
+ }
+
+ /** The RegistryDataVersionsClient object to access its operations. */
+ private final RegistryDataVersionsClient registryDataVersions;
+
+ /**
+ * Gets the RegistryDataVersionsClient object to access its operations.
+ *
+ * @return the RegistryDataVersionsClient object.
+ */
+ public RegistryDataVersionsClient getRegistryDataVersions() {
+ return this.registryDataVersions;
+ }
+
+ /** The RegistryEnvironmentContainersClient object to access its operations. */
+ private final RegistryEnvironmentContainersClient registryEnvironmentContainers;
+
+ /**
+ * Gets the RegistryEnvironmentContainersClient object to access its operations.
+ *
+ * @return the RegistryEnvironmentContainersClient object.
+ */
+ public RegistryEnvironmentContainersClient getRegistryEnvironmentContainers() {
+ return this.registryEnvironmentContainers;
+ }
+
+ /** The RegistryEnvironmentVersionsClient object to access its operations. */
+ private final RegistryEnvironmentVersionsClient registryEnvironmentVersions;
+
+ /**
+ * Gets the RegistryEnvironmentVersionsClient object to access its operations.
+ *
+ * @return the RegistryEnvironmentVersionsClient object.
+ */
+ public RegistryEnvironmentVersionsClient getRegistryEnvironmentVersions() {
+ return this.registryEnvironmentVersions;
+ }
+
+ /** The RegistryModelContainersClient object to access its operations. */
+ private final RegistryModelContainersClient registryModelContainers;
+
+ /**
+ * Gets the RegistryModelContainersClient object to access its operations.
+ *
+ * @return the RegistryModelContainersClient object.
+ */
+ public RegistryModelContainersClient getRegistryModelContainers() {
+ return this.registryModelContainers;
+ }
+
+ /** The RegistryModelVersionsClient object to access its operations. */
+ private final RegistryModelVersionsClient registryModelVersions;
+
+ /**
+ * Gets the RegistryModelVersionsClient object to access its operations.
+ *
+ * @return the RegistryModelVersionsClient object.
+ */
+ public RegistryModelVersionsClient getRegistryModelVersions() {
+ return this.registryModelVersions;
+ }
+
/** The BatchEndpointsClient object to access its operations. */
private final BatchEndpointsClient batchEndpoints;
@@ -374,6 +510,54 @@ public EnvironmentVersionsClient getEnvironmentVersions() {
return this.environmentVersions;
}
+ /** The FeaturesetContainersClient object to access its operations. */
+ private final FeaturesetContainersClient featuresetContainers;
+
+ /**
+ * Gets the FeaturesetContainersClient object to access its operations.
+ *
+ * @return the FeaturesetContainersClient object.
+ */
+ public FeaturesetContainersClient getFeaturesetContainers() {
+ return this.featuresetContainers;
+ }
+
+ /** The FeaturesetVersionsClient object to access its operations. */
+ private final FeaturesetVersionsClient featuresetVersions;
+
+ /**
+ * Gets the FeaturesetVersionsClient object to access its operations.
+ *
+ * @return the FeaturesetVersionsClient object.
+ */
+ public FeaturesetVersionsClient getFeaturesetVersions() {
+ return this.featuresetVersions;
+ }
+
+ /** The FeaturestoreEntityContainersClient object to access its operations. */
+ private final FeaturestoreEntityContainersClient featurestoreEntityContainers;
+
+ /**
+ * Gets the FeaturestoreEntityContainersClient object to access its operations.
+ *
+ * @return the FeaturestoreEntityContainersClient object.
+ */
+ public FeaturestoreEntityContainersClient getFeaturestoreEntityContainers() {
+ return this.featurestoreEntityContainers;
+ }
+
+ /** The FeaturestoreEntityVersionsClient object to access its operations. */
+ private final FeaturestoreEntityVersionsClient featurestoreEntityVersions;
+
+ /**
+ * Gets the FeaturestoreEntityVersionsClient object to access its operations.
+ *
+ * @return the FeaturestoreEntityVersionsClient object.
+ */
+ public FeaturestoreEntityVersionsClient getFeaturestoreEntityVersions() {
+ return this.featurestoreEntityVersions;
+ }
+
/** The JobsClient object to access its operations. */
private final JobsClient jobs;
@@ -386,6 +570,18 @@ public JobsClient getJobs() {
return this.jobs;
}
+ /** The LabelingJobsClient object to access its operations. */
+ private final LabelingJobsClient labelingJobs;
+
+ /**
+ * Gets the LabelingJobsClient object to access its operations.
+ *
+ * @return the LabelingJobsClient object.
+ */
+ public LabelingJobsClient getLabelingJobs() {
+ return this.labelingJobs;
+ }
+
/** The ModelContainersClient object to access its operations. */
private final ModelContainersClient modelContainers;
@@ -446,6 +642,18 @@ public SchedulesClient getSchedules() {
return this.schedules;
}
+ /** The RegistriesClient object to access its operations. */
+ private final RegistriesClient registries;
+
+ /**
+ * Gets the RegistriesClient object to access its operations.
+ *
+ * @return the RegistriesClient object.
+ */
+ public RegistriesClient getRegistries() {
+ return this.registries;
+ }
+
/** The WorkspaceFeaturesClient object to access its operations. */
private final WorkspaceFeaturesClient workspaceFeatures;
@@ -459,7 +667,7 @@ public WorkspaceFeaturesClient getWorkspaceFeatures() {
}
/**
- * Initializes an instance of AzureMachineLearningWorkspaces client.
+ * Initializes an instance of AzureMachineLearningServices client.
*
* @param httpPipeline The HTTP pipeline to send requests through.
* @param serializerAdapter The serializer to serialize an object into a string.
@@ -468,7 +676,7 @@ public WorkspaceFeaturesClient getWorkspaceFeatures() {
* @param subscriptionId The ID of the target subscription.
* @param endpoint server parameter.
*/
- AzureMachineLearningWorkspacesImpl(
+ AzureMachineLearningServicesImpl(
HttpPipeline httpPipeline,
SerializerAdapter serializerAdapter,
Duration defaultPollInterval,
@@ -480,7 +688,7 @@ public WorkspaceFeaturesClient getWorkspaceFeatures() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2022-10-01";
+ this.apiVersion = "2023-02-01-preview";
this.operations = new OperationsClientImpl(this);
this.workspaces = new WorkspacesClientImpl(this);
this.usages = new UsagesClientImpl(this);
@@ -490,6 +698,16 @@ public WorkspaceFeaturesClient getWorkspaceFeatures() {
this.privateEndpointConnections = new PrivateEndpointConnectionsClientImpl(this);
this.privateLinkResources = new PrivateLinkResourcesClientImpl(this);
this.workspaceConnections = new WorkspaceConnectionsClientImpl(this);
+ this.registryCodeContainers = new RegistryCodeContainersClientImpl(this);
+ this.registryCodeVersions = new RegistryCodeVersionsClientImpl(this);
+ this.registryComponentContainers = new RegistryComponentContainersClientImpl(this);
+ this.registryComponentVersions = new RegistryComponentVersionsClientImpl(this);
+ this.registryDataContainers = new RegistryDataContainersClientImpl(this);
+ this.registryDataVersions = new RegistryDataVersionsClientImpl(this);
+ this.registryEnvironmentContainers = new RegistryEnvironmentContainersClientImpl(this);
+ this.registryEnvironmentVersions = new RegistryEnvironmentVersionsClientImpl(this);
+ this.registryModelContainers = new RegistryModelContainersClientImpl(this);
+ this.registryModelVersions = new RegistryModelVersionsClientImpl(this);
this.batchEndpoints = new BatchEndpointsClientImpl(this);
this.batchDeployments = new BatchDeploymentsClientImpl(this);
this.codeContainers = new CodeContainersClientImpl(this);
@@ -501,12 +719,18 @@ public WorkspaceFeaturesClient getWorkspaceFeatures() {
this.datastores = new DatastoresClientImpl(this);
this.environmentContainers = new EnvironmentContainersClientImpl(this);
this.environmentVersions = new EnvironmentVersionsClientImpl(this);
+ this.featuresetContainers = new FeaturesetContainersClientImpl(this);
+ this.featuresetVersions = new FeaturesetVersionsClientImpl(this);
+ this.featurestoreEntityContainers = new FeaturestoreEntityContainersClientImpl(this);
+ this.featurestoreEntityVersions = new FeaturestoreEntityVersionsClientImpl(this);
this.jobs = new JobsClientImpl(this);
+ this.labelingJobs = new LabelingJobsClientImpl(this);
this.modelContainers = new ModelContainersClientImpl(this);
this.modelVersions = new ModelVersionsClientImpl(this);
this.onlineEndpoints = new OnlineEndpointsClientImpl(this);
this.onlineDeployments = new OnlineDeploymentsClientImpl(this);
this.schedules = new SchedulesClientImpl(this);
+ this.registries = new RegistriesClientImpl(this);
this.workspaceFeatures = new WorkspaceFeaturesClientImpl(this);
}
@@ -650,5 +874,5 @@ public Mono getBodyAsString(Charset charset) {
}
}
- private static final ClientLogger LOGGER = new ClientLogger(AzureMachineLearningWorkspacesImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(AzureMachineLearningServicesImpl.class);
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/BatchDeploymentsClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/BatchDeploymentsClientImpl.java
index 6f28d675f5f5..325141819523 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/BatchDeploymentsClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/BatchDeploymentsClientImpl.java
@@ -46,22 +46,22 @@ public final class BatchDeploymentsClientImpl implements BatchDeploymentsClient
private final BatchDeploymentsService service;
/** The service client containing this operation class. */
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of BatchDeploymentsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- BatchDeploymentsClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ BatchDeploymentsClientImpl(AzureMachineLearningServicesImpl client) {
this.service =
RestProxy.create(BatchDeploymentsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesBatchDeployments to be used by the
- * proxy service to perform REST calls.
+ * The interface defining all the services for AzureMachineLearningServicesBatchDeployments to be used by the proxy
+ * service to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "AzureMachineLearning")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/BatchEndpointsClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/BatchEndpointsClientImpl.java
index 9d00fdc12171..8f77f1ed7e39 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/BatchEndpointsClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/BatchEndpointsClientImpl.java
@@ -48,21 +48,21 @@ public final class BatchEndpointsClientImpl implements BatchEndpointsClient {
private final BatchEndpointsService service;
/** The service client containing this operation class. */
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of BatchEndpointsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- BatchEndpointsClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ BatchEndpointsClientImpl(AzureMachineLearningServicesImpl client) {
this.service =
RestProxy.create(BatchEndpointsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesBatchEndpoints to be used by the proxy
+ * The interface defining all the services for AzureMachineLearningServicesBatchEndpoints to be used by the proxy
* service to perform REST calls.
*/
@Host("{$host}")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeContainerImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeContainerImpl.java
index f739c63622ac..eae9e1a14652 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeContainerImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeContainerImpl.java
@@ -49,13 +49,13 @@ private com.azure.resourcemanager.machinelearning.MachineLearningManager manager
private String resourceGroupName;
- private String workspaceName;
+ private String registryName;
- private String name;
+ private String codeName;
- public CodeContainerImpl withExistingWorkspace(String resourceGroupName, String workspaceName) {
+ public CodeContainerImpl withExistingRegistry(String resourceGroupName, String registryName) {
this.resourceGroupName = resourceGroupName;
- this.workspaceName = workspaceName;
+ this.registryName = registryName;
return this;
}
@@ -63,9 +63,8 @@ public CodeContainer create() {
this.innerObject =
serviceManager
.serviceClient()
- .getCodeContainers()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, this.innerModel(), Context.NONE)
- .getValue();
+ .getRegistryCodeContainers()
+ .createOrUpdate(resourceGroupName, registryName, codeName, this.innerModel(), Context.NONE);
return this;
}
@@ -73,16 +72,15 @@ public CodeContainer create(Context context) {
this.innerObject =
serviceManager
.serviceClient()
- .getCodeContainers()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, this.innerModel(), context)
- .getValue();
+ .getRegistryCodeContainers()
+ .createOrUpdate(resourceGroupName, registryName, codeName, this.innerModel(), context);
return this;
}
CodeContainerImpl(String name, com.azure.resourcemanager.machinelearning.MachineLearningManager serviceManager) {
this.innerObject = new CodeContainerInner();
this.serviceManager = serviceManager;
- this.name = name;
+ this.codeName = name;
}
public CodeContainerImpl update() {
@@ -93,9 +91,8 @@ public CodeContainer apply() {
this.innerObject =
serviceManager
.serviceClient()
- .getCodeContainers()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, this.innerModel(), Context.NONE)
- .getValue();
+ .getRegistryCodeContainers()
+ .createOrUpdate(resourceGroupName, registryName, codeName, this.innerModel(), Context.NONE);
return this;
}
@@ -103,9 +100,8 @@ public CodeContainer apply(Context context) {
this.innerObject =
serviceManager
.serviceClient()
- .getCodeContainers()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, this.innerModel(), context)
- .getValue();
+ .getRegistryCodeContainers()
+ .createOrUpdate(resourceGroupName, registryName, codeName, this.innerModel(), context);
return this;
}
@@ -115,16 +111,16 @@ public CodeContainer apply(Context context) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.workspaceName = Utils.getValueFromIdByName(innerObject.id(), "workspaces");
- this.name = Utils.getValueFromIdByName(innerObject.id(), "codes");
+ this.registryName = Utils.getValueFromIdByName(innerObject.id(), "registries");
+ this.codeName = Utils.getValueFromIdByName(innerObject.id(), "codes");
}
public CodeContainer refresh() {
this.innerObject =
serviceManager
.serviceClient()
- .getCodeContainers()
- .getWithResponse(resourceGroupName, workspaceName, name, Context.NONE)
+ .getRegistryCodeContainers()
+ .getWithResponse(resourceGroupName, registryName, codeName, Context.NONE)
.getValue();
return this;
}
@@ -133,8 +129,8 @@ public CodeContainer refresh(Context context) {
this.innerObject =
serviceManager
.serviceClient()
- .getCodeContainers()
- .getWithResponse(resourceGroupName, workspaceName, name, context)
+ .getRegistryCodeContainers()
+ .getWithResponse(resourceGroupName, registryName, codeName, context)
.getValue();
return this;
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeContainersClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeContainersClientImpl.java
index 019f7490ddf8..e4b05a67278f 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeContainersClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeContainersClientImpl.java
@@ -39,21 +39,21 @@ public final class CodeContainersClientImpl implements CodeContainersClient {
private final CodeContainersService service;
/** The service client containing this operation class. */
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of CodeContainersClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- CodeContainersClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ CodeContainersClientImpl(AzureMachineLearningServicesImpl client) {
this.service =
RestProxy.create(CodeContainersService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesCodeContainers to be used by the proxy
+ * The interface defining all the services for AzureMachineLearningServicesCodeContainers to be used by the proxy
* service to perform REST calls.
*/
@Host("{$host}")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeContainersImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeContainersImpl.java
index 0202b27fb32c..c82929e2dc86 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeContainersImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeContainersImpl.java
@@ -73,108 +73,29 @@ public CodeContainer get(String resourceGroupName, String workspaceName, String
}
}
- public CodeContainer getById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = Utils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = Utils.getValueFromIdByName(id, "codes");
- if (name == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'codes'.", id)));
- }
- return this.getWithResponse(resourceGroupName, workspaceName, name, Context.NONE).getValue();
- }
-
- public Response getByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = Utils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = Utils.getValueFromIdByName(id, "codes");
- if (name == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'codes'.", id)));
- }
- return this.getWithResponse(resourceGroupName, workspaceName, name, context);
- }
-
- public void deleteById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = Utils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = Utils.getValueFromIdByName(id, "codes");
- if (name == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'codes'.", id)));
+ public Response createOrUpdateWithResponse(
+ String resourceGroupName, String workspaceName, String name, CodeContainerInner body, Context context) {
+ Response inner =
+ this.serviceClient().createOrUpdateWithResponse(resourceGroupName, workspaceName, name, body, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new CodeContainerImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
}
- this.deleteWithResponse(resourceGroupName, workspaceName, name, Context.NONE);
}
- public Response deleteByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = Utils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = Utils.getValueFromIdByName(id, "codes");
- if (name == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'codes'.", id)));
+ public CodeContainer createOrUpdate(
+ String resourceGroupName, String workspaceName, String name, CodeContainerInner body) {
+ CodeContainerInner inner = this.serviceClient().createOrUpdate(resourceGroupName, workspaceName, name, body);
+ if (inner != null) {
+ return new CodeContainerImpl(inner, this.manager());
+ } else {
+ return null;
}
- return this.deleteWithResponse(resourceGroupName, workspaceName, name, context);
}
private CodeContainersClient serviceClient() {
@@ -184,8 +105,4 @@ private CodeContainersClient serviceClient() {
private com.azure.resourcemanager.machinelearning.MachineLearningManager manager() {
return this.serviceManager;
}
-
- public CodeContainerImpl define(String name) {
- return new CodeContainerImpl(name, this.manager());
- }
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeVersionImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeVersionImpl.java
index daab7505f3ff..9401e4af4452 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeVersionImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeVersionImpl.java
@@ -49,16 +49,16 @@ private com.azure.resourcemanager.machinelearning.MachineLearningManager manager
private String resourceGroupName;
- private String workspaceName;
+ private String registryName;
- private String name;
+ private String codeName;
private String version;
- public CodeVersionImpl withExistingCode(String resourceGroupName, String workspaceName, String name) {
+ public CodeVersionImpl withExistingCode(String resourceGroupName, String registryName, String codeName) {
this.resourceGroupName = resourceGroupName;
- this.workspaceName = workspaceName;
- this.name = name;
+ this.registryName = registryName;
+ this.codeName = codeName;
return this;
}
@@ -66,10 +66,8 @@ public CodeVersion create() {
this.innerObject =
serviceManager
.serviceClient()
- .getCodeVersions()
- .createOrUpdateWithResponse(
- resourceGroupName, workspaceName, name, version, this.innerModel(), Context.NONE)
- .getValue();
+ .getRegistryCodeVersions()
+ .createOrUpdate(resourceGroupName, registryName, codeName, version, this.innerModel(), Context.NONE);
return this;
}
@@ -77,9 +75,8 @@ public CodeVersion create(Context context) {
this.innerObject =
serviceManager
.serviceClient()
- .getCodeVersions()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, version, this.innerModel(), context)
- .getValue();
+ .getRegistryCodeVersions()
+ .createOrUpdate(resourceGroupName, registryName, codeName, version, this.innerModel(), context);
return this;
}
@@ -97,10 +94,8 @@ public CodeVersion apply() {
this.innerObject =
serviceManager
.serviceClient()
- .getCodeVersions()
- .createOrUpdateWithResponse(
- resourceGroupName, workspaceName, name, version, this.innerModel(), Context.NONE)
- .getValue();
+ .getRegistryCodeVersions()
+ .createOrUpdate(resourceGroupName, registryName, codeName, version, this.innerModel(), Context.NONE);
return this;
}
@@ -108,9 +103,8 @@ public CodeVersion apply(Context context) {
this.innerObject =
serviceManager
.serviceClient()
- .getCodeVersions()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, version, this.innerModel(), context)
- .getValue();
+ .getRegistryCodeVersions()
+ .createOrUpdate(resourceGroupName, registryName, codeName, version, this.innerModel(), context);
return this;
}
@@ -119,8 +113,8 @@ public CodeVersion apply(Context context) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.workspaceName = Utils.getValueFromIdByName(innerObject.id(), "workspaces");
- this.name = Utils.getValueFromIdByName(innerObject.id(), "codes");
+ this.registryName = Utils.getValueFromIdByName(innerObject.id(), "registries");
+ this.codeName = Utils.getValueFromIdByName(innerObject.id(), "codes");
this.version = Utils.getValueFromIdByName(innerObject.id(), "versions");
}
@@ -128,8 +122,8 @@ public CodeVersion refresh() {
this.innerObject =
serviceManager
.serviceClient()
- .getCodeVersions()
- .getWithResponse(resourceGroupName, workspaceName, name, version, Context.NONE)
+ .getRegistryCodeVersions()
+ .getWithResponse(resourceGroupName, registryName, codeName, version, Context.NONE)
.getValue();
return this;
}
@@ -138,8 +132,8 @@ public CodeVersion refresh(Context context) {
this.innerObject =
serviceManager
.serviceClient()
- .getCodeVersions()
- .getWithResponse(resourceGroupName, workspaceName, name, version, context)
+ .getRegistryCodeVersions()
+ .getWithResponse(resourceGroupName, registryName, codeName, version, context)
.getValue();
return this;
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeVersionsClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeVersionsClientImpl.java
index 5e0cdc080acd..520497710cae 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeVersionsClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeVersionsClientImpl.java
@@ -39,21 +39,21 @@ public final class CodeVersionsClientImpl implements CodeVersionsClient {
private final CodeVersionsService service;
/** The service client containing this operation class. */
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of CodeVersionsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- CodeVersionsClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ CodeVersionsClientImpl(AzureMachineLearningServicesImpl client) {
this.service =
RestProxy.create(CodeVersionsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesCodeVersions to be used by the proxy
+ * The interface defining all the services for AzureMachineLearningServicesCodeVersions to be used by the proxy
* service to perform REST calls.
*/
@Host("{$host}")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeVersionsImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeVersionsImpl.java
index 49705d0a8abd..3118de08dfda 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeVersionsImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeVersionsImpl.java
@@ -79,136 +79,37 @@ public CodeVersion get(String resourceGroupName, String workspaceName, String na
}
}
- public CodeVersion getById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = Utils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = Utils.getValueFromIdByName(id, "codes");
- if (name == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'codes'.", id)));
- }
- String version = Utils.getValueFromIdByName(id, "versions");
- if (version == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
- }
- return this.getWithResponse(resourceGroupName, workspaceName, name, version, Context.NONE).getValue();
- }
-
- public Response getByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = Utils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = Utils.getValueFromIdByName(id, "codes");
- if (name == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'codes'.", id)));
- }
- String version = Utils.getValueFromIdByName(id, "versions");
- if (version == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
- }
- return this.getWithResponse(resourceGroupName, workspaceName, name, version, context);
- }
-
- public void deleteById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = Utils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = Utils.getValueFromIdByName(id, "codes");
- if (name == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'codes'.", id)));
- }
- String version = Utils.getValueFromIdByName(id, "versions");
- if (version == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
+ public Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ String version,
+ CodeVersionInner body,
+ Context context) {
+ Response inner =
+ this
+ .serviceClient()
+ .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, version, body, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new CodeVersionImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
}
- this.deleteWithResponse(resourceGroupName, workspaceName, name, version, Context.NONE);
}
- public Response deleteByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = Utils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = Utils.getValueFromIdByName(id, "codes");
- if (name == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'codes'.", id)));
- }
- String version = Utils.getValueFromIdByName(id, "versions");
- if (version == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
+ public CodeVersion createOrUpdate(
+ String resourceGroupName, String workspaceName, String name, String version, CodeVersionInner body) {
+ CodeVersionInner inner =
+ this.serviceClient().createOrUpdate(resourceGroupName, workspaceName, name, version, body);
+ if (inner != null) {
+ return new CodeVersionImpl(inner, this.manager());
+ } else {
+ return null;
}
- return this.deleteWithResponse(resourceGroupName, workspaceName, name, version, context);
}
private CodeVersionsClient serviceClient() {
@@ -218,8 +119,4 @@ private CodeVersionsClient serviceClient() {
private com.azure.resourcemanager.machinelearning.MachineLearningManager manager() {
return this.serviceManager;
}
-
- public CodeVersionImpl define(String name) {
- return new CodeVersionImpl(name, this.manager());
- }
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentContainerImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentContainerImpl.java
index 0208215c0403..98f219f5889e 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentContainerImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentContainerImpl.java
@@ -50,13 +50,13 @@ private com.azure.resourcemanager.machinelearning.MachineLearningManager manager
private String resourceGroupName;
- private String workspaceName;
+ private String registryName;
- private String name;
+ private String componentName;
- public ComponentContainerImpl withExistingWorkspace(String resourceGroupName, String workspaceName) {
+ public ComponentContainerImpl withExistingRegistry(String resourceGroupName, String registryName) {
this.resourceGroupName = resourceGroupName;
- this.workspaceName = workspaceName;
+ this.registryName = registryName;
return this;
}
@@ -64,9 +64,8 @@ public ComponentContainer create() {
this.innerObject =
serviceManager
.serviceClient()
- .getComponentContainers()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, this.innerModel(), Context.NONE)
- .getValue();
+ .getRegistryComponentContainers()
+ .createOrUpdate(resourceGroupName, registryName, componentName, this.innerModel(), Context.NONE);
return this;
}
@@ -74,9 +73,8 @@ public ComponentContainer create(Context context) {
this.innerObject =
serviceManager
.serviceClient()
- .getComponentContainers()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, this.innerModel(), context)
- .getValue();
+ .getRegistryComponentContainers()
+ .createOrUpdate(resourceGroupName, registryName, componentName, this.innerModel(), context);
return this;
}
@@ -84,7 +82,7 @@ public ComponentContainer create(Context context) {
String name, com.azure.resourcemanager.machinelearning.MachineLearningManager serviceManager) {
this.innerObject = new ComponentContainerInner();
this.serviceManager = serviceManager;
- this.name = name;
+ this.componentName = name;
}
public ComponentContainerImpl update() {
@@ -95,9 +93,8 @@ public ComponentContainer apply() {
this.innerObject =
serviceManager
.serviceClient()
- .getComponentContainers()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, this.innerModel(), Context.NONE)
- .getValue();
+ .getRegistryComponentContainers()
+ .createOrUpdate(resourceGroupName, registryName, componentName, this.innerModel(), Context.NONE);
return this;
}
@@ -105,9 +102,8 @@ public ComponentContainer apply(Context context) {
this.innerObject =
serviceManager
.serviceClient()
- .getComponentContainers()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, this.innerModel(), context)
- .getValue();
+ .getRegistryComponentContainers()
+ .createOrUpdate(resourceGroupName, registryName, componentName, this.innerModel(), context);
return this;
}
@@ -117,16 +113,16 @@ public ComponentContainer apply(Context context) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.workspaceName = Utils.getValueFromIdByName(innerObject.id(), "workspaces");
- this.name = Utils.getValueFromIdByName(innerObject.id(), "components");
+ this.registryName = Utils.getValueFromIdByName(innerObject.id(), "registries");
+ this.componentName = Utils.getValueFromIdByName(innerObject.id(), "components");
}
public ComponentContainer refresh() {
this.innerObject =
serviceManager
.serviceClient()
- .getComponentContainers()
- .getWithResponse(resourceGroupName, workspaceName, name, Context.NONE)
+ .getRegistryComponentContainers()
+ .getWithResponse(resourceGroupName, registryName, componentName, Context.NONE)
.getValue();
return this;
}
@@ -135,8 +131,8 @@ public ComponentContainer refresh(Context context) {
this.innerObject =
serviceManager
.serviceClient()
- .getComponentContainers()
- .getWithResponse(resourceGroupName, workspaceName, name, context)
+ .getRegistryComponentContainers()
+ .getWithResponse(resourceGroupName, registryName, componentName, context)
.getValue();
return this;
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentContainersClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentContainersClientImpl.java
index 7c8593db5a97..da1544c26577 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentContainersClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentContainersClientImpl.java
@@ -40,21 +40,21 @@ public final class ComponentContainersClientImpl implements ComponentContainersC
private final ComponentContainersService service;
/** The service client containing this operation class. */
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of ComponentContainersClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- ComponentContainersClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ ComponentContainersClientImpl(AzureMachineLearningServicesImpl client) {
this.service =
RestProxy.create(ComponentContainersService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesComponentContainers to be used by the
+ * The interface defining all the services for AzureMachineLearningServicesComponentContainers to be used by the
* proxy service to perform REST calls.
*/
@Host("{$host}")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentContainersImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentContainersImpl.java
index b9bc5f40a732..308ac7fc8c0b 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentContainersImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentContainersImpl.java
@@ -74,108 +74,30 @@ public ComponentContainer get(String resourceGroupName, String workspaceName, St
}
}
- public ComponentContainer getById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = Utils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = Utils.getValueFromIdByName(id, "components");
- if (name == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'components'.", id)));
- }
- return this.getWithResponse(resourceGroupName, workspaceName, name, Context.NONE).getValue();
- }
-
- public Response getByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = Utils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = Utils.getValueFromIdByName(id, "components");
- if (name == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'components'.", id)));
- }
- return this.getWithResponse(resourceGroupName, workspaceName, name, context);
- }
-
- public void deleteById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = Utils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = Utils.getValueFromIdByName(id, "components");
- if (name == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'components'.", id)));
+ public Response createOrUpdateWithResponse(
+ String resourceGroupName, String workspaceName, String name, ComponentContainerInner body, Context context) {
+ Response inner =
+ this.serviceClient().createOrUpdateWithResponse(resourceGroupName, workspaceName, name, body, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new ComponentContainerImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
}
- this.deleteWithResponse(resourceGroupName, workspaceName, name, Context.NONE);
}
- public Response deleteByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = Utils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = Utils.getValueFromIdByName(id, "components");
- if (name == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'components'.", id)));
+ public ComponentContainer createOrUpdate(
+ String resourceGroupName, String workspaceName, String name, ComponentContainerInner body) {
+ ComponentContainerInner inner =
+ this.serviceClient().createOrUpdate(resourceGroupName, workspaceName, name, body);
+ if (inner != null) {
+ return new ComponentContainerImpl(inner, this.manager());
+ } else {
+ return null;
}
- return this.deleteWithResponse(resourceGroupName, workspaceName, name, context);
}
private ComponentContainersClient serviceClient() {
@@ -185,8 +107,4 @@ private ComponentContainersClient serviceClient() {
private com.azure.resourcemanager.machinelearning.MachineLearningManager manager() {
return this.serviceManager;
}
-
- public ComponentContainerImpl define(String name) {
- return new ComponentContainerImpl(name, this.manager());
- }
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentVersionImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentVersionImpl.java
index 2b90ee811ddb..8cda2a3d7a02 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentVersionImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentVersionImpl.java
@@ -50,16 +50,17 @@ private com.azure.resourcemanager.machinelearning.MachineLearningManager manager
private String resourceGroupName;
- private String workspaceName;
+ private String registryName;
- private String name;
+ private String componentName;
private String version;
- public ComponentVersionImpl withExistingComponent(String resourceGroupName, String workspaceName, String name) {
+ public ComponentVersionImpl withExistingComponent(
+ String resourceGroupName, String registryName, String componentName) {
this.resourceGroupName = resourceGroupName;
- this.workspaceName = workspaceName;
- this.name = name;
+ this.registryName = registryName;
+ this.componentName = componentName;
return this;
}
@@ -67,10 +68,9 @@ public ComponentVersion create() {
this.innerObject =
serviceManager
.serviceClient()
- .getComponentVersions()
- .createOrUpdateWithResponse(
- resourceGroupName, workspaceName, name, version, this.innerModel(), Context.NONE)
- .getValue();
+ .getRegistryComponentVersions()
+ .createOrUpdate(
+ resourceGroupName, registryName, componentName, version, this.innerModel(), Context.NONE);
return this;
}
@@ -78,9 +78,8 @@ public ComponentVersion create(Context context) {
this.innerObject =
serviceManager
.serviceClient()
- .getComponentVersions()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, version, this.innerModel(), context)
- .getValue();
+ .getRegistryComponentVersions()
+ .createOrUpdate(resourceGroupName, registryName, componentName, version, this.innerModel(), context);
return this;
}
@@ -98,10 +97,9 @@ public ComponentVersion apply() {
this.innerObject =
serviceManager
.serviceClient()
- .getComponentVersions()
- .createOrUpdateWithResponse(
- resourceGroupName, workspaceName, name, version, this.innerModel(), Context.NONE)
- .getValue();
+ .getRegistryComponentVersions()
+ .createOrUpdate(
+ resourceGroupName, registryName, componentName, version, this.innerModel(), Context.NONE);
return this;
}
@@ -109,9 +107,8 @@ public ComponentVersion apply(Context context) {
this.innerObject =
serviceManager
.serviceClient()
- .getComponentVersions()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, version, this.innerModel(), context)
- .getValue();
+ .getRegistryComponentVersions()
+ .createOrUpdate(resourceGroupName, registryName, componentName, version, this.innerModel(), context);
return this;
}
@@ -121,8 +118,8 @@ public ComponentVersion apply(Context context) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.workspaceName = Utils.getValueFromIdByName(innerObject.id(), "workspaces");
- this.name = Utils.getValueFromIdByName(innerObject.id(), "components");
+ this.registryName = Utils.getValueFromIdByName(innerObject.id(), "registries");
+ this.componentName = Utils.getValueFromIdByName(innerObject.id(), "components");
this.version = Utils.getValueFromIdByName(innerObject.id(), "versions");
}
@@ -130,8 +127,8 @@ public ComponentVersion refresh() {
this.innerObject =
serviceManager
.serviceClient()
- .getComponentVersions()
- .getWithResponse(resourceGroupName, workspaceName, name, version, Context.NONE)
+ .getRegistryComponentVersions()
+ .getWithResponse(resourceGroupName, registryName, componentName, version, Context.NONE)
.getValue();
return this;
}
@@ -140,8 +137,8 @@ public ComponentVersion refresh(Context context) {
this.innerObject =
serviceManager
.serviceClient()
- .getComponentVersions()
- .getWithResponse(resourceGroupName, workspaceName, name, version, context)
+ .getRegistryComponentVersions()
+ .getWithResponse(resourceGroupName, registryName, componentName, version, context)
.getValue();
return this;
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentVersionsClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentVersionsClientImpl.java
index 4cfb98d8af64..6c2b5665e00a 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentVersionsClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentVersionsClientImpl.java
@@ -40,22 +40,22 @@ public final class ComponentVersionsClientImpl implements ComponentVersionsClien
private final ComponentVersionsService service;
/** The service client containing this operation class. */
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of ComponentVersionsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- ComponentVersionsClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ ComponentVersionsClientImpl(AzureMachineLearningServicesImpl client) {
this.service =
RestProxy.create(ComponentVersionsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesComponentVersions to be used by the
- * proxy service to perform REST calls.
+ * The interface defining all the services for AzureMachineLearningServicesComponentVersions to be used by the proxy
+ * service to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "AzureMachineLearning")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentVersionsImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentVersionsImpl.java
index b31d3e83102b..ee670a394932 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentVersionsImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentVersionsImpl.java
@@ -83,136 +83,37 @@ public ComponentVersion get(String resourceGroupName, String workspaceName, Stri
}
}
- public ComponentVersion getById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = Utils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = Utils.getValueFromIdByName(id, "components");
- if (name == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'components'.", id)));
- }
- String version = Utils.getValueFromIdByName(id, "versions");
- if (version == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
- }
- return this.getWithResponse(resourceGroupName, workspaceName, name, version, Context.NONE).getValue();
- }
-
- public Response getByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = Utils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = Utils.getValueFromIdByName(id, "components");
- if (name == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'components'.", id)));
- }
- String version = Utils.getValueFromIdByName(id, "versions");
- if (version == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
- }
- return this.getWithResponse(resourceGroupName, workspaceName, name, version, context);
- }
-
- public void deleteById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = Utils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = Utils.getValueFromIdByName(id, "components");
- if (name == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'components'.", id)));
- }
- String version = Utils.getValueFromIdByName(id, "versions");
- if (version == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
+ public Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ String version,
+ ComponentVersionInner body,
+ Context context) {
+ Response inner =
+ this
+ .serviceClient()
+ .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, version, body, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new ComponentVersionImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
}
- this.deleteWithResponse(resourceGroupName, workspaceName, name, version, Context.NONE);
}
- public Response deleteByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = Utils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = Utils.getValueFromIdByName(id, "components");
- if (name == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'components'.", id)));
- }
- String version = Utils.getValueFromIdByName(id, "versions");
- if (version == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
+ public ComponentVersion createOrUpdate(
+ String resourceGroupName, String workspaceName, String name, String version, ComponentVersionInner body) {
+ ComponentVersionInner inner =
+ this.serviceClient().createOrUpdate(resourceGroupName, workspaceName, name, version, body);
+ if (inner != null) {
+ return new ComponentVersionImpl(inner, this.manager());
+ } else {
+ return null;
}
- return this.deleteWithResponse(resourceGroupName, workspaceName, name, version, context);
}
private ComponentVersionsClient serviceClient() {
@@ -222,8 +123,4 @@ private ComponentVersionsClient serviceClient() {
private com.azure.resourcemanager.machinelearning.MachineLearningManager manager() {
return this.serviceManager;
}
-
- public ComponentVersionImpl define(String name) {
- return new ComponentVersionImpl(name, this.manager());
- }
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComputeResourceImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComputeResourceImpl.java
index 26ad7807900d..c1080c7b732c 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComputeResourceImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComputeResourceImpl.java
@@ -15,10 +15,13 @@
import com.azure.resourcemanager.machinelearning.models.Compute;
import com.azure.resourcemanager.machinelearning.models.ComputeResource;
import com.azure.resourcemanager.machinelearning.models.ComputeSecrets;
+import com.azure.resourcemanager.machinelearning.models.CustomService;
+import com.azure.resourcemanager.machinelearning.models.IdleShutdownSetting;
import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentity;
import com.azure.resourcemanager.machinelearning.models.ScaleSettingsInformation;
import com.azure.resourcemanager.machinelearning.models.Sku;
import java.util.Collections;
+import java.util.List;
import java.util.Map;
public final class ComputeResourceImpl implements ComputeResource, ComputeResource.Definition, ComputeResource.Update {
@@ -178,6 +181,16 @@ public ComputeResource refresh(Context context) {
return this;
}
+ public Response updateCustomServicesWithResponse(List customServices, Context context) {
+ return serviceManager
+ .computes()
+ .updateCustomServicesWithResponse(resourceGroupName, workspaceName, computeName, customServices, context);
+ }
+
+ public void updateCustomServices(List customServices) {
+ serviceManager.computes().updateCustomServices(resourceGroupName, workspaceName, computeName, customServices);
+ }
+
public PagedIterable listNodes() {
return serviceManager.computes().listNodes(resourceGroupName, workspaceName, computeName);
}
@@ -218,6 +231,16 @@ public void restart(Context context) {
serviceManager.computes().restart(resourceGroupName, workspaceName, computeName, context);
}
+ public Response updateIdleShutdownSettingWithResponse(IdleShutdownSetting parameters, Context context) {
+ return serviceManager
+ .computes()
+ .updateIdleShutdownSettingWithResponse(resourceGroupName, workspaceName, computeName, parameters, context);
+ }
+
+ public void updateIdleShutdownSetting(IdleShutdownSetting parameters) {
+ serviceManager.computes().updateIdleShutdownSetting(resourceGroupName, workspaceName, computeName, parameters);
+ }
+
public ComputeResourceImpl withRegion(Region location) {
this.innerModel().withLocation(location.toString());
return this;
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComputesClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComputesClientImpl.java
index 1502a033768b..696c7c74f3b2 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComputesClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComputesClientImpl.java
@@ -39,9 +39,12 @@
import com.azure.resourcemanager.machinelearning.models.AmlComputeNodeInformation;
import com.azure.resourcemanager.machinelearning.models.AmlComputeNodesInformation;
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.PaginatedComputeResourcesList;
import com.azure.resourcemanager.machinelearning.models.UnderlyingResourceAction;
import java.nio.ByteBuffer;
+import java.util.List;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@@ -51,21 +54,21 @@ public final class ComputesClientImpl implements ComputesClient {
private final ComputesService service;
/** The service client containing this operation class. */
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of ComputesClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- ComputesClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ ComputesClientImpl(AzureMachineLearningServicesImpl client) {
this.service = RestProxy.create(ComputesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesComputes to be used by the proxy
- * service to perform REST calls.
+ * The interface defining all the services for AzureMachineLearningServicesComputes to be used by the proxy service
+ * to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "AzureMachineLearning")
@@ -153,6 +156,23 @@ Mono>> delete(
@HeaderParam("Accept") String accept,
Context context);
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
+ + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/customServices")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> updateCustomServices(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("workspaceName") String workspaceName,
+ @PathParam("computeName") String computeName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") List customServices,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
@Headers({"Content-Type: application/json"})
@Post(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
@@ -233,6 +253,24 @@ Mono>> restart(
@HeaderParam("Accept") String accept,
Context context);
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
+ + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}"
+ + "/updateIdleShutdownSetting")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> updateIdleShutdownSetting(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("workspaceName") String workspaceName,
+ @PathParam("computeName") String computeName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") IdleShutdownSetting parameters,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
@Headers({"Content-Type: application/json"})
@Get("{nextLink}")
@ExpectedResponses({200})
@@ -1591,6 +1629,189 @@ public void delete(
deleteAsync(resourceGroupName, workspaceName, computeName, underlyingResourceAction, context).block();
}
+ /**
+ * 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 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} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> updateCustomServicesWithResponseAsync(
+ String resourceGroupName, String workspaceName, String computeName, List customServices) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (workspaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null."));
+ }
+ if (computeName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter computeName is required and cannot be null."));
+ }
+ if (customServices == null) {
+ return Mono.error(new IllegalArgumentException("Parameter customServices is required and cannot be null."));
+ } else {
+ customServices.forEach(e -> e.validate());
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .updateCustomServices(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ workspaceName,
+ computeName,
+ this.client.getApiVersion(),
+ customServices,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * 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 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} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> updateCustomServicesWithResponseAsync(
+ String resourceGroupName,
+ String workspaceName,
+ String computeName,
+ List customServices,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (workspaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null."));
+ }
+ if (computeName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter computeName is required and cannot be null."));
+ }
+ if (customServices == null) {
+ return Mono.error(new IllegalArgumentException("Parameter customServices is required and cannot be null."));
+ } else {
+ customServices.forEach(e -> e.validate());
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .updateCustomServices(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ workspaceName,
+ computeName,
+ this.client.getApiVersion(),
+ customServices,
+ accept,
+ 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 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 {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateCustomServicesAsync(
+ String resourceGroupName, String workspaceName, String computeName, List customServices) {
+ return updateCustomServicesWithResponseAsync(resourceGroupName, workspaceName, computeName, customServices)
+ .flatMap(ignored -> Mono.empty());
+ }
+
+ /**
+ * 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 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)
+ public Response