diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/CHANGELOG.md b/sdk/machinelearning/azure-resourcemanager-machinelearning/CHANGELOG.md
index 22cf70d8f223..afae0e769b50 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-05-08)
+
+- 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-2023-04. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Features Added
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/README.md b/sdk/machinelearning/azure-resourcemanager-machinelearning/README.md
index 1521aeacd892..9f8ab9916e67 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-2023-04. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-machinelearning
- 1.0.0
+ 1.1.0-beta.1
```
[//]: # ({x-version-update-end})
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/SAMPLE.md b/sdk/machinelearning/azure-resourcemanager-machinelearning/SAMPLE.md
index aace5155fc33..2ebe1f778cbc 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/SAMPLE.md
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/SAMPLE.md
@@ -27,6 +27,7 @@
## CodeVersions
+- [CreateOrGetStartPendingUpload](#codeversions_createorgetstartpendingupload)
- [CreateOrUpdate](#codeversions_createorupdate)
- [Delete](#codeversions_delete)
- [Get](#codeversions_get)
@@ -158,6 +159,89 @@
- [List](#quotas_list)
- [Update](#quotas_update)
+## Registries
+
+- [CreateOrUpdate](#registries_createorupdate)
+- [Delete](#registries_delete)
+- [GetByResourceGroup](#registries_getbyresourcegroup)
+- [List](#registries_list)
+- [ListByResourceGroup](#registries_listbyresourcegroup)
+- [RemoveRegions](#registries_removeregions)
+- [Update](#registries_update)
+
+## RegistryCodeContainers
+
+- [CreateOrUpdate](#registrycodecontainers_createorupdate)
+- [Delete](#registrycodecontainers_delete)
+- [Get](#registrycodecontainers_get)
+- [List](#registrycodecontainers_list)
+
+## RegistryCodeVersions
+
+- [CreateOrGetStartPendingUpload](#registrycodeversions_createorgetstartpendingupload)
+- [CreateOrUpdate](#registrycodeversions_createorupdate)
+- [Delete](#registrycodeversions_delete)
+- [Get](#registrycodeversions_get)
+- [List](#registrycodeversions_list)
+
+## RegistryComponentContainers
+
+- [CreateOrUpdate](#registrycomponentcontainers_createorupdate)
+- [Delete](#registrycomponentcontainers_delete)
+- [Get](#registrycomponentcontainers_get)
+- [List](#registrycomponentcontainers_list)
+
+## RegistryComponentVersions
+
+- [CreateOrUpdate](#registrycomponentversions_createorupdate)
+- [Delete](#registrycomponentversions_delete)
+- [Get](#registrycomponentversions_get)
+- [List](#registrycomponentversions_list)
+
+## RegistryDataContainers
+
+- [CreateOrUpdate](#registrydatacontainers_createorupdate)
+- [Delete](#registrydatacontainers_delete)
+- [Get](#registrydatacontainers_get)
+- [List](#registrydatacontainers_list)
+
+## RegistryDataVersions
+
+- [CreateOrGetStartPendingUpload](#registrydataversions_createorgetstartpendingupload)
+- [CreateOrUpdate](#registrydataversions_createorupdate)
+- [Delete](#registrydataversions_delete)
+- [Get](#registrydataversions_get)
+- [List](#registrydataversions_list)
+
+## RegistryEnvironmentContainers
+
+- [CreateOrUpdate](#registryenvironmentcontainers_createorupdate)
+- [Delete](#registryenvironmentcontainers_delete)
+- [Get](#registryenvironmentcontainers_get)
+- [List](#registryenvironmentcontainers_list)
+
+## RegistryEnvironmentVersions
+
+- [CreateOrUpdate](#registryenvironmentversions_createorupdate)
+- [Delete](#registryenvironmentversions_delete)
+- [Get](#registryenvironmentversions_get)
+- [List](#registryenvironmentversions_list)
+
+## RegistryModelContainers
+
+- [CreateOrUpdate](#registrymodelcontainers_createorupdate)
+- [Delete](#registrymodelcontainers_delete)
+- [Get](#registrymodelcontainers_get)
+- [List](#registrymodelcontainers_list)
+
+## RegistryModelVersions
+
+- [CreateOrGetStartPendingUpload](#registrymodelversions_createorgetstartpendingupload)
+- [CreateOrUpdate](#registrymodelversions_createorupdate)
+- [Delete](#registrymodelversions_delete)
+- [Get](#registrymodelversions_get)
+- [List](#registrymodelversions_list)
+
## Schedules
- [CreateOrUpdate](#schedules_createorupdate)
@@ -225,14 +309,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/stable/2023-04-01/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 +388,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/stable/2023-04-01/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 +415,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/stable/2023-04-01/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 +442,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/stable/2023-04-01/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 +470,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/stable/2023-04-01/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 +526,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/stable/2023-04-01/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 +581,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/stable/2023-04-01/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 +603,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/stable/2023-04-01/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 +625,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/stable/2023-04-01/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 +645,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/stable/2023-04-01/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 +676,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/stable/2023-04-01/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 +721,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 +729,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/stable/2023-04-01/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 +771,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/stable/2023-04-01/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 +793,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/stable/2023-04-01/examples/Workspace/CodeContainer/get.json
*/
/**
- * Sample code: Get Code Container.
+ * Sample code: Get Workspace Code Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getCodeContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void getWorkspaceCodeContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.codeContainers()
.getWithResponse("testrg123", "testworkspace", "testContainer", com.azure.core.util.Context.NONE);
@@ -717,22 +815,57 @@ public final class CodeContainersGetSamples {
/** Samples for CodeContainers List. */
public final class CodeContainersListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/CodeContainer/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-04-01/examples/Workspace/CodeContainer/list.json
*/
/**
- * Sample code: List Code Container.
+ * Sample code: List Workspace Code Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listCodeContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void listWorkspaceCodeContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.codeContainers().list("testrg123", "testworkspace", null, com.azure.core.util.Context.NONE);
}
}
```
+### CodeVersions_CreateOrGetStartPendingUpload
+
+```java
+import com.azure.resourcemanager.machinelearning.models.PendingUploadRequestDto;
+import com.azure.resourcemanager.machinelearning.models.PendingUploadType;
+
+/** Samples for CodeVersions CreateOrGetStartPendingUpload. */
+public final class CodeVersionsCreateOrGetStartPendingUploadSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-04-01/examples/Workspace/CodeVersion/createOrGetStartPendingUpload.json
+ */
+ /**
+ * Sample code: CreateOrGetStartPendingUpload Workspace Code Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrGetStartPendingUploadWorkspaceCodeVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .codeVersions()
+ .createOrGetStartPendingUploadWithResponse(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ "string",
+ new PendingUploadRequestDto()
+ .withPendingUploadId("string")
+ .withPendingUploadType(PendingUploadType.NONE),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### CodeVersions_CreateOrUpdate
```java
+import com.azure.resourcemanager.machinelearning.fluent.models.CodeVersionInner;
import com.azure.resourcemanager.machinelearning.models.CodeVersionProperties;
import java.util.HashMap;
import java.util.Map;
@@ -740,27 +873,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/stable/2023-04-01/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 +919,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/stable/2023-04-01/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 +941,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/stable/2023-04-01/examples/Workspace/CodeVersion/get.json
*/
/**
- * Sample code: Get Code Version.
+ * Sample code: Get Workspace Code Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getCodeVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void getWorkspaceCodeVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.codeVersions()
.getWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
@@ -824,17 +963,27 @@ public final class CodeVersionsGetSamples {
/** Samples for CodeVersions List. */
public final class CodeVersionsListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/CodeVersion/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-04-01/examples/Workspace/CodeVersion/list.json
*/
/**
- * Sample code: List Code Version.
+ * Sample code: List Workspace Code Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listCodeVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void listWorkspaceCodeVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.codeVersions()
- .list("test-rg", "my-aml-workspace", "string", "string", 1, null, com.azure.core.util.Context.NONE);
+ .list(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ "string",
+ 1,
+ null,
+ null,
+ null,
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -842,6 +991,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 +999,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/stable/2023-04-01/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 +1042,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/stable/2023-04-01/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 +1064,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/stable/2023-04-01/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 +1086,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/stable/2023-04-01/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 +1105,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 +1114,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/stable/2023-04-01/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 +1166,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/stable/2023-04-01/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 +1188,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/stable/2023-04-01/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 +1210,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/stable/2023-04-01/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);
@@ -1078,27 +1239,44 @@ import com.azure.resourcemanager.machinelearning.models.ComputeInstance;
import com.azure.resourcemanager.machinelearning.models.ComputeInstanceAuthorizationType;
import com.azure.resourcemanager.machinelearning.models.ComputeInstanceProperties;
import com.azure.resourcemanager.machinelearning.models.ComputeInstanceSshSettings;
+import com.azure.resourcemanager.machinelearning.models.ComputePowerAction;
+import com.azure.resourcemanager.machinelearning.models.ComputeSchedules;
+import com.azure.resourcemanager.machinelearning.models.ComputeStartStopSchedule;
+import com.azure.resourcemanager.machinelearning.models.Cron;
+import com.azure.resourcemanager.machinelearning.models.CustomService;
import com.azure.resourcemanager.machinelearning.models.DataFactory;
+import com.azure.resourcemanager.machinelearning.models.Docker;
+import com.azure.resourcemanager.machinelearning.models.Endpoint;
+import com.azure.resourcemanager.machinelearning.models.EnvironmentVariable;
+import com.azure.resourcemanager.machinelearning.models.EnvironmentVariableType;
+import com.azure.resourcemanager.machinelearning.models.Image;
+import com.azure.resourcemanager.machinelearning.models.ImageType;
import com.azure.resourcemanager.machinelearning.models.InstanceTypeSchema;
import com.azure.resourcemanager.machinelearning.models.InstanceTypeSchemaResources;
import com.azure.resourcemanager.machinelearning.models.Kubernetes;
import com.azure.resourcemanager.machinelearning.models.KubernetesProperties;
import com.azure.resourcemanager.machinelearning.models.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/stable/2023-04-01/examples/Compute/createOrUpdate/BasicAKSCompute.json
*/
/**
* Sample code: Create an AKS Compute.
@@ -1116,7 +1294,7 @@ public final class ComputeCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/createOrUpdate/AKSCompute.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-04-01/examples/Compute/createOrUpdate/AKSCompute.json
*/
/**
* Sample code: Update an AKS Compute.
@@ -1139,7 +1317,7 @@ public final class ComputeCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/createOrUpdate/KubernetesCompute.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-04-01/examples/Compute/createOrUpdate/KubernetesCompute.json
*/
/**
* Sample code: Attach a Kubernetes Compute.
@@ -1176,7 +1354,7 @@ public final class ComputeCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/createOrUpdate/ComputeInstanceWithSchedules.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-04-01/examples/Compute/createOrUpdate/ComputeInstanceWithSchedules.json
*/
/**
* Sample code: Create an ComputeInstance Compute with Schedules.
@@ -1204,12 +1382,26 @@ public final class ComputeCreateOrUpdateSamples {
.withAssignedUser(
new AssignedUser()
.withObjectId("00000000-0000-0000-0000-000000000000")
- .withTenantId("00000000-0000-0000-0000-000000000000")))))
+ .withTenantId("00000000-0000-0000-0000-000000000000")))
+ .withSchedules(
+ new ComputeSchedules()
+ .withComputeStartStop(
+ Arrays
+ .asList(
+ new ComputeStartStopSchedule()
+ .withStatus(ScheduleStatus.ENABLED)
+ .withAction(ComputePowerAction.STOP)
+ .withTriggerType(TriggerType.CRON)
+ .withCron(
+ new Cron()
+ .withStartTime("2021-04-23T01:30:00")
+ .withTimeZone("Pacific Standard Time")
+ .withExpression("0 18 * * *")))))))
.create();
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/createOrUpdate/BasicAmlCompute.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-04-01/examples/Compute/createOrUpdate/BasicAmlCompute.json
*/
/**
* Sample code: Create a AML Compute.
@@ -1245,7 +1437,7 @@ public final class ComputeCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/createOrUpdate/ComputeInstance.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-04-01/examples/Compute/createOrUpdate/ComputeInstance.json
*/
/**
* Sample code: Create an ComputeInstance Compute.
@@ -1268,6 +1460,42 @@ public final class ComputeCreateOrUpdateSamples {
.withApplicationSharingPolicy(ApplicationSharingPolicy.PERSONAL)
.withSshSettings(
new ComputeInstanceSshSettings().withSshPublicAccess(SshPublicAccess.DISABLED))
+ .withCustomServices(
+ Arrays
+ .asList(
+ new CustomService()
+ .withName("rstudio")
+ .withImage(
+ new Image()
+ .withType(ImageType.DOCKER)
+ .withReference("ghcr.io/azure/rocker-rstudio-ml-verse:latest")
+ .withAdditionalProperties(mapOf()))
+ .withEnvironmentVariables(
+ mapOf(
+ "test_variable",
+ new EnvironmentVariable()
+ .withType(EnvironmentVariableType.LOCAL)
+ .withValue("test_value")
+ .withAdditionalProperties(mapOf())))
+ .withDocker(
+ new Docker().withPrivileged(true).withAdditionalProperties(mapOf()))
+ .withEndpoints(
+ Arrays
+ .asList(
+ new Endpoint()
+ .withProtocol(Protocol.HTTP)
+ .withName("connect")
+ .withTarget(8787)
+ .withPublished(8787)))
+ .withVolumes(
+ Arrays
+ .asList(
+ new VolumeDefinition()
+ .withType(VolumeDefinitionType.BIND)
+ .withReadOnly(false)
+ .withSource("/home/azureuser/cloudfiles")
+ .withTarget("/home/azureuser/cloudfiles")))
+ .withAdditionalProperties(mapOf())))
.withComputeInstanceAuthorizationType(ComputeInstanceAuthorizationType.PERSONAL)
.withPersonalComputeInstanceSettings(
new PersonalComputeInstanceSettings()
@@ -1279,7 +1507,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/stable/2023-04-01/examples/Compute/createOrUpdate/ComputeInstanceMinimal.json
*/
/**
* Sample code: Create an ComputeInstance Compute with minimal inputs.
@@ -1299,7 +1527,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/stable/2023-04-01/examples/Compute/createOrUpdate/AmlCompute.json
*/
/**
* Sample code: Update a AML Compute.
@@ -1326,7 +1554,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/stable/2023-04-01/examples/Compute/createOrUpdate/BasicDataFactoryCompute.json
*/
/**
* Sample code: Create a DataFactory Compute.
@@ -1365,7 +1593,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/stable/2023-04-01/examples/Compute/delete.json
*/
/**
* Sample code: Delete Compute.
@@ -1391,7 +1619,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/stable/2023-04-01/examples/Compute/get/AKSCompute.json
*/
/**
* Sample code: Get a AKS Compute.
@@ -1405,7 +1633,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/stable/2023-04-01/examples/Compute/get/KubernetesCompute.json
*/
/**
* Sample code: Get a Kubernetes Compute.
@@ -1419,7 +1647,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/stable/2023-04-01/examples/Compute/get/ComputeInstance.json
*/
/**
* Sample code: Get an ComputeInstance.
@@ -1433,7 +1661,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/stable/2023-04-01/examples/Compute/get/AmlCompute.json
*/
/**
* Sample code: Get a AML Compute.
@@ -1454,7 +1682,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/stable/2023-04-01/examples/Compute/list.json
*/
/**
* Sample code: Get Computes.
@@ -1473,7 +1701,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/stable/2023-04-01/examples/Compute/listKeys.json
*/
/**
* Sample code: List AKS Compute Keys.
@@ -1494,7 +1722,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/stable/2023-04-01/examples/Compute/listNodes.json
*/
/**
* Sample code: Get compute nodes information for a compute.
@@ -1514,7 +1742,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/stable/2023-04-01/examples/Compute/restart.json
*/
/**
* Sample code: Restart ComputeInstance Compute.
@@ -1534,7 +1762,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/stable/2023-04-01/examples/Compute/start.json
*/
/**
* Sample code: Start ComputeInstance Compute.
@@ -1554,7 +1782,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/stable/2023-04-01/examples/Compute/stop.json
*/
/**
* Sample code: Stop ComputeInstance Compute.
@@ -1579,7 +1807,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/stable/2023-04-01/examples/Compute/patch.json
*/
/**
* Sample code: Update a AmlCompute Compute.
@@ -1610,6 +1838,7 @@ public final class ComputeUpdateSamples {
### DataContainers_CreateOrUpdate
```java
+import com.azure.resourcemanager.machinelearning.fluent.models.DataContainerInner;
import com.azure.resourcemanager.machinelearning.models.DataContainerProperties;
import com.azure.resourcemanager.machinelearning.models.DataType;
import java.util.HashMap;
@@ -1618,26 +1847,29 @@ import java.util.Map;
/** Samples for DataContainers CreateOrUpdate. */
public final class DataContainersCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/DataContainer/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-04-01/examples/Workspace/DataContainer/createOrUpdate.json
*/
/**
- * Sample code: CreateOrUpdate Data Container.
+ * Sample code: CreateOrUpdate Workspace Data Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateDataContainer(
+ public static void createOrUpdateWorkspaceDataContainer(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.dataContainers()
- .define("datacontainer123")
- .withExistingWorkspace("testrg123", "workspace123")
- .withProperties(
- new DataContainerProperties()
- .withDescription("string")
- .withProperties(mapOf("properties1", "value1", "properties2", "value2"))
- .withTags(mapOf("tag1", "value1", "tag2", "value2"))
- .withDataType(DataType.fromString("UriFile")))
- .create();
+ .createOrUpdateWithResponse(
+ "testrg123",
+ "workspace123",
+ "datacontainer123",
+ new DataContainerInner()
+ .withProperties(
+ new DataContainerProperties()
+ .withDescription("string")
+ .withProperties(mapOf("properties1", "value1", "properties2", "value2"))
+ .withTags(mapOf("tag1", "value1", "tag2", "value2"))
+ .withDataType(DataType.fromString("UriFile"))),
+ com.azure.core.util.Context.NONE);
}
@SuppressWarnings("unchecked")
@@ -1659,14 +1891,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/stable/2023-04-01/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 +1913,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/stable/2023-04-01/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 +1935,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/stable/2023-04-01/examples/Workspace/DataContainer/list.json
*/
/**
- * Sample code: List Data Container.
+ * Sample code: List Workspace Data Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listDataContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void listWorkspaceDataContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.dataContainers().list("testrg123", "workspace123", null, null, com.azure.core.util.Context.NONE);
}
}
@@ -1717,6 +1952,7 @@ public final class DataContainersListSamples {
### DataVersions_CreateOrUpdate
```java
+import com.azure.resourcemanager.machinelearning.fluent.models.DataVersionBaseInner;
import com.azure.resourcemanager.machinelearning.models.UriFileDataVersion;
import java.util.HashMap;
import java.util.Map;
@@ -1724,27 +1960,31 @@ import java.util.Map;
/** Samples for DataVersions CreateOrUpdate. */
public final class DataVersionsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/DataVersionBase/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-04-01/examples/Workspace/DataVersionBase/createOrUpdate.json
*/
/**
- * Sample code: CreateOrUpdate Data Version Base.
+ * Sample code: CreateOrUpdate Workspace Data Version Base.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateDataVersionBase(
+ public static void createOrUpdateWorkspaceDataVersionBase(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.dataVersions()
- .define("string")
- .withExistingData("test-rg", "my-aml-workspace", "string")
- .withProperties(
- new UriFileDataVersion()
- .withDescription("string")
- .withProperties(mapOf("string", "string"))
- .withTags(mapOf("string", "string"))
- .withIsAnonymous(false)
- .withDataUri("string"))
- .create();
+ .createOrUpdateWithResponse(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ "string",
+ new DataVersionBaseInner()
+ .withProperties(
+ new UriFileDataVersion()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsAnonymous(false)
+ .withDataUri("string")),
+ com.azure.core.util.Context.NONE);
}
@SuppressWarnings("unchecked")
@@ -1766,14 +2006,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/stable/2023-04-01/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 +2028,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/stable/2023-04-01/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 +2050,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/stable/2023-04-01/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 +2093,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/stable/2023-04-01/examples/Datastore/AzureDataLakeGen1WServicePrincipal/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate datastore (Azure Data Lake Gen1 w/ ServicePrincipal).
@@ -1881,7 +2124,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/stable/2023-04-01/examples/Datastore/AzureDataLakeGen2WServicePrincipal/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate datastore (Azure Data Lake Gen2 w/ Service Principal).
@@ -1915,7 +2158,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/stable/2023-04-01/examples/Datastore/AzureBlobWAccountKey/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate datastore (AzureBlob w/ AccountKey).
@@ -1944,7 +2187,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/stable/2023-04-01/examples/Datastore/AzureFileWAccountKey/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate datastore (Azure File store w/ AccountKey).
@@ -1991,7 +2234,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/stable/2023-04-01/examples/Datastore/delete.json
*/
/**
* Sample code: Delete datastore.
@@ -2012,7 +2255,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/stable/2023-04-01/examples/Datastore/get.json
*/
/**
* Sample code: Get datastore.
@@ -2033,7 +2276,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/stable/2023-04-01/examples/Datastore/list.json
*/
/**
* Sample code: List datastores.
@@ -2064,7 +2307,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/stable/2023-04-01/examples/Datastore/listSecrets.json
*/
/**
* Sample code: Get datastore secrets.
@@ -2082,6 +2325,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 +2333,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/stable/2023-04-01/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 +2390,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/stable/2023-04-01/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 +2412,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/stable/2023-04-01/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 +2434,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/stable/2023-04-01/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 +2453,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 +2464,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/stable/2023-04-01/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 +2521,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/stable/2023-04-01/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 +2543,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/stable/2023-04-01/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 +2565,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/stable/2023-04-01/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 +2587,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/stable/2023-04-01/examples/Job/cancel.json
*/
/**
* Sample code: Cancel Job.
@@ -2373,7 +2638,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/stable/2023-04-01/examples/Job/AutoMLJob/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate AutoML Job.
@@ -2441,7 +2706,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/stable/2023-04-01/examples/Job/SweepJob/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Sweep Job.
@@ -2506,7 +2771,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/stable/2023-04-01/examples/Job/PipelineJob/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Pipeline Job.
@@ -2551,7 +2816,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/stable/2023-04-01/examples/Job/CommandJob/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Command Job.
@@ -2630,7 +2895,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/stable/2023-04-01/examples/Job/delete.json
*/
/**
* Sample code: Delete Job.
@@ -2638,7 +2903,13 @@ public final class JobsDeleteSamples {
* @param manager Entry point to MachineLearningManager.
*/
public static void deleteJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.jobs().delete("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ manager
+ .jobs()
+ .delete(
+ "test-rg",
+ "my-aml-workspace",
+ "http://subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/jobs/my-favorite-aml-job",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -2649,7 +2920,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/stable/2023-04-01/examples/Job/CommandJob/get.json
*/
/**
* Sample code: Get Command Job.
@@ -2661,7 +2932,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/stable/2023-04-01/examples/Job/AutoMLJob/get.json
*/
/**
* Sample code: Get AutoML Job.
@@ -2673,7 +2944,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/stable/2023-04-01/examples/Job/SweepJob/get.json
*/
/**
* Sample code: Get Sweep Job.
@@ -2685,7 +2956,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/stable/2023-04-01/examples/Job/PipelineJob/get.json
*/
/**
* Sample code: Get Pipeline Job.
@@ -2704,7 +2975,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/stable/2023-04-01/examples/Job/CommandJob/list.json
*/
/**
* Sample code: List Command Job.
@@ -2718,7 +2989,7 @@ public final class JobsListSamples {
}
/*
- * 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/stable/2023-04-01/examples/Job/PipelineJob/list.json
*/
/**
* Sample code: List Pipeline Job.
@@ -2732,7 +3003,7 @@ public final class JobsListSamples {
}
/*
- * 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/stable/2023-04-01/examples/Job/SweepJob/list.json
*/
/**
* Sample code: List Sweep Job.
@@ -2746,7 +3017,7 @@ public final class JobsListSamples {
}
/*
- * 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/stable/2023-04-01/examples/Job/AutoMLJob/list.json
*/
/**
* Sample code: List AutoML Job.
@@ -2762,6 +3033,7 @@ public final class JobsListSamples {
### 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;
@@ -2769,24 +3041,27 @@ import java.util.Map;
/** Samples for ModelContainers CreateOrUpdate. */
public final class ModelContainersCreateOrUpdateSamples {
/*
- * 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/stable/2023-04-01/examples/Workspace/ModelContainer/createOrUpdate.json
*/
/**
- * Sample code: CreateOrUpdate Model Container.
+ * Sample code: CreateOrUpdate Workspace Model Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateModelContainer(
+ public static void createOrUpdateWorkspaceModelContainer(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.modelContainers()
- .define("testContainer")
- .withExistingWorkspace("testrg123", "workspace123")
- .withProperties(
- new ModelContainerProperties()
- .withDescription("Model container description")
- .withTags(mapOf("tag1", "value1", "tag2", "value2")))
- .create();
+ .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")
@@ -2808,14 +3083,15 @@ public final class ModelContainersCreateOrUpdateSamples {
/** 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/stable/2023-04-01/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 +3105,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/stable/2023-04-01/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 +3127,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/stable/2023-04-01/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 +3144,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 +3153,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/stable/2023-04-01/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 +3201,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/stable/2023-04-01/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 +3223,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/stable/2023-04-01/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 +3245,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/stable/2023-04-01/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 +3298,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/stable/2023-04-01/examples/OnlineDeployment/KubernetesOnlineDeployment/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Kubernetes Online Deployment.
@@ -3077,7 +3363,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/stable/2023-04-01/examples/OnlineDeployment/ManagedOnlineDeployment/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Managed Online Deployment.
@@ -3158,14 +3444,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/stable/2023-04-01/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 +3466,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/stable/2023-04-01/examples/OnlineDeployment/KubernetesOnlineDeployment/get.json
*/
/**
* Sample code: Get Kubernetes Online Deployment.
@@ -3200,7 +3486,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/stable/2023-04-01/examples/OnlineDeployment/ManagedOnlineDeployment/get.json
*/
/**
* Sample code: Get Managed Online Deployment.
@@ -3230,7 +3516,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/stable/2023-04-01/examples/OnlineDeployment/getLogs.json
*/
/**
* Sample code: Get Online Deployment Logs.
@@ -3258,7 +3544,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/stable/2023-04-01/examples/OnlineDeployment/list.json
*/
/**
* Sample code: List Online Deployments.
@@ -3280,7 +3566,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/stable/2023-04-01/examples/OnlineDeployment/ManagedOnlineDeployment/listSkus.json
*/
/**
* Sample code: List Managed Online Deployment Skus.
@@ -3302,7 +3588,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/stable/2023-04-01/examples/OnlineDeployment/KubernetesOnlineDeployment/listSkus.json
*/
/**
* Sample code: List Kubernetes Online Deployment Skus.
@@ -3337,7 +3623,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/stable/2023-04-01/examples/OnlineDeployment/ManagedOnlineDeployment/update.json
*/
/**
* Sample code: Update Managed Online Deployment.
@@ -3370,7 +3656,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/stable/2023-04-01/examples/OnlineDeployment/KubernetesOnlineDeployment/update.json
*/
/**
* Sample code: Update Kubernetes Online Deployment.
@@ -3431,14 +3717,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/stable/2023-04-01/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 +3773,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/stable/2023-04-01/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 +3795,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/stable/2023-04-01/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 +3817,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/stable/2023-04-01/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 +3842,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/stable/2023-04-01/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 +3874,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/stable/2023-04-01/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 +3899,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/stable/2023-04-01/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 +3935,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/stable/2023-04-01/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 +3983,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/stable/2023-04-01/examples/Workspace/operationsList.json
*/
/**
* Sample code: OperationsList.
@@ -3716,7 +4005,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/stable/2023-04-01/examples/PrivateEndpointConnection/createOrUpdate.json
*/
/**
* Sample code: WorkspacePutPrivateEndpointConnection.
@@ -3744,7 +4033,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/stable/2023-04-01/examples/PrivateEndpointConnection/delete.json
*/
/**
* Sample code: WorkspaceDeletePrivateEndpointConnection.
@@ -3767,7 +4056,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/stable/2023-04-01/examples/PrivateEndpointConnection/get.json
*/
/**
* Sample code: WorkspaceGetPrivateEndpointConnection.
@@ -3790,7 +4079,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/stable/2023-04-01/examples/PrivateEndpointConnection/list.json
*/
/**
* Sample code: StorageAccountListPrivateEndpointConnections.
@@ -3810,7 +4099,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/stable/2023-04-01/examples/PrivateLinkResource/list.json
*/
/**
* Sample code: WorkspaceListPrivateLinkResources.
@@ -3830,7 +4119,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/stable/2023-04-01/examples/Quota/list.json
*/
/**
* Sample code: List workspace quotas by VMFamily.
@@ -3855,7 +4144,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/stable/2023-04-01/examples/Quota/update.json
*/
/**
* Sample code: update quotas.
@@ -3888,6 +4177,1775 @@ 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.EndpointServiceConnectionStatus;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.machinelearning.models.PrivateEndpointResource;
+import com.azure.resourcemanager.machinelearning.models.RegistryPrivateEndpointConnection;
+import com.azure.resourcemanager.machinelearning.models.RegistryPrivateLinkServiceConnectionState;
+import com.azure.resourcemanager.machinelearning.models.RegistryRegionArmDetails;
+import com.azure.resourcemanager.machinelearning.models.Sku;
+import com.azure.resourcemanager.machinelearning.models.SkuTier;
+import com.azure.resourcemanager.machinelearning.models.StorageAccountDetails;
+import com.azure.resourcemanager.machinelearning.models.SystemCreatedAcrAccount;
+import com.azure.resourcemanager.machinelearning.models.SystemCreatedStorageAccount;
+import com.azure.resourcemanager.machinelearning.models.UserAssignedIdentity;
+import com.azure.resourcemanager.machinelearning.models.UserCreatedAcrAccount;
+import com.azure.resourcemanager.machinelearning.models.UserCreatedStorageAccount;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for Registries CreateOrUpdate. */
+public final class RegistriesCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-04-01/examples/Registries/createOrUpdate-SystemCreated.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Registry with system created accounts.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateRegistryWithSystemCreatedAccounts(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registries()
+ .define("string")
+ .withRegion("string")
+ .withExistingResourceGroup("test-rg")
+ .withTags(mapOf())
+ .withIdentity(
+ new ManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.NONE)
+ .withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withKind("string")
+ .withSku(
+ new Sku()
+ .withName("string")
+ .withTier(SkuTier.FREE)
+ .withSize("string")
+ .withFamily("string")
+ .withCapacity(1))
+ .withDiscoveryUrl("string")
+ .withIntellectualPropertyPublisher("string")
+ .withManagedResourceGroup(new ArmResourceId().withResourceId("string"))
+ .withMlFlowRegistryUri("string")
+ .withRegistryPrivateEndpointConnections(
+ Arrays
+ .asList(
+ new RegistryPrivateEndpointConnection()
+ .withId("string")
+ .withLocation("string")
+ .withGroupIds(Arrays.asList("string"))
+ .withPrivateEndpoint(new PrivateEndpointResource().withSubnetArmId("string"))
+ .withRegistryPrivateLinkServiceConnectionState(
+ new RegistryPrivateLinkServiceConnectionState()
+ .withActionsRequired("string")
+ .withDescription("string")
+ .withStatus(EndpointServiceConnectionStatus.APPROVED))
+ .withProvisioningState("string")))
+ .withPublicNetworkAccess("string")
+ .withRegionDetails(
+ Arrays
+ .asList(
+ new RegistryRegionArmDetails()
+ .withAcrDetails(
+ Arrays
+ .asList(
+ new AcrDetails()
+ .withSystemCreatedAcrAccount(
+ new SystemCreatedAcrAccount()
+ .withAcrAccountName("string")
+ .withAcrAccountSku("string")
+ .withArmResourceId(new ArmResourceId().withResourceId("string")))))
+ .withLocation("string")
+ .withStorageAccountDetails(
+ Arrays
+ .asList(
+ new StorageAccountDetails()
+ .withSystemCreatedStorageAccount(
+ new SystemCreatedStorageAccount()
+ .withAllowBlobPublicAccess(false)
+ .withArmResourceId(new ArmResourceId().withResourceId("string"))
+ .withStorageAccountHnsEnabled(false)
+ .withStorageAccountName("string")
+ .withStorageAccountType("string"))))))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-04-01/examples/Registries/createOrUpdate-UserCreated.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Registry with user created accounts.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateRegistryWithUserCreatedAccounts(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registries()
+ .define("string")
+ .withRegion("string")
+ .withExistingResourceGroup("test-rg")
+ .withTags(mapOf())
+ .withIdentity(
+ new ManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.NONE)
+ .withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withKind("string")
+ .withSku(
+ new Sku()
+ .withName("string")
+ .withTier(SkuTier.FREE)
+ .withSize("string")
+ .withFamily("string")
+ .withCapacity(1))
+ .withDiscoveryUrl("string")
+ .withIntellectualPropertyPublisher("string")
+ .withManagedResourceGroup(new ArmResourceId().withResourceId("string"))
+ .withMlFlowRegistryUri("string")
+ .withRegistryPrivateEndpointConnections(
+ Arrays
+ .asList(
+ new RegistryPrivateEndpointConnection()
+ .withId("string")
+ .withLocation("string")
+ .withGroupIds(Arrays.asList("string"))
+ .withPrivateEndpoint(new PrivateEndpointResource().withSubnetArmId("string"))
+ .withRegistryPrivateLinkServiceConnectionState(
+ new RegistryPrivateLinkServiceConnectionState()
+ .withActionsRequired("string")
+ .withDescription("string")
+ .withStatus(EndpointServiceConnectionStatus.APPROVED))
+ .withProvisioningState("string")))
+ .withPublicNetworkAccess("string")
+ .withRegionDetails(
+ Arrays
+ .asList(
+ new RegistryRegionArmDetails()
+ .withAcrDetails(
+ Arrays
+ .asList(
+ new AcrDetails()
+ .withUserCreatedAcrAccount(
+ new UserCreatedAcrAccount()
+ .withArmResourceId(new ArmResourceId().withResourceId("string")))))
+ .withLocation("string")
+ .withStorageAccountDetails(
+ Arrays
+ .asList(
+ new StorageAccountDetails()
+ .withUserCreatedStorageAccount(
+ new UserCreatedStorageAccount()
+ .withArmResourceId(
+ new ArmResourceId().withResourceId("string")))))))
+ .create();
+ }
+
+ @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/stable/2023-04-01/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/stable/2023-04-01/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/stable/2023-04-01/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/stable/2023-04-01/examples/Registries/listBySubscription.json
+ */
+ /**
+ * Sample code: List registries by subscription.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listRegistriesBySubscription(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.registries().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Registries_ListByResourceGroup
+
+```java
+/** Samples for Registries ListByResourceGroup. */
+public final class RegistriesListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-04-01/examples/Registries/list-UserCreated.json
+ */
+ /**
+ * Sample code: List registries with user created accounts.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listRegistriesWithUserCreatedAccounts(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.registries().listByResourceGroup("test-rg", com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-04-01/examples/Registries/list-SystemCreated.json
+ */
+ /**
+ * Sample code: List registries with system created accounts.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listRegistriesWithSystemCreatedAccounts(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.registries().listByResourceGroup("test-rg", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Registries_RemoveRegions
+
+```java
+import com.azure.resourcemanager.machinelearning.fluent.models.RegistryInner;
+import com.azure.resourcemanager.machinelearning.models.AcrDetails;
+import com.azure.resourcemanager.machinelearning.models.ArmResourceId;
+import com.azure.resourcemanager.machinelearning.models.EndpointServiceConnectionStatus;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.machinelearning.models.PrivateEndpointResource;
+import com.azure.resourcemanager.machinelearning.models.RegistryPrivateEndpointConnection;
+import com.azure.resourcemanager.machinelearning.models.RegistryPrivateLinkServiceConnectionState;
+import com.azure.resourcemanager.machinelearning.models.RegistryRegionArmDetails;
+import com.azure.resourcemanager.machinelearning.models.Sku;
+import com.azure.resourcemanager.machinelearning.models.SkuTier;
+import com.azure.resourcemanager.machinelearning.models.StorageAccountDetails;
+import com.azure.resourcemanager.machinelearning.models.SystemCreatedAcrAccount;
+import com.azure.resourcemanager.machinelearning.models.SystemCreatedStorageAccount;
+import com.azure.resourcemanager.machinelearning.models.UserAssignedIdentity;
+import com.azure.resourcemanager.machinelearning.models.UserCreatedAcrAccount;
+import com.azure.resourcemanager.machinelearning.models.UserCreatedStorageAccount;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for Registries RemoveRegions. */
+public final class RegistriesRemoveRegionsSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-04-01/examples/Registries/removeRegions.json
+ */
+ /**
+ * Sample code: Remove regions from registry.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void removeRegionsFromRegistry(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registries()
+ .removeRegions(
+ "test-rg",
+ "string",
+ new RegistryInner()
+ .withLocation("string")
+ .withTags(mapOf())
+ .withIdentity(
+ new ManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.NONE)
+ .withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withKind("string")
+ .withSku(
+ new Sku()
+ .withName("string")
+ .withTier(SkuTier.FREE)
+ .withSize("string")
+ .withFamily("string")
+ .withCapacity(1))
+ .withDiscoveryUrl("string")
+ .withIntellectualPropertyPublisher("string")
+ .withManagedResourceGroup(new ArmResourceId().withResourceId("string"))
+ .withMlFlowRegistryUri("string")
+ .withRegistryPrivateEndpointConnections(
+ Arrays
+ .asList(
+ new RegistryPrivateEndpointConnection()
+ .withId("string")
+ .withLocation("string")
+ .withGroupIds(Arrays.asList("string"))
+ .withPrivateEndpoint(new PrivateEndpointResource().withSubnetArmId("string"))
+ .withRegistryPrivateLinkServiceConnectionState(
+ new RegistryPrivateLinkServiceConnectionState()
+ .withActionsRequired("string")
+ .withDescription("string")
+ .withStatus(EndpointServiceConnectionStatus.APPROVED))
+ .withProvisioningState("string")))
+ .withPublicNetworkAccess("string")
+ .withRegionDetails(
+ Arrays
+ .asList(
+ new RegistryRegionArmDetails()
+ .withAcrDetails(
+ Arrays
+ .asList(
+ new AcrDetails()
+ .withSystemCreatedAcrAccount(
+ new SystemCreatedAcrAccount()
+ .withAcrAccountName("string")
+ .withAcrAccountSku("string")
+ .withArmResourceId(
+ new ArmResourceId().withResourceId("string")))
+ .withUserCreatedAcrAccount(
+ new UserCreatedAcrAccount()
+ .withArmResourceId(
+ new ArmResourceId().withResourceId("string")))))
+ .withLocation("string")
+ .withStorageAccountDetails(
+ Arrays
+ .asList(
+ new StorageAccountDetails()
+ .withSystemCreatedStorageAccount(
+ new SystemCreatedStorageAccount()
+ .withAllowBlobPublicAccess(false)
+ .withArmResourceId(
+ new ArmResourceId().withResourceId("string"))
+ .withStorageAccountHnsEnabled(false)
+ .withStorageAccountName("string")
+ .withStorageAccountType("string"))
+ .withUserCreatedStorageAccount(
+ new UserCreatedStorageAccount()
+ .withArmResourceId(
+ new ArmResourceId().withResourceId("string"))))))),
+ com.azure.core.util.Context.NONE);
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Registries_Update
+
+```java
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.machinelearning.models.PartialSku;
+import com.azure.resourcemanager.machinelearning.models.Registry;
+import com.azure.resourcemanager.machinelearning.models.RegistryPartialManagedServiceIdentity;
+import com.azure.resourcemanager.machinelearning.models.SkuTier;
+import com.azure.resourcemanager.machinelearning.models.UserAssignedIdentity;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for Registries Update. */
+public final class RegistriesUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-04-01/examples/Registries/update-UserCreated.json
+ */
+ /**
+ * Sample code: Update Registry with user created accounts.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void updateRegistryWithUserCreatedAccounts(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ Registry resource =
+ manager
+ .registries()
+ .getByResourceGroupWithResponse("test-rg", "string", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withTags(mapOf())
+ .withIdentity(
+ new RegistryPartialManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.USER_ASSIGNED)
+ .withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withSku(
+ new PartialSku()
+ .withCapacity(1)
+ .withFamily("string")
+ .withName("string")
+ .withSize("string")
+ .withTier(SkuTier.BASIC))
+ .apply();
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-04-01/examples/Registries/update-SystemCreated.json
+ */
+ /**
+ * Sample code: Update Registry with system created accounts.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void updateRegistryWithSystemCreatedAccounts(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ Registry resource =
+ manager
+ .registries()
+ .getByResourceGroupWithResponse("test-rg", "string", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withTags(mapOf())
+ .withIdentity(
+ new RegistryPartialManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
+ .withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withSku(
+ new PartialSku()
+ .withCapacity(1)
+ .withFamily("string")
+ .withName("string")
+ .withSize("string")
+ .withTier(SkuTier.BASIC))
+ .apply();
+ }
+
+ @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/stable/2023-04-01/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/stable/2023-04-01/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/stable/2023-04-01/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/stable/2023-04-01/examples/Registry/CodeContainer/list.json
+ */
+ /**
+ * Sample code: List Registry Code Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listRegistryCodeContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.registryCodeContainers().list("testrg123", "testregistry", null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RegistryCodeVersions_CreateOrGetStartPendingUpload
+
+```java
+import com.azure.resourcemanager.machinelearning.models.PendingUploadRequestDto;
+import com.azure.resourcemanager.machinelearning.models.PendingUploadType;
+
+/** Samples for RegistryCodeVersions CreateOrGetStartPendingUpload. */
+public final class RegistryCodeVersionsCreateOrGetStartPendingUploadSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-04-01/examples/Registry/CodeVersion/createOrGetStartPendingUpload.json
+ */
+ /**
+ * Sample code: CreateOrGetStartPendingUpload Registry Code Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrGetStartPendingUploadRegistryCodeVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryCodeVersions()
+ .createOrGetStartPendingUploadWithResponse(
+ "test-rg",
+ "registryName",
+ "string",
+ "string",
+ new PendingUploadRequestDto()
+ .withPendingUploadId("string")
+ .withPendingUploadType(PendingUploadType.TEMPORARY_BLOB_REFERENCE),
+ 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/stable/2023-04-01/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/stable/2023-04-01/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/stable/2023-04-01/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/stable/2023-04-01/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/stable/2023-04-01/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/stable/2023-04-01/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/stable/2023-04-01/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/stable/2023-04-01/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/stable/2023-04-01/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/stable/2023-04-01/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/stable/2023-04-01/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/stable/2023-04-01/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);
+ }
+}
+```
+
+### RegistryDataContainers_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.DataContainerProperties;
+import com.azure.resourcemanager.machinelearning.models.DataType;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for RegistryDataContainers CreateOrUpdate. */
+public final class RegistryDataContainersCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-04-01/examples/Registry/DataContainer/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Registry Data Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateRegistryDataContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryDataContainers()
+ .define("string")
+ .withExistingRegistry("test-rg", "registryName")
+ .withProperties(
+ new DataContainerProperties()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsArchived(false)
+ .withDataType(DataType.URI_FOLDER))
+ .create();
+ }
+
+ @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;
+ }
+}
+```
+
+### RegistryDataContainers_Delete
+
+```java
+/** Samples for RegistryDataContainers Delete. */
+public final class RegistryDataContainersDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-04-01/examples/Registry/DataContainer/delete.json
+ */
+ /**
+ * Sample code: Delete Registry Data Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteRegistryDataContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.registryDataContainers().delete("test-rg", "registryName", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RegistryDataContainers_Get
+
+```java
+/** Samples for RegistryDataContainers Get. */
+public final class RegistryDataContainersGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-04-01/examples/Registry/DataContainer/get.json
+ */
+ /**
+ * Sample code: Get Registry Data Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getRegistryDataContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryDataContainers()
+ .getWithResponse("test-rg", "registryName", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RegistryDataContainers_List
+
+```java
+import com.azure.resourcemanager.machinelearning.models.ListViewType;
+
+/** Samples for RegistryDataContainers List. */
+public final class RegistryDataContainersListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-04-01/examples/Registry/DataContainer/registryList.json
+ */
+ /**
+ * Sample code: RegistryList Registry Data Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void registryListRegistryDataContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryDataContainers()
+ .list("test-rg", "registryName", null, ListViewType.ALL, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RegistryDataVersions_CreateOrGetStartPendingUpload
+
+```java
+import com.azure.resourcemanager.machinelearning.models.PendingUploadRequestDto;
+import com.azure.resourcemanager.machinelearning.models.PendingUploadType;
+
+/** Samples for RegistryDataVersions CreateOrGetStartPendingUpload. */
+public final class RegistryDataVersionsCreateOrGetStartPendingUploadSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-04-01/examples/Registry/DataVersionBase/createOrGetStartPendingUpload.json
+ */
+ /**
+ * Sample code: CreateOrGetStartPendingUpload Registry Data Version Base.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrGetStartPendingUploadRegistryDataVersionBase(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryDataVersions()
+ .createOrGetStartPendingUploadWithResponse(
+ "test-rg",
+ "registryName",
+ "string",
+ "string",
+ new PendingUploadRequestDto()
+ .withPendingUploadId("string")
+ .withPendingUploadType(PendingUploadType.NONE),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RegistryDataVersions_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.MLTableData;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for RegistryDataVersions CreateOrUpdate. */
+public final class RegistryDataVersionsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-04-01/examples/Registry/DataVersionBase/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Registry Data Version Base.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateRegistryDataVersionBase(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryDataVersions()
+ .define("string")
+ .withExistingData("test-rg", "registryName", "string")
+ .withProperties(
+ new MLTableData()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsAnonymous(false)
+ .withIsArchived(false)
+ .withDataUri("string")
+ .withReferencedUris(Arrays.asList("string")))
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### RegistryDataVersions_Delete
+
+```java
+/** Samples for RegistryDataVersions Delete. */
+public final class RegistryDataVersionsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-04-01/examples/Registry/DataVersionBase/delete.json
+ */
+ /**
+ * Sample code: Delete Registry Data Version Base.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteRegistryDataVersionBase(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryDataVersions()
+ .delete("test-rg", "registryName", "string", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RegistryDataVersions_Get
+
+```java
+/** Samples for RegistryDataVersions Get. */
+public final class RegistryDataVersionsGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-04-01/examples/Registry/DataVersionBase/get.json
+ */
+ /**
+ * Sample code: Get Registry Data Version Base.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getRegistryDataVersionBase(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryDataVersions()
+ .getWithResponse("test-rg", "registryName", "string", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RegistryDataVersions_List
+
+```java
+import com.azure.resourcemanager.machinelearning.models.ListViewType;
+
+/** Samples for RegistryDataVersions List. */
+public final class RegistryDataVersionsListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-04-01/examples/Registry/DataVersionBase/registryList.json
+ */
+ /**
+ * Sample code: RegistryList Registry Data Version Base.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void registryListRegistryDataVersionBase(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryDataVersions()
+ .list(
+ "test-rg",
+ "registryName",
+ "string",
+ "string",
+ 1,
+ null,
+ "string",
+ ListViewType.ARCHIVED_ONLY,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RegistryEnvironmentContainers_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.EnvironmentContainerProperties;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for RegistryEnvironmentContainers CreateOrUpdate. */
+public final class RegistryEnvironmentContainersCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-04-01/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/stable/2023-04-01/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/stable/2023-04-01/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/stable/2023-04-01/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/stable/2023-04-01/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/stable/2023-04-01/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/stable/2023-04-01/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/stable/2023-04-01/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/stable/2023-04-01/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/stable/2023-04-01/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/stable/2023-04-01/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/stable/2023-04-01/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_CreateOrGetStartPendingUpload
+
+```java
+import com.azure.resourcemanager.machinelearning.models.PendingUploadRequestDto;
+import com.azure.resourcemanager.machinelearning.models.PendingUploadType;
+
+/** Samples for RegistryModelVersions CreateOrGetStartPendingUpload. */
+public final class RegistryModelVersionsCreateOrGetStartPendingUploadSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-04-01/examples/Registry/ModelVersion/createOrGetStartPendingUpload.json
+ */
+ /**
+ * Sample code: CreateOrGetStartPendingUpload Registry Model Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrGetStartPendingUploadRegistryModelVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryModelVersions()
+ .createOrGetStartPendingUploadWithResponse(
+ "test-rg",
+ "registryName",
+ "string",
+ "string",
+ new PendingUploadRequestDto()
+ .withPendingUploadId("string")
+ .withPendingUploadType(PendingUploadType.TEMPORARY_BLOB_REFERENCE),
+ 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/stable/2023-04-01/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/stable/2023-04-01/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/stable/2023-04-01/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/stable/2023-04-01/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 +5961,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/stable/2023-04-01/examples/Schedule/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Schedule.
@@ -3960,7 +6018,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/stable/2023-04-01/examples/Schedule/delete.json
*/
/**
* Sample code: Delete Schedule.
@@ -3979,7 +6037,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/stable/2023-04-01/examples/Schedule/get.json
*/
/**
* Sample code: Get Schedule.
@@ -3998,7 +6056,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/stable/2023-04-01/examples/Schedule/list.json
*/
/**
* Sample code: List Schedules.
@@ -4017,7 +6075,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/stable/2023-04-01/examples/Usage/list.json
*/
/**
* Sample code: List Usages.
@@ -4036,7 +6094,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/stable/2023-04-01/examples/VirtualMachineSize/list.json
*/
/**
* Sample code: List VM Sizes.
@@ -4058,7 +6116,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/stable/2023-04-01/examples/WorkspaceConnection/create.json
*/
/**
* Sample code: CreateWorkspaceConnection.
@@ -4086,7 +6144,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/stable/2023-04-01/examples/WorkspaceConnection/delete.json
*/
/**
* Sample code: DeleteWorkspaceConnection.
@@ -4108,7 +6166,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/stable/2023-04-01/examples/WorkspaceConnection/get.json
*/
/**
* Sample code: GetWorkspaceConnection.
@@ -4130,7 +6188,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/stable/2023-04-01/examples/WorkspaceConnection/list.json
*/
/**
* Sample code: ListWorkspaceConnections.
@@ -4157,7 +6215,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/stable/2023-04-01/examples/WorkspaceFeature/list.json
*/
/**
* Sample code: List Workspace features.
@@ -4189,7 +6247,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/stable/2023-04-01/examples/Workspace/create.json
*/
/**
* Sample code: Create Workspace.
@@ -4264,7 +6322,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/stable/2023-04-01/examples/Workspace/delete.json
*/
/**
* Sample code: Delete Workspace.
@@ -4288,7 +6346,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/stable/2023-04-01/examples/Workspace/diagnose.json
*/
/**
* Sample code: Diagnose Workspace.
@@ -4335,7 +6393,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/stable/2023-04-01/examples/Workspace/get.json
*/
/**
* Sample code: Get Workspace.
@@ -4356,7 +6414,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/stable/2023-04-01/examples/Workspace/listBySubscription.json
*/
/**
* Sample code: Get Workspaces by subscription.
@@ -4376,7 +6434,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/stable/2023-04-01/examples/Workspace/listByResourceGroup.json
*/
/**
* Sample code: Get Workspaces by Resource Group.
@@ -4396,7 +6454,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/stable/2023-04-01/examples/Workspace/listKeys.json
*/
/**
* Sample code: List Workspace Keys.
@@ -4415,7 +6473,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/stable/2023-04-01/examples/Workspace/listNotebookAccessToken.json
*/
/**
* Sample code: List Workspace Keys.
@@ -4436,7 +6494,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/stable/2023-04-01/examples/Notebook/listKeys.json
*/
/**
* Sample code: List Workspace Keys.
@@ -4457,7 +6515,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/stable/2023-04-01/examples/ExternalFQDN/get.json
*/
/**
* Sample code: ListOutboundNetworkDependenciesEndpoints.
@@ -4480,7 +6538,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/stable/2023-04-01/examples/Workspace/listStorageAccountKeys.json
*/
/**
* Sample code: List Workspace Keys.
@@ -4501,7 +6559,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/stable/2023-04-01/examples/Notebook/prepare.json
*/
/**
* Sample code: Prepare Notebook.
@@ -4520,7 +6578,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/stable/2023-04-01/examples/Workspace/resyncKeys.json
*/
/**
* Sample code: Resync Workspace Keys.
@@ -4542,7 +6600,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/stable/2023-04-01/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 475a16fadd33..309063c447b1 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/pom.xml
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/pom.xml
@@ -1,3 +1,8 @@
+
4.0.0
@@ -13,7 +18,7 @@
jar
Microsoft Azure SDK for Machine Learning Management
- This package contains Microsoft Azure SDK for Machine Learning Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. These APIs allow end users to operate on Azure Machine Learning Workspace resources. Package tag package-2022-10.
+ This package contains Microsoft Azure SDK for Machine Learning Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. These APIs allow end users to operate on Azure Machine Learning Workspace resources. Package tag package-2023-04.
https://github.com/Azure/azure-sdk-for-java
@@ -38,7 +43,8 @@
UTF-8
- true
+ 0
+ 0
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/MachineLearningManager.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/MachineLearningManager.java
index a212fe3e6c4a..5bc3ad82e780 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;
@@ -46,6 +46,17 @@
import com.azure.resourcemanager.machinelearning.implementation.PrivateEndpointConnectionsImpl;
import com.azure.resourcemanager.machinelearning.implementation.PrivateLinkResourcesImpl;
import com.azure.resourcemanager.machinelearning.implementation.QuotasImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RegistriesImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RegistryCodeContainersImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RegistryCodeVersionsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RegistryComponentContainersImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RegistryComponentVersionsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RegistryDataContainersImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RegistryDataVersionsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RegistryEnvironmentContainersImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RegistryEnvironmentVersionsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RegistryModelContainersImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RegistryModelVersionsImpl;
import com.azure.resourcemanager.machinelearning.implementation.SchedulesImpl;
import com.azure.resourcemanager.machinelearning.implementation.UsagesImpl;
import com.azure.resourcemanager.machinelearning.implementation.VirtualMachineSizesImpl;
@@ -73,6 +84,17 @@
import com.azure.resourcemanager.machinelearning.models.PrivateEndpointConnections;
import com.azure.resourcemanager.machinelearning.models.PrivateLinkResources;
import com.azure.resourcemanager.machinelearning.models.Quotas;
+import com.azure.resourcemanager.machinelearning.models.Registries;
+import com.azure.resourcemanager.machinelearning.models.RegistryCodeContainers;
+import com.azure.resourcemanager.machinelearning.models.RegistryCodeVersions;
+import com.azure.resourcemanager.machinelearning.models.RegistryComponentContainers;
+import com.azure.resourcemanager.machinelearning.models.RegistryComponentVersions;
+import com.azure.resourcemanager.machinelearning.models.RegistryDataContainers;
+import com.azure.resourcemanager.machinelearning.models.RegistryDataVersions;
+import com.azure.resourcemanager.machinelearning.models.RegistryEnvironmentContainers;
+import com.azure.resourcemanager.machinelearning.models.RegistryEnvironmentVersions;
+import com.azure.resourcemanager.machinelearning.models.RegistryModelContainers;
+import com.azure.resourcemanager.machinelearning.models.RegistryModelVersions;
import com.azure.resourcemanager.machinelearning.models.Schedules;
import com.azure.resourcemanager.machinelearning.models.Usages;
import com.azure.resourcemanager.machinelearning.models.VirtualMachineSizes;
@@ -109,6 +131,26 @@ public final class MachineLearningManager {
private WorkspaceConnections workspaceConnections;
+ private RegistryCodeContainers registryCodeContainers;
+
+ private RegistryCodeVersions registryCodeVersions;
+
+ private RegistryComponentContainers registryComponentContainers;
+
+ private RegistryComponentVersions registryComponentVersions;
+
+ private RegistryDataContainers registryDataContainers;
+
+ private RegistryDataVersions registryDataVersions;
+
+ private RegistryEnvironmentContainers registryEnvironmentContainers;
+
+ private RegistryEnvironmentVersions registryEnvironmentVersions;
+
+ private RegistryModelContainers registryModelContainers;
+
+ private RegistryModelVersions registryModelVersions;
+
private BatchEndpoints batchEndpoints;
private BatchDeployments batchDeployments;
@@ -143,15 +185,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 +354,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 +521,133 @@ public WorkspaceConnections workspaceConnections() {
return workspaceConnections;
}
+ /**
+ * Gets the resource collection API of RegistryCodeContainers. It manages CodeContainer.
+ *
+ * @return Resource collection API of RegistryCodeContainers.
+ */
+ public RegistryCodeContainers registryCodeContainers() {
+ if (this.registryCodeContainers == null) {
+ this.registryCodeContainers =
+ new RegistryCodeContainersImpl(clientObject.getRegistryCodeContainers(), this);
+ }
+ return registryCodeContainers;
+ }
+
+ /**
+ * Gets the resource collection API of RegistryCodeVersions. It manages CodeVersion.
+ *
+ * @return Resource collection API of RegistryCodeVersions.
+ */
+ public RegistryCodeVersions registryCodeVersions() {
+ if (this.registryCodeVersions == null) {
+ this.registryCodeVersions = new RegistryCodeVersionsImpl(clientObject.getRegistryCodeVersions(), this);
+ }
+ return registryCodeVersions;
+ }
+
+ /**
+ * Gets the resource collection API of RegistryComponentContainers. It manages ComponentContainer.
+ *
+ * @return Resource collection API of RegistryComponentContainers.
+ */
+ public RegistryComponentContainers registryComponentContainers() {
+ if (this.registryComponentContainers == null) {
+ this.registryComponentContainers =
+ new RegistryComponentContainersImpl(clientObject.getRegistryComponentContainers(), this);
+ }
+ return registryComponentContainers;
+ }
+
+ /**
+ * Gets the resource collection API of RegistryComponentVersions. It manages ComponentVersion.
+ *
+ * @return Resource collection API of RegistryComponentVersions.
+ */
+ public RegistryComponentVersions registryComponentVersions() {
+ if (this.registryComponentVersions == null) {
+ this.registryComponentVersions =
+ new RegistryComponentVersionsImpl(clientObject.getRegistryComponentVersions(), this);
+ }
+ return registryComponentVersions;
+ }
+
+ /**
+ * Gets the resource collection API of RegistryDataContainers. It manages DataContainer.
+ *
+ * @return Resource collection API of RegistryDataContainers.
+ */
+ public RegistryDataContainers registryDataContainers() {
+ if (this.registryDataContainers == null) {
+ this.registryDataContainers =
+ new RegistryDataContainersImpl(clientObject.getRegistryDataContainers(), this);
+ }
+ return registryDataContainers;
+ }
+
+ /**
+ * Gets the resource collection API of RegistryDataVersions. It manages DataVersionBase.
+ *
+ * @return Resource collection API of RegistryDataVersions.
+ */
+ public RegistryDataVersions registryDataVersions() {
+ if (this.registryDataVersions == null) {
+ this.registryDataVersions = new RegistryDataVersionsImpl(clientObject.getRegistryDataVersions(), this);
+ }
+ return registryDataVersions;
+ }
+
+ /**
+ * Gets the resource collection API of RegistryEnvironmentContainers. It manages EnvironmentContainer.
+ *
+ * @return Resource collection API of RegistryEnvironmentContainers.
+ */
+ public RegistryEnvironmentContainers registryEnvironmentContainers() {
+ if (this.registryEnvironmentContainers == null) {
+ this.registryEnvironmentContainers =
+ new RegistryEnvironmentContainersImpl(clientObject.getRegistryEnvironmentContainers(), this);
+ }
+ return registryEnvironmentContainers;
+ }
+
+ /**
+ * Gets the resource collection API of RegistryEnvironmentVersions. It manages EnvironmentVersion.
+ *
+ * @return Resource collection API of RegistryEnvironmentVersions.
+ */
+ public RegistryEnvironmentVersions registryEnvironmentVersions() {
+ if (this.registryEnvironmentVersions == null) {
+ this.registryEnvironmentVersions =
+ new RegistryEnvironmentVersionsImpl(clientObject.getRegistryEnvironmentVersions(), this);
+ }
+ return registryEnvironmentVersions;
+ }
+
+ /**
+ * Gets the resource collection API of RegistryModelContainers. It manages ModelContainer.
+ *
+ * @return Resource collection API of RegistryModelContainers.
+ */
+ public RegistryModelContainers registryModelContainers() {
+ if (this.registryModelContainers == null) {
+ this.registryModelContainers =
+ new RegistryModelContainersImpl(clientObject.getRegistryModelContainers(), this);
+ }
+ return registryModelContainers;
+ }
+
+ /**
+ * Gets the resource collection API of RegistryModelVersions. It manages ModelVersion.
+ *
+ * @return Resource collection API of RegistryModelVersions.
+ */
+ public RegistryModelVersions registryModelVersions() {
+ if (this.registryModelVersions == null) {
+ this.registryModelVersions = new RegistryModelVersionsImpl(clientObject.getRegistryModelVersions(), this);
+ }
+ return registryModelVersions;
+ }
+
/**
* Gets the resource collection API of BatchEndpoints. It manages BatchEndpoint.
*
@@ -502,7 +673,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 +685,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 +697,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 +709,7 @@ public ComponentContainers componentContainers() {
}
/**
- * Gets the resource collection API of ComponentVersions. It manages ComponentVersion.
+ * Gets the resource collection API of ComponentVersions.
*
* @return Resource collection API of ComponentVersions.
*/
@@ -550,7 +721,7 @@ public ComponentVersions componentVersions() {
}
/**
- * Gets the resource collection API of DataContainers. It manages DataContainer.
+ * Gets the resource collection API of DataContainers.
*
* @return Resource collection API of DataContainers.
*/
@@ -562,7 +733,7 @@ public DataContainers dataContainers() {
}
/**
- * Gets the resource collection API of DataVersions. It manages DataVersionBase.
+ * Gets the resource collection API of DataVersions.
*
* @return Resource collection API of DataVersions.
*/
@@ -586,7 +757,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 +769,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 +793,7 @@ public Jobs jobs() {
}
/**
- * Gets the resource collection API of ModelContainers. It manages ModelContainer.
+ * Gets the resource collection API of ModelContainers.
*
* @return Resource collection API of ModelContainers.
*/
@@ -634,7 +805,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 +852,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 +877,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 70%
rename from sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/AzureMachineLearningWorkspaces.java
rename to sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/AzureMachineLearningServices.java
index e8a40ef9b43c..3b8c35cd497c 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/AzureMachineLearningWorkspaces.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/AzureMachineLearningServices.java
@@ -7,8 +7,8 @@
import com.azure.core.http.HttpPipeline;
import java.time.Duration;
-/** The interface for AzureMachineLearningWorkspaces class. */
-public interface AzureMachineLearningWorkspaces {
+/** The interface for AzureMachineLearningServices class. */
+public interface AzureMachineLearningServices {
/**
* Gets The ID of the target subscription.
*
@@ -107,6 +107,76 @@ public interface AzureMachineLearningWorkspaces {
*/
WorkspaceConnectionsClient getWorkspaceConnections();
+ /**
+ * Gets the RegistryCodeContainersClient object to access its operations.
+ *
+ * @return the RegistryCodeContainersClient object.
+ */
+ RegistryCodeContainersClient getRegistryCodeContainers();
+
+ /**
+ * Gets the RegistryCodeVersionsClient object to access its operations.
+ *
+ * @return the RegistryCodeVersionsClient object.
+ */
+ RegistryCodeVersionsClient getRegistryCodeVersions();
+
+ /**
+ * Gets the RegistryComponentContainersClient object to access its operations.
+ *
+ * @return the RegistryComponentContainersClient object.
+ */
+ RegistryComponentContainersClient getRegistryComponentContainers();
+
+ /**
+ * Gets the RegistryComponentVersionsClient object to access its operations.
+ *
+ * @return the RegistryComponentVersionsClient object.
+ */
+ RegistryComponentVersionsClient getRegistryComponentVersions();
+
+ /**
+ * Gets the RegistryDataContainersClient object to access its operations.
+ *
+ * @return the RegistryDataContainersClient object.
+ */
+ RegistryDataContainersClient getRegistryDataContainers();
+
+ /**
+ * Gets the RegistryDataVersionsClient object to access its operations.
+ *
+ * @return the RegistryDataVersionsClient object.
+ */
+ RegistryDataVersionsClient getRegistryDataVersions();
+
+ /**
+ * Gets the RegistryEnvironmentContainersClient object to access its operations.
+ *
+ * @return the RegistryEnvironmentContainersClient object.
+ */
+ RegistryEnvironmentContainersClient getRegistryEnvironmentContainers();
+
+ /**
+ * Gets the RegistryEnvironmentVersionsClient object to access its operations.
+ *
+ * @return the RegistryEnvironmentVersionsClient object.
+ */
+ RegistryEnvironmentVersionsClient getRegistryEnvironmentVersions();
+
+ /**
+ * Gets the RegistryModelContainersClient object to access its operations.
+ *
+ * @return the RegistryModelContainersClient object.
+ */
+ RegistryModelContainersClient getRegistryModelContainers();
+
+ /**
+ * Gets the RegistryModelVersionsClient object to access its operations.
+ *
+ * @return the RegistryModelVersionsClient object.
+ */
+ RegistryModelVersionsClient getRegistryModelVersions();
+
/**
* Gets the BatchEndpointsClient object to access its operations.
*
@@ -226,6 +296,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/CodeVersionsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/CodeVersionsClient.java
index fa5b5e3a4469..b61922703550 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/CodeVersionsClient.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/CodeVersionsClient.java
@@ -10,6 +10,8 @@
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.machinelearning.fluent.models.CodeVersionInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.PendingUploadResponseDtoInner;
+import com.azure.resourcemanager.machinelearning.models.PendingUploadRequestDto;
/** An instance of this class provides access to all the operations defined in CodeVersionsClient. */
public interface CodeVersionsClient {
@@ -36,6 +38,8 @@ public interface CodeVersionsClient {
* @param orderBy Ordering of list.
* @param top Maximum number of records to return.
* @param skip Continuation token for pagination.
+ * @param hash If specified, return CodeVersion assets with specified content hash value, regardless of name.
+ * @param hashVersion Hash algorithm version when listing by hash.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -50,6 +54,8 @@ PagedIterable list(
String orderBy,
Integer top,
String skip,
+ String hash,
+ String hashVersion,
Context context);
/**
@@ -154,4 +160,44 @@ Response createOrUpdateWithResponse(
@ServiceMethod(returns = ReturnType.SINGLE)
CodeVersionInner createOrUpdate(
String resourceGroupName, String workspaceName, String name, String version, CodeVersionInner body);
+
+ /**
+ * Generate a storage location and credential for the client to upload a code asset to.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Pending upload request object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrGetStartPendingUploadWithResponse(
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ String version,
+ PendingUploadRequestDto body,
+ Context context);
+
+ /**
+ * Generate a storage location and credential for the client to upload a code asset to.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Pending upload request object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PendingUploadResponseDtoInner createOrGetStartPendingUpload(
+ String resourceGroupName, String workspaceName, String name, String version, PendingUploadRequestDto body);
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/OnlineEndpointsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/OnlineEndpointsClient.java
index 8b04958fc924..392113c0f523 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/OnlineEndpointsClient.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/OnlineEndpointsClient.java
@@ -403,7 +403,7 @@ void regenerateKeys(
Context context);
/**
- * Retrieve a valid AAD token for an Endpoint using AMLToken-based authentication.
+ * Retrieve a valid AML token for an Endpoint using AMLToken-based authentication.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
@@ -419,7 +419,7 @@ Response getTokenWithResponse(
String resourceGroupName, String workspaceName, String endpointName, Context context);
/**
- * Retrieve a valid AAD token for an Endpoint using AMLToken-based authentication.
+ * Retrieve a valid AML token for an Endpoint using AMLToken-based authentication.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistriesClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistriesClient.java
new file mode 100644
index 000000000000..e3f2ab26fe5a
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistriesClient.java
@@ -0,0 +1,295 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.machinelearning.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.machinelearning.fluent.models.RegistryInner;
+import com.azure.resourcemanager.machinelearning.models.PartialRegistryPartialTrackedResource;
+
+/** An instance of this class provides access to all the operations defined in RegistriesClient. */
+public interface RegistriesClient {
+ /**
+ * List registries by subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of Registry entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List registries by subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of Registry entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * List registries.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of Registry entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * List registries.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of Registry entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Delete registry.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String registryName);
+
+ /**
+ * Delete registry.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String registryName, Context context);
+
+ /**
+ * Delete registry.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName);
+
+ /**
+ * Delete registry.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, Context context);
+
+ /**
+ * Get registry.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return registry along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String registryName, Context context);
+
+ /**
+ * Get registry.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RegistryInner getByResourceGroup(String resourceGroupName, String registryName);
+
+ /**
+ * Update tags.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param body Details required to create the registry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName, String registryName, PartialRegistryPartialTrackedResource body, Context context);
+
+ /**
+ * Update tags.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param body Details required to create the registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RegistryInner update(String resourceGroupName, String registryName, PartialRegistryPartialTrackedResource body);
+
+ /**
+ * Create or update registry.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param body Details required to create the registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RegistryInner> beginCreateOrUpdate(
+ String resourceGroupName, String registryName, RegistryInner body);
+
+ /**
+ * Create or update registry.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param body Details required to create the registry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RegistryInner> beginCreateOrUpdate(
+ String resourceGroupName, String registryName, RegistryInner body, Context context);
+
+ /**
+ * Create or update registry.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param body Details required to create the registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RegistryInner createOrUpdate(String resourceGroupName, String registryName, RegistryInner body);
+
+ /**
+ * Create or update registry.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param body Details required to create the registry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RegistryInner createOrUpdate(String resourceGroupName, String registryName, RegistryInner body, Context context);
+
+ /**
+ * Remove regions from registry.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param body Details required to create the registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RegistryInner> beginRemoveRegions(
+ String resourceGroupName, String registryName, RegistryInner body);
+
+ /**
+ * Remove regions from registry.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param body Details required to create the registry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RegistryInner> beginRemoveRegions(
+ String resourceGroupName, String registryName, RegistryInner body, Context context);
+
+ /**
+ * Remove regions from registry.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param body Details required to create the registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RegistryInner removeRegions(String resourceGroupName, String registryName, RegistryInner body);
+
+ /**
+ * Remove regions from registry.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param body Details required to create the registry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RegistryInner removeRegions(String resourceGroupName, String registryName, RegistryInner body, Context context);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryCodeContainersClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryCodeContainersClient.java
new file mode 100644
index 000000000000..11209d86d6d5
--- /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. 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 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. This 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 CodeContainer entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName, String skip, Context context);
+
+ /**
+ * Delete Code container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param codeName Container name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 Code container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param codeName Container name.
+ * @param context The context to associate with this 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 Code container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param codeName Container name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 Code container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param codeName Container name.
+ * @param context The context to associate with this 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 Code container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param codeName Container name.
+ * @param context The context to associate with this 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 code container along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String registryName, String codeName, Context context);
+
+ /**
+ * Get Code container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param codeName Container name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return code container.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CodeContainerInner get(String resourceGroupName, String registryName, String codeName);
+
+ /**
+ * Create or update Code container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param codeName Container name.
+ * @param body Container entity to create or update.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 Code container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param codeName Container name.
+ * @param body Container entity to create or update.
+ * @param context The context to associate with this 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 Code container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param codeName Container name.
+ * @param body Container entity to create or update.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 Code container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param codeName Container name.
+ * @param body Container entity to create or update.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CodeContainerInner createOrUpdate(
+ String resourceGroupName, String registryName, String codeName, CodeContainerInner body, Context context);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryCodeVersionsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryCodeVersionsClient.java
new file mode 100644
index 000000000000..e918e624ffce
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryCodeVersionsClient.java
@@ -0,0 +1,272 @@
+// 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;
+import com.azure.resourcemanager.machinelearning.fluent.models.PendingUploadResponseDtoInner;
+import com.azure.resourcemanager.machinelearning.models.PendingUploadRequestDto;
+
+/** An instance of this class provides access to all the operations defined in 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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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);
+
+ /**
+ * Generate a storage location and credential for the client to upload a code asset to.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param codeName Pending upload name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Pending upload request object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrGetStartPendingUploadWithResponse(
+ String resourceGroupName,
+ String registryName,
+ String codeName,
+ String version,
+ PendingUploadRequestDto body,
+ Context context);
+
+ /**
+ * Generate a storage location and credential for the client to upload a code asset to.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param codeName Pending upload name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Pending upload request object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PendingUploadResponseDtoInner createOrGetStartPendingUpload(
+ String resourceGroupName, String registryName, String codeName, String version, PendingUploadRequestDto body);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryComponentContainersClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryComponentContainersClient.java
new file mode 100644
index 000000000000..11f8512d8b1a
--- /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. 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 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. This 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 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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @param componentName Container name.
+ * @param body Container entity to create or update.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ComponentContainerInner createOrUpdate(
+ String resourceGroupName,
+ String registryName,
+ String componentName,
+ ComponentContainerInner body,
+ Context context);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryComponentVersionsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryComponentVersionsClient.java
new file mode 100644
index 000000000000..69acd80c6748
--- /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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @param componentName Container name.
+ * @param version Version identifier.
+ * @param body Version entity to create or update.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ComponentVersionInner createOrUpdate(
+ String resourceGroupName,
+ String registryName,
+ String componentName,
+ String version,
+ ComponentVersionInner body,
+ Context context);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryDataContainersClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryDataContainersClient.java
new file mode 100644
index 000000000000..c787ec9c7013
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryDataContainersClient.java
@@ -0,0 +1,201 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.machinelearning.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.machinelearning.fluent.models.DataContainerInner;
+import com.azure.resourcemanager.machinelearning.models.ListViewType;
+
+/** An instance of this class provides access to all the operations defined in RegistryDataContainersClient. */
+public interface RegistryDataContainersClient {
+ /**
+ * List Data containers.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of DataContainer entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName);
+
+ /**
+ * List Data containers.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param skip Continuation token for pagination.
+ * @param listViewType View type for including/excluding (for example) archived entities.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of DataContainer entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName, String registryName, String skip, ListViewType listViewType, Context context);
+
+ /**
+ * Delete container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param name Container name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String registryName, String name);
+
+ /**
+ * Delete container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param name Container name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String name, Context context);
+
+ /**
+ * Delete container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param name Container name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String name);
+
+ /**
+ * Delete container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param name Container name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String name, Context context);
+
+ /**
+ * Get container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param name Container name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String registryName, String name, Context context);
+
+ /**
+ * Get container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param name Container name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DataContainerInner get(String resourceGroupName, String registryName, String name);
+
+ /**
+ * Create or update container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param name Container name.
+ * @param body Container entity to create or update.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DataContainerInner> beginCreateOrUpdate(
+ String resourceGroupName, String registryName, String name, DataContainerInner body);
+
+ /**
+ * Create or update container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param name Container name.
+ * @param body Container entity to create or update.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DataContainerInner> beginCreateOrUpdate(
+ String resourceGroupName, String registryName, String name, DataContainerInner body, Context context);
+
+ /**
+ * Create or update container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param name Container name.
+ * @param body Container entity to create or update.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DataContainerInner createOrUpdate(
+ String resourceGroupName, String registryName, String name, DataContainerInner body);
+
+ /**
+ * Create or update container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param name Container name.
+ * @param body Container entity to create or update.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DataContainerInner createOrUpdate(
+ String resourceGroupName, String registryName, String name, DataContainerInner body, Context context);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryDataVersionsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryDataVersionsClient.java
new file mode 100644
index 000000000000..f3dfe9b18c81
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryDataVersionsClient.java
@@ -0,0 +1,279 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.machinelearning.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.machinelearning.fluent.models.DataVersionBaseInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.PendingUploadResponseDtoInner;
+import com.azure.resourcemanager.machinelearning.models.ListViewType;
+import com.azure.resourcemanager.machinelearning.models.PendingUploadRequestDto;
+
+/** An instance of this class provides access to all the operations defined in RegistryDataVersionsClient. */
+public interface RegistryDataVersionsClient {
+ /**
+ * List data versions in the data container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param name Data container's name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of DataVersionBase entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName, String name);
+
+ /**
+ * List data versions in the data container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param name Data container's name.
+ * @param orderBy Please choose OrderBy value from ['createdtime', 'modifiedtime'].
+ * @param top Top count of results, top count cannot be greater than the page size. If topCount > page size,
+ * results with be default page size count will be returned.
+ * @param skip Continuation token for pagination.
+ * @param tags Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2.
+ * @param listViewType [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for
+ * including/excluding (for example) archived entities.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of DataVersionBase entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName,
+ String registryName,
+ String name,
+ String orderBy,
+ Integer top,
+ String skip,
+ String tags,
+ ListViewType listViewType,
+ Context context);
+
+ /**
+ * Delete version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param name Container name.
+ * @param version Version identifier.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String name, String version);
+
+ /**
+ * Delete version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param name Container name.
+ * @param version Version identifier.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String name, String version, Context context);
+
+ /**
+ * Delete version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param name Container name.
+ * @param version Version identifier.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String name, String version);
+
+ /**
+ * Delete version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param name Container name.
+ * @param version Version identifier.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String name, String version, Context context);
+
+ /**
+ * Get version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param name Container name.
+ * @param version Version identifier.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return version along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String registryName, String name, String version, Context context);
+
+ /**
+ * Get version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param name Container name.
+ * @param version Version identifier.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return version.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DataVersionBaseInner get(String resourceGroupName, String registryName, String name, String version);
+
+ /**
+ * Create or update version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param name Container name.
+ * @param version Version identifier.
+ * @param body Version entity to create or update.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DataVersionBaseInner> beginCreateOrUpdate(
+ String resourceGroupName, String registryName, String name, String version, DataVersionBaseInner body);
+
+ /**
+ * Create or update version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param name Container name.
+ * @param version Version identifier.
+ * @param body Version entity to create or update.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DataVersionBaseInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String registryName,
+ String name,
+ String version,
+ DataVersionBaseInner body,
+ Context context);
+
+ /**
+ * Create or update version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param name Container name.
+ * @param version Version identifier.
+ * @param body Version entity to create or update.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DataVersionBaseInner createOrUpdate(
+ String resourceGroupName, String registryName, String name, String version, DataVersionBaseInner body);
+
+ /**
+ * Create or update version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param name Container name.
+ * @param version Version identifier.
+ * @param body Version entity to create or update.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DataVersionBaseInner createOrUpdate(
+ String resourceGroupName,
+ String registryName,
+ String name,
+ String version,
+ DataVersionBaseInner body,
+ Context context);
+
+ /**
+ * Generate a storage location and credential for the client to upload a data asset to.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param name Data asset name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Pending upload request object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrGetStartPendingUploadWithResponse(
+ String resourceGroupName,
+ String registryName,
+ String name,
+ String version,
+ PendingUploadRequestDto body,
+ Context context);
+
+ /**
+ * Generate a storage location and credential for the client to upload a data asset to.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param name Data asset name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Pending upload request object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PendingUploadResponseDtoInner createOrGetStartPendingUpload(
+ String resourceGroupName, String registryName, String name, String version, PendingUploadRequestDto body);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryEnvironmentContainersClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryEnvironmentContainersClient.java
new file mode 100644
index 000000000000..ed8169506312
--- /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. 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 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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @param environmentName Container name.
+ * @param body Container entity to create or update.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EnvironmentContainerInner createOrUpdate(
+ String resourceGroupName,
+ String registryName,
+ String environmentName,
+ EnvironmentContainerInner body,
+ Context context);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryEnvironmentVersionsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryEnvironmentVersionsClient.java
new file mode 100644
index 000000000000..5cd6aaf2d474
--- /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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @param environmentName Container name.
+ * @param version Version identifier.
+ * @param body Version entity to create or update.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EnvironmentVersionInner createOrUpdate(
+ String resourceGroupName,
+ String registryName,
+ String environmentName,
+ String version,
+ EnvironmentVersionInner body,
+ Context context);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryModelContainersClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryModelContainersClient.java
new file mode 100644
index 000000000000..72f466074297
--- /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. 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 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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @param modelName Container name.
+ * @param body Container entity to create or update.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ModelContainerInner createOrUpdate(
+ String resourceGroupName, String registryName, String modelName, ModelContainerInner body, Context context);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryModelVersionsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryModelVersionsClient.java
new file mode 100644
index 000000000000..c328c5a98d68
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RegistryModelVersionsClient.java
@@ -0,0 +1,283 @@
+// 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.fluent.models.PendingUploadResponseDtoInner;
+import com.azure.resourcemanager.machinelearning.models.ListViewType;
+import com.azure.resourcemanager.machinelearning.models.PendingUploadRequestDto;
+
+/** 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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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. This is case-insensitive.
+ * @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);
+
+ /**
+ * Generate a storage location and credential for the client to upload a model asset to.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param modelName Model name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Pending upload request object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrGetStartPendingUploadWithResponse(
+ String resourceGroupName,
+ String registryName,
+ String modelName,
+ String version,
+ PendingUploadRequestDto body,
+ Context context);
+
+ /**
+ * Generate a storage location and credential for the client to upload a model asset to.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
+ * @param modelName Model name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Pending upload request object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PendingUploadResponseDtoInner createOrGetStartPendingUpload(
+ String resourceGroupName, String registryName, String modelName, String version, PendingUploadRequestDto body);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/PendingUploadResponseDtoInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/PendingUploadResponseDtoInner.java
new file mode 100644
index 000000000000..55a0e08858ba
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/PendingUploadResponseDtoInner.java
@@ -0,0 +1,108 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.machinelearning.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.machinelearning.models.BlobReferenceForConsumptionDto;
+import com.azure.resourcemanager.machinelearning.models.PendingUploadType;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The PendingUploadResponseDto model. */
+@Fluent
+public final class PendingUploadResponseDtoInner {
+ /*
+ * Container level read, write, list SAS
+ */
+ @JsonProperty(value = "blobReferenceForConsumption")
+ private BlobReferenceForConsumptionDto blobReferenceForConsumption;
+
+ /*
+ * ID for this upload request
+ */
+ @JsonProperty(value = "pendingUploadId")
+ private String pendingUploadId;
+
+ /*
+ * TemporaryBlobReference is the only supported type
+ */
+ @JsonProperty(value = "pendingUploadType")
+ private PendingUploadType pendingUploadType;
+
+ /** Creates an instance of PendingUploadResponseDtoInner class. */
+ public PendingUploadResponseDtoInner() {
+ }
+
+ /**
+ * Get the blobReferenceForConsumption property: Container level read, write, list SAS.
+ *
+ * @return the blobReferenceForConsumption value.
+ */
+ public BlobReferenceForConsumptionDto blobReferenceForConsumption() {
+ return this.blobReferenceForConsumption;
+ }
+
+ /**
+ * Set the blobReferenceForConsumption property: Container level read, write, list SAS.
+ *
+ * @param blobReferenceForConsumption the blobReferenceForConsumption value to set.
+ * @return the PendingUploadResponseDtoInner object itself.
+ */
+ public PendingUploadResponseDtoInner withBlobReferenceForConsumption(
+ BlobReferenceForConsumptionDto blobReferenceForConsumption) {
+ this.blobReferenceForConsumption = blobReferenceForConsumption;
+ return this;
+ }
+
+ /**
+ * Get the pendingUploadId property: ID for this upload request.
+ *
+ * @return the pendingUploadId value.
+ */
+ public String pendingUploadId() {
+ return this.pendingUploadId;
+ }
+
+ /**
+ * Set the pendingUploadId property: ID for this upload request.
+ *
+ * @param pendingUploadId the pendingUploadId value to set.
+ * @return the PendingUploadResponseDtoInner object itself.
+ */
+ public PendingUploadResponseDtoInner withPendingUploadId(String pendingUploadId) {
+ this.pendingUploadId = pendingUploadId;
+ return this;
+ }
+
+ /**
+ * Get the pendingUploadType property: TemporaryBlobReference is the only supported type.
+ *
+ * @return the pendingUploadType value.
+ */
+ public PendingUploadType pendingUploadType() {
+ return this.pendingUploadType;
+ }
+
+ /**
+ * Set the pendingUploadType property: TemporaryBlobReference is the only supported type.
+ *
+ * @param pendingUploadType the pendingUploadType value to set.
+ * @return the PendingUploadResponseDtoInner object itself.
+ */
+ public PendingUploadResponseDtoInner withPendingUploadType(PendingUploadType pendingUploadType) {
+ this.pendingUploadType = pendingUploadType;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (blobReferenceForConsumption() != null) {
+ blobReferenceForConsumption().validate();
+ }
+ }
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/RegistryInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/RegistryInner.java
new file mode 100644
index 000000000000..0f0c65ac906d
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/RegistryInner.java
@@ -0,0 +1,339 @@
+// 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.ArmResourceId;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.machinelearning.models.RegistryPrivateEndpointConnection;
+import com.azure.resourcemanager.machinelearning.models.RegistryRegionArmDetails;
+import com.azure.resourcemanager.machinelearning.models.Sku;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+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 innerProperties = new RegistryProperties();
+
+ /*
+ * 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 innerProperties property: [Required] Additional attributes of the entity.
+ *
+ * @return the innerProperties value.
+ */
+ private RegistryProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * 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;
+ }
+
+ /**
+ * Get the discoveryUrl property: Discovery URL for the Registry.
+ *
+ * @return the discoveryUrl value.
+ */
+ public String discoveryUrl() {
+ return this.innerProperties() == null ? null : this.innerProperties().discoveryUrl();
+ }
+
+ /**
+ * Set the discoveryUrl property: Discovery URL for the Registry.
+ *
+ * @param discoveryUrl the discoveryUrl value to set.
+ * @return the RegistryInner object itself.
+ */
+ public RegistryInner withDiscoveryUrl(String discoveryUrl) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RegistryProperties();
+ }
+ this.innerProperties().withDiscoveryUrl(discoveryUrl);
+ return this;
+ }
+
+ /**
+ * Get the intellectualPropertyPublisher property: IntellectualPropertyPublisher for the registry.
+ *
+ * @return the intellectualPropertyPublisher value.
+ */
+ public String intellectualPropertyPublisher() {
+ return this.innerProperties() == null ? null : this.innerProperties().intellectualPropertyPublisher();
+ }
+
+ /**
+ * Set the intellectualPropertyPublisher property: IntellectualPropertyPublisher for the registry.
+ *
+ * @param intellectualPropertyPublisher the intellectualPropertyPublisher value to set.
+ * @return the RegistryInner object itself.
+ */
+ public RegistryInner withIntellectualPropertyPublisher(String intellectualPropertyPublisher) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RegistryProperties();
+ }
+ this.innerProperties().withIntellectualPropertyPublisher(intellectualPropertyPublisher);
+ return this;
+ }
+
+ /**
+ * Get the managedResourceGroup property: ResourceId of the managed RG if the registry has system created resources.
+ *
+ * @return the managedResourceGroup value.
+ */
+ public ArmResourceId managedResourceGroup() {
+ return this.innerProperties() == null ? null : this.innerProperties().managedResourceGroup();
+ }
+
+ /**
+ * Set the managedResourceGroup property: ResourceId of the managed RG if the registry has system created resources.
+ *
+ * @param managedResourceGroup the managedResourceGroup value to set.
+ * @return the RegistryInner object itself.
+ */
+ public RegistryInner withManagedResourceGroup(ArmResourceId managedResourceGroup) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RegistryProperties();
+ }
+ this.innerProperties().withManagedResourceGroup(managedResourceGroup);
+ return this;
+ }
+
+ /**
+ * Get the mlFlowRegistryUri property: MLFlow Registry URI for the Registry.
+ *
+ * @return the mlFlowRegistryUri value.
+ */
+ public String mlFlowRegistryUri() {
+ return this.innerProperties() == null ? null : this.innerProperties().mlFlowRegistryUri();
+ }
+
+ /**
+ * Set the mlFlowRegistryUri property: MLFlow Registry URI for the Registry.
+ *
+ * @param mlFlowRegistryUri the mlFlowRegistryUri value to set.
+ * @return the RegistryInner object itself.
+ */
+ public RegistryInner withMlFlowRegistryUri(String mlFlowRegistryUri) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RegistryProperties();
+ }
+ this.innerProperties().withMlFlowRegistryUri(mlFlowRegistryUri);
+ return this;
+ }
+
+ /**
+ * Get the registryPrivateEndpointConnections property: Private endpoint connections info used for pending
+ * connections in private link portal.
+ *
+ * @return the registryPrivateEndpointConnections value.
+ */
+ public List registryPrivateEndpointConnections() {
+ return this.innerProperties() == null ? null : this.innerProperties().registryPrivateEndpointConnections();
+ }
+
+ /**
+ * Set the registryPrivateEndpointConnections property: Private endpoint connections info used for pending
+ * connections in private link portal.
+ *
+ * @param registryPrivateEndpointConnections the registryPrivateEndpointConnections value to set.
+ * @return the RegistryInner object itself.
+ */
+ public RegistryInner withRegistryPrivateEndpointConnections(
+ List registryPrivateEndpointConnections) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RegistryProperties();
+ }
+ this.innerProperties().withRegistryPrivateEndpointConnections(registryPrivateEndpointConnections);
+ return this;
+ }
+
+ /**
+ * Get the publicNetworkAccess property: Is the Registry accessible from the internet? Possible values: "Enabled" or
+ * "Disabled".
+ *
+ * @return the publicNetworkAccess value.
+ */
+ public String publicNetworkAccess() {
+ return this.innerProperties() == null ? null : this.innerProperties().publicNetworkAccess();
+ }
+
+ /**
+ * Set the publicNetworkAccess property: Is the Registry accessible from the internet? Possible values: "Enabled" or
+ * "Disabled".
+ *
+ * @param publicNetworkAccess the publicNetworkAccess value to set.
+ * @return the RegistryInner object itself.
+ */
+ public RegistryInner withPublicNetworkAccess(String publicNetworkAccess) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RegistryProperties();
+ }
+ this.innerProperties().withPublicNetworkAccess(publicNetworkAccess);
+ return this;
+ }
+
+ /**
+ * Get the regionDetails property: Details of each region the registry is in.
+ *
+ * @return the regionDetails value.
+ */
+ public List regionDetails() {
+ return this.innerProperties() == null ? null : this.innerProperties().regionDetails();
+ }
+
+ /**
+ * Set the regionDetails property: Details of each region the registry is in.
+ *
+ * @param regionDetails the regionDetails value to set.
+ * @return the RegistryInner object itself.
+ */
+ public RegistryInner withRegionDetails(List regionDetails) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RegistryProperties();
+ }
+ this.innerProperties().withRegionDetails(regionDetails);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (identity() != null) {
+ identity().validate();
+ }
+ if (innerProperties() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property innerProperties in model RegistryInner"));
+ } else {
+ innerProperties().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/RegistryPrivateEndpointConnectionProperties.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/RegistryPrivateEndpointConnectionProperties.java
new file mode 100644
index 000000000000..20b118c71968
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/RegistryPrivateEndpointConnectionProperties.java
@@ -0,0 +1,140 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.machinelearning.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.machinelearning.models.PrivateEndpointResource;
+import com.azure.resourcemanager.machinelearning.models.RegistryPrivateLinkServiceConnectionState;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Properties of the Private Endpoint Connection. */
+@Fluent
+public final class RegistryPrivateEndpointConnectionProperties {
+ /*
+ * The group ids
+ */
+ @JsonProperty(value = "groupIds")
+ private List groupIds;
+
+ /*
+ * The PE network resource that is linked to this PE connection.
+ */
+ @JsonProperty(value = "privateEndpoint")
+ private PrivateEndpointResource privateEndpoint;
+
+ /*
+ * The connection state.
+ */
+ @JsonProperty(value = "registryPrivateLinkServiceConnectionState")
+ private RegistryPrivateLinkServiceConnectionState registryPrivateLinkServiceConnectionState;
+
+ /*
+ * One of null, "Succeeded", "Provisioning", "Failed". While not approved, it's null.
+ */
+ @JsonProperty(value = "provisioningState")
+ private String provisioningState;
+
+ /** Creates an instance of RegistryPrivateEndpointConnectionProperties class. */
+ public RegistryPrivateEndpointConnectionProperties() {
+ }
+
+ /**
+ * Get the groupIds property: The group ids.
+ *
+ * @return the groupIds value.
+ */
+ public List groupIds() {
+ return this.groupIds;
+ }
+
+ /**
+ * Set the groupIds property: The group ids.
+ *
+ * @param groupIds the groupIds value to set.
+ * @return the RegistryPrivateEndpointConnectionProperties object itself.
+ */
+ public RegistryPrivateEndpointConnectionProperties withGroupIds(List groupIds) {
+ this.groupIds = groupIds;
+ return this;
+ }
+
+ /**
+ * Get the privateEndpoint property: The PE network resource that is linked to this PE connection.
+ *
+ * @return the privateEndpoint value.
+ */
+ public PrivateEndpointResource privateEndpoint() {
+ return this.privateEndpoint;
+ }
+
+ /**
+ * Set the privateEndpoint property: The PE network resource that is linked to this PE connection.
+ *
+ * @param privateEndpoint the privateEndpoint value to set.
+ * @return the RegistryPrivateEndpointConnectionProperties object itself.
+ */
+ public RegistryPrivateEndpointConnectionProperties withPrivateEndpoint(PrivateEndpointResource privateEndpoint) {
+ this.privateEndpoint = privateEndpoint;
+ return this;
+ }
+
+ /**
+ * Get the registryPrivateLinkServiceConnectionState property: The connection state.
+ *
+ * @return the registryPrivateLinkServiceConnectionState value.
+ */
+ public RegistryPrivateLinkServiceConnectionState registryPrivateLinkServiceConnectionState() {
+ return this.registryPrivateLinkServiceConnectionState;
+ }
+
+ /**
+ * Set the registryPrivateLinkServiceConnectionState property: The connection state.
+ *
+ * @param registryPrivateLinkServiceConnectionState the registryPrivateLinkServiceConnectionState value to set.
+ * @return the RegistryPrivateEndpointConnectionProperties object itself.
+ */
+ public RegistryPrivateEndpointConnectionProperties withRegistryPrivateLinkServiceConnectionState(
+ RegistryPrivateLinkServiceConnectionState registryPrivateLinkServiceConnectionState) {
+ this.registryPrivateLinkServiceConnectionState = registryPrivateLinkServiceConnectionState;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: One of null, "Succeeded", "Provisioning", "Failed". While not approved, it's
+ * null.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Set the provisioningState property: One of null, "Succeeded", "Provisioning", "Failed". While not approved, it's
+ * null.
+ *
+ * @param provisioningState the provisioningState value to set.
+ * @return the RegistryPrivateEndpointConnectionProperties object itself.
+ */
+ public RegistryPrivateEndpointConnectionProperties withProvisioningState(String provisioningState) {
+ this.provisioningState = provisioningState;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (privateEndpoint() != null) {
+ privateEndpoint().validate();
+ }
+ if (registryPrivateLinkServiceConnectionState() != null) {
+ registryPrivateLinkServiceConnectionState().validate();
+ }
+ }
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/RegistryProperties.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/RegistryProperties.java
new file mode 100644
index 000000000000..a8ae4826d321
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/RegistryProperties.java
@@ -0,0 +1,225 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.machinelearning.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.machinelearning.models.ArmResourceId;
+import com.azure.resourcemanager.machinelearning.models.RegistryPrivateEndpointConnection;
+import com.azure.resourcemanager.machinelearning.models.RegistryRegionArmDetails;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Details of the Registry. */
+@Fluent
+public final class RegistryProperties {
+ /*
+ * Discovery URL for the Registry
+ */
+ @JsonProperty(value = "discoveryUrl")
+ private String discoveryUrl;
+
+ /*
+ * IntellectualPropertyPublisher for the registry
+ */
+ @JsonProperty(value = "intellectualPropertyPublisher")
+ private String intellectualPropertyPublisher;
+
+ /*
+ * ResourceId of the managed RG if the registry has system created resources
+ */
+ @JsonProperty(value = "managedResourceGroup")
+ private ArmResourceId managedResourceGroup;
+
+ /*
+ * MLFlow Registry URI for the Registry
+ */
+ @JsonProperty(value = "mlFlowRegistryUri")
+ private String mlFlowRegistryUri;
+
+ /*
+ * Private endpoint connections info used for pending connections in private link portal
+ */
+ @JsonProperty(value = "registryPrivateEndpointConnections")
+ private List registryPrivateEndpointConnections;
+
+ /*
+ * Is the Registry accessible from the internet?
+ * Possible values: "Enabled" or "Disabled"
+ */
+ @JsonProperty(value = "publicNetworkAccess")
+ private String publicNetworkAccess;
+
+ /*
+ * Details of each region the registry is in
+ */
+ @JsonProperty(value = "regionDetails")
+ private List regionDetails;
+
+ /** Creates an instance of RegistryProperties class. */
+ public RegistryProperties() {
+ }
+
+ /**
+ * Get the discoveryUrl property: Discovery URL for the Registry.
+ *
+ * @return the discoveryUrl value.
+ */
+ public String discoveryUrl() {
+ return this.discoveryUrl;
+ }
+
+ /**
+ * Set the discoveryUrl property: Discovery URL for the Registry.
+ *
+ * @param discoveryUrl the discoveryUrl value to set.
+ * @return the RegistryProperties object itself.
+ */
+ public RegistryProperties withDiscoveryUrl(String discoveryUrl) {
+ this.discoveryUrl = discoveryUrl;
+ return this;
+ }
+
+ /**
+ * Get the intellectualPropertyPublisher property: IntellectualPropertyPublisher for the registry.
+ *
+ * @return the intellectualPropertyPublisher value.
+ */
+ public String intellectualPropertyPublisher() {
+ return this.intellectualPropertyPublisher;
+ }
+
+ /**
+ * Set the intellectualPropertyPublisher property: IntellectualPropertyPublisher for the registry.
+ *
+ * @param intellectualPropertyPublisher the intellectualPropertyPublisher value to set.
+ * @return the RegistryProperties object itself.
+ */
+ public RegistryProperties withIntellectualPropertyPublisher(String intellectualPropertyPublisher) {
+ this.intellectualPropertyPublisher = intellectualPropertyPublisher;
+ return this;
+ }
+
+ /**
+ * Get the managedResourceGroup property: ResourceId of the managed RG if the registry has system created resources.
+ *
+ * @return the managedResourceGroup value.
+ */
+ public ArmResourceId managedResourceGroup() {
+ return this.managedResourceGroup;
+ }
+
+ /**
+ * Set the managedResourceGroup property: ResourceId of the managed RG if the registry has system created resources.
+ *
+ * @param managedResourceGroup the managedResourceGroup value to set.
+ * @return the RegistryProperties object itself.
+ */
+ public RegistryProperties withManagedResourceGroup(ArmResourceId managedResourceGroup) {
+ this.managedResourceGroup = managedResourceGroup;
+ return this;
+ }
+
+ /**
+ * Get the mlFlowRegistryUri property: MLFlow Registry URI for the Registry.
+ *
+ * @return the mlFlowRegistryUri value.
+ */
+ public String mlFlowRegistryUri() {
+ return this.mlFlowRegistryUri;
+ }
+
+ /**
+ * Set the mlFlowRegistryUri property: MLFlow Registry URI for the Registry.
+ *
+ * @param mlFlowRegistryUri the mlFlowRegistryUri value to set.
+ * @return the RegistryProperties object itself.
+ */
+ public RegistryProperties withMlFlowRegistryUri(String mlFlowRegistryUri) {
+ this.mlFlowRegistryUri = mlFlowRegistryUri;
+ return this;
+ }
+
+ /**
+ * Get the registryPrivateEndpointConnections property: Private endpoint connections info used for pending
+ * connections in private link portal.
+ *
+ * @return the registryPrivateEndpointConnections value.
+ */
+ public List registryPrivateEndpointConnections() {
+ return this.registryPrivateEndpointConnections;
+ }
+
+ /**
+ * Set the registryPrivateEndpointConnections property: Private endpoint connections info used for pending
+ * connections in private link portal.
+ *
+ * @param registryPrivateEndpointConnections the registryPrivateEndpointConnections value to set.
+ * @return the RegistryProperties object itself.
+ */
+ public RegistryProperties withRegistryPrivateEndpointConnections(
+ List registryPrivateEndpointConnections) {
+ this.registryPrivateEndpointConnections = registryPrivateEndpointConnections;
+ return this;
+ }
+
+ /**
+ * Get the publicNetworkAccess property: Is the Registry accessible from the internet? Possible values: "Enabled" or
+ * "Disabled".
+ *
+ * @return the publicNetworkAccess value.
+ */
+ public String publicNetworkAccess() {
+ return this.publicNetworkAccess;
+ }
+
+ /**
+ * Set the publicNetworkAccess property: Is the Registry accessible from the internet? Possible values: "Enabled" or
+ * "Disabled".
+ *
+ * @param publicNetworkAccess the publicNetworkAccess value to set.
+ * @return the RegistryProperties object itself.
+ */
+ public RegistryProperties withPublicNetworkAccess(String publicNetworkAccess) {
+ this.publicNetworkAccess = publicNetworkAccess;
+ return this;
+ }
+
+ /**
+ * Get the regionDetails property: Details of each region the registry is in.
+ *
+ * @return the regionDetails value.
+ */
+ public List regionDetails() {
+ return this.regionDetails;
+ }
+
+ /**
+ * Set the regionDetails property: Details of each region the registry is in.
+ *
+ * @param regionDetails the regionDetails value to set.
+ * @return the RegistryProperties object itself.
+ */
+ public RegistryProperties withRegionDetails(List regionDetails) {
+ this.regionDetails = regionDetails;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (managedResourceGroup() != null) {
+ managedResourceGroup().validate();
+ }
+ if (registryPrivateEndpointConnections() != null) {
+ registryPrivateEndpointConnections().forEach(e -> e.validate());
+ }
+ if (regionDetails() != null) {
+ regionDetails().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/package-info.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/package-info.java
index 3e822d30cd96..c4a20504c94a 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/package-info.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/package-info.java
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
/**
- * Package containing the inner data models for AzureMachineLearningWorkspaces. These APIs allow end users to operate on
+ * Package containing the inner data models for AzureMachineLearningServices. These APIs allow end users to operate on
* Azure Machine Learning Workspace resources.
*/
package com.azure.resourcemanager.machinelearning.fluent.models;
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/package-info.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/package-info.java
index f5bef4622975..50522669a1fc 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/package-info.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/package-info.java
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
/**
- * Package containing the service clients for AzureMachineLearningWorkspaces. These APIs allow end users to operate on
+ * Package containing the service clients for AzureMachineLearningServices. These APIs allow end users to operate on
* Azure Machine Learning Workspace resources.
*/
package com.azure.resourcemanager.machinelearning.fluent;
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/AzureMachineLearningWorkspacesBuilder.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/AzureMachineLearningServicesBuilder.java
similarity index 71%
rename from sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/AzureMachineLearningWorkspacesBuilder.java
rename to sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/AzureMachineLearningServicesBuilder.java
index 018c1d288b6a..48795f9c5d6c 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/AzureMachineLearningWorkspacesBuilder.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/AzureMachineLearningServicesBuilder.java
@@ -14,9 +14,9 @@
import com.azure.core.util.serializer.SerializerAdapter;
import java.time.Duration;
-/** A builder for creating a new instance of the AzureMachineLearningWorkspacesImpl type. */
-@ServiceClientBuilder(serviceClients = {AzureMachineLearningWorkspacesImpl.class})
-public final class AzureMachineLearningWorkspacesBuilder {
+/** A builder for creating a new instance of the AzureMachineLearningServicesImpl type. */
+@ServiceClientBuilder(serviceClients = {AzureMachineLearningServicesImpl.class})
+public final class AzureMachineLearningServicesBuilder {
/*
* The ID of the target subscription.
*/
@@ -26,9 +26,9 @@ public final class AzureMachineLearningWorkspacesBuilder {
* Sets The ID of the target subscription.
*
* @param subscriptionId the subscriptionId value.
- * @return the AzureMachineLearningWorkspacesBuilder.
+ * @return the AzureMachineLearningServicesBuilder.
*/
- public AzureMachineLearningWorkspacesBuilder subscriptionId(String subscriptionId) {
+ public AzureMachineLearningServicesBuilder subscriptionId(String subscriptionId) {
this.subscriptionId = subscriptionId;
return this;
}
@@ -42,9 +42,9 @@ public AzureMachineLearningWorkspacesBuilder subscriptionId(String subscriptionI
* Sets server parameter.
*
* @param endpoint the endpoint value.
- * @return the AzureMachineLearningWorkspacesBuilder.
+ * @return the AzureMachineLearningServicesBuilder.
*/
- public AzureMachineLearningWorkspacesBuilder endpoint(String endpoint) {
+ public AzureMachineLearningServicesBuilder endpoint(String endpoint) {
this.endpoint = endpoint;
return this;
}
@@ -58,9 +58,9 @@ public AzureMachineLearningWorkspacesBuilder endpoint(String endpoint) {
* Sets The environment to connect to.
*
* @param environment the environment value.
- * @return the AzureMachineLearningWorkspacesBuilder.
+ * @return the AzureMachineLearningServicesBuilder.
*/
- public AzureMachineLearningWorkspacesBuilder environment(AzureEnvironment environment) {
+ public AzureMachineLearningServicesBuilder environment(AzureEnvironment environment) {
this.environment = environment;
return this;
}
@@ -74,9 +74,9 @@ public AzureMachineLearningWorkspacesBuilder environment(AzureEnvironment enviro
* Sets The HTTP pipeline to send requests through.
*
* @param pipeline the pipeline value.
- * @return the AzureMachineLearningWorkspacesBuilder.
+ * @return the AzureMachineLearningServicesBuilder.
*/
- public AzureMachineLearningWorkspacesBuilder pipeline(HttpPipeline pipeline) {
+ public AzureMachineLearningServicesBuilder pipeline(HttpPipeline pipeline) {
this.pipeline = pipeline;
return this;
}
@@ -90,9 +90,9 @@ public AzureMachineLearningWorkspacesBuilder pipeline(HttpPipeline pipeline) {
* Sets The default poll interval for long-running operation.
*
* @param defaultPollInterval the defaultPollInterval value.
- * @return the AzureMachineLearningWorkspacesBuilder.
+ * @return the AzureMachineLearningServicesBuilder.
*/
- public AzureMachineLearningWorkspacesBuilder defaultPollInterval(Duration defaultPollInterval) {
+ public AzureMachineLearningServicesBuilder defaultPollInterval(Duration defaultPollInterval) {
this.defaultPollInterval = defaultPollInterval;
return this;
}
@@ -106,19 +106,19 @@ public AzureMachineLearningWorkspacesBuilder defaultPollInterval(Duration defaul
* Sets The serializer to serialize an object into a string.
*
* @param serializerAdapter the serializerAdapter value.
- * @return the AzureMachineLearningWorkspacesBuilder.
+ * @return the AzureMachineLearningServicesBuilder.
*/
- public AzureMachineLearningWorkspacesBuilder serializerAdapter(SerializerAdapter serializerAdapter) {
+ public AzureMachineLearningServicesBuilder serializerAdapter(SerializerAdapter serializerAdapter) {
this.serializerAdapter = serializerAdapter;
return this;
}
/**
- * Builds an instance of AzureMachineLearningWorkspacesImpl with the provided parameters.
+ * Builds an instance of AzureMachineLearningServicesImpl with the provided parameters.
*
- * @return an instance of AzureMachineLearningWorkspacesImpl.
+ * @return an instance of AzureMachineLearningServicesImpl.
*/
- public AzureMachineLearningWorkspacesImpl buildClient() {
+ public AzureMachineLearningServicesImpl buildClient() {
String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com";
AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE;
HttpPipeline localPipeline =
@@ -131,8 +131,8 @@ public AzureMachineLearningWorkspacesImpl buildClient() {
(serializerAdapter != null)
? serializerAdapter
: SerializerFactory.createDefaultManagementSerializerAdapter();
- AzureMachineLearningWorkspacesImpl client =
- new AzureMachineLearningWorkspacesImpl(
+ AzureMachineLearningServicesImpl client =
+ new AzureMachineLearningServicesImpl(
localPipeline,
localSerializerAdapter,
localDefaultPollInterval,
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/AzureMachineLearningWorkspacesImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/AzureMachineLearningServicesImpl.java
similarity index 76%
rename from sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/AzureMachineLearningWorkspacesImpl.java
rename to sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/AzureMachineLearningServicesImpl.java
index 242efe7553fd..f9f76d71e04f 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;
@@ -44,6 +44,17 @@
import com.azure.resourcemanager.machinelearning.fluent.PrivateEndpointConnectionsClient;
import com.azure.resourcemanager.machinelearning.fluent.PrivateLinkResourcesClient;
import com.azure.resourcemanager.machinelearning.fluent.QuotasClient;
+import com.azure.resourcemanager.machinelearning.fluent.RegistriesClient;
+import com.azure.resourcemanager.machinelearning.fluent.RegistryCodeContainersClient;
+import com.azure.resourcemanager.machinelearning.fluent.RegistryCodeVersionsClient;
+import com.azure.resourcemanager.machinelearning.fluent.RegistryComponentContainersClient;
+import com.azure.resourcemanager.machinelearning.fluent.RegistryComponentVersionsClient;
+import com.azure.resourcemanager.machinelearning.fluent.RegistryDataContainersClient;
+import com.azure.resourcemanager.machinelearning.fluent.RegistryDataVersionsClient;
+import com.azure.resourcemanager.machinelearning.fluent.RegistryEnvironmentContainersClient;
+import com.azure.resourcemanager.machinelearning.fluent.RegistryEnvironmentVersionsClient;
+import com.azure.resourcemanager.machinelearning.fluent.RegistryModelContainersClient;
+import com.azure.resourcemanager.machinelearning.fluent.RegistryModelVersionsClient;
import com.azure.resourcemanager.machinelearning.fluent.SchedulesClient;
import com.azure.resourcemanager.machinelearning.fluent.UsagesClient;
import com.azure.resourcemanager.machinelearning.fluent.VirtualMachineSizesClient;
@@ -59,9 +70,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 +253,126 @@ public WorkspaceConnectionsClient getWorkspaceConnections() {
return this.workspaceConnections;
}
+ /** The RegistryCodeContainersClient object to access its operations. */
+ private final RegistryCodeContainersClient registryCodeContainers;
+
+ /**
+ * Gets the RegistryCodeContainersClient object to access its operations.
+ *
+ * @return the RegistryCodeContainersClient object.
+ */
+ public RegistryCodeContainersClient getRegistryCodeContainers() {
+ return this.registryCodeContainers;
+ }
+
+ /** The RegistryCodeVersionsClient object to access its operations. */
+ private final RegistryCodeVersionsClient registryCodeVersions;
+
+ /**
+ * Gets the RegistryCodeVersionsClient object to access its operations.
+ *
+ * @return the RegistryCodeVersionsClient object.
+ */
+ public RegistryCodeVersionsClient getRegistryCodeVersions() {
+ return this.registryCodeVersions;
+ }
+
+ /** The RegistryComponentContainersClient object to access its operations. */
+ private final RegistryComponentContainersClient registryComponentContainers;
+
+ /**
+ * Gets the RegistryComponentContainersClient object to access its operations.
+ *
+ * @return the RegistryComponentContainersClient object.
+ */
+ public RegistryComponentContainersClient getRegistryComponentContainers() {
+ return this.registryComponentContainers;
+ }
+
+ /** The RegistryComponentVersionsClient object to access its operations. */
+ private final RegistryComponentVersionsClient registryComponentVersions;
+
+ /**
+ * Gets the RegistryComponentVersionsClient object to access its operations.
+ *
+ * @return the RegistryComponentVersionsClient object.
+ */
+ public RegistryComponentVersionsClient getRegistryComponentVersions() {
+ return this.registryComponentVersions;
+ }
+
+ /** The RegistryDataContainersClient object to access its operations. */
+ private final RegistryDataContainersClient registryDataContainers;
+
+ /**
+ * Gets the RegistryDataContainersClient object to access its operations.
+ *
+ * @return the RegistryDataContainersClient object.
+ */
+ public RegistryDataContainersClient getRegistryDataContainers() {
+ return this.registryDataContainers;
+ }
+
+ /** The RegistryDataVersionsClient object to access its operations. */
+ private final RegistryDataVersionsClient registryDataVersions;
+
+ /**
+ * Gets the RegistryDataVersionsClient object to access its operations.
+ *
+ * @return the RegistryDataVersionsClient object.
+ */
+ public RegistryDataVersionsClient getRegistryDataVersions() {
+ return this.registryDataVersions;
+ }
+
+ /** The RegistryEnvironmentContainersClient object to access its operations. */
+ private final RegistryEnvironmentContainersClient registryEnvironmentContainers;
+
+ /**
+ * Gets the RegistryEnvironmentContainersClient object to access its operations.
+ *
+ * @return the RegistryEnvironmentContainersClient object.
+ */
+ public RegistryEnvironmentContainersClient getRegistryEnvironmentContainers() {
+ return this.registryEnvironmentContainers;
+ }
+
+ /** The RegistryEnvironmentVersionsClient object to access its operations. */
+ private final RegistryEnvironmentVersionsClient registryEnvironmentVersions;
+
+ /**
+ * Gets the RegistryEnvironmentVersionsClient object to access its operations.
+ *
+ * @return the RegistryEnvironmentVersionsClient object.
+ */
+ public RegistryEnvironmentVersionsClient getRegistryEnvironmentVersions() {
+ return this.registryEnvironmentVersions;
+ }
+
+ /** The RegistryModelContainersClient object to access its operations. */
+ private final RegistryModelContainersClient registryModelContainers;
+
+ /**
+ * Gets the RegistryModelContainersClient object to access its operations.
+ *
+ * @return the RegistryModelContainersClient object.
+ */
+ public RegistryModelContainersClient getRegistryModelContainers() {
+ return this.registryModelContainers;
+ }
+
+ /** The RegistryModelVersionsClient object to access its operations. */
+ private final RegistryModelVersionsClient registryModelVersions;
+
+ /**
+ * Gets the RegistryModelVersionsClient object to access its operations.
+ *
+ * @return the RegistryModelVersionsClient object.
+ */
+ public RegistryModelVersionsClient getRegistryModelVersions() {
+ return this.registryModelVersions;
+ }
+
/** The BatchEndpointsClient object to access its operations. */
private final BatchEndpointsClient batchEndpoints;
@@ -446,6 +577,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 +602,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 +611,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 +623,7 @@ public WorkspaceFeaturesClient getWorkspaceFeatures() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2022-10-01";
+ this.apiVersion = "2023-04-01";
this.operations = new OperationsClientImpl(this);
this.workspaces = new WorkspacesClientImpl(this);
this.usages = new UsagesClientImpl(this);
@@ -490,6 +633,16 @@ public WorkspaceFeaturesClient getWorkspaceFeatures() {
this.privateEndpointConnections = new PrivateEndpointConnectionsClientImpl(this);
this.privateLinkResources = new PrivateLinkResourcesClientImpl(this);
this.workspaceConnections = new WorkspaceConnectionsClientImpl(this);
+ this.registryCodeContainers = new RegistryCodeContainersClientImpl(this);
+ this.registryCodeVersions = new RegistryCodeVersionsClientImpl(this);
+ this.registryComponentContainers = new RegistryComponentContainersClientImpl(this);
+ this.registryComponentVersions = new RegistryComponentVersionsClientImpl(this);
+ this.registryDataContainers = new RegistryDataContainersClientImpl(this);
+ this.registryDataVersions = new RegistryDataVersionsClientImpl(this);
+ this.registryEnvironmentContainers = new RegistryEnvironmentContainersClientImpl(this);
+ this.registryEnvironmentVersions = new RegistryEnvironmentVersionsClientImpl(this);
+ this.registryModelContainers = new RegistryModelContainersClientImpl(this);
+ this.registryModelVersions = new RegistryModelVersionsClientImpl(this);
this.batchEndpoints = new BatchEndpointsClientImpl(this);
this.batchDeployments = new BatchDeploymentsClientImpl(this);
this.codeContainers = new CodeContainersClientImpl(this);
@@ -507,6 +660,7 @@ public WorkspaceFeaturesClient getWorkspaceFeatures() {
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 +804,5 @@ public Mono getBodyAsString(Charset charset) {
}
}
- private static final ClientLogger LOGGER = new ClientLogger(AzureMachineLearningWorkspacesImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(AzureMachineLearningServicesImpl.class);
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/BatchDeploymentsClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/BatchDeploymentsClientImpl.java
index 6f28d675f5f5..ce019da00bf5 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,31 +46,29 @@ 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")
public interface BatchDeploymentsService {
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
- + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}"
- + "/deployments")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}/deployments")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> list(
@@ -88,9 +86,7 @@ Mono> list(
@Headers({"Content-Type: application/json"})
@Delete(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
- + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}"
- + "/deployments/{deploymentName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}/deployments/{deploymentName}")
@ExpectedResponses({200, 202, 204})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> delete(
@@ -106,9 +102,7 @@ Mono>> delete(
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
- + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}"
- + "/deployments/{deploymentName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}/deployments/{deploymentName}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> get(
@@ -124,9 +118,7 @@ Mono> get(
@Headers({"Content-Type: application/json"})
@Patch(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
- + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}"
- + "/deployments/{deploymentName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}/deployments/{deploymentName}")
@ExpectedResponses({200, 202})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> update(
@@ -143,9 +135,7 @@ Mono>> update(
@Headers({"Content-Type: application/json"})
@Put(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
- + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}"
- + "/deployments/{deploymentName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}/deployments/{deploymentName}")
@ExpectedResponses({200, 201})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> createOrUpdate(
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/BatchEndpointsClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/BatchEndpointsClientImpl.java
index 9d00fdc12171..a26aec5b8be6 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}")
@@ -70,8 +70,7 @@ public final class BatchEndpointsClientImpl implements BatchEndpointsClient {
public interface BatchEndpointsService {
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
- + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> list(
@@ -87,8 +86,7 @@ Mono> list(
@Headers({"Content-Type: application/json"})
@Delete(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
- + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}")
@ExpectedResponses({200, 202, 204})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> delete(
@@ -103,8 +101,7 @@ Mono>> delete(
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
- + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> get(
@@ -119,8 +116,7 @@ Mono> get(
@Headers({"Content-Type: application/json"})
@Patch(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
- + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}")
@ExpectedResponses({200, 202})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> update(
@@ -136,8 +132,7 @@ Mono>> update(
@Headers({"Content-Type: application/json"})
@Put(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
- + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}")
@ExpectedResponses({200, 201})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> createOrUpdate(
@@ -153,9 +148,7 @@ Mono>> createOrUpdate(
@Headers({"Content-Type: application/json"})
@Post(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
- + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}"
- + "/listkeys")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}/listkeys")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listKeys(
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeContainerImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeContainerImpl.java
index f739c63622ac..eae9e1a14652 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeContainerImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeContainerImpl.java
@@ -49,13 +49,13 @@ private com.azure.resourcemanager.machinelearning.MachineLearningManager manager
private String resourceGroupName;
- private String workspaceName;
+ private String registryName;
- private String name;
+ private String codeName;
- public CodeContainerImpl withExistingWorkspace(String resourceGroupName, String workspaceName) {
+ public CodeContainerImpl withExistingRegistry(String resourceGroupName, String registryName) {
this.resourceGroupName = resourceGroupName;
- this.workspaceName = workspaceName;
+ this.registryName = registryName;
return this;
}
@@ -63,9 +63,8 @@ public CodeContainer create() {
this.innerObject =
serviceManager
.serviceClient()
- .getCodeContainers()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, this.innerModel(), Context.NONE)
- .getValue();
+ .getRegistryCodeContainers()
+ .createOrUpdate(resourceGroupName, registryName, codeName, this.innerModel(), Context.NONE);
return this;
}
@@ -73,16 +72,15 @@ public CodeContainer create(Context context) {
this.innerObject =
serviceManager
.serviceClient()
- .getCodeContainers()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, this.innerModel(), context)
- .getValue();
+ .getRegistryCodeContainers()
+ .createOrUpdate(resourceGroupName, registryName, codeName, this.innerModel(), context);
return this;
}
CodeContainerImpl(String name, com.azure.resourcemanager.machinelearning.MachineLearningManager serviceManager) {
this.innerObject = new CodeContainerInner();
this.serviceManager = serviceManager;
- this.name = name;
+ this.codeName = name;
}
public CodeContainerImpl update() {
@@ -93,9 +91,8 @@ public CodeContainer apply() {
this.innerObject =
serviceManager
.serviceClient()
- .getCodeContainers()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, this.innerModel(), Context.NONE)
- .getValue();
+ .getRegistryCodeContainers()
+ .createOrUpdate(resourceGroupName, registryName, codeName, this.innerModel(), Context.NONE);
return this;
}
@@ -103,9 +100,8 @@ public CodeContainer apply(Context context) {
this.innerObject =
serviceManager
.serviceClient()
- .getCodeContainers()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, this.innerModel(), context)
- .getValue();
+ .getRegistryCodeContainers()
+ .createOrUpdate(resourceGroupName, registryName, codeName, this.innerModel(), context);
return this;
}
@@ -115,16 +111,16 @@ public CodeContainer apply(Context context) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.workspaceName = Utils.getValueFromIdByName(innerObject.id(), "workspaces");
- this.name = Utils.getValueFromIdByName(innerObject.id(), "codes");
+ this.registryName = Utils.getValueFromIdByName(innerObject.id(), "registries");
+ this.codeName = Utils.getValueFromIdByName(innerObject.id(), "codes");
}
public CodeContainer refresh() {
this.innerObject =
serviceManager
.serviceClient()
- .getCodeContainers()
- .getWithResponse(resourceGroupName, workspaceName, name, Context.NONE)
+ .getRegistryCodeContainers()
+ .getWithResponse(resourceGroupName, registryName, codeName, Context.NONE)
.getValue();
return this;
}
@@ -133,8 +129,8 @@ public CodeContainer refresh(Context context) {
this.innerObject =
serviceManager
.serviceClient()
- .getCodeContainers()
- .getWithResponse(resourceGroupName, workspaceName, name, context)
+ .getRegistryCodeContainers()
+ .getWithResponse(resourceGroupName, registryName, codeName, context)
.getValue();
return this;
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeContainersClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeContainersClientImpl.java
index 019f7490ddf8..22a21bcd3383 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}")
@@ -61,8 +61,7 @@ public final class CodeContainersClientImpl implements CodeContainersClient {
public interface CodeContainersService {
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
- + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> list(
@@ -77,8 +76,7 @@ Mono> list(
@Headers({"Content-Type: application/json"})
@Delete(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
- + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}")
@ExpectedResponses({200, 204})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> delete(
@@ -93,8 +91,7 @@ Mono> delete(
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
- + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> get(
@@ -109,8 +106,7 @@ Mono> get(
@Headers({"Content-Type: application/json"})
@Put(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
- + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}")
@ExpectedResponses({200, 201})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> createOrUpdate(
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeContainersImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeContainersImpl.java
index 0202b27fb32c..c82929e2dc86 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeContainersImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeContainersImpl.java
@@ -73,108 +73,29 @@ public CodeContainer get(String resourceGroupName, String workspaceName, String
}
}
- public CodeContainer getById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = Utils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = Utils.getValueFromIdByName(id, "codes");
- if (name == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'codes'.", id)));
- }
- return this.getWithResponse(resourceGroupName, workspaceName, name, Context.NONE).getValue();
- }
-
- public Response getByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = Utils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = Utils.getValueFromIdByName(id, "codes");
- if (name == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'codes'.", id)));
- }
- return this.getWithResponse(resourceGroupName, workspaceName, name, context);
- }
-
- public void deleteById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = Utils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = Utils.getValueFromIdByName(id, "codes");
- if (name == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'codes'.", id)));
+ public Response createOrUpdateWithResponse(
+ String resourceGroupName, String workspaceName, String name, CodeContainerInner body, Context context) {
+ Response inner =
+ this.serviceClient().createOrUpdateWithResponse(resourceGroupName, workspaceName, name, body, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new CodeContainerImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
}
- this.deleteWithResponse(resourceGroupName, workspaceName, name, Context.NONE);
}
- public Response deleteByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = Utils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = Utils.getValueFromIdByName(id, "codes");
- if (name == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'codes'.", id)));
+ public CodeContainer createOrUpdate(
+ String resourceGroupName, String workspaceName, String name, CodeContainerInner body) {
+ CodeContainerInner inner = this.serviceClient().createOrUpdate(resourceGroupName, workspaceName, name, body);
+ if (inner != null) {
+ return new CodeContainerImpl(inner, this.manager());
+ } else {
+ return null;
}
- return this.deleteWithResponse(resourceGroupName, workspaceName, name, context);
}
private CodeContainersClient serviceClient() {
@@ -184,8 +105,4 @@ private CodeContainersClient serviceClient() {
private com.azure.resourcemanager.machinelearning.MachineLearningManager manager() {
return this.serviceManager;
}
-
- public CodeContainerImpl define(String name) {
- return new CodeContainerImpl(name, this.manager());
- }
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeVersionImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeVersionImpl.java
index daab7505f3ff..20ee2762624c 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
@@ -4,11 +4,14 @@
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.CodeVersionInner;
import com.azure.resourcemanager.machinelearning.models.CodeVersion;
import com.azure.resourcemanager.machinelearning.models.CodeVersionProperties;
+import com.azure.resourcemanager.machinelearning.models.PendingUploadRequestDto;
+import com.azure.resourcemanager.machinelearning.models.PendingUploadResponseDto;
public final class CodeVersionImpl implements CodeVersion, CodeVersion.Definition, CodeVersion.Update {
private CodeVersionInner innerObject;
@@ -49,16 +52,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 +69,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 +78,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 +97,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 +106,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 +116,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 +125,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,12 +135,26 @@ 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;
}
+ public Response createOrGetStartPendingUploadWithResponse(
+ PendingUploadRequestDto body, Context context) {
+ return serviceManager
+ .registryCodeVersions()
+ .createOrGetStartPendingUploadWithResponse(
+ resourceGroupName, registryName, codeName, version, body, context);
+ }
+
+ public PendingUploadResponseDto createOrGetStartPendingUpload(PendingUploadRequestDto body) {
+ return serviceManager
+ .registryCodeVersions()
+ .createOrGetStartPendingUpload(resourceGroupName, registryName, codeName, version, body);
+ }
+
public CodeVersionImpl withProperties(CodeVersionProperties properties) {
this.innerModel().withProperties(properties);
return this;
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeVersionsClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeVersionsClientImpl.java
index 5e0cdc080acd..08e0998d3ad9 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
@@ -13,6 +13,7 @@
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;
@@ -30,7 +31,9 @@
import com.azure.core.util.FluxUtil;
import com.azure.resourcemanager.machinelearning.fluent.CodeVersionsClient;
import com.azure.resourcemanager.machinelearning.fluent.models.CodeVersionInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.PendingUploadResponseDtoInner;
import com.azure.resourcemanager.machinelearning.models.CodeVersionResourceArmPaginatedResult;
+import com.azure.resourcemanager.machinelearning.models.PendingUploadRequestDto;
import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in CodeVersionsClient. */
@@ -39,21 +42,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}")
@@ -61,8 +64,7 @@ public final class CodeVersionsClientImpl implements CodeVersionsClient {
public interface CodeVersionsService {
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
- + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> list(
@@ -75,13 +77,14 @@ Mono> list(
@QueryParam("$orderBy") String orderBy,
@QueryParam("$top") Integer top,
@QueryParam("$skip") String skip,
+ @QueryParam("hash") String hash,
+ @QueryParam("hashVersion") String hashVersion,
@HeaderParam("Accept") String accept,
Context context);
@Headers({"Content-Type: application/json"})
@Delete(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
- + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}")
@ExpectedResponses({200, 204})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> delete(
@@ -97,8 +100,7 @@ Mono> delete(
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
- + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> get(
@@ -114,8 +116,7 @@ Mono> get(
@Headers({"Content-Type: application/json"})
@Put(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
- + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}")
@ExpectedResponses({200, 201})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> createOrUpdate(
@@ -130,6 +131,23 @@ Mono> createOrUpdate(
@HeaderParam("Accept") String accept,
Context context);
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}/startPendingUpload")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> createOrGetStartPendingUpload(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("workspaceName") String workspaceName,
+ @PathParam("name") String name,
+ @PathParam("version") String version,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") PendingUploadRequestDto body,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
@Headers({"Content-Type: application/json"})
@Get("{nextLink}")
@ExpectedResponses({200})
@@ -150,6 +168,8 @@ Mono> listNext(
* @param orderBy Ordering of list.
* @param top Maximum number of records to return.
* @param skip Continuation token for pagination.
+ * @param hash If specified, return CodeVersion assets with specified content hash value, regardless of name.
+ * @param hashVersion Hash algorithm version when listing by hash.
* @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.
@@ -158,7 +178,14 @@ Mono> listNext(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(
- String resourceGroupName, String workspaceName, String name, String orderBy, Integer top, String skip) {
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ String orderBy,
+ Integer top,
+ String skip,
+ String hash,
+ String hashVersion) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
@@ -196,6 +223,8 @@ private Mono> listSinglePageAsync(
orderBy,
top,
skip,
+ hash,
+ hashVersion,
accept,
context))
.>map(
@@ -219,6 +248,8 @@ private Mono> listSinglePageAsync(
* @param orderBy Ordering of list.
* @param top Maximum number of records to return.
* @param skip Continuation token for pagination.
+ * @param hash If specified, return CodeVersion assets with specified content hash value, regardless of name.
+ * @param hashVersion Hash algorithm version when listing by hash.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -234,6 +265,8 @@ private Mono> listSinglePageAsync(
String orderBy,
Integer top,
String skip,
+ String hash,
+ String hashVersion,
Context context) {
if (this.client.getEndpoint() == null) {
return Mono
@@ -270,6 +303,8 @@ private Mono> listSinglePageAsync(
orderBy,
top,
skip,
+ hash,
+ hashVersion,
accept,
context)
.map(
@@ -292,6 +327,8 @@ private Mono> listSinglePageAsync(
* @param orderBy Ordering of list.
* @param top Maximum number of records to return.
* @param skip Continuation token for pagination.
+ * @param hash If specified, return CodeVersion assets with specified content hash value, regardless of name.
+ * @param hashVersion Hash algorithm version when listing by hash.
* @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.
@@ -299,9 +336,16 @@ private Mono> listSinglePageAsync(
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(
- String resourceGroupName, String workspaceName, String name, String orderBy, Integer top, String skip) {
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ String orderBy,
+ Integer top,
+ String skip,
+ String hash,
+ String hashVersion) {
return new PagedFlux<>(
- () -> listSinglePageAsync(resourceGroupName, workspaceName, name, orderBy, top, skip),
+ () -> listSinglePageAsync(resourceGroupName, workspaceName, name, orderBy, top, skip, hash, hashVersion),
nextLink -> listNextSinglePageAsync(nextLink));
}
@@ -321,8 +365,10 @@ private PagedFlux listAsync(String resourceGroupName, String w
final String orderBy = null;
final Integer top = null;
final String skip = null;
+ final String hash = null;
+ final String hashVersion = null;
return new PagedFlux<>(
- () -> listSinglePageAsync(resourceGroupName, workspaceName, name, orderBy, top, skip),
+ () -> listSinglePageAsync(resourceGroupName, workspaceName, name, orderBy, top, skip, hash, hashVersion),
nextLink -> listNextSinglePageAsync(nextLink));
}
@@ -335,6 +381,8 @@ private PagedFlux listAsync(String resourceGroupName, String w
* @param orderBy Ordering of list.
* @param top Maximum number of records to return.
* @param skip Continuation token for pagination.
+ * @param hash If specified, return CodeVersion assets with specified content hash value, regardless of name.
+ * @param hashVersion Hash algorithm version when listing by hash.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -349,9 +397,13 @@ private PagedFlux listAsync(
String orderBy,
Integer top,
String skip,
+ String hash,
+ String hashVersion,
Context context) {
return new PagedFlux<>(
- () -> listSinglePageAsync(resourceGroupName, workspaceName, name, orderBy, top, skip, context),
+ () ->
+ listSinglePageAsync(
+ resourceGroupName, workspaceName, name, orderBy, top, skip, hash, hashVersion, context),
nextLink -> listNextSinglePageAsync(nextLink, context));
}
@@ -371,7 +423,10 @@ public PagedIterable list(String resourceGroupName, String wor
final String orderBy = null;
final Integer top = null;
final String skip = null;
- return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, name, orderBy, top, skip));
+ final String hash = null;
+ final String hashVersion = null;
+ return new PagedIterable<>(
+ listAsync(resourceGroupName, workspaceName, name, orderBy, top, skip, hash, hashVersion));
}
/**
@@ -383,6 +438,8 @@ public PagedIterable list(String resourceGroupName, String wor
* @param orderBy Ordering of list.
* @param top Maximum number of records to return.
* @param skip Continuation token for pagination.
+ * @param hash If specified, return CodeVersion assets with specified content hash value, regardless of name.
+ * @param hashVersion Hash algorithm version when listing by hash.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -397,8 +454,11 @@ public PagedIterable list(
String orderBy,
Integer top,
String skip,
+ String hash,
+ String hashVersion,
Context context) {
- return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, name, orderBy, top, skip, context));
+ return new PagedIterable<>(
+ listAsync(resourceGroupName, workspaceName, name, orderBy, top, skip, hash, hashVersion, context));
}
/**
@@ -937,6 +997,207 @@ public CodeVersionInner createOrUpdate(
.getValue();
}
+ /**
+ * Generate a storage location and credential for the client to upload a code asset to.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Pending upload request object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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> createOrGetStartPendingUploadWithResponseAsync(
+ String resourceGroupName, String workspaceName, String name, String version, PendingUploadRequestDto 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 (name == null) {
+ return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null."));
+ }
+ if (version == null) {
+ return Mono.error(new IllegalArgumentException("Parameter version 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
+ .createOrGetStartPendingUpload(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ workspaceName,
+ name,
+ version,
+ this.client.getApiVersion(),
+ body,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Generate a storage location and credential for the client to upload a code asset to.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Pending upload request object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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> createOrGetStartPendingUploadWithResponseAsync(
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ String version,
+ PendingUploadRequestDto 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 (name == null) {
+ return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null."));
+ }
+ if (version == null) {
+ return Mono.error(new IllegalArgumentException("Parameter version 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
+ .createOrGetStartPendingUpload(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ workspaceName,
+ name,
+ version,
+ this.client.getApiVersion(),
+ body,
+ accept,
+ context);
+ }
+
+ /**
+ * Generate a storage location and credential for the client to upload a code asset to.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Pending upload request object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 createOrGetStartPendingUploadAsync(
+ String resourceGroupName, String workspaceName, String name, String version, PendingUploadRequestDto body) {
+ return createOrGetStartPendingUploadWithResponseAsync(resourceGroupName, workspaceName, name, version, body)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Generate a storage location and credential for the client to upload a code asset to.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Pending upload request object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response createOrGetStartPendingUploadWithResponse(
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ String version,
+ PendingUploadRequestDto body,
+ Context context) {
+ return createOrGetStartPendingUploadWithResponseAsync(
+ resourceGroupName, workspaceName, name, version, body, context)
+ .block();
+ }
+
+ /**
+ * Generate a storage location and credential for the client to upload a code asset to.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Pending upload request object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 PendingUploadResponseDtoInner createOrGetStartPendingUpload(
+ String resourceGroupName, String workspaceName, String name, String version, PendingUploadRequestDto body) {
+ return createOrGetStartPendingUploadWithResponse(
+ resourceGroupName, workspaceName, name, version, body, Context.NONE)
+ .getValue();
+ }
+
/**
* Get the next page of items.
*
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeVersionsImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeVersionsImpl.java
index 49705d0a8abd..d3c542c6e065 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
@@ -11,8 +11,11 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.machinelearning.fluent.CodeVersionsClient;
import com.azure.resourcemanager.machinelearning.fluent.models.CodeVersionInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.PendingUploadResponseDtoInner;
import com.azure.resourcemanager.machinelearning.models.CodeVersion;
import com.azure.resourcemanager.machinelearning.models.CodeVersions;
+import com.azure.resourcemanager.machinelearning.models.PendingUploadRequestDto;
+import com.azure.resourcemanager.machinelearning.models.PendingUploadResponseDto;
public final class CodeVersionsImpl implements CodeVersions {
private static final ClientLogger LOGGER = new ClientLogger(CodeVersionsImpl.class);
@@ -40,9 +43,13 @@ public PagedIterable list(
String orderBy,
Integer top,
String skip,
+ String hash,
+ String hashVersion,
Context context) {
PagedIterable inner =
- this.serviceClient().list(resourceGroupName, workspaceName, name, orderBy, top, skip, context);
+ this
+ .serviceClient()
+ .list(resourceGroupName, workspaceName, name, orderBy, top, skip, hash, hashVersion, context);
return Utils.mapPage(inner, inner1 -> new CodeVersionImpl(inner1, this.manager()));
}
@@ -79,136 +86,71 @@ 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)));
+ 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;
}
- 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)));
+ 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.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 createOrGetStartPendingUploadWithResponse(
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ String version,
+ PendingUploadRequestDto body,
+ Context context) {
+ Response inner =
+ this
+ .serviceClient()
+ .createOrGetStartPendingUploadWithResponse(
+ resourceGroupName, workspaceName, name, version, body, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new PendingUploadResponseDtoImpl(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 PendingUploadResponseDto createOrGetStartPendingUpload(
+ String resourceGroupName, String workspaceName, String name, String version, PendingUploadRequestDto body) {
+ PendingUploadResponseDtoInner inner =
+ this.serviceClient().createOrGetStartPendingUpload(resourceGroupName, workspaceName, name, version, body);
+ if (inner != null) {
+ return new PendingUploadResponseDtoImpl(inner, this.manager());
+ } else {
+ return null;
}
- return this.deleteWithResponse(resourceGroupName, workspaceName, name, version, context);
}
private CodeVersionsClient serviceClient() {
@@ -218,8 +160,4 @@ private CodeVersionsClient serviceClient() {
private com.azure.resourcemanager.machinelearning.MachineLearningManager manager() {
return this.serviceManager;
}
-
- public CodeVersionImpl define(String name) {
- return new CodeVersionImpl(name, this.manager());
- }
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentContainerImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentContainerImpl.java
index 0208215c0403..98f219f5889e 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentContainerImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentContainerImpl.java
@@ -50,13 +50,13 @@ private com.azure.resourcemanager.machinelearning.MachineLearningManager manager
private String resourceGroupName;
- private String workspaceName;
+ private String registryName;
- private String name;
+ private String componentName;
- public ComponentContainerImpl withExistingWorkspace(String resourceGroupName, String workspaceName) {
+ public ComponentContainerImpl withExistingRegistry(String resourceGroupName, String registryName) {
this.resourceGroupName = resourceGroupName;
- this.workspaceName = workspaceName;
+ this.registryName = registryName;
return this;
}
@@ -64,9 +64,8 @@ public ComponentContainer create() {
this.innerObject =
serviceManager
.serviceClient()
- .getComponentContainers()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, this.innerModel(), Context.NONE)
- .getValue();
+ .getRegistryComponentContainers()
+ .createOrUpdate(resourceGroupName, registryName, componentName, this.innerModel(), Context.NONE);
return this;
}
@@ -74,9 +73,8 @@ public ComponentContainer create(Context context) {
this.innerObject =
serviceManager
.serviceClient()
- .getComponentContainers()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, this.innerModel(), context)
- .getValue();
+ .getRegistryComponentContainers()
+ .createOrUpdate(resourceGroupName, registryName, componentName, this.innerModel(), context);
return this;
}
@@ -84,7 +82,7 @@ public ComponentContainer create(Context context) {
String name, com.azure.resourcemanager.machinelearning.MachineLearningManager serviceManager) {
this.innerObject = new ComponentContainerInner();
this.serviceManager = serviceManager;
- this.name = name;
+ this.componentName = name;
}
public ComponentContainerImpl update() {
@@ -95,9 +93,8 @@ public ComponentContainer apply() {
this.innerObject =
serviceManager
.serviceClient()
- .getComponentContainers()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, this.innerModel(), Context.NONE)
- .getValue();
+ .getRegistryComponentContainers()
+ .createOrUpdate(resourceGroupName, registryName, componentName, this.innerModel(), Context.NONE);
return this;
}
@@ -105,9 +102,8 @@ public ComponentContainer apply(Context context) {
this.innerObject =
serviceManager
.serviceClient()
- .getComponentContainers()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, this.innerModel(), context)
- .getValue();
+ .getRegistryComponentContainers()
+ .createOrUpdate(resourceGroupName, registryName, componentName, this.innerModel(), context);
return this;
}
@@ -117,16 +113,16 @@ public ComponentContainer apply(Context context) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.workspaceName = Utils.getValueFromIdByName(innerObject.id(), "workspaces");
- this.name = Utils.getValueFromIdByName(innerObject.id(), "components");
+ this.registryName = Utils.getValueFromIdByName(innerObject.id(), "registries");
+ this.componentName = Utils.getValueFromIdByName(innerObject.id(), "components");
}
public ComponentContainer refresh() {
this.innerObject =
serviceManager
.serviceClient()
- .getComponentContainers()
- .getWithResponse(resourceGroupName, workspaceName, name, Context.NONE)
+ .getRegistryComponentContainers()
+ .getWithResponse(resourceGroupName, registryName, componentName, Context.NONE)
.getValue();
return this;
}
@@ -135,8 +131,8 @@ public ComponentContainer refresh(Context context) {
this.innerObject =
serviceManager
.serviceClient()
- .getComponentContainers()
- .getWithResponse(resourceGroupName, workspaceName, name, context)
+ .getRegistryComponentContainers()
+ .getWithResponse(resourceGroupName, registryName, componentName, context)
.getValue();
return this;
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentContainersClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentContainersClientImpl.java
index 7c8593db5a97..85ef9aed402c 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}")
@@ -62,8 +62,7 @@ public final class ComponentContainersClientImpl implements ComponentContainersC
public interface ComponentContainersService {
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
- + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> list(
@@ -79,8 +78,7 @@ Mono> list(
@Headers({"Content-Type: application/json"})
@Delete(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
- + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}")
@ExpectedResponses({200, 204})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> delete(
@@ -95,8 +93,7 @@ Mono> delete(
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
- + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> get(
@@ -111,8 +108,7 @@ Mono> get(
@Headers({"Content-Type: application/json"})
@Put(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
- + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}")
@ExpectedResponses({200, 201})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> createOrUpdate(
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentContainersImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentContainersImpl.java
index b9bc5f40a732..308ac7fc8c0b 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentContainersImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentContainersImpl.java
@@ -74,108 +74,30 @@ public ComponentContainer get(String resourceGroupName, String workspaceName, St
}
}
- public ComponentContainer getById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = Utils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = Utils.getValueFromIdByName(id, "components");
- if (name == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'components'.", id)));
- }
- return this.getWithResponse(resourceGroupName, workspaceName, name, Context.NONE).getValue();
- }
-
- public Response getByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = Utils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = Utils.getValueFromIdByName(id, "components");
- if (name == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'components'.", id)));
- }
- return this.getWithResponse(resourceGroupName, workspaceName, name, context);
- }
-
- public void deleteById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = Utils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = Utils.getValueFromIdByName(id, "components");
- if (name == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'components'.", id)));
+ public Response createOrUpdateWithResponse(
+ String resourceGroupName, String workspaceName, String name, ComponentContainerInner body, Context context) {
+ Response inner =
+ this.serviceClient().createOrUpdateWithResponse(resourceGroupName, workspaceName, name, body, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new ComponentContainerImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
}
- this.deleteWithResponse(resourceGroupName, workspaceName, name, Context.NONE);
}
- public Response deleteByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = Utils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = Utils.getValueFromIdByName(id, "components");
- if (name == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'components'.", id)));
+ public ComponentContainer createOrUpdate(
+ String resourceGroupName, String workspaceName, String name, ComponentContainerInner body) {
+ ComponentContainerInner inner =
+ this.serviceClient().createOrUpdate(resourceGroupName, workspaceName, name, body);
+ if (inner != null) {
+ return new ComponentContainerImpl(inner, this.manager());
+ } else {
+ return null;
}
- return this.deleteWithResponse(resourceGroupName, workspaceName, name, context);
}
private ComponentContainersClient serviceClient() {
@@ -185,8 +107,4 @@ private ComponentContainersClient serviceClient() {
private com.azure.resourcemanager.machinelearning.MachineLearningManager manager() {
return this.serviceManager;
}
-
- public ComponentContainerImpl define(String name) {
- return new ComponentContainerImpl(name, this.manager());
- }
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentVersionImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentVersionImpl.java
index 2b90ee811ddb..8cda2a3d7a02 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentVersionImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentVersionImpl.java
@@ -50,16 +50,17 @@ private com.azure.resourcemanager.machinelearning.MachineLearningManager manager
private String resourceGroupName;
- private String workspaceName;
+ private String registryName;
- private String name;
+ private String componentName;
private String version;
- public ComponentVersionImpl withExistingComponent(String resourceGroupName, String workspaceName, String name) {
+ public ComponentVersionImpl withExistingComponent(
+ String resourceGroupName, String registryName, String componentName) {
this.resourceGroupName = resourceGroupName;
- this.workspaceName = workspaceName;
- this.name = name;
+ this.registryName = registryName;
+ this.componentName = componentName;
return this;
}
@@ -67,10 +68,9 @@ public ComponentVersion create() {
this.innerObject =
serviceManager
.serviceClient()
- .getComponentVersions()
- .createOrUpdateWithResponse(
- resourceGroupName, workspaceName, name, version, this.innerModel(), Context.NONE)
- .getValue();
+ .getRegistryComponentVersions()
+ .createOrUpdate(
+ resourceGroupName, registryName, componentName, version, this.innerModel(), Context.NONE);
return this;
}
@@ -78,9 +78,8 @@ public ComponentVersion create(Context context) {
this.innerObject =
serviceManager
.serviceClient()
- .getComponentVersions()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, version, this.innerModel(), context)
- .getValue();
+ .getRegistryComponentVersions()
+ .createOrUpdate(resourceGroupName, registryName, componentName, version, this.innerModel(), context);
return this;
}
@@ -98,10 +97,9 @@ public ComponentVersion apply() {
this.innerObject =
serviceManager
.serviceClient()
- .getComponentVersions()
- .createOrUpdateWithResponse(
- resourceGroupName, workspaceName, name, version, this.innerModel(), Context.NONE)
- .getValue();
+ .getRegistryComponentVersions()
+ .createOrUpdate(
+ resourceGroupName, registryName, componentName, version, this.innerModel(), Context.NONE);
return this;
}
@@ -109,9 +107,8 @@ public ComponentVersion apply(Context context) {
this.innerObject =
serviceManager
.serviceClient()
- .getComponentVersions()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, version, this.innerModel(), context)
- .getValue();
+ .getRegistryComponentVersions()
+ .createOrUpdate(resourceGroupName, registryName, componentName, version, this.innerModel(), context);
return this;
}
@@ -121,8 +118,8 @@ public ComponentVersion apply(Context context) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.workspaceName = Utils.getValueFromIdByName(innerObject.id(), "workspaces");
- this.name = Utils.getValueFromIdByName(innerObject.id(), "components");
+ this.registryName = Utils.getValueFromIdByName(innerObject.id(), "registries");
+ this.componentName = Utils.getValueFromIdByName(innerObject.id(), "components");
this.version = Utils.getValueFromIdByName(innerObject.id(), "versions");
}
@@ -130,8 +127,8 @@ public ComponentVersion refresh() {
this.innerObject =
serviceManager
.serviceClient()
- .getComponentVersions()
- .getWithResponse(resourceGroupName, workspaceName, name, version, Context.NONE)
+ .getRegistryComponentVersions()
+ .getWithResponse(resourceGroupName, registryName, componentName, version, Context.NONE)
.getValue();
return this;
}
@@ -140,8 +137,8 @@ public ComponentVersion refresh(Context context) {
this.innerObject =
serviceManager
.serviceClient()
- .getComponentVersions()
- .getWithResponse(resourceGroupName, workspaceName, name, version, context)
+ .getRegistryComponentVersions()
+ .getWithResponse(resourceGroupName, registryName, componentName, version, context)
.getValue();
return this;
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentVersionsClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentVersionsClientImpl.java
index 4cfb98d8af64..c701708dcf0d 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,30 +40,29 @@ 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")
public interface ComponentVersionsService {
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
- + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}/versions")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}/versions")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> list(
@@ -82,8 +81,7 @@ Mono> list(
@Headers({"Content-Type: application/json"})
@Delete(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
- + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}/versions/{version}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}/versions/{version}")
@ExpectedResponses({200, 204})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> delete(
@@ -99,8 +97,7 @@ Mono> delete(
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
- + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}/versions/{version}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}/versions/{version}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> get(
@@ -116,8 +113,7 @@ Mono> get(
@Headers({"Content-Type: application/json"})
@Put(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
- + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}/versions/{version}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}/versions/{version}")
@ExpectedResponses({200, 201})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> createOrUpdate(
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentVersionsImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentVersionsImpl.java
index b31d3e83102b..ee670a394932 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentVersionsImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentVersionsImpl.java
@@ -83,136 +83,37 @@ public ComponentVersion get(String resourceGroupName, String workspaceName, Stri
}
}
- public ComponentVersion getById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = Utils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = Utils.getValueFromIdByName(id, "components");
- if (name == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'components'.", id)));
- }
- String version = Utils.getValueFromIdByName(id, "versions");
- if (version == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
- }
- return this.getWithResponse(resourceGroupName, workspaceName, name, version, Context.NONE).getValue();
- }
-
- public Response getByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = Utils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = Utils.getValueFromIdByName(id, "components");
- if (name == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'components'.", id)));
- }
- String version = Utils.getValueFromIdByName(id, "versions");
- if (version == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
- }
- return this.getWithResponse(resourceGroupName, workspaceName, name, version, context);
- }
-
- public void deleteById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = Utils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = Utils.getValueFromIdByName(id, "components");
- if (name == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'components'.", id)));
- }
- String version = Utils.getValueFromIdByName(id, "versions");
- if (version == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
+ public Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ String version,
+ ComponentVersionInner body,
+ Context context) {
+ Response inner =
+ this
+ .serviceClient()
+ .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, version, body, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new ComponentVersionImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
}
- this.deleteWithResponse(resourceGroupName, workspaceName, name, version, Context.NONE);
}
- public Response deleteByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = Utils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = Utils.getValueFromIdByName(id, "components");
- if (name == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'components'.", id)));
- }
- String version = Utils.getValueFromIdByName(id, "versions");
- if (version == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
+ public ComponentVersion createOrUpdate(
+ String resourceGroupName, String workspaceName, String name, String version, ComponentVersionInner body) {
+ ComponentVersionInner inner =
+ this.serviceClient().createOrUpdate(resourceGroupName, workspaceName, name, version, body);
+ if (inner != null) {
+ return new ComponentVersionImpl(inner, this.manager());
+ } else {
+ return null;
}
- return this.deleteWithResponse(resourceGroupName, workspaceName, name, version, context);
}
private ComponentVersionsClient serviceClient() {
@@ -222,8 +123,4 @@ private ComponentVersionsClient serviceClient() {
private com.azure.resourcemanager.machinelearning.MachineLearningManager manager() {
return this.serviceManager;
}
-
- public ComponentVersionImpl define(String name) {
- return new ComponentVersionImpl(name, this.manager());
- }
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComputesClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComputesClientImpl.java
index 1502a033768b..22f51788a2a7 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
@@ -51,29 +51,28 @@ 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")
public interface ComputesService {
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
- + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> list(
@@ -88,8 +87,7 @@ Mono> list(
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
- + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> get(
@@ -104,8 +102,7 @@ Mono> get(
@Headers({"Content-Type: application/json"})
@Put(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
- + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}")
@ExpectedResponses({200, 201})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> createOrUpdate(
@@ -121,8 +118,7 @@ Mono>> createOrUpdate(
@Headers({"Content-Type: application/json"})
@Patch(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
- + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> update(
@@ -138,8 +134,7 @@ Mono>> update(
@Headers({"Content-Type: application/json"})
@Delete(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
- + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}")
@ExpectedResponses({200, 202, 204})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> delete(
@@ -155,8 +150,7 @@ Mono>> delete(
@Headers({"Content-Type: application/json"})
@Post(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
- + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/listNodes")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/listNodes")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listNodes(
@@ -171,8 +165,7 @@ Mono> listNodes(
@Headers({"Content-Type: application/json"})
@Post(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
- + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/listKeys")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/listKeys")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listKeys(
@@ -187,8 +180,7 @@ Mono> listKeys(
@Headers({"Content-Type: application/json"})
@Post(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
- + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/start")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/start")
@ExpectedResponses({202})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono