diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/CHANGELOG.md b/sdk/machinelearning/azure-resourcemanager-machinelearning/CHANGELOG.md
index 22cf70d8f2233..c6a5e1cb3f181 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-01-24)
+
+- 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-2022-12. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Features Added
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/README.md b/sdk/machinelearning/azure-resourcemanager-machinelearning/README.md
index 1521aeacd892d..179ba3b4876b6 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-2022-12. 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 aace5155fc337..be9d13192b570 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
@@ -103,6 +105,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)
@@ -158,6 +170,71 @@
- [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)
+
+## 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 +302,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/2022-12-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 +381,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/2022-12-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 +408,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/2022-12-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 +435,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/2022-12-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 +463,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/2022-12-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 +519,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/2022-12-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 +574,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/2022-12-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 +596,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/2022-12-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 +618,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/2022-12-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 +638,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/2022-12-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 +669,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/2022-12-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 +714,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 +722,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/2022-12-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 +764,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/2022-12-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 +786,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/2022-12-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 +808,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/2022-12-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 +825,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 +833,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/2022-12-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 +879,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/2022-12-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 +901,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/2022-12-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 +923,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/2022-12-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 +942,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 +950,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/2022-12-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 +993,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/2022-12-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 +1015,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/2022-12-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 +1037,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/2022-12-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 +1056,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 +1065,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/2022-12-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 +1117,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/2022-12-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 +1139,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/2022-12-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 +1161,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/2022-12-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 +1188,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/2022-12-01-preview/examples/Compute/createOrUpdate/BasicAKSCompute.json
*/
/**
* Sample code: Create an AKS Compute.
@@ -1116,7 +1247,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/2022-12-01-preview/examples/Compute/createOrUpdate/AKSCompute.json
*/
/**
* Sample code: Update an AKS Compute.
@@ -1139,7 +1270,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/2022-12-01-preview/examples/Compute/createOrUpdate/KubernetesCompute.json
*/
/**
* Sample code: Attach a Kubernetes Compute.
@@ -1176,7 +1307,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/2022-12-01-preview/examples/Compute/createOrUpdate/ComputeInstanceWithSchedules.json
*/
/**
* Sample code: Create an ComputeInstance Compute with Schedules.
@@ -1204,12 +1335,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/2022-12-01-preview/examples/Compute/createOrUpdate/BasicAmlCompute.json
*/
/**
* Sample code: Create a AML Compute.
@@ -1245,7 +1390,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/2022-12-01-preview/examples/Compute/createOrUpdate/ComputeInstance.json
*/
/**
* Sample code: Create an ComputeInstance Compute.
@@ -1266,8 +1411,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 +1462,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/2022-12-01-preview/examples/Compute/createOrUpdate/ComputeInstanceMinimal.json
*/
/**
* Sample code: Create an ComputeInstance Compute with minimal inputs.
@@ -1299,7 +1482,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/2022-12-01-preview/examples/Compute/createOrUpdate/AmlCompute.json
*/
/**
* Sample code: Update a AML Compute.
@@ -1326,7 +1509,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/2022-12-01-preview/examples/Compute/createOrUpdate/BasicDataFactoryCompute.json
*/
/**
* Sample code: Create a DataFactory Compute.
@@ -1365,7 +1548,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/2022-12-01-preview/examples/Compute/delete.json
*/
/**
* Sample code: Delete Compute.
@@ -1391,7 +1574,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/2022-12-01-preview/examples/Compute/get/AKSCompute.json
*/
/**
* Sample code: Get a AKS Compute.
@@ -1405,7 +1588,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/2022-12-01-preview/examples/Compute/get/KubernetesCompute.json
*/
/**
* Sample code: Get a Kubernetes Compute.
@@ -1419,7 +1602,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/2022-12-01-preview/examples/Compute/get/ComputeInstance.json
*/
/**
* Sample code: Get an ComputeInstance.
@@ -1433,7 +1616,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/2022-12-01-preview/examples/Compute/get/AmlCompute.json
*/
/**
* Sample code: Get a AML Compute.
@@ -1454,7 +1637,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/2022-12-01-preview/examples/Compute/list.json
*/
/**
* Sample code: Get Computes.
@@ -1473,7 +1656,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/2022-12-01-preview/examples/Compute/listKeys.json
*/
/**
* Sample code: List AKS Compute Keys.
@@ -1494,7 +1677,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/2022-12-01-preview/examples/Compute/listNodes.json
*/
/**
* Sample code: Get compute nodes information for a compute.
@@ -1514,7 +1697,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/2022-12-01-preview/examples/Compute/restart.json
*/
/**
* Sample code: Restart ComputeInstance Compute.
@@ -1534,7 +1717,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/2022-12-01-preview/examples/Compute/start.json
*/
/**
* Sample code: Start ComputeInstance Compute.
@@ -1554,7 +1737,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/2022-12-01-preview/examples/Compute/stop.json
*/
/**
* Sample code: Stop ComputeInstance Compute.
@@ -1579,7 +1762,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/2022-12-01-preview/examples/Compute/patch.json
*/
/**
* Sample code: Update a AmlCompute Compute.
@@ -1607,6 +1790,119 @@ 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/2022-12-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/2022-12-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
@@ -1618,14 +1914,14 @@ 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/2022-12-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()
@@ -1659,14 +1955,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/2022-12-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 +1977,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/2022-12-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 +1999,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/2022-12-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);
}
}
@@ -1724,14 +2023,14 @@ 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/2022-12-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()
@@ -1766,14 +2065,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/2022-12-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 +2087,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/2022-12-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 +2109,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/2022-12-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 +2152,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/2022-12-01-preview/examples/Datastore/AzureDataLakeGen1WServicePrincipal/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate datastore (Azure Data Lake Gen1 w/ ServicePrincipal).
@@ -1881,7 +2183,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/2022-12-01-preview/examples/Datastore/AzureDataLakeGen2WServicePrincipal/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate datastore (Azure Data Lake Gen2 w/ Service Principal).
@@ -1915,7 +2217,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/2022-12-01-preview/examples/Datastore/AzureBlobWAccountKey/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate datastore (AzureBlob w/ AccountKey).
@@ -1944,7 +2246,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/2022-12-01-preview/examples/Datastore/AzureFileWAccountKey/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate datastore (Azure File store w/ AccountKey).
@@ -1991,7 +2293,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/2022-12-01-preview/examples/Datastore/delete.json
*/
/**
* Sample code: Delete datastore.
@@ -2012,7 +2314,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/2022-12-01-preview/examples/Datastore/get.json
*/
/**
* Sample code: Get datastore.
@@ -2033,7 +2335,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/2022-12-01-preview/examples/Datastore/list.json
*/
/**
* Sample code: List datastores.
@@ -2064,7 +2366,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/2022-12-01-preview/examples/Datastore/listSecrets.json
*/
/**
* Sample code: Get datastore secrets.
@@ -2082,6 +2384,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 +2392,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/2022-12-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 +2449,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/2022-12-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 +2471,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/2022-12-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 +2493,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/2022-12-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 +2512,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 +2523,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/2022-12-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 +2580,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/2022-12-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 +2602,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/2022-12-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 +2624,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/2022-12-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()
@@ -2322,7 +2646,7 @@ public final class EnvironmentVersionsListSamples {
/** 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
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-12-01-preview/examples/Job/cancel.json
*/
/**
* Sample code: Cancel Job.
@@ -2342,6 +2666,7 @@ 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.AutologgerSettings;
import com.azure.resourcemanager.machinelearning.models.CommandJob;
import com.azure.resourcemanager.machinelearning.models.CommandJobLimits;
import com.azure.resourcemanager.machinelearning.models.Goal;
@@ -2353,6 +2678,7 @@ import com.azure.resourcemanager.machinelearning.models.ImageModelSettingsClassi
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.MLFlowAutologgerState;
import com.azure.resourcemanager.machinelearning.models.MLTableJobInput;
import com.azure.resourcemanager.machinelearning.models.MedianStoppingPolicy;
import com.azure.resourcemanager.machinelearning.models.Mpi;
@@ -2373,7 +2699,7 @@ import java.util.Map;
/** Samples for Jobs CreateOrUpdate. */
public final class JobsCreateOrUpdateSamples {
/*
- * 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/2022-12-01-preview/examples/Job/AutoMLJob/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate AutoML Job.
@@ -2441,7 +2767,7 @@ public final class JobsCreateOrUpdateSamples {
}
/*
- * 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/2022-12-01-preview/examples/Job/SweepJob/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Sweep Job.
@@ -2506,7 +2832,7 @@ public final class JobsCreateOrUpdateSamples {
}
/*
- * 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/2022-12-01-preview/examples/Job/PipelineJob/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Pipeline Job.
@@ -2551,7 +2877,7 @@ public final class JobsCreateOrUpdateSamples {
}
/*
- * 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/2022-12-01-preview/examples/Job/CommandJob/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Command Job.
@@ -2581,6 +2907,8 @@ public final class JobsCreateOrUpdateSamples {
.withJobServiceType("string")
.withPort(1)
.withProperties(mapOf("string", "string"))))
+ .withAutologgerSettings(
+ new AutologgerSettings().withMlflowAutologger(MLFlowAutologgerState.ENABLED))
.withCodeId("fakeTokenPlaceholder")
.withCommand("string")
.withDistribution(new TensorFlow().withParameterServerCount(1).withWorkerCount(1))
@@ -2630,7 +2958,7 @@ public final class JobsCreateOrUpdateSamples {
/** Samples for Jobs Delete. */
public final class JobsDeleteSamples {
/*
- * 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/2022-12-01-preview/examples/Job/delete.json
*/
/**
* Sample code: Delete Job.
@@ -2649,7 +2977,7 @@ public final class JobsDeleteSamples {
/** Samples for Jobs Get. */
public final class JobsGetSamples {
/*
- * 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/2022-12-01-preview/examples/Job/CommandJob/get.json
*/
/**
* Sample code: Get Command Job.
@@ -2661,7 +2989,7 @@ public final class JobsGetSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/AutoMLJob/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-12-01-preview/examples/Job/AutoMLJob/get.json
*/
/**
* Sample code: Get AutoML Job.
@@ -2673,7 +3001,7 @@ public final class JobsGetSamples {
}
/*
- * 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/2022-12-01-preview/examples/Job/SweepJob/get.json
*/
/**
* Sample code: Get Sweep Job.
@@ -2685,7 +3013,7 @@ public final class JobsGetSamples {
}
/*
- * 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/2022-12-01-preview/examples/Job/PipelineJob/get.json
*/
/**
* Sample code: Get Pipeline Job.
@@ -2704,7 +3032,7 @@ public final class JobsGetSamples {
/** Samples for Jobs List. */
public final class JobsListSamples {
/*
- * 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/2022-12-01-preview/examples/Job/CommandJob/list.json
*/
/**
* Sample code: List Command Job.
@@ -2714,11 +3042,20 @@ public final class JobsListSamples {
public static void listCommandJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.jobs()
- .list("test-rg", "my-aml-workspace", null, "string", "string", null, com.azure.core.util.Context.NONE);
+ .list(
+ "test-rg",
+ "my-aml-workspace",
+ null,
+ "string",
+ "string",
+ null,
+ null,
+ null,
+ com.azure.core.util.Context.NONE);
}
/*
- * 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/2022-12-01-preview/examples/Job/PipelineJob/list.json
*/
/**
* Sample code: List Pipeline Job.
@@ -2728,11 +3065,20 @@ public final class JobsListSamples {
public static void listPipelineJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.jobs()
- .list("test-rg", "my-aml-workspace", null, "string", "string", null, com.azure.core.util.Context.NONE);
+ .list(
+ "test-rg",
+ "my-aml-workspace",
+ null,
+ "string",
+ "string",
+ null,
+ null,
+ null,
+ com.azure.core.util.Context.NONE);
}
/*
- * 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/2022-12-01-preview/examples/Job/SweepJob/list.json
*/
/**
* Sample code: List Sweep Job.
@@ -2742,11 +3088,20 @@ public final class JobsListSamples {
public static void listSweepJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.jobs()
- .list("test-rg", "my-aml-workspace", null, "string", "string", null, com.azure.core.util.Context.NONE);
+ .list(
+ "test-rg",
+ "my-aml-workspace",
+ null,
+ "string",
+ "string",
+ null,
+ null,
+ null,
+ com.azure.core.util.Context.NONE);
}
/*
- * 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/2022-12-01-preview/examples/Job/AutoMLJob/list.json
*/
/**
* Sample code: List AutoML Job.
@@ -2754,38 +3109,79 @@ public final class JobsListSamples {
* @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);
+ manager
+ .jobs()
+ .list("test-rg", "my-aml-workspace", null, null, null, null, null, null, com.azure.core.util.Context.NONE);
}
}
```
-### ModelContainers_CreateOrUpdate
+### LabelingJobs_CreateOrUpdate
```java
-import com.azure.resourcemanager.machinelearning.models.ModelContainerProperties;
+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 ModelContainers CreateOrUpdate. */
-public final class ModelContainersCreateOrUpdateSamples {
+/** Samples for LabelingJobs CreateOrUpdate. */
+public final class LabelingJobsCreateOrUpdateSamples {
/*
- * 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/2022-12-01-preview/examples/LabelingJob/createOrUpdate.json
*/
/**
- * Sample code: CreateOrUpdate Model Container.
+ * Sample code: CreateOrUpdate Labeling Job.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateModelContainer(
+ public static void createOrUpdateLabelingJob(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .modelContainers()
- .define("testContainer")
- .withExistingWorkspace("testrg123", "workspace123")
+ .labelingJobs()
+ .define("testLabelingJob")
+ .withExistingWorkspace("workspace-1234", "testworkspace")
.withProperties(
- new ModelContainerProperties()
- .withDescription("Model container description")
- .withTags(mapOf("tag1", "value1", "tag2", "value2")))
+ 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();
}
@@ -2802,20 +3198,201 @@ public final class ModelContainersCreateOrUpdateSamples {
}
```
+### LabelingJobs_Delete
+
+```java
+/** Samples for LabelingJobs Delete. */
+public final class LabelingJobsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-12-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/2022-12-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/2022-12-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/2022-12-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/2022-12-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/2022-12-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/2022-12-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/stable/2022-10-01/examples/ModelContainer/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-12-01-preview/examples/Workspace/ModelContainer/delete.json
*/
/**
- * Sample code: Delete Model Container.
+ * Sample code: Delete Workspace Model Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteModelContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void deleteWorkspaceModelContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.modelContainers()
.deleteWithResponse("testrg123", "workspace123", "testContainer", com.azure.core.util.Context.NONE);
@@ -2829,14 +3406,15 @@ public final class ModelContainersDeleteSamples {
/** Samples for ModelContainers Get. */
public final class ModelContainersGetSamples {
/*
- * 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/2022-12-01-preview/examples/Workspace/ModelContainer/get.json
*/
/**
- * Sample code: Get Model Container.
+ * Sample code: Get Workspace Model Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getModelContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void getWorkspaceModelContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.modelContainers()
.getWithResponse("testrg123", "workspace123", "testContainer", com.azure.core.util.Context.NONE);
@@ -2850,14 +3428,15 @@ public final class ModelContainersGetSamples {
/** Samples for ModelContainers List. */
public final class ModelContainersListSamples {
/*
- * 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/2022-12-01-preview/examples/Workspace/ModelContainer/list.json
*/
/**
- * Sample code: List Model Container.
+ * Sample code: List Workspace Model Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listModelContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void listWorkspaceModelContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.modelContainers().list("testrg123", "workspace123", null, null, null, com.azure.core.util.Context.NONE);
}
}
@@ -2866,6 +3445,7 @@ public final class ModelContainersListSamples {
### 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;
@@ -2874,29 +3454,33 @@ import java.util.Map;
/** Samples for ModelVersions CreateOrUpdate. */
public final class ModelVersionsCreateOrUpdateSamples {
/*
- * 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/2022-12-01-preview/examples/Workspace/ModelVersion/createOrUpdate.json
*/
/**
- * Sample code: CreateOrUpdate Model Version.
+ * Sample code: CreateOrUpdate Workspace Model Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateModelVersion(
+ public static void createOrUpdateWorkspaceModelVersion(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.modelVersions()
- .define("string")
- .withExistingModel("test-rg", "my-aml-workspace", "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();
+ .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")
@@ -2918,14 +3502,15 @@ public final class ModelVersionsCreateOrUpdateSamples {
/** Samples for ModelVersions Delete. */
public final class ModelVersionsDeleteSamples {
/*
- * 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/2022-12-01-preview/examples/Workspace/ModelVersion/delete.json
*/
/**
- * Sample code: Delete Model Version.
+ * Sample code: Delete Workspace Model Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteModelVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ 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);
@@ -2939,14 +3524,15 @@ public final class ModelVersionsDeleteSamples {
/** Samples for ModelVersions Get. */
public final class ModelVersionsGetSamples {
/*
- * 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/2022-12-01-preview/examples/Workspace/ModelVersion/get.json
*/
/**
- * Sample code: Get Model Version.
+ * Sample code: Get Workspace Model Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getModelVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ 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);
@@ -2960,14 +3546,15 @@ public final class ModelVersionsGetSamples {
/** Samples for ModelVersions List. */
public final class ModelVersionsListSamples {
/*
- * 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/2022-12-01-preview/examples/Workspace/ModelVersion/list.json
*/
/**
- * Sample code: List Model Version.
+ * Sample code: List Workspace Model Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listModelVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void listWorkspaceModelVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.modelVersions()
.list(
@@ -3012,7 +3599,7 @@ 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
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-12-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Kubernetes Online Deployment.
@@ -3077,7 +3664,7 @@ public final class OnlineDeploymentsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineDeployment/ManagedOnlineDeployment/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-12-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Managed Online Deployment.
@@ -3158,14 +3745,14 @@ public final class OnlineDeploymentsCreateOrUpdateSamples {
/** Samples for OnlineDeployments Delete. */
public final class OnlineDeploymentsDeleteSamples {
/*
- * 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/2022-12-01-preview/examples/Workspace/OnlineDeployment/delete.json
*/
/**
- * Sample code: Delete Online Deployment.
+ * Sample code: Delete Workspace Online Deployment.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteOnlineDeployment(
+ public static void deleteWorkspaceOnlineDeployment(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.onlineDeployments()
@@ -3180,7 +3767,7 @@ public final class OnlineDeploymentsDeleteSamples {
/** Samples for OnlineDeployments Get. */
public final class OnlineDeploymentsGetSamples {
/*
- * 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/2022-12-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/get.json
*/
/**
* Sample code: Get Kubernetes Online Deployment.
@@ -3200,7 +3787,7 @@ public final class OnlineDeploymentsGetSamples {
}
/*
- * 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/2022-12-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/get.json
*/
/**
* Sample code: Get Managed Online Deployment.
@@ -3230,7 +3817,7 @@ 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/stable/2022-10-01/examples/OnlineDeployment/getLogs.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-12-01-preview/examples/OnlineDeployment/getLogs.json
*/
/**
* Sample code: Get Online Deployment Logs.
@@ -3258,7 +3845,7 @@ public final class OnlineDeploymentsGetLogsSamples {
/** Samples for OnlineDeployments List. */
public final class OnlineDeploymentsListSamples {
/*
- * 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/2022-12-01-preview/examples/OnlineDeployment/list.json
*/
/**
* Sample code: List Online Deployments.
@@ -3280,7 +3867,7 @@ public final class OnlineDeploymentsListSamples {
/** Samples for OnlineDeployments ListSkus. */
public final class OnlineDeploymentsListSkusSamples {
/*
- * 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/2022-12-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/listSkus.json
*/
/**
* Sample code: List Managed Online Deployment Skus.
@@ -3302,7 +3889,7 @@ public final class OnlineDeploymentsListSkusSamples {
}
/*
- * 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/2022-12-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/listSkus.json
*/
/**
* Sample code: List Kubernetes Online Deployment Skus.
@@ -3337,7 +3924,7 @@ 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
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-12-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/update.json
*/
/**
* Sample code: Update Managed Online Deployment.
@@ -3370,7 +3957,7 @@ public final class OnlineDeploymentsUpdateSamples {
}
/*
- * 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/2022-12-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/update.json
*/
/**
* Sample code: Update Kubernetes Online Deployment.
@@ -3431,14 +4018,14 @@ import java.util.Map;
/** Samples for OnlineEndpoints CreateOrUpdate. */
public final class OnlineEndpointsCreateOrUpdateSamples {
/*
- * 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/2022-12-01-preview/examples/Workspace/OnlineEndpoint/createOrUpdate.json
*/
/**
- * Sample code: CreateOrUpdate Online Endpoint.
+ * Sample code: CreateOrUpdate Workspace Online Endpoint.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateOnlineEndpoint(
+ public static void createOrUpdateWorkspaceOnlineEndpoint(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.onlineEndpoints()
@@ -3487,14 +4074,15 @@ public final class OnlineEndpointsCreateOrUpdateSamples {
/** Samples for OnlineEndpoints Delete. */
public final class OnlineEndpointsDeleteSamples {
/*
- * 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/2022-12-01-preview/examples/Workspace/OnlineEndpoint/delete.json
*/
/**
- * Sample code: Delete Online Endpoint.
+ * Sample code: Delete Workspace Online Endpoint.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteOnlineEndpoint(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ 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);
@@ -3508,14 +4096,15 @@ public final class OnlineEndpointsDeleteSamples {
/** Samples for OnlineEndpoints Get. */
public final class OnlineEndpointsGetSamples {
/*
- * 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/2022-12-01-preview/examples/Workspace/OnlineEndpoint/get.json
*/
/**
- * Sample code: Get Online Endpoint.
+ * Sample code: Get Workspace Online Endpoint.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getOnlineEndpoint(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ 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);
@@ -3529,14 +4118,14 @@ public final class OnlineEndpointsGetSamples {
/** Samples for OnlineEndpoints GetToken. */
public final class OnlineEndpointsGetTokenSamples {
/*
- * 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/2022-12-01-preview/examples/Workspace/OnlineEndpoint/getToken.json
*/
/**
- * Sample code: GetToken Online Endpoint.
+ * Sample code: GetToken Workspace Online Endpoint.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getTokenOnlineEndpoint(
+ public static void getTokenWorkspaceOnlineEndpoint(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.onlineEndpoints()
@@ -3554,14 +4143,15 @@ 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/stable/2022-10-01/examples/OnlineEndpoint/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-12-01-preview/examples/Workspace/OnlineEndpoint/list.json
*/
/**
- * Sample code: List Online Endpoint.
+ * Sample code: List Workspace Online Endpoint.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listOnlineEndpoint(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void listWorkspaceOnlineEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.onlineEndpoints()
.list(
@@ -3585,14 +4175,14 @@ public final class OnlineEndpointsListSamples {
/** Samples for OnlineEndpoints ListKeys. */
public final class OnlineEndpointsListKeysSamples {
/*
- * 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/2022-12-01-preview/examples/Workspace/OnlineEndpoint/listKeys.json
*/
/**
- * Sample code: ListKeys Online Endpoint.
+ * Sample code: ListKeys Workspace Online Endpoint.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listKeysOnlineEndpoint(
+ public static void listKeysWorkspaceOnlineEndpoint(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.onlineEndpoints()
@@ -3610,14 +4200,14 @@ import com.azure.resourcemanager.machinelearning.models.RegenerateEndpointKeysRe
/** Samples for OnlineEndpoints RegenerateKeys. */
public final class OnlineEndpointsRegenerateKeysSamples {
/*
- * 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/2022-12-01-preview/examples/Workspace/OnlineEndpoint/regenerateKeys.json
*/
/**
- * Sample code: RegenerateKeys Online Endpoint.
+ * Sample code: RegenerateKeys Workspace Online Endpoint.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void regenerateKeysOnlineEndpoint(
+ public static void regenerateKeysWorkspaceOnlineEndpoint(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.onlineEndpoints()
@@ -3646,15 +4236,15 @@ import java.util.Map;
/** Samples for OnlineEndpoints Update. */
public final class OnlineEndpointsUpdateSamples {
/*
- * 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/2022-12-01-preview/examples/Workspace/OnlineEndpoint/update.json
*/
/**
- * Sample code: Update Online Endpoint.
+ * Sample code: Update Workspace Online Endpoint.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void updateOnlineEndpoint(com.azure.resourcemanager.machinelearning.MachineLearningManager manager)
- throws IOException {
+ public static void updateWorkspaceOnlineEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) throws IOException {
OnlineEndpoint resource =
manager
.onlineEndpoints()
@@ -3694,7 +4284,7 @@ public final class OnlineEndpointsUpdateSamples {
/** Samples for Operations List. */
public final class OperationsListSamples {
/*
- * 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/2022-12-01-preview/examples/Workspace/operationsList.json
*/
/**
* Sample code: OperationsList.
@@ -3716,7 +4306,7 @@ import com.azure.resourcemanager.machinelearning.models.PrivateLinkServiceConnec
/** Samples for PrivateEndpointConnections CreateOrUpdate. */
public final class PrivateEndpointConnectionsCreateOrUpdateSamples {
/*
- * 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/2022-12-01-preview/examples/PrivateEndpointConnection/createOrUpdate.json
*/
/**
* Sample code: WorkspacePutPrivateEndpointConnection.
@@ -3744,7 +4334,7 @@ public final class PrivateEndpointConnectionsCreateOrUpdateSamples {
/** Samples for PrivateEndpointConnections Delete. */
public final class PrivateEndpointConnectionsDeleteSamples {
/*
- * 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/2022-12-01-preview/examples/PrivateEndpointConnection/delete.json
*/
/**
* Sample code: WorkspaceDeletePrivateEndpointConnection.
@@ -3767,7 +4357,7 @@ public final class PrivateEndpointConnectionsDeleteSamples {
/** Samples for PrivateEndpointConnections Get. */
public final class PrivateEndpointConnectionsGetSamples {
/*
- * 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/2022-12-01-preview/examples/PrivateEndpointConnection/get.json
*/
/**
* Sample code: WorkspaceGetPrivateEndpointConnection.
@@ -3790,7 +4380,7 @@ public final class PrivateEndpointConnectionsGetSamples {
/** 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
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-12-01-preview/examples/PrivateEndpointConnection/list.json
*/
/**
* Sample code: StorageAccountListPrivateEndpointConnections.
@@ -3810,7 +4400,7 @@ public final class PrivateEndpointConnectionsListSamples {
/** Samples for PrivateLinkResources List. */
public final class PrivateLinkResourcesListSamples {
/*
- * 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/2022-12-01-preview/examples/PrivateLinkResource/list.json
*/
/**
* Sample code: WorkspaceListPrivateLinkResources.
@@ -3830,7 +4420,7 @@ public final class PrivateLinkResourcesListSamples {
/** Samples for Quotas List. */
public final class QuotasListSamples {
/*
- * 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/2022-12-01-preview/examples/Quota/list.json
*/
/**
* Sample code: List workspace quotas by VMFamily.
@@ -3855,7 +4445,7 @@ import java.util.Arrays;
/** Samples for Quotas Update. */
public final class QuotasUpdateSamples {
/*
- * 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/2022-12-01-preview/examples/Quota/update.json
*/
/**
* Sample code: update quotas.
@@ -3888,6 +4478,1301 @@ public final class QuotasUpdateSamples {
}
```
+### 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/2022-12-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/2022-12-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/2022-12-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/2022-12-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/2022-12-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/2022-12-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/2022-12-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/preview/2022-12-01-preview/examples/Registries/list-SystemCreated.json
+ */
+ /**
+ * Sample code: List registries with system created accounts.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listRegistriesWithSystemCreatedAccounts(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.registries().listByResourceGroup("test-rg", 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/preview/2022-12-01-preview/examples/Registries/update-UserCreated.json
+ */
+ /**
+ * Sample code: Update Registry with user created accounts.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void updateRegistryWithUserCreatedAccounts(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) throws IOException {
+ 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",
+ 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/preview/2022-12-01-preview/examples/Registries/update-SystemCreated.json
+ */
+ /**
+ * Sample code: Update Registry with system created accounts.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void updateRegistryWithSystemCreatedAccounts(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) throws IOException {
+ 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",
+ 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")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### RegistryCodeContainers_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.CodeContainerProperties;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for RegistryCodeContainers CreateOrUpdate. */
+public final class RegistryCodeContainersCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-12-01-preview/examples/Registry/CodeContainer/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Registry Code Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateRegistryCodeContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryCodeContainers()
+ .define("testContainer")
+ .withExistingRegistry("testrg123", "testregistry")
+ .withProperties(
+ new CodeContainerProperties()
+ .withDescription("string")
+ .withTags(mapOf("tag1", "value1", "tag2", "value2")))
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### RegistryCodeContainers_Delete
+
+```java
+/** Samples for RegistryCodeContainers Delete. */
+public final class RegistryCodeContainersDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-12-01-preview/examples/Registry/CodeContainer/delete.json
+ */
+ /**
+ * Sample code: Delete Registry Code Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteRegistryCodeContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryCodeContainers()
+ .delete("testrg123", "testregistry", "testContainer", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RegistryCodeContainers_Get
+
+```java
+/** Samples for RegistryCodeContainers Get. */
+public final class RegistryCodeContainersGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-12-01-preview/examples/Registry/CodeContainer/get.json
+ */
+ /**
+ * Sample code: Get Registry Code Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getRegistryCodeContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryCodeContainers()
+ .getWithResponse("testrg123", "testregistry", "testContainer", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RegistryCodeContainers_List
+
+```java
+/** Samples for RegistryCodeContainers List. */
+public final class RegistryCodeContainersListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-12-01-preview/examples/Registry/CodeContainer/list.json
+ */
+ /**
+ * Sample code: List Registry Code Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listRegistryCodeContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.registryCodeContainers().list("testrg123", "testregistry", null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RegistryCodeVersions_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.CodeVersionProperties;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for RegistryCodeVersions CreateOrUpdate. */
+public final class RegistryCodeVersionsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-12-01-preview/examples/Registry/CodeVersion/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Registry Code Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateRegistryCodeVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryCodeVersions()
+ .define("string")
+ .withExistingCode("test-rg", "my-aml-registry", "string")
+ .withProperties(
+ new CodeVersionProperties()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsAnonymous(false)
+ .withCodeUri("fakeTokenPlaceholder"))
+ .create();
+ }
+
+ @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/preview/2022-12-01-preview/examples/Registry/CodeVersion/delete.json
+ */
+ /**
+ * Sample code: Delete Registry Code Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteRegistryCodeVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .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/preview/2022-12-01-preview/examples/Registry/CodeVersion/get.json
+ */
+ /**
+ * Sample code: Get Registry Code Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getRegistryCodeVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .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/preview/2022-12-01-preview/examples/Registry/CodeVersion/list.json
+ */
+ /**
+ * Sample code: List Registry Code Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ 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);
+ }
+}
+```
+
+### RegistryComponentContainers_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.ComponentContainerProperties;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for RegistryComponentContainers CreateOrUpdate. */
+public final class RegistryComponentContainersCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-12-01-preview/examples/Registry/ComponentContainer/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Registry Component Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateRegistryComponentContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryComponentContainers()
+ .define("string")
+ .withExistingRegistry("test-rg", "my-aml-registry")
+ .withProperties(
+ new ComponentContainerProperties()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "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;
+ }
+}
+```
+
+### RegistryComponentContainers_Delete
+
+```java
+/** Samples for RegistryComponentContainers Delete. */
+public final class RegistryComponentContainersDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-12-01-preview/examples/Registry/ComponentContainer/delete.json
+ */
+ /**
+ * Sample code: Delete Registry Component Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteRegistryComponentContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryComponentContainers()
+ .delete("test-rg", "my-aml-registry", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RegistryComponentContainers_Get
+
+```java
+/** Samples for RegistryComponentContainers Get. */
+public final class RegistryComponentContainersGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-12-01-preview/examples/Registry/ComponentContainer/get.json
+ */
+ /**
+ * Sample code: Get Registry Component Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getRegistryComponentContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryComponentContainers()
+ .getWithResponse("test-rg", "my-aml-registry", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RegistryComponentContainers_List
+
+```java
+/** Samples for RegistryComponentContainers List. */
+public final class RegistryComponentContainersListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-12-01-preview/examples/Registry/ComponentContainer/list.json
+ */
+ /**
+ * Sample code: List Registry Component Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ 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);
+ }
+}
+```
+
+### RegistryComponentVersions_CreateOrUpdate
+
+```java
+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 RegistryComponentVersions CreateOrUpdate. */
+public final class RegistryComponentVersionsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-12-01-preview/examples/Registry/ComponentVersion/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Registry Component Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateRegistryComponentVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) throws IOException {
+ manager
+ .registryComponentVersions()
+ .define("string")
+ .withExistingComponent("test-rg", "my-aml-registry", "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();
+ }
+
+ @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;
+ }
+}
+```
+
+### RegistryComponentVersions_Delete
+
+```java
+/** Samples for RegistryComponentVersions Delete. */
+public final class RegistryComponentVersionsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-12-01-preview/examples/Registry/ComponentVersion/delete.json
+ */
+ /**
+ * Sample code: Delete Registry Component Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteRegistryComponentVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryComponentVersions()
+ .delete("test-rg", "my-aml-registry", "string", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RegistryComponentVersions_Get
+
+```java
+/** Samples for RegistryComponentVersions Get. */
+public final class RegistryComponentVersionsGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-12-01-preview/examples/Registry/ComponentVersion/get.json
+ */
+ /**
+ * Sample code: Get Registry Component Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getRegistryComponentVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryComponentVersions()
+ .getWithResponse("test-rg", "my-aml-registry", "string", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RegistryComponentVersions_List
+
+```java
+/** Samples for RegistryComponentVersions List. */
+public final class RegistryComponentVersionsListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-12-01-preview/examples/Registry/ComponentVersion/list.json
+ */
+ /**
+ * Sample code: List Registry Component Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listRegistryComponentVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryComponentVersions()
+ .list("test-rg", "my-aml-registry", "string", "string", 1, null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RegistryEnvironmentContainers_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.EnvironmentContainerProperties;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for RegistryEnvironmentContainers CreateOrUpdate. */
+public final class RegistryEnvironmentContainersCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-12-01-preview/examples/Registry/EnvironmentContainer/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Registry Environment Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateRegistryEnvironmentContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ 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")
+ 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
+
+```java
+/** Samples for RegistryEnvironmentContainers Delete. */
+public final class RegistryEnvironmentContainersDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-12-01-preview/examples/Registry/EnvironmentContainer/delete.json
+ */
+ /**
+ * Sample code: Delete Registry Environment Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteRegistryEnvironmentContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryEnvironmentContainers()
+ .delete("testrg123", "testregistry", "testContainer", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RegistryEnvironmentContainers_Get
+
+```java
+/** Samples for RegistryEnvironmentContainers Get. */
+public final class RegistryEnvironmentContainersGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-12-01-preview/examples/Registry/EnvironmentContainer/get.json
+ */
+ /**
+ * Sample code: Get Registry Environment Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getRegistryEnvironmentContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryEnvironmentContainers()
+ .getWithResponse("testrg123", "testregistry", "testEnvironment", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RegistryEnvironmentContainers_List
+
+```java
+/** Samples for RegistryEnvironmentContainers List. */
+public final class RegistryEnvironmentContainersListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-12-01-preview/examples/Registry/EnvironmentContainer/list.json
+ */
+ /**
+ * Sample code: List Registry Environment Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listRegistryEnvironmentContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryEnvironmentContainers()
+ .list("testrg123", "testregistry", null, null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RegistryEnvironmentVersions_CreateOrUpdate
+
+```java
+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/preview/2022-12-01-preview/examples/Registry/EnvironmentVersion/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Registry Environment Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateRegistryEnvironmentVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .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;
+ }
+}
+```
+
+### RegistryEnvironmentVersions_Delete
+
+```java
+/** Samples for RegistryEnvironmentVersions Delete. */
+public final class RegistryEnvironmentVersionsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-12-01-preview/examples/Registry/EnvironmentVersion/delete.json
+ */
+ /**
+ * Sample code: Delete Registry Environment Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteRegistryEnvironmentVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryEnvironmentVersions()
+ .delete("test-rg", "my-aml-registry", "string", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RegistryEnvironmentVersions_Get
+
+```java
+/** Samples for RegistryEnvironmentVersions Get. */
+public final class RegistryEnvironmentVersionsGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-12-01-preview/examples/Registry/EnvironmentVersion/get.json
+ */
+ /**
+ * Sample code: Get Registry Environment Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getRegistryEnvironmentVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryEnvironmentVersions()
+ .getWithResponse("test-rg", "my-aml-registry", "string", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RegistryEnvironmentVersions_List
+
+```java
+/** Samples for RegistryEnvironmentVersions List. */
+public final class RegistryEnvironmentVersionsListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-12-01-preview/examples/Registry/EnvironmentVersion/list.json
+ */
+ /**
+ * Sample code: List Registry Environment Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listRegistryEnvironmentVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryEnvironmentVersions()
+ .list("test-rg", "my-aml-regsitry", "string", "string", 1, null, null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RegistryModelContainers_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.ModelContainerProperties;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for RegistryModelContainers CreateOrUpdate. */
+public final class RegistryModelContainersCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-12-01-preview/examples/Registry/ModelContainer/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Registry Model Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ 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")
+ 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;
+ }
+}
+```
+
+### RegistryModelContainers_Delete
+
+```java
+/** Samples for RegistryModelContainers Delete. */
+public final class RegistryModelContainersDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-12-01-preview/examples/Registry/ModelContainer/delete.json
+ */
+ /**
+ * Sample code: Delete Registry Model Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteRegistryModelContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryModelContainers()
+ .delete("testrg123", "registry123", "testContainer", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RegistryModelContainers_Get
+
+```java
+/** Samples for RegistryModelContainers Get. */
+public final class RegistryModelContainersGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-12-01-preview/examples/Registry/ModelContainer/get.json
+ */
+ /**
+ * Sample code: Get Registry Model Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getRegistryModelContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryModelContainers()
+ .getWithResponse("testrg123", "registry123", "testContainer", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RegistryModelContainers_List
+
+```java
+/** Samples for RegistryModelContainers List. */
+public final class RegistryModelContainersListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-12-01-preview/examples/Registry/ModelContainer/list.json
+ */
+ /**
+ * Sample code: List Registry Model Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listRegistryModelContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryModelContainers()
+ .list("testrg123", "registry123", null, null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RegistryModelVersions_CreateOrUpdate
+
+```java
+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/preview/2022-12-01-preview/examples/Registry/ModelVersion/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Registry Model Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateRegistryModelVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .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();
+ }
+
+ @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;
+ }
+}
+```
+
+### RegistryModelVersions_Delete
+
+```java
+/** Samples for RegistryModelVersions Delete. */
+public final class RegistryModelVersionsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-12-01-preview/examples/Registry/ModelVersion/delete.json
+ */
+ /**
+ * Sample code: Delete Registry Model Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteRegistryModelVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryModelVersions()
+ .delete("test-rg", "my-aml-registry", "string", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RegistryModelVersions_Get
+
+```java
+/** Samples for RegistryModelVersions Get. */
+public final class RegistryModelVersionsGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-12-01-preview/examples/Registry/ModelVersion/get.json
+ */
+ /**
+ * Sample code: Get Registry Model Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getRegistryModelVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryModelVersions()
+ .getWithResponse("test-rg", "my-aml-registry", "string", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RegistryModelVersions_List
+
+```java
+/** Samples for RegistryModelVersions List. */
+public final class RegistryModelVersionsListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-12-01-preview/examples/Registry/ModelVersion/list.json
+ */
+ /**
+ * Sample code: List Registry Model Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listRegistryModelVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryModelVersions()
+ .list(
+ "test-rg",
+ "my-aml-registry",
+ "string",
+ null,
+ "string",
+ 1,
+ "string",
+ "string",
+ "string",
+ "string",
+ null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### Schedules_CreateOrUpdate
```java
@@ -3903,7 +5788,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/2022-12-01-preview/examples/Schedule/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Schedule.
@@ -3960,7 +5845,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/2022-12-01-preview/examples/Schedule/delete.json
*/
/**
* Sample code: Delete Schedule.
@@ -3979,7 +5864,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/2022-12-01-preview/examples/Schedule/get.json
*/
/**
* Sample code: Get Schedule.
@@ -3998,7 +5883,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/2022-12-01-preview/examples/Schedule/list.json
*/
/**
* Sample code: List Schedules.
@@ -4017,7 +5902,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/2022-12-01-preview/examples/Usage/list.json
*/
/**
* Sample code: List Usages.
@@ -4036,7 +5921,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/2022-12-01-preview/examples/VirtualMachineSize/list.json
*/
/**
* Sample code: List VM Sizes.
@@ -4058,7 +5943,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/2022-12-01-preview/examples/WorkspaceConnection/create.json
*/
/**
* Sample code: CreateWorkspaceConnection.
@@ -4086,7 +5971,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/2022-12-01-preview/examples/WorkspaceConnection/delete.json
*/
/**
* Sample code: DeleteWorkspaceConnection.
@@ -4108,7 +5993,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/2022-12-01-preview/examples/WorkspaceConnection/get.json
*/
/**
* Sample code: GetWorkspaceConnection.
@@ -4130,7 +6015,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/2022-12-01-preview/examples/WorkspaceConnection/list.json
*/
/**
* Sample code: ListWorkspaceConnections.
@@ -4157,7 +6042,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/2022-12-01-preview/examples/WorkspaceFeature/list.json
*/
/**
* Sample code: List Workspace features.
@@ -4189,7 +6074,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/2022-12-01-preview/examples/Workspace/create.json
*/
/**
* Sample code: Create Workspace.
@@ -4264,7 +6149,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/2022-12-01-preview/examples/Workspace/delete.json
*/
/**
* Sample code: Delete Workspace.
@@ -4288,7 +6173,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/2022-12-01-preview/examples/Workspace/diagnose.json
*/
/**
* Sample code: Diagnose Workspace.
@@ -4335,7 +6220,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/2022-12-01-preview/examples/Workspace/get.json
*/
/**
* Sample code: Get Workspace.
@@ -4356,7 +6241,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/2022-12-01-preview/examples/Workspace/listBySubscription.json
*/
/**
* Sample code: Get Workspaces by subscription.
@@ -4376,7 +6261,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/2022-12-01-preview/examples/Workspace/listByResourceGroup.json
*/
/**
* Sample code: Get Workspaces by Resource Group.
@@ -4396,7 +6281,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/2022-12-01-preview/examples/Workspace/listKeys.json
*/
/**
* Sample code: List Workspace Keys.
@@ -4415,7 +6300,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/2022-12-01-preview/examples/Workspace/listNotebookAccessToken.json
*/
/**
* Sample code: List Workspace Keys.
@@ -4436,7 +6321,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/2022-12-01-preview/examples/Notebook/listKeys.json
*/
/**
* Sample code: List Workspace Keys.
@@ -4457,7 +6342,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/2022-12-01-preview/examples/ExternalFQDN/get.json
*/
/**
* Sample code: ListOutboundNetworkDependenciesEndpoints.
@@ -4480,7 +6365,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/2022-12-01-preview/examples/Workspace/listStorageAccountKeys.json
*/
/**
* Sample code: List Workspace Keys.
@@ -4501,7 +6386,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/2022-12-01-preview/examples/Notebook/prepare.json
*/
/**
* Sample code: Prepare Notebook.
@@ -4520,7 +6405,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/2022-12-01-preview/examples/Workspace/resyncKeys.json
*/
/**
* Sample code: Resync Workspace Keys.
@@ -4542,7 +6427,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/2022-12-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 21949050c28bc..ac313c7fd68c9 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/pom.xml
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/pom.xml
@@ -13,7 +13,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-2022-12.
https://github.com/Azure/azure-sdk-for-java
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/MachineLearningManager.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/MachineLearningManager.java
index a212fe3e6c4a3..7499ab164c2bd 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;
@@ -38,6 +38,7 @@
import com.azure.resourcemanager.machinelearning.implementation.EnvironmentContainersImpl;
import com.azure.resourcemanager.machinelearning.implementation.EnvironmentVersionsImpl;
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 +47,15 @@
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.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;
@@ -65,6 +75,7 @@
import com.azure.resourcemanager.machinelearning.models.EnvironmentContainers;
import com.azure.resourcemanager.machinelearning.models.EnvironmentVersions;
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 +84,15 @@
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.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 +129,22 @@ public final class MachineLearningManager {
private WorkspaceConnections workspaceConnections;
+ private RegistryCodeContainers registryCodeContainers;
+
+ private RegistryCodeVersions registryCodeVersions;
+
+ private RegistryComponentContainers registryComponentContainers;
+
+ private RegistryComponentVersions registryComponentVersions;
+
+ private RegistryEnvironmentContainers registryEnvironmentContainers;
+
+ private RegistryEnvironmentVersions registryEnvironmentVersions;
+
+ private RegistryModelContainers registryModelContainers;
+
+ private RegistryModelVersions registryModelVersions;
+
private BatchEndpoints batchEndpoints;
private BatchDeployments batchDeployments;
@@ -133,6 +169,8 @@ public final class MachineLearningManager {
private Jobs jobs;
+ private LabelingJobs labelingJobs;
+
private ModelContainers modelContainers;
private ModelVersions modelVersions;
@@ -143,15 +181,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 +350,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 +517,108 @@ 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 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 +644,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 +656,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 +668,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 +680,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.
*/
@@ -586,7 +728,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 +740,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.
*/
@@ -622,7 +764,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 +788,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 +835,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 +860,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 72%
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 e8a40ef9b43c9..ea449242fe3bf 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,62 @@ 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 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.
*
@@ -191,6 +247,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 +289,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 5676a642b1704..c231832b90dd4 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/JobsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/JobsClient.java
index c4660d91fa818..28d4af1f131d0 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,8 @@ 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 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 +54,8 @@ PagedIterable list(
String jobType,
String tag,
ListViewType listViewType,
+ 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 0000000000000..ade623c677062
--- /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/OperationsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/OperationsClient.java
index cf8b8217b3035..c216f9607b5f1 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 0000000000000..64b2448e8e504
--- /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 0000000000000..42c8a28385e4a
--- /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 0000000000000..89574be7fc483
--- /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 0000000000000..3197fdd9b318a
--- /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 0000000000000..321e73f57f656
--- /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/RegistryEnvironmentContainersClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryEnvironmentContainersClient.java
new file mode 100644
index 0000000000000..2c958ed581ed3
--- /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 0000000000000..319296cafbe36
--- /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 0000000000000..0432dfff608cd
--- /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 0000000000000..cd674f8a6e94b
--- /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 a21e00f4df18e..351abd4f5d199 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 2cb1bcd991478..c71d340ef7073 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 0000000000000..ac7a9f1a822b7
--- /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/LabelingJobInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/LabelingJobInner.java
new file mode 100644
index 0000000000000..3c5a018d5073b
--- /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/RegistryInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/RegistryInner.java
new file mode 100644
index 0000000000000..39ab272f69382
--- /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 0574f791c1fea..c9321c0274a43 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 147434b8ed519..fba1dda3f8d68 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 ecf35a74ba330..058fc99d5d8ba 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 3e822d30cd968..c4a20504c94a0 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 f5bef46229750..50522669a1fc8 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 018c1d288b6ac..48795f9c5d6cf 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 78%
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 242efe7553fdd..f4d745d8f1c77 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;
@@ -36,6 +36,7 @@
import com.azure.resourcemanager.machinelearning.fluent.EnvironmentContainersClient;
import com.azure.resourcemanager.machinelearning.fluent.EnvironmentVersionsClient;
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 +45,15 @@
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.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 +69,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 +252,102 @@ 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 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;
@@ -386,6 +492,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 +564,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 +589,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 +598,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 +610,7 @@ public WorkspaceFeaturesClient getWorkspaceFeatures() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2022-10-01";
+ this.apiVersion = "2022-12-01-preview";
this.operations = new OperationsClientImpl(this);
this.workspaces = new WorkspacesClientImpl(this);
this.usages = new UsagesClientImpl(this);
@@ -490,6 +620,14 @@ 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.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);
@@ -502,11 +640,13 @@ public WorkspaceFeaturesClient getWorkspaceFeatures() {
this.environmentContainers = new EnvironmentContainersClientImpl(this);
this.environmentVersions = new EnvironmentVersionsClientImpl(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 +790,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 6f28d675f5f5a..3251418195235 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 9d00fdc12171a..8f77f1ed7e39b 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 f739c63622acd..eae9e1a14652c 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 019f7490ddf83..e4b05a67278fb 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 0202b27fb32c4..c82929e2dc868 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 daab7505f3ff6..9401e4af4452d 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 5e0cdc080acdd..520497710cae2 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 49705d0a8abd7..3118de08dfdac 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 0208215c0403c..98f219f5889ea 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 7c8593db5a972..da1544c265771 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 b9bc5f40a732d..308ac7fc8c0b8 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 2b90ee811ddbd..8cda2a3d7a029 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 4cfb98d8af644..6c2b5665e00a1 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 b31d3e83102bb..ee670a3949321 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 26ad7807900da..c1080c7b732cd 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 1502a033768b6..696c7c74f3b21 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 updateCustomServicesWithResponse(
+ String resourceGroupName,
+ String workspaceName,
+ String computeName,
+ List customServices,
+ Context context) {
+ return updateCustomServicesWithResponseAsync(
+ resourceGroupName, workspaceName, computeName, customServices, 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void updateCustomServices(
+ String resourceGroupName, String workspaceName, String computeName, List customServices) {
+ updateCustomServicesWithResponse(resourceGroupName, workspaceName, computeName, customServices, Context.NONE);
+ }
+
/**
* Get the details (e.g IP address, port etc) of all the compute nodes in the compute.
*
@@ -2707,6 +2928,189 @@ public void restart(String resourceGroupName, String workspaceName, String compu
restartAsync(resourceGroupName, workspaceName, computeName, context).block();
}
+ /**
+ * 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 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> updateIdleShutdownSettingWithResponseAsync(
+ String resourceGroupName, String workspaceName, String computeName, IdleShutdownSetting parameters) {
+ 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 (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .updateIdleShutdownSetting(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ workspaceName,
+ computeName,
+ this.client.getApiVersion(),
+ parameters,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * 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 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> updateIdleShutdownSettingWithResponseAsync(
+ String resourceGroupName,
+ String workspaceName,
+ String computeName,
+ IdleShutdownSetting parameters,
+ 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 (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .updateIdleShutdownSetting(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ workspaceName,
+ computeName,
+ this.client.getApiVersion(),
+ parameters,
+ accept,
+ 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 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 updateIdleShutdownSettingAsync(
+ String resourceGroupName, String workspaceName, String computeName, IdleShutdownSetting parameters) {
+ return updateIdleShutdownSettingWithResponseAsync(resourceGroupName, workspaceName, computeName, parameters)
+ .flatMap(ignored -> Mono.empty());
+ }
+
+ /**
+ * 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 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 updateIdleShutdownSettingWithResponse(
+ String resourceGroupName,
+ String workspaceName,
+ String computeName,
+ IdleShutdownSetting parameters,
+ Context context) {
+ return updateIdleShutdownSettingWithResponseAsync(
+ resourceGroupName, workspaceName, computeName, parameters, context)
+ .block();
+ }
+
+ /**
+ * 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 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)
+ public void updateIdleShutdownSetting(
+ String resourceGroupName, String workspaceName, String computeName, IdleShutdownSetting parameters) {
+ updateIdleShutdownSettingWithResponse(resourceGroupName, workspaceName, computeName, parameters, Context.NONE);
+ }
+
/**
* Get the next page of items.
*
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComputesImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComputesImpl.java
index 9b3cc25f7885b..506de9fb011f2 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComputesImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComputesImpl.java
@@ -16,7 +16,10 @@
import com.azure.resourcemanager.machinelearning.models.ComputeResource;
import com.azure.resourcemanager.machinelearning.models.ComputeSecrets;
import com.azure.resourcemanager.machinelearning.models.Computes;
+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;
public final class ComputesImpl implements Computes {
private static final ClientLogger LOGGER = new ClientLogger(ComputesImpl.class);
@@ -84,6 +87,22 @@ public void delete(
this.serviceClient().delete(resourceGroupName, workspaceName, computeName, underlyingResourceAction, context);
}
+ public Response updateCustomServicesWithResponse(
+ String resourceGroupName,
+ String workspaceName,
+ String computeName,
+ List customServices,
+ Context context) {
+ return this
+ .serviceClient()
+ .updateCustomServicesWithResponse(resourceGroupName, workspaceName, computeName, customServices, context);
+ }
+
+ public void updateCustomServices(
+ String resourceGroupName, String workspaceName, String computeName, List customServices) {
+ this.serviceClient().updateCustomServices(resourceGroupName, workspaceName, computeName, customServices);
+ }
+
public PagedIterable listNodes(
String resourceGroupName, String workspaceName, String computeName) {
return this.serviceClient().listNodes(resourceGroupName, workspaceName, computeName);
@@ -142,6 +161,22 @@ public void restart(String resourceGroupName, String workspaceName, String compu
this.serviceClient().restart(resourceGroupName, workspaceName, computeName, context);
}
+ public Response updateIdleShutdownSettingWithResponse(
+ String resourceGroupName,
+ String workspaceName,
+ String computeName,
+ IdleShutdownSetting parameters,
+ Context context) {
+ return this
+ .serviceClient()
+ .updateIdleShutdownSettingWithResponse(resourceGroupName, workspaceName, computeName, parameters, context);
+ }
+
+ public void updateIdleShutdownSetting(
+ String resourceGroupName, String workspaceName, String computeName, IdleShutdownSetting parameters) {
+ this.serviceClient().updateIdleShutdownSetting(resourceGroupName, workspaceName, computeName, parameters);
+ }
+
public ComputeResource getById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DataContainersClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DataContainersClientImpl.java
index ce1b750a11dec..d6b4579677a6d 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DataContainersClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DataContainersClientImpl.java
@@ -40,21 +40,21 @@ public final class DataContainersClientImpl implements DataContainersClient {
private final DataContainersService service;
/** The service client containing this operation class. */
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of DataContainersClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- DataContainersClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ DataContainersClientImpl(AzureMachineLearningServicesImpl client) {
this.service =
RestProxy.create(DataContainersService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesDataContainers to be used by the proxy
+ * The interface defining all the services for AzureMachineLearningServicesDataContainers 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/DataVersionsClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DataVersionsClientImpl.java
index 3a6cbe8f79548..1c9277a4471a5 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DataVersionsClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DataVersionsClientImpl.java
@@ -40,21 +40,21 @@ public final class DataVersionsClientImpl implements DataVersionsClient {
private final DataVersionsService service;
/** The service client containing this operation class. */
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of DataVersionsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- DataVersionsClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ DataVersionsClientImpl(AzureMachineLearningServicesImpl client) {
this.service =
RestProxy.create(DataVersionsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesDataVersions to be used by the proxy
+ * The interface defining all the services for AzureMachineLearningServicesDataVersions 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/DatastoresClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DatastoresClientImpl.java
index 62f960a4c3aec..aba0a4c187de0 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DatastoresClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DatastoresClientImpl.java
@@ -44,21 +44,21 @@ public final class DatastoresClientImpl implements DatastoresClient {
private final DatastoresService service;
/** The service client containing this operation class. */
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of DatastoresClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- DatastoresClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ DatastoresClientImpl(AzureMachineLearningServicesImpl client) {
this.service =
RestProxy.create(DatastoresService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesDatastores to be used by the proxy
+ * The interface defining all the services for AzureMachineLearningServicesDatastores 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/EnvironmentContainerImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentContainerImpl.java
index 4ee12b6fd24e6..4a002613a7322 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentContainerImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentContainerImpl.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 environmentName;
- public EnvironmentContainerImpl withExistingWorkspace(String resourceGroupName, String workspaceName) {
+ public EnvironmentContainerImpl withExistingRegistry(String resourceGroupName, String registryName) {
this.resourceGroupName = resourceGroupName;
- this.workspaceName = workspaceName;
+ this.registryName = registryName;
return this;
}
@@ -64,9 +64,8 @@ public EnvironmentContainer create() {
this.innerObject =
serviceManager
.serviceClient()
- .getEnvironmentContainers()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, this.innerModel(), Context.NONE)
- .getValue();
+ .getRegistryEnvironmentContainers()
+ .createOrUpdate(resourceGroupName, registryName, environmentName, this.innerModel(), Context.NONE);
return this;
}
@@ -74,9 +73,8 @@ public EnvironmentContainer create(Context context) {
this.innerObject =
serviceManager
.serviceClient()
- .getEnvironmentContainers()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, this.innerModel(), context)
- .getValue();
+ .getRegistryEnvironmentContainers()
+ .createOrUpdate(resourceGroupName, registryName, environmentName, this.innerModel(), context);
return this;
}
@@ -84,7 +82,7 @@ public EnvironmentContainer create(Context context) {
String name, com.azure.resourcemanager.machinelearning.MachineLearningManager serviceManager) {
this.innerObject = new EnvironmentContainerInner();
this.serviceManager = serviceManager;
- this.name = name;
+ this.environmentName = name;
}
public EnvironmentContainerImpl update() {
@@ -95,9 +93,8 @@ public EnvironmentContainer apply() {
this.innerObject =
serviceManager
.serviceClient()
- .getEnvironmentContainers()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, this.innerModel(), Context.NONE)
- .getValue();
+ .getRegistryEnvironmentContainers()
+ .createOrUpdate(resourceGroupName, registryName, environmentName, this.innerModel(), Context.NONE);
return this;
}
@@ -105,9 +102,8 @@ public EnvironmentContainer apply(Context context) {
this.innerObject =
serviceManager
.serviceClient()
- .getEnvironmentContainers()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, this.innerModel(), context)
- .getValue();
+ .getRegistryEnvironmentContainers()
+ .createOrUpdate(resourceGroupName, registryName, environmentName, this.innerModel(), context);
return this;
}
@@ -117,16 +113,16 @@ public EnvironmentContainer 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(), "environments");
+ this.registryName = Utils.getValueFromIdByName(innerObject.id(), "registries");
+ this.environmentName = Utils.getValueFromIdByName(innerObject.id(), "environments");
}
public EnvironmentContainer refresh() {
this.innerObject =
serviceManager
.serviceClient()
- .getEnvironmentContainers()
- .getWithResponse(resourceGroupName, workspaceName, name, Context.NONE)
+ .getRegistryEnvironmentContainers()
+ .getWithResponse(resourceGroupName, registryName, environmentName, Context.NONE)
.getValue();
return this;
}
@@ -135,8 +131,8 @@ public EnvironmentContainer refresh(Context context) {
this.innerObject =
serviceManager
.serviceClient()
- .getEnvironmentContainers()
- .getWithResponse(resourceGroupName, workspaceName, name, context)
+ .getRegistryEnvironmentContainers()
+ .getWithResponse(resourceGroupName, registryName, environmentName, context)
.getValue();
return this;
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentContainersClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentContainersClientImpl.java
index d569783d4fc89..a4fa60e05a56a 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentContainersClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentContainersClientImpl.java
@@ -40,14 +40,14 @@ public final class EnvironmentContainersClientImpl implements EnvironmentContain
private final EnvironmentContainersService service;
/** The service client containing this operation class. */
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of EnvironmentContainersClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- EnvironmentContainersClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ EnvironmentContainersClientImpl(AzureMachineLearningServicesImpl client) {
this.service =
RestProxy
.create(EnvironmentContainersService.class, client.getHttpPipeline(), client.getSerializerAdapter());
@@ -55,7 +55,7 @@ public final class EnvironmentContainersClientImpl implements EnvironmentContain
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesEnvironmentContainers to be used by the
+ * The interface defining all the services for AzureMachineLearningServicesEnvironmentContainers 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/EnvironmentContainersImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentContainersImpl.java
index acbe2b72b83e8..b41fa86b685e3 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentContainersImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentContainersImpl.java
@@ -74,108 +74,30 @@ public EnvironmentContainer get(String resourceGroupName, String workspaceName,
}
}
- public EnvironmentContainer 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, "environments");
- if (name == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'environments'.", 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, "environments");
- if (name == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'environments'.", 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, "environments");
- if (name == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'environments'.", id)));
+ public Response createOrUpdateWithResponse(
+ String resourceGroupName, String workspaceName, String name, EnvironmentContainerInner 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 EnvironmentContainerImpl(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, "environments");
- if (name == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'environments'.", id)));
+ public EnvironmentContainer createOrUpdate(
+ String resourceGroupName, String workspaceName, String name, EnvironmentContainerInner body) {
+ EnvironmentContainerInner inner =
+ this.serviceClient().createOrUpdate(resourceGroupName, workspaceName, name, body);
+ if (inner != null) {
+ return new EnvironmentContainerImpl(inner, this.manager());
+ } else {
+ return null;
}
- return this.deleteWithResponse(resourceGroupName, workspaceName, name, context);
}
private EnvironmentContainersClient serviceClient() {
@@ -185,8 +107,4 @@ private EnvironmentContainersClient serviceClient() {
private com.azure.resourcemanager.machinelearning.MachineLearningManager manager() {
return this.serviceManager;
}
-
- public EnvironmentContainerImpl define(String name) {
- return new EnvironmentContainerImpl(name, this.manager());
- }
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentVersionImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentVersionImpl.java
index 653ef01782d9e..87f0ea22c6ca7 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentVersionImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentVersionImpl.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 environmentName;
private String version;
- public EnvironmentVersionImpl withExistingEnvironment(String resourceGroupName, String workspaceName, String name) {
+ public EnvironmentVersionImpl withExistingEnvironment(
+ String resourceGroupName, String registryName, String environmentName) {
this.resourceGroupName = resourceGroupName;
- this.workspaceName = workspaceName;
- this.name = name;
+ this.registryName = registryName;
+ this.environmentName = environmentName;
return this;
}
@@ -67,10 +68,9 @@ public EnvironmentVersion create() {
this.innerObject =
serviceManager
.serviceClient()
- .getEnvironmentVersions()
- .createOrUpdateWithResponse(
- resourceGroupName, workspaceName, name, version, this.innerModel(), Context.NONE)
- .getValue();
+ .getRegistryEnvironmentVersions()
+ .createOrUpdate(
+ resourceGroupName, registryName, environmentName, version, this.innerModel(), Context.NONE);
return this;
}
@@ -78,9 +78,8 @@ public EnvironmentVersion create(Context context) {
this.innerObject =
serviceManager
.serviceClient()
- .getEnvironmentVersions()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, version, this.innerModel(), context)
- .getValue();
+ .getRegistryEnvironmentVersions()
+ .createOrUpdate(resourceGroupName, registryName, environmentName, version, this.innerModel(), context);
return this;
}
@@ -99,10 +98,9 @@ public EnvironmentVersion apply() {
this.innerObject =
serviceManager
.serviceClient()
- .getEnvironmentVersions()
- .createOrUpdateWithResponse(
- resourceGroupName, workspaceName, name, version, this.innerModel(), Context.NONE)
- .getValue();
+ .getRegistryEnvironmentVersions()
+ .createOrUpdate(
+ resourceGroupName, registryName, environmentName, version, this.innerModel(), Context.NONE);
return this;
}
@@ -110,9 +108,8 @@ public EnvironmentVersion apply(Context context) {
this.innerObject =
serviceManager
.serviceClient()
- .getEnvironmentVersions()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, version, this.innerModel(), context)
- .getValue();
+ .getRegistryEnvironmentVersions()
+ .createOrUpdate(resourceGroupName, registryName, environmentName, version, this.innerModel(), context);
return this;
}
@@ -122,8 +119,8 @@ public EnvironmentVersion 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(), "environments");
+ this.registryName = Utils.getValueFromIdByName(innerObject.id(), "registries");
+ this.environmentName = Utils.getValueFromIdByName(innerObject.id(), "environments");
this.version = Utils.getValueFromIdByName(innerObject.id(), "versions");
}
@@ -131,8 +128,8 @@ public EnvironmentVersion refresh() {
this.innerObject =
serviceManager
.serviceClient()
- .getEnvironmentVersions()
- .getWithResponse(resourceGroupName, workspaceName, name, version, Context.NONE)
+ .getRegistryEnvironmentVersions()
+ .getWithResponse(resourceGroupName, registryName, environmentName, version, Context.NONE)
.getValue();
return this;
}
@@ -141,8 +138,8 @@ public EnvironmentVersion refresh(Context context) {
this.innerObject =
serviceManager
.serviceClient()
- .getEnvironmentVersions()
- .getWithResponse(resourceGroupName, workspaceName, name, version, context)
+ .getRegistryEnvironmentVersions()
+ .getWithResponse(resourceGroupName, registryName, environmentName, version, context)
.getValue();
return this;
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentVersionsClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentVersionsClientImpl.java
index 0f6b8a58aa6d2..d62be368cbdec 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentVersionsClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentVersionsClientImpl.java
@@ -40,21 +40,21 @@ public final class EnvironmentVersionsClientImpl implements EnvironmentVersionsC
private final EnvironmentVersionsService service;
/** The service client containing this operation class. */
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of EnvironmentVersionsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- EnvironmentVersionsClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ EnvironmentVersionsClientImpl(AzureMachineLearningServicesImpl client) {
this.service =
RestProxy.create(EnvironmentVersionsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesEnvironmentVersions to be used by the
+ * The interface defining all the services for AzureMachineLearningServicesEnvironmentVersions 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/EnvironmentVersionsImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentVersionsImpl.java
index 3c075afbe0d9c..99fe30b16861e 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentVersionsImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentVersionsImpl.java
@@ -84,136 +84,37 @@ public EnvironmentVersion get(String resourceGroupName, String workspaceName, St
}
}
- public EnvironmentVersion 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, "environments");
- if (name == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'environments'.", 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, "environments");
- if (name == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'environments'.", 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, "environments");
- if (name == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'environments'.", 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,
+ EnvironmentVersionInner 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 EnvironmentVersionImpl(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, "environments");
- if (name == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'environments'.", 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 EnvironmentVersion createOrUpdate(
+ String resourceGroupName, String workspaceName, String name, String version, EnvironmentVersionInner body) {
+ EnvironmentVersionInner inner =
+ this.serviceClient().createOrUpdate(resourceGroupName, workspaceName, name, version, body);
+ if (inner != null) {
+ return new EnvironmentVersionImpl(inner, this.manager());
+ } else {
+ return null;
}
- return this.deleteWithResponse(resourceGroupName, workspaceName, name, version, context);
}
private EnvironmentVersionsClient serviceClient() {
@@ -223,8 +124,4 @@ private EnvironmentVersionsClient serviceClient() {
private com.azure.resourcemanager.machinelearning.MachineLearningManager manager() {
return this.serviceManager;
}
-
- public EnvironmentVersionImpl define(String name) {
- return new EnvironmentVersionImpl(name, this.manager());
- }
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ExportSummaryImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ExportSummaryImpl.java
new file mode 100644
index 0000000000000..0fb6b3f2e8aa3
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ExportSummaryImpl.java
@@ -0,0 +1,46 @@
+// 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.implementation;
+
+import com.azure.resourcemanager.machinelearning.fluent.models.ExportSummaryInner;
+import com.azure.resourcemanager.machinelearning.models.ExportSummary;
+import java.time.OffsetDateTime;
+
+public final class ExportSummaryImpl implements ExportSummary {
+ private ExportSummaryInner innerObject;
+
+ private final com.azure.resourcemanager.machinelearning.MachineLearningManager serviceManager;
+
+ ExportSummaryImpl(
+ ExportSummaryInner innerObject,
+ com.azure.resourcemanager.machinelearning.MachineLearningManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public OffsetDateTime endDateTime() {
+ return this.innerModel().endDateTime();
+ }
+
+ public Long exportedRowCount() {
+ return this.innerModel().exportedRowCount();
+ }
+
+ public String labelingJobId() {
+ return this.innerModel().labelingJobId();
+ }
+
+ public OffsetDateTime startDateTime() {
+ return this.innerModel().startDateTime();
+ }
+
+ public ExportSummaryInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.machinelearning.MachineLearningManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/JobsClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/JobsClientImpl.java
index f19ceaef9cf49..f2571ca575e2e 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/JobsClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/JobsClientImpl.java
@@ -46,20 +46,20 @@ public final class JobsClientImpl implements JobsClient {
private final JobsService service;
/** The service client containing this operation class. */
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of JobsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- JobsClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ JobsClientImpl(AzureMachineLearningServicesImpl client) {
this.service = RestProxy.create(JobsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesJobs to be used by the proxy service to
+ * The interface defining all the services for AzureMachineLearningServicesJobs to be used by the proxy service to
* perform REST calls.
*/
@Host("{$host}")
@@ -81,6 +81,8 @@ Mono> list(
@QueryParam("jobType") String jobType,
@QueryParam("tag") String tag,
@QueryParam("listViewType") ListViewType listViewType,
+ @QueryParam("scheduled") Boolean scheduled,
+ @QueryParam("scheduleId") String scheduleId,
@HeaderParam("Accept") String accept,
Context context);
@@ -169,6 +171,8 @@ Mono> listNext(
* @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 scheduled Indicator whether the job is scheduled job.
+ * @param scheduleId The scheduled id for listing the job triggered from.
* @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.
@@ -182,7 +186,9 @@ private Mono> listSinglePageAsync(
String skip,
String jobType,
String tag,
- ListViewType listViewType) {
+ ListViewType listViewType,
+ Boolean scheduled,
+ String scheduleId) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
@@ -217,6 +223,8 @@ private Mono> listSinglePageAsync(
jobType,
tag,
listViewType,
+ scheduled,
+ scheduleId,
accept,
context))
.>map(
@@ -240,6 +248,8 @@ private Mono> listSinglePageAsync(
* @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 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 ManagementException thrown if the request is rejected by server.
@@ -255,6 +265,8 @@ private Mono> listSinglePageAsync(
String jobType,
String tag,
ListViewType listViewType,
+ Boolean scheduled,
+ String scheduleId,
Context context) {
if (this.client.getEndpoint() == null) {
return Mono
@@ -288,6 +300,8 @@ private Mono> listSinglePageAsync(
jobType,
tag,
listViewType,
+ scheduled,
+ scheduleId,
accept,
context)
.map(
@@ -310,6 +324,8 @@ private Mono> listSinglePageAsync(
* @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 scheduled Indicator whether the job is scheduled job.
+ * @param scheduleId The scheduled id for listing the job triggered from.
* @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.
@@ -322,9 +338,13 @@ private PagedFlux listAsync(
String skip,
String jobType,
String tag,
- ListViewType listViewType) {
+ ListViewType listViewType,
+ Boolean scheduled,
+ String scheduleId) {
return new PagedFlux<>(
- () -> listSinglePageAsync(resourceGroupName, workspaceName, skip, jobType, tag, listViewType),
+ () ->
+ listSinglePageAsync(
+ resourceGroupName, workspaceName, skip, jobType, tag, listViewType, scheduled, scheduleId),
nextLink -> listNextSinglePageAsync(nextLink));
}
@@ -344,8 +364,12 @@ private PagedFlux listAsync(String resourceGroupName, String works
final String jobType = null;
final String tag = null;
final ListViewType listViewType = null;
+ final Boolean scheduled = null;
+ final String scheduleId = null;
return new PagedFlux<>(
- () -> listSinglePageAsync(resourceGroupName, workspaceName, skip, jobType, tag, listViewType),
+ () ->
+ listSinglePageAsync(
+ resourceGroupName, workspaceName, skip, jobType, tag, listViewType, scheduled, scheduleId),
nextLink -> listNextSinglePageAsync(nextLink));
}
@@ -358,6 +382,8 @@ private PagedFlux listAsync(String resourceGroupName, String works
* @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 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 ManagementException thrown if the request is rejected by server.
@@ -372,9 +398,13 @@ private PagedFlux listAsync(
String jobType,
String tag,
ListViewType listViewType,
+ Boolean scheduled,
+ String scheduleId,
Context context) {
return new PagedFlux<>(
- () -> listSinglePageAsync(resourceGroupName, workspaceName, skip, jobType, tag, listViewType, context),
+ () ->
+ listSinglePageAsync(
+ resourceGroupName, workspaceName, skip, jobType, tag, listViewType, scheduled, scheduleId, context),
nextLink -> listNextSinglePageAsync(nextLink, context));
}
@@ -394,7 +424,10 @@ public PagedIterable list(String resourceGroupName, String workspa
final String jobType = null;
final String tag = null;
final ListViewType listViewType = null;
- return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, skip, jobType, tag, listViewType));
+ final Boolean scheduled = null;
+ final String scheduleId = null;
+ return new PagedIterable<>(
+ listAsync(resourceGroupName, workspaceName, skip, jobType, tag, listViewType, scheduled, scheduleId));
}
/**
@@ -406,6 +439,8 @@ public PagedIterable list(String resourceGroupName, String workspa
* @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 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 ManagementException thrown if the request is rejected by server.
@@ -420,9 +455,12 @@ public PagedIterable list(
String jobType,
String tag,
ListViewType listViewType,
+ Boolean scheduled,
+ String scheduleId,
Context context) {
return new PagedIterable<>(
- listAsync(resourceGroupName, workspaceName, skip, jobType, tag, listViewType, context));
+ listAsync(
+ resourceGroupName, workspaceName, skip, jobType, tag, listViewType, scheduled, scheduleId, context));
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/JobsImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/JobsImpl.java
index 8acf713adc9b9..ae2eaaa3d6061 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/JobsImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/JobsImpl.java
@@ -40,9 +40,14 @@ public PagedIterable list(
String jobType,
String tag,
ListViewType listViewType,
+ Boolean scheduled,
+ String scheduleId,
Context context) {
PagedIterable inner =
- this.serviceClient().list(resourceGroupName, workspaceName, skip, jobType, tag, listViewType, context);
+ this
+ .serviceClient()
+ .list(
+ resourceGroupName, workspaceName, skip, jobType, tag, listViewType, scheduled, scheduleId, context);
return Utils.mapPage(inner, inner1 -> new JobBaseImpl(inner1, this.manager()));
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/LabelingJobImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/LabelingJobImpl.java
new file mode 100644
index 0000000000000..1adbf90a80840
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/LabelingJobImpl.java
@@ -0,0 +1,184 @@
+// 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.implementation;
+
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.machinelearning.fluent.models.ExportSummaryInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.LabelingJobInner;
+import com.azure.resourcemanager.machinelearning.models.ExportSummary;
+import com.azure.resourcemanager.machinelearning.models.LabelingJob;
+import com.azure.resourcemanager.machinelearning.models.LabelingJobProperties;
+
+public final class LabelingJobImpl implements LabelingJob, LabelingJob.Definition, LabelingJob.Update {
+ private LabelingJobInner innerObject;
+
+ private final com.azure.resourcemanager.machinelearning.MachineLearningManager serviceManager;
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public LabelingJobProperties properties() {
+ return this.innerModel().properties();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
+ public LabelingJobInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.machinelearning.MachineLearningManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String workspaceName;
+
+ private String id;
+
+ public LabelingJobImpl withExistingWorkspace(String resourceGroupName, String workspaceName) {
+ this.resourceGroupName = resourceGroupName;
+ this.workspaceName = workspaceName;
+ return this;
+ }
+
+ public LabelingJob create() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getLabelingJobs()
+ .createOrUpdate(resourceGroupName, workspaceName, id, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public LabelingJob create(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getLabelingJobs()
+ .createOrUpdate(resourceGroupName, workspaceName, id, this.innerModel(), context);
+ return this;
+ }
+
+ LabelingJobImpl(String name, com.azure.resourcemanager.machinelearning.MachineLearningManager serviceManager) {
+ this.innerObject = new LabelingJobInner();
+ this.serviceManager = serviceManager;
+ this.id = name;
+ }
+
+ public LabelingJobImpl update() {
+ return this;
+ }
+
+ public LabelingJob apply() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getLabelingJobs()
+ .createOrUpdate(resourceGroupName, workspaceName, id, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public LabelingJob apply(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getLabelingJobs()
+ .createOrUpdate(resourceGroupName, workspaceName, id, this.innerModel(), context);
+ return this;
+ }
+
+ LabelingJobImpl(
+ LabelingJobInner innerObject, com.azure.resourcemanager.machinelearning.MachineLearningManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.workspaceName = Utils.getValueFromIdByName(innerObject.id(), "workspaces");
+ this.id = Utils.getValueFromIdByName(innerObject.id(), "labelingJobs");
+ }
+
+ public LabelingJob refresh() {
+ Boolean localIncludeJobInstructions = null;
+ Boolean localIncludeLabelCategories = null;
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getLabelingJobs()
+ .getWithResponse(
+ resourceGroupName,
+ workspaceName,
+ id,
+ localIncludeJobInstructions,
+ localIncludeLabelCategories,
+ Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public LabelingJob refresh(Context context) {
+ Boolean localIncludeJobInstructions = null;
+ Boolean localIncludeLabelCategories = null;
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getLabelingJobs()
+ .getWithResponse(
+ resourceGroupName,
+ workspaceName,
+ id,
+ localIncludeJobInstructions,
+ localIncludeLabelCategories,
+ context)
+ .getValue();
+ return this;
+ }
+
+ public ExportSummary exportLabels(ExportSummaryInner body) {
+ return serviceManager.labelingJobs().exportLabels(resourceGroupName, workspaceName, id, body);
+ }
+
+ public ExportSummary exportLabels(ExportSummaryInner body, Context context) {
+ return serviceManager.labelingJobs().exportLabels(resourceGroupName, workspaceName, id, body, context);
+ }
+
+ public Response pauseWithResponse(Context context) {
+ return serviceManager.labelingJobs().pauseWithResponse(resourceGroupName, workspaceName, id, context);
+ }
+
+ public void pause() {
+ serviceManager.labelingJobs().pause(resourceGroupName, workspaceName, id);
+ }
+
+ public void resume() {
+ serviceManager.labelingJobs().resume(resourceGroupName, workspaceName, id);
+ }
+
+ public void resume(Context context) {
+ serviceManager.labelingJobs().resume(resourceGroupName, workspaceName, id, context);
+ }
+
+ public LabelingJobImpl withProperties(LabelingJobProperties properties) {
+ this.innerModel().withProperties(properties);
+ return this;
+ }
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/LabelingJobsClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/LabelingJobsClientImpl.java
new file mode 100644
index 0000000000000..78c865fdfd5d3
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/LabelingJobsClientImpl.java
@@ -0,0 +1,1802 @@
+// 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.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.machinelearning.fluent.LabelingJobsClient;
+import com.azure.resourcemanager.machinelearning.fluent.models.ExportSummaryInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.LabelingJobInner;
+import com.azure.resourcemanager.machinelearning.models.LabelingJobResourceArmPaginatedResult;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in LabelingJobsClient. */
+public final class LabelingJobsClientImpl implements LabelingJobsClient {
+ /** The proxy service used to perform REST calls. */
+ private final LabelingJobsService service;
+
+ /** The service client containing this operation class. */
+ private final AzureMachineLearningServicesImpl client;
+
+ /**
+ * Initializes an instance of LabelingJobsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ LabelingJobsClientImpl(AzureMachineLearningServicesImpl client) {
+ this.service =
+ RestProxy.create(LabelingJobsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for AzureMachineLearningServicesLabelingJobs to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "AzureMachineLearning")
+ public interface LabelingJobsService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
+ + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("workspaceName") String workspaceName,
+ @QueryParam("api-version") String apiVersion,
+ @QueryParam("$skip") String skip,
+ @QueryParam("$top") Integer top,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
+ + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}")
+ @ExpectedResponses({200, 204})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> delete(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("workspaceName") String workspaceName,
+ @PathParam("id") String id,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
+ + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("workspaceName") String workspaceName,
+ @PathParam("id") String id,
+ @QueryParam("api-version") String apiVersion,
+ @QueryParam("includeJobInstructions") Boolean includeJobInstructions,
+ @QueryParam("includeLabelCategories") Boolean includeLabelCategories,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
+ + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}")
+ @ExpectedResponses({200, 201})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> createOrUpdate(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("workspaceName") String workspaceName,
+ @PathParam("id") String id,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") LabelingJobInner body,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
+ + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}/exportLabels")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> exportLabels(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("workspaceName") String workspaceName,
+ @PathParam("id") String id,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") ExportSummaryInner body,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
+ + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}/pause")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> pause(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("workspaceName") String workspaceName,
+ @PathParam("id") String id,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
+ + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}/resume")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> resume(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("workspaceName") String workspaceName,
+ @PathParam("id") String id,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * 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.
+ * @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 paginated list of LabelingJob entities along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String workspaceName, String skip, Integer top) {
+ 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."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ workspaceName,
+ this.client.getApiVersion(),
+ skip,
+ top,
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * 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 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 along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String workspaceName, String skip, Integer top, 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."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ workspaceName,
+ this.client.getApiVersion(),
+ skip,
+ top,
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * 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.
+ * @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 paginated list of LabelingJob entities as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(
+ String resourceGroupName, String workspaceName, String skip, Integer top) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, workspaceName, skip, top),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * 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 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 PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName, String workspaceName) {
+ final String skip = null;
+ final Integer top = null;
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, workspaceName, skip, top),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * 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 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 PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(
+ String resourceGroupName, String workspaceName, String skip, Integer top, Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, workspaceName, skip, top, context),
+ nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * 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 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)
+ public PagedIterable list(String resourceGroupName, String workspaceName) {
+ final String skip = null;
+ final Integer top = null;
+ return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, skip, top));
+ }
+
+ /**
+ * 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 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)
+ public PagedIterable list(
+ String resourceGroupName, String workspaceName, String skip, Integer top, Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, skip, top, 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 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> deleteWithResponseAsync(String resourceGroupName, String workspaceName, String id) {
+ 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 (id == null) {
+ return Mono.error(new IllegalArgumentException("Parameter id is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ workspaceName,
+ id,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * 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 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> deleteWithResponseAsync(
+ String resourceGroupName, String workspaceName, String id, 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 (id == null) {
+ return Mono.error(new IllegalArgumentException("Parameter id is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ workspaceName,
+ id,
+ this.client.getApiVersion(),
+ accept,
+ 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 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 deleteAsync(String resourceGroupName, String workspaceName, String id) {
+ return deleteWithResponseAsync(resourceGroupName, workspaceName, id).flatMap(ignored -> Mono.empty());
+ }
+
+ /**
+ * 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 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 deleteWithResponse(
+ String resourceGroupName, String workspaceName, String id, Context context) {
+ return deleteWithResponseAsync(resourceGroupName, workspaceName, id, context).block();
+ }
+
+ /**
+ * 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 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)
+ public void delete(String resourceGroupName, String workspaceName, String id) {
+ deleteWithResponse(resourceGroupName, workspaceName, id, Context.NONE);
+ }
+
+ /**
+ * 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.
+ * @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 labeling job by name/id along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName,
+ String workspaceName,
+ String id,
+ Boolean includeJobInstructions,
+ Boolean includeLabelCategories) {
+ 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 (id == null) {
+ return Mono.error(new IllegalArgumentException("Parameter id is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ workspaceName,
+ id,
+ this.client.getApiVersion(),
+ includeJobInstructions,
+ includeLabelCategories,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * 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 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} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName,
+ String workspaceName,
+ String id,
+ Boolean includeJobInstructions,
+ Boolean includeLabelCategories,
+ 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 (id == null) {
+ return Mono.error(new IllegalArgumentException("Parameter id is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ workspaceName,
+ id,
+ this.client.getApiVersion(),
+ includeJobInstructions,
+ includeLabelCategories,
+ accept,
+ 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 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 on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(String resourceGroupName, String workspaceName, String id) {
+ final Boolean includeJobInstructions = null;
+ final Boolean includeLabelCategories = null;
+ return getWithResponseAsync(
+ resourceGroupName, workspaceName, id, includeJobInstructions, includeLabelCategories)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * 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 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)
+ public Response getWithResponse(
+ String resourceGroupName,
+ String workspaceName,
+ String id,
+ Boolean includeJobInstructions,
+ Boolean includeLabelCategories,
+ Context context) {
+ return getWithResponseAsync(
+ resourceGroupName, workspaceName, id, includeJobInstructions, includeLabelCategories, context)
+ .block();
+ }
+
+ /**
+ * 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 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)
+ public LabelingJobInner get(String resourceGroupName, String workspaceName, String id) {
+ final Boolean includeJobInstructions = null;
+ final Boolean includeLabelCategories = null;
+ return getWithResponse(
+ resourceGroupName, workspaceName, id, includeJobInstructions, includeLabelCategories, Context.NONE)
+ .getValue();
+ }
+
+ /**
+ * 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 ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azure Resource Manager resource envelope along with {@link Response} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName, String workspaceName, String id, LabelingJobInner body) {
+ 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 (id == null) {
+ return Mono.error(new IllegalArgumentException("Parameter id is required and cannot be null."));
+ }
+ if (body == null) {
+ return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
+ } else {
+ body.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ workspaceName,
+ id,
+ this.client.getApiVersion(),
+ body,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * 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 ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azure Resource Manager resource envelope along with {@link Response} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName, String workspaceName, String id, LabelingJobInner body, 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 (id == null) {
+ return Mono.error(new IllegalArgumentException("Parameter id is required and cannot be null."));
+ }
+ if (body == null) {
+ return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
+ } else {
+ body.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ workspaceName,
+ id,
+ this.client.getApiVersion(),
+ body,
+ accept,
+ 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 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 PollerFlux} for polling of azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, LabelingJobInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String workspaceName, String id, LabelingJobInner body) {
+ Mono>> mono =
+ createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, id, body);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ LabelingJobInner.class,
+ LabelingJobInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * 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 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 PollerFlux} for polling of azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, LabelingJobInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String workspaceName, String id, LabelingJobInner body, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, id, body, context);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), LabelingJobInner.class, LabelingJobInner.class, 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 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)
+ public SyncPoller, LabelingJobInner> beginCreateOrUpdate(
+ String resourceGroupName, String workspaceName, String id, LabelingJobInner body) {
+ return this.beginCreateOrUpdateAsync(resourceGroupName, workspaceName, id, body).getSyncPoller();
+ }
+
+ /**
+ * 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 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)
+ public SyncPoller, LabelingJobInner> beginCreateOrUpdate(
+ String resourceGroupName, String workspaceName, String id, LabelingJobInner body, Context context) {
+ return this.beginCreateOrUpdateAsync(resourceGroupName, workspaceName, id, body, context).getSyncPoller();
+ }
+
+ /**
+ * 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 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 on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(
+ String resourceGroupName, String workspaceName, String id, LabelingJobInner body) {
+ return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, id, body)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * 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 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 on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(
+ String resourceGroupName, String workspaceName, String id, LabelingJobInner body, Context context) {
+ return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, id, body, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * 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 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)
+ public LabelingJobInner createOrUpdate(
+ String resourceGroupName, String workspaceName, String id, LabelingJobInner body) {
+ return createOrUpdateAsync(resourceGroupName, workspaceName, id, body).block();
+ }
+
+ /**
+ * 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 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)
+ public LabelingJobInner createOrUpdate(
+ String resourceGroupName, String workspaceName, String id, LabelingJobInner body, Context context) {
+ return createOrUpdateAsync(resourceGroupName, workspaceName, id, body, context).block();
+ }
+
+ /**
+ * 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 ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> exportLabelsWithResponseAsync(
+ String resourceGroupName, String workspaceName, String id, ExportSummaryInner body) {
+ 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 (id == null) {
+ return Mono.error(new IllegalArgumentException("Parameter id is required and cannot be null."));
+ }
+ if (body == null) {
+ return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
+ } else {
+ body.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .exportLabels(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ workspaceName,
+ id,
+ this.client.getApiVersion(),
+ body,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * 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 ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> exportLabelsWithResponseAsync(
+ String resourceGroupName, String workspaceName, String id, ExportSummaryInner body, 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 (id == null) {
+ return Mono.error(new IllegalArgumentException("Parameter id is required and cannot be null."));
+ }
+ if (body == null) {
+ return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
+ } else {
+ body.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .exportLabels(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ workspaceName,
+ id,
+ this.client.getApiVersion(),
+ body,
+ accept,
+ 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 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 PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, ExportSummaryInner> beginExportLabelsAsync(
+ String resourceGroupName, String workspaceName, String id, ExportSummaryInner body) {
+ Mono>> mono =
+ exportLabelsWithResponseAsync(resourceGroupName, workspaceName, id, body);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ ExportSummaryInner.class,
+ ExportSummaryInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * 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 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 PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, ExportSummaryInner> beginExportLabelsAsync(
+ String resourceGroupName, String workspaceName, String id, ExportSummaryInner body, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ exportLabelsWithResponseAsync(resourceGroupName, workspaceName, id, body, context);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), ExportSummaryInner.class, ExportSummaryInner.class, 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 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)
+ public SyncPoller, ExportSummaryInner> beginExportLabels(
+ String resourceGroupName, String workspaceName, String id, ExportSummaryInner body) {
+ return this.beginExportLabelsAsync(resourceGroupName, workspaceName, id, body).getSyncPoller();
+ }
+
+ /**
+ * 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 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)
+ public SyncPoller, ExportSummaryInner> beginExportLabels(
+ String resourceGroupName, String workspaceName, String id, ExportSummaryInner body, Context context) {
+ return this.beginExportLabelsAsync(resourceGroupName, workspaceName, id, body, context).getSyncPoller();
+ }
+
+ /**
+ * 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 ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono exportLabelsAsync(
+ String resourceGroupName, String workspaceName, String id, ExportSummaryInner body) {
+ return beginExportLabelsAsync(resourceGroupName, workspaceName, id, body)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * 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 ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono exportLabelsAsync(
+ String resourceGroupName, String workspaceName, String id, ExportSummaryInner body, Context context) {
+ return beginExportLabelsAsync(resourceGroupName, workspaceName, id, body, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * 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 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)
+ public ExportSummaryInner exportLabels(
+ String resourceGroupName, String workspaceName, String id, ExportSummaryInner body) {
+ return exportLabelsAsync(resourceGroupName, workspaceName, id, body).block();
+ }
+
+ /**
+ * 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 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)
+ public ExportSummaryInner exportLabels(
+ String resourceGroupName, String workspaceName, String id, ExportSummaryInner body, Context context) {
+ return exportLabelsAsync(resourceGroupName, workspaceName, id, body, context).block();
+ }
+
+ /**
+ * 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 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> pauseWithResponseAsync(String resourceGroupName, String workspaceName, String id) {
+ 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 (id == null) {
+ return Mono.error(new IllegalArgumentException("Parameter id is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .pause(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ workspaceName,
+ id,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * 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 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> pauseWithResponseAsync(
+ String resourceGroupName, String workspaceName, String id, 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 (id == null) {
+ return Mono.error(new IllegalArgumentException("Parameter id is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .pause(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ workspaceName,
+ id,
+ this.client.getApiVersion(),
+ accept,
+ 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 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 pauseAsync(String resourceGroupName, String workspaceName, String id) {
+ return pauseWithResponseAsync(resourceGroupName, workspaceName, id).flatMap(ignored -> Mono.empty());
+ }
+
+ /**
+ * 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 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 pauseWithResponse(
+ String resourceGroupName, String workspaceName, String id, Context context) {
+ return pauseWithResponseAsync(resourceGroupName, workspaceName, id, context).block();
+ }
+
+ /**
+ * 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 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)
+ public void pause(String resourceGroupName, String workspaceName, String id) {
+ pauseWithResponse(resourceGroupName, workspaceName, id, Context.NONE);
+ }
+
+ /**
+ * 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 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>> resumeWithResponseAsync(
+ String resourceGroupName, String workspaceName, String id) {
+ 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 (id == null) {
+ return Mono.error(new IllegalArgumentException("Parameter id is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .resume(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ workspaceName,
+ id,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * 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 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>> resumeWithResponseAsync(
+ String resourceGroupName, String workspaceName, String id, 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 (id == null) {
+ return Mono.error(new IllegalArgumentException("Parameter id is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .resume(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ workspaceName,
+ id,
+ this.client.getApiVersion(),
+ accept,
+ 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 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 PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginResumeAsync(
+ String resourceGroupName, String workspaceName, String id) {
+ Mono>> mono = resumeWithResponseAsync(resourceGroupName, workspaceName, id);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
+ }
+
+ /**
+ * 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 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 PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginResumeAsync(
+ String resourceGroupName, String workspaceName, String id, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono = resumeWithResponseAsync(resourceGroupName, workspaceName, id, context);
+ return this
+ .client
+ .