diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/CHANGELOG.md b/sdk/machinelearning/azure-resourcemanager-machinelearning/CHANGELOG.md
index 22cf70d8f2233..40c9949b07449 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-09-29)
+
+- Azure Resource Manager Machine Learning client library for Java. This package contains Microsoft Azure SDK for Machine Learning Management SDK. These APIs allow end users to operate on Azure Machine Learning Workspace resources. Package tag package-preview-2023-08. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Features Added
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/README.md b/sdk/machinelearning/azure-resourcemanager-machinelearning/README.md
index 1521aeacd892d..3be77035c8709 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/README.md
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager Machine Learning client library for Java.
-This package contains Microsoft Azure SDK for Machine Learning Management SDK. These APIs allow end users to operate on Azure Machine Learning Workspace resources. Package tag package-2022-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for Machine Learning Management SDK. These APIs allow end users to operate on Azure Machine Learning Workspace resources. Package tag package-preview-2023-08. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-machinelearning
- 1.0.0
+ 1.1.0-beta.1
```
[//]: # ({x-version-update-end})
@@ -74,6 +74,49 @@ See [API design][design] for general introduction on design and key concepts on
## Examples
+```java
+workspace = machineLearningManager.workspaces()
+ .define(workspaceName)
+ .withExistingResourceGroup(resourceGroupName)
+ .withRegion(REGION)
+ .withSku(new Sku().withName("Basic").withTier(SkuTier.BASIC))
+ .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED))
+ .withFriendlyName(workspaceName)
+ .withStorageAccount(
+ storageManager.storageAccounts()
+ .define(storageName)
+ .withRegion(REGION)
+ .withExistingResourceGroup(resourceGroupName)
+ .withSku(StorageAccountSkuType.STANDARD_LRS)
+ .withMinimumTlsVersion(MinimumTlsVersion.TLS1_0)
+ .withHnsEnabled(false)
+ .withAccessFromAzureServices()
+ .withOnlyHttpsTraffic()
+ .withBlobStorageAccountKind().withAccessTier(AccessTier.HOT)
+ .create()
+ .id())
+ .withKeyVault(
+ keyVaultManager.vaults()
+ .define(keyVaultName)
+ .withRegion(REGION)
+ .withExistingResourceGroup(resourceGroupName)
+ .withEmptyAccessPolicy()
+ .withSku(SkuName.STANDARD)
+ .withDeploymentDisabled()
+ .withAccessFromAllNetworks()
+ .create()
+ .id())
+ .withApplicationInsights(
+ applicationInsightsManager.components()
+ .define(insightName)
+ .withRegion(REGION)
+ .withExistingResourceGroup(resourceGroupName)
+ .withKind("web")
+ .withApplicationType(ApplicationType.WEB)
+ .create()
+ .id())
+ .create();
+```
[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/machinelearning/azure-resourcemanager-machinelearning/SAMPLE.md)
@@ -103,3 +146,5 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
[coc]: https://opensource.microsoft.com/codeofconduct/
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
+
+![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-java%2Fsdk%2Fmachinelearning%2Fazure-resourcemanager-machinelearning%2FREADME.png)
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/SAMPLE.md b/sdk/machinelearning/azure-resourcemanager-machinelearning/SAMPLE.md
index aace5155fc337..1b3ff68797abe 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/SAMPLE.md
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/SAMPLE.md
@@ -18,6 +18,15 @@
- [ListKeys](#batchendpoints_listkeys)
- [Update](#batchendpoints_update)
+## CapacityReservationGroups
+
+- [CreateOrUpdate](#capacityreservationgroups_createorupdate)
+- [Delete](#capacityreservationgroups_delete)
+- [GetByResourceGroup](#capacityreservationgroups_getbyresourcegroup)
+- [List](#capacityreservationgroups_list)
+- [ListByResourceGroup](#capacityreservationgroups_listbyresourcegroup)
+- [Update](#capacityreservationgroups_update)
+
## CodeContainers
- [CreateOrUpdate](#codecontainers_createorupdate)
@@ -27,6 +36,7 @@
## CodeVersions
+- [CreateOrGetStartPendingUpload](#codeversions_createorgetstartpendingupload)
- [CreateOrUpdate](#codeversions_createorupdate)
- [Delete](#codeversions_delete)
- [Get](#codeversions_get)
@@ -51,13 +61,17 @@
- [CreateOrUpdate](#compute_createorupdate)
- [Delete](#compute_delete)
- [Get](#compute_get)
+- [GetAllowedResizeSizes](#compute_getallowedresizesizes)
- [List](#compute_list)
- [ListKeys](#compute_listkeys)
- [ListNodes](#compute_listnodes)
+- [Resize](#compute_resize)
- [Restart](#compute_restart)
- [Start](#compute_start)
- [Stop](#compute_stop)
- [Update](#compute_update)
+- [UpdateCustomServices](#compute_updatecustomservices)
+- [UpdateIdleShutdownSetting](#compute_updateidleshutdownsetting)
## DataContainers
@@ -95,6 +109,68 @@
- [Get](#environmentversions_get)
- [List](#environmentversions_list)
+## Features
+
+- [Get](#features_get)
+- [List](#features_list)
+
+## FeaturesetContainers
+
+- [CreateOrUpdate](#featuresetcontainers_createorupdate)
+- [Delete](#featuresetcontainers_delete)
+- [GetEntity](#featuresetcontainers_getentity)
+- [List](#featuresetcontainers_list)
+
+## FeaturesetVersions
+
+- [Backfill](#featuresetversions_backfill)
+- [CreateOrUpdate](#featuresetversions_createorupdate)
+- [Delete](#featuresetversions_delete)
+- [Get](#featuresetversions_get)
+- [List](#featuresetversions_list)
+
+## FeaturestoreEntityContainers
+
+- [CreateOrUpdate](#featurestoreentitycontainers_createorupdate)
+- [Delete](#featurestoreentitycontainers_delete)
+- [GetEntity](#featurestoreentitycontainers_getentity)
+- [List](#featurestoreentitycontainers_list)
+
+## FeaturestoreEntityVersions
+
+- [CreateOrUpdate](#featurestoreentityversions_createorupdate)
+- [Delete](#featurestoreentityversions_delete)
+- [Get](#featurestoreentityversions_get)
+- [List](#featurestoreentityversions_list)
+
+## InferenceEndpoints
+
+- [CreateOrUpdate](#inferenceendpoints_createorupdate)
+- [Delete](#inferenceendpoints_delete)
+- [Get](#inferenceendpoints_get)
+- [List](#inferenceendpoints_list)
+- [Update](#inferenceendpoints_update)
+
+## InferenceGroups
+
+- [CreateOrUpdate](#inferencegroups_createorupdate)
+- [Delete](#inferencegroups_delete)
+- [Get](#inferencegroups_get)
+- [GetStatus](#inferencegroups_getstatus)
+- [List](#inferencegroups_list)
+- [ListSkus](#inferencegroups_listskus)
+- [Update](#inferencegroups_update)
+
+## InferencePools
+
+- [CreateOrUpdate](#inferencepools_createorupdate)
+- [Delete](#inferencepools_delete)
+- [Get](#inferencepools_get)
+- [GetStatus](#inferencepools_getstatus)
+- [List](#inferencepools_list)
+- [ListSkus](#inferencepools_listskus)
+- [Update](#inferencepools_update)
+
## Jobs
- [Cancel](#jobs_cancel)
@@ -102,6 +178,28 @@
- [Delete](#jobs_delete)
- [Get](#jobs_get)
- [List](#jobs_list)
+- [Update](#jobs_update)
+
+## LabelingJobs
+
+- [CreateOrUpdate](#labelingjobs_createorupdate)
+- [Delete](#labelingjobs_delete)
+- [ExportLabels](#labelingjobs_exportlabels)
+- [Get](#labelingjobs_get)
+- [List](#labelingjobs_list)
+- [Pause](#labelingjobs_pause)
+- [Resume](#labelingjobs_resume)
+
+## ManagedNetworkProvisions
+
+- [ProvisionManagedNetwork](#managednetworkprovisions_provisionmanagednetwork)
+
+## ManagedNetworkSettingsRule
+
+- [CreateOrUpdate](#managednetworksettingsrule_createorupdate)
+- [Delete](#managednetworksettingsrule_delete)
+- [Get](#managednetworksettingsrule_get)
+- [List](#managednetworksettingsrule_list)
## ModelContainers
@@ -116,6 +214,7 @@
- [Delete](#modelversions_delete)
- [Get](#modelversions_get)
- [List](#modelversions_list)
+- [PackageMethod](#modelversions_packagemethod)
## OnlineDeployments
@@ -158,6 +257,90 @@
- [List](#quotas_list)
- [Update](#quotas_update)
+## Registries
+
+- [CreateOrUpdate](#registries_createorupdate)
+- [Delete](#registries_delete)
+- [GetByResourceGroup](#registries_getbyresourcegroup)
+- [List](#registries_list)
+- [ListByResourceGroup](#registries_listbyresourcegroup)
+- [RemoveRegions](#registries_removeregions)
+- [Update](#registries_update)
+
+## RegistryCodeContainers
+
+- [CreateOrUpdate](#registrycodecontainers_createorupdate)
+- [Delete](#registrycodecontainers_delete)
+- [Get](#registrycodecontainers_get)
+- [List](#registrycodecontainers_list)
+
+## RegistryCodeVersions
+
+- [CreateOrGetStartPendingUpload](#registrycodeversions_createorgetstartpendingupload)
+- [CreateOrUpdate](#registrycodeversions_createorupdate)
+- [Delete](#registrycodeversions_delete)
+- [Get](#registrycodeversions_get)
+- [List](#registrycodeversions_list)
+
+## RegistryComponentContainers
+
+- [CreateOrUpdate](#registrycomponentcontainers_createorupdate)
+- [Delete](#registrycomponentcontainers_delete)
+- [Get](#registrycomponentcontainers_get)
+- [List](#registrycomponentcontainers_list)
+
+## RegistryComponentVersions
+
+- [CreateOrUpdate](#registrycomponentversions_createorupdate)
+- [Delete](#registrycomponentversions_delete)
+- [Get](#registrycomponentversions_get)
+- [List](#registrycomponentversions_list)
+
+## RegistryDataContainers
+
+- [CreateOrUpdate](#registrydatacontainers_createorupdate)
+- [Delete](#registrydatacontainers_delete)
+- [Get](#registrydatacontainers_get)
+- [List](#registrydatacontainers_list)
+
+## RegistryDataVersions
+
+- [CreateOrGetStartPendingUpload](#registrydataversions_createorgetstartpendingupload)
+- [CreateOrUpdate](#registrydataversions_createorupdate)
+- [Delete](#registrydataversions_delete)
+- [Get](#registrydataversions_get)
+- [List](#registrydataversions_list)
+
+## RegistryEnvironmentContainers
+
+- [CreateOrUpdate](#registryenvironmentcontainers_createorupdate)
+- [Delete](#registryenvironmentcontainers_delete)
+- [Get](#registryenvironmentcontainers_get)
+- [List](#registryenvironmentcontainers_list)
+
+## RegistryEnvironmentVersions
+
+- [CreateOrUpdate](#registryenvironmentversions_createorupdate)
+- [Delete](#registryenvironmentversions_delete)
+- [Get](#registryenvironmentversions_get)
+- [List](#registryenvironmentversions_list)
+
+## RegistryModelContainers
+
+- [CreateOrUpdate](#registrymodelcontainers_createorupdate)
+- [Delete](#registrymodelcontainers_delete)
+- [Get](#registrymodelcontainers_get)
+- [List](#registrymodelcontainers_list)
+
+## RegistryModelVersions
+
+- [CreateOrGetStartPendingUpload](#registrymodelversions_createorgetstartpendingupload)
+- [CreateOrUpdate](#registrymodelversions_createorupdate)
+- [Delete](#registrymodelversions_delete)
+- [Get](#registrymodelversions_get)
+- [List](#registrymodelversions_list)
+- [PackageMethod](#registrymodelversions_packagemethod)
+
## Schedules
- [CreateOrUpdate](#schedules_createorupdate)
@@ -165,6 +348,17 @@
- [Get](#schedules_get)
- [List](#schedules_list)
+## ServerlessEndpoints
+
+- [CreateOrUpdate](#serverlessendpoints_createorupdate)
+- [Delete](#serverlessendpoints_delete)
+- [Get](#serverlessendpoints_get)
+- [GetStatus](#serverlessendpoints_getstatus)
+- [List](#serverlessendpoints_list)
+- [ListKeys](#serverlessendpoints_listkeys)
+- [RegenerateKeys](#serverlessendpoints_regeneratekeys)
+- [Update](#serverlessendpoints_update)
+
## Usages
- [List](#usages_list)
@@ -179,6 +373,9 @@
- [Delete](#workspaceconnections_delete)
- [Get](#workspaceconnections_get)
- [List](#workspaceconnections_list)
+- [ListSecrets](#workspaceconnections_listsecrets)
+- [TestConnection](#workspaceconnections_testconnection)
+- [Update](#workspaceconnections_update)
## WorkspaceFeatures
@@ -225,14 +422,14 @@ import java.util.Map;
/** Samples for BatchDeployments CreateOrUpdate. */
public final class BatchDeploymentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/BatchDeployment/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/BatchDeployment/createOrUpdate.json
*/
/**
- * Sample code: CreateOrUpdate Batch Deployment.
+ * Sample code: CreateOrUpdate Workspace Batch Deployment.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateBatchDeployment(
+ public static void createOrUpdateWorkspaceBatchDeployment(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) throws IOException {
manager
.batchDeployments()
@@ -285,6 +482,7 @@ public final class BatchDeploymentsCreateOrUpdateSamples {
.create();
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -304,14 +502,15 @@ public final class BatchDeploymentsCreateOrUpdateSamples {
/** Samples for BatchDeployments Delete. */
public final class BatchDeploymentsDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/BatchDeployment/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/BatchDeployment/delete.json
*/
/**
- * Sample code: Delete Batch Deployment.
+ * Sample code: Delete Workspace Batch Deployment.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteBatchDeployment(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void deleteWorkspaceBatchDeployment(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.batchDeployments()
.delete(
@@ -330,14 +529,15 @@ public final class BatchDeploymentsDeleteSamples {
/** Samples for BatchDeployments Get. */
public final class BatchDeploymentsGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/BatchDeployment/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/BatchDeployment/get.json
*/
/**
- * Sample code: Get Batch Deployment.
+ * Sample code: Get Workspace Batch Deployment.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getBatchDeployment(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void getWorkspaceBatchDeployment(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.batchDeployments()
.getWithResponse(
@@ -356,14 +556,15 @@ public final class BatchDeploymentsGetSamples {
/** Samples for BatchDeployments List. */
public final class BatchDeploymentsListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/BatchDeployment/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/BatchDeployment/list.json
*/
/**
- * Sample code: List Batch Deployment.
+ * Sample code: List Workspace Batch Deployment.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listBatchDeployment(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void listWorkspaceBatchDeployment(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.batchDeployments()
.list(
@@ -383,14 +584,15 @@ import java.util.Map;
/** Samples for BatchDeployments Update. */
public final class BatchDeploymentsUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/BatchDeployment/update.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/BatchDeployment/update.json
*/
/**
- * Sample code: Update Batch Deployment.
+ * Sample code: Update Workspace Batch Deployment.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void updateBatchDeployment(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void updateWorkspaceBatchDeployment(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
BatchDeployment resource =
manager
.batchDeployments()
@@ -408,6 +610,7 @@ public final class BatchDeploymentsUpdateSamples {
.apply();
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -438,14 +641,14 @@ import java.util.Map;
/** Samples for BatchEndpoints CreateOrUpdate. */
public final class BatchEndpointsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/BatchEndpoint/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/BatchEndpoint/createOrUpdate.json
*/
/**
- * Sample code: CreateOrUpdate Batch Endpoint.
+ * Sample code: CreateOrUpdate Workspace Batch Endpoint.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateBatchEndpoint(
+ public static void createOrUpdateWorkspaceBatchEndpoint(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.batchEndpoints()
@@ -474,6 +677,7 @@ public final class BatchEndpointsCreateOrUpdateSamples {
.create();
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -493,14 +697,15 @@ public final class BatchEndpointsCreateOrUpdateSamples {
/** Samples for BatchEndpoints Delete. */
public final class BatchEndpointsDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/BatchEndpoint/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/BatchEndpoint/delete.json
*/
/**
- * Sample code: Delete Batch Endpoint.
+ * Sample code: Delete Workspace Batch Endpoint.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteBatchEndpoint(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void deleteWorkspaceBatchEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.batchEndpoints()
.delete("resourceGroup-1234", "testworkspace", "testBatchEndpoint", com.azure.core.util.Context.NONE);
@@ -514,14 +719,15 @@ public final class BatchEndpointsDeleteSamples {
/** Samples for BatchEndpoints Get. */
public final class BatchEndpointsGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/BatchEndpoint/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/BatchEndpoint/get.json
*/
/**
- * Sample code: Get Batch Endpoint.
+ * Sample code: Get Workspace Batch Endpoint.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getBatchEndpoint(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void getWorkspaceBatchEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.batchEndpoints()
.getWithResponse("test-rg", "my-aml-workspace", "testEndpointName", com.azure.core.util.Context.NONE);
@@ -535,14 +741,15 @@ public final class BatchEndpointsGetSamples {
/** Samples for BatchEndpoints List. */
public final class BatchEndpointsListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/BatchEndpoint/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/BatchEndpoint/list.json
*/
/**
- * Sample code: List Batch Endpoint.
+ * Sample code: List Workspace Batch Endpoint.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listBatchEndpoint(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void listWorkspaceBatchEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.batchEndpoints().list("test-rg", "my-aml-workspace", 1, null, com.azure.core.util.Context.NONE);
}
}
@@ -554,14 +761,15 @@ public final class BatchEndpointsListSamples {
/** Samples for BatchEndpoints ListKeys. */
public final class BatchEndpointsListKeysSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/BatchEndpoint/listKeys.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/BatchEndpoint/listKeys.json
*/
/**
- * Sample code: ListKeys Batch Endpoint.
+ * Sample code: ListKeys Workspace Batch Endpoint.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listKeysBatchEndpoint(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void listKeysWorkspaceBatchEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.batchEndpoints()
.listKeysWithResponse("test-rg", "my-aml-workspace", "testEndpointName", com.azure.core.util.Context.NONE);
@@ -584,15 +792,15 @@ import java.util.Map;
/** Samples for BatchEndpoints Update. */
public final class BatchEndpointsUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/BatchEndpoint/update.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/BatchEndpoint/update.json
*/
/**
- * Sample code: Update Batch Endpoint.
+ * Sample code: Update Workspace Batch Endpoint.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void updateBatchEndpoint(com.azure.resourcemanager.machinelearning.MachineLearningManager manager)
- throws IOException {
+ public static void updateWorkspaceBatchEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) throws IOException {
BatchEndpoint resource =
manager
.batchEndpoints()
@@ -613,6 +821,7 @@ public final class BatchEndpointsUpdateSamples {
.apply();
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -626,36 +835,57 @@ public final class BatchEndpointsUpdateSamples {
}
```
-### CodeContainers_CreateOrUpdate
+### CapacityReservationGroups_CreateOrUpdate
```java
-import com.azure.resourcemanager.machinelearning.models.CodeContainerProperties;
+import com.azure.resourcemanager.machinelearning.models.CapacityReservationGroupProperties;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.machinelearning.models.ServerlessOffer;
+import com.azure.resourcemanager.machinelearning.models.Sku;
+import com.azure.resourcemanager.machinelearning.models.SkuTier;
+import com.azure.resourcemanager.machinelearning.models.UserAssignedIdentity;
import java.util.HashMap;
import java.util.Map;
-/** Samples for CodeContainers CreateOrUpdate. */
-public final class CodeContainersCreateOrUpdateSamples {
+/** Samples for CapacityReservationGroups CreateOrUpdate. */
+public final class CapacityReservationGroupsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/CodeContainer/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/CapacityReservationGroup/createOrUpdate.json
*/
/**
- * Sample code: CreateOrUpdate Code Container.
+ * Sample code: CreateOrUpdate Capacity Reservation Group.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateCodeContainer(
+ public static void createOrUpdateCapacityReservationGroup(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .codeContainers()
- .define("testContainer")
- .withExistingWorkspace("testrg123", "testworkspace")
+ .capacityReservationGroups()
+ .define("string")
+ .withRegion("string")
+ .withExistingResourceGroup("test-rg")
.withProperties(
- new CodeContainerProperties()
- .withDescription("string")
- .withTags(mapOf("tag1", "value1", "tag2", "value2")))
+ new CapacityReservationGroupProperties()
+ .withOffer(new ServerlessOffer().withOfferName("string").withPublisher("string"))
+ .withReservedCapacity(1))
+ .withTags(mapOf())
+ .withIdentity(
+ new ManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
+ .withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withKind("string")
+ .withSku(
+ new Sku()
+ .withName("string")
+ .withTier(SkuTier.PREMIUM)
+ .withSize("string")
+ .withFamily("string")
+ .withCapacity(1))
.create();
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -669,100 +899,144 @@ public final class CodeContainersCreateOrUpdateSamples {
}
```
-### CodeContainers_Delete
+### CapacityReservationGroups_Delete
```java
-/** Samples for CodeContainers Delete. */
-public final class CodeContainersDeleteSamples {
+/** Samples for CapacityReservationGroups Delete. */
+public final class CapacityReservationGroupsDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/CodeContainer/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/CapacityReservationGroup/delete.json
*/
/**
- * Sample code: Delete Code Container.
+ * Sample code: Delete Capacity Reservation Group.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteCodeContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void deleteCapacityReservationGroup(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .codeContainers()
- .deleteWithResponse("testrg123", "testworkspace", "testContainer", com.azure.core.util.Context.NONE);
+ .capacityReservationGroups()
+ .deleteByResourceGroupWithResponse("test-rg", "string", com.azure.core.util.Context.NONE);
}
}
```
-### CodeContainers_Get
+### CapacityReservationGroups_GetByResourceGroup
```java
-/** Samples for CodeContainers Get. */
-public final class CodeContainersGetSamples {
+/** Samples for CapacityReservationGroups GetByResourceGroup. */
+public final class CapacityReservationGroupsGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/CodeContainer/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/CapacityReservationGroup/get.json
*/
/**
- * Sample code: Get Code Container.
+ * Sample code: Get Capacity Reservation Group.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getCodeContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void getCapacityReservationGroup(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .codeContainers()
- .getWithResponse("testrg123", "testworkspace", "testContainer", com.azure.core.util.Context.NONE);
+ .capacityReservationGroups()
+ .getByResourceGroupWithResponse("test-rg", "string", com.azure.core.util.Context.NONE);
}
}
```
-### CodeContainers_List
+### CapacityReservationGroups_List
```java
-/** Samples for CodeContainers List. */
-public final class CodeContainersListSamples {
+/** Samples for CapacityReservationGroups List. */
+public final class CapacityReservationGroupsListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/CodeContainer/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/CapacityReservationGroup/listBySubscription.json
*/
/**
- * Sample code: List Code Container.
+ * Sample code: ListBySubscription Capacity Reservation Group.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listCodeContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.codeContainers().list("testrg123", "testworkspace", null, com.azure.core.util.Context.NONE);
+ public static void listBySubscriptionCapacityReservationGroup(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.capacityReservationGroups().list(null, com.azure.core.util.Context.NONE);
}
}
```
-### CodeVersions_CreateOrUpdate
+### CapacityReservationGroups_ListByResourceGroup
```java
-import com.azure.resourcemanager.machinelearning.models.CodeVersionProperties;
+/** Samples for CapacityReservationGroups ListByResourceGroup. */
+public final class CapacityReservationGroupsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/CapacityReservationGroup/list.json
+ */
+ /**
+ * Sample code: List Capacity Reservation Group.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listCapacityReservationGroup(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.capacityReservationGroups().listByResourceGroup("test-rg", null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### CapacityReservationGroups_Update
+
+```java
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.machinelearning.models.CapacityReservationGroup;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.machinelearning.models.PartialManagedServiceIdentity;
+import com.azure.resourcemanager.machinelearning.models.PartialSku;
+import com.azure.resourcemanager.machinelearning.models.SkuTier;
+import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
-/** Samples for CodeVersions CreateOrUpdate. */
-public final class CodeVersionsCreateOrUpdateSamples {
+/** Samples for CapacityReservationGroups Update. */
+public final class CapacityReservationGroupsUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/CodeVersion/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/CapacityReservationGroup/update.json
*/
/**
- * Sample code: CreateOrUpdate Code Version.
+ * Sample code: Update Capacity Reservation Group.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateCodeVersion(
- 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();
+ public static void updateCapacityReservationGroup(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) throws IOException {
+ CapacityReservationGroup resource =
+ manager
+ .capacityReservationGroups()
+ .getByResourceGroupWithResponse("test-rg", "string", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withTags(mapOf())
+ .withIdentity(
+ new PartialManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
+ .withUserAssignedIdentities(
+ mapOf(
+ "string",
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize("{}", Object.class, SerializerEncoding.JSON))))
+ .withSku(
+ new PartialSku()
+ .withCapacity(1)
+ .withFamily("string")
+ .withName("string")
+ .withSize("string")
+ .withTier(SkuTier.STANDARD))
+ .apply();
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -776,149 +1050,364 @@ public final class CodeVersionsCreateOrUpdateSamples {
}
```
-### CodeVersions_Delete
+### CodeContainers_CreateOrUpdate
```java
-/** Samples for CodeVersions Delete. */
-public final class CodeVersionsDeleteSamples {
+import com.azure.resourcemanager.machinelearning.fluent.models.CodeContainerInner;
+import com.azure.resourcemanager.machinelearning.models.CodeContainerProperties;
+import java.util.HashMap;
+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/CodeVersion/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/CodeContainer/createOrUpdate.json
*/
/**
- * Sample code: Delete Code Version.
+ * Sample code: CreateOrUpdate Workspace Code Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteCodeVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void createOrUpdateWorkspaceCodeContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .codeVersions()
- .deleteWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
+ .codeContainers()
+ .createOrUpdateWithResponse(
+ "testrg123",
+ "testworkspace",
+ "testContainer",
+ new CodeContainerInner()
+ .withProperties(
+ new CodeContainerProperties()
+ .withDescription("string")
+ .withTags(mapOf("tag1", "value1", "tag2", "value2"))),
+ com.azure.core.util.Context.NONE);
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ 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;
}
}
```
-### CodeVersions_Get
+### CodeContainers_Delete
```java
-/** Samples for CodeVersions Get. */
-public final class CodeVersionsGetSamples {
+/** Samples for CodeContainers Delete. */
+public final class CodeContainersDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/CodeVersion/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/CodeContainer/delete.json
*/
/**
- * Sample code: Get Code Version.
+ * Sample code: Delete Workspace Code Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getCodeVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void deleteWorkspaceCodeContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .codeVersions()
- .getWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
+ .codeContainers()
+ .deleteWithResponse("testrg123", "testworkspace", "testContainer", com.azure.core.util.Context.NONE);
}
}
```
-### CodeVersions_List
+### CodeContainers_Get
```java
-/** Samples for CodeVersions List. */
-public final class CodeVersionsListSamples {
+/** Samples for CodeContainers Get. */
+public final class CodeContainersGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/CodeVersion/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/CodeContainer/get.json
*/
/**
- * Sample code: List Code Version.
+ * Sample code: Get Workspace Code Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listCodeVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void getWorkspaceCodeContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .codeVersions()
- .list("test-rg", "my-aml-workspace", "string", "string", 1, null, com.azure.core.util.Context.NONE);
+ .codeContainers()
+ .getWithResponse("testrg123", "testworkspace", "testContainer", com.azure.core.util.Context.NONE);
}
}
```
-### ComponentContainers_CreateOrUpdate
+### CodeContainers_List
```java
-import com.azure.resourcemanager.machinelearning.models.ComponentContainerProperties;
-import java.util.HashMap;
-import java.util.Map;
-
-/** Samples for ComponentContainers CreateOrUpdate. */
-public final class ComponentContainersCreateOrUpdateSamples {
+/** Samples for CodeContainers List. */
+public final class CodeContainersListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ComponentContainer/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/CodeContainer/list.json
*/
/**
- * Sample code: CreateOrUpdate Component Container.
+ * Sample code: List Workspace Code Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateComponentContainer(
+ public static void listWorkspaceCodeContainer(
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();
- }
-
- @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;
+ manager.codeContainers().list("testrg123", "testworkspace", null, com.azure.core.util.Context.NONE);
}
}
```
-### ComponentContainers_Delete
+### CodeVersions_CreateOrGetStartPendingUpload
```java
-/** Samples for ComponentContainers Delete. */
-public final class ComponentContainersDeleteSamples {
+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/2022-10-01/examples/ComponentContainer/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/CodeVersion/createOrGetStartPendingUpload.json
*/
/**
- * Sample code: Delete Component Container.
+ * Sample code: CreateOrGetStartPendingUpload Workspace Code Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteComponentContainer(
+ public static void createOrGetStartPendingUploadWorkspaceCodeVersion(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .componentContainers()
- .deleteWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ .codeVersions()
+ .createOrGetStartPendingUploadWithResponse(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ "string",
+ new PendingUploadRequestDto()
+ .withPendingUploadId("string")
+ .withPendingUploadType(PendingUploadType.TEMPORARY_BLOB_REFERENCE),
+ com.azure.core.util.Context.NONE);
}
}
```
-### ComponentContainers_Get
+### 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;
+
+/** Samples for CodeVersions CreateOrUpdate. */
+public final class CodeVersionsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/CodeVersion/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Workspace Code Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateWorkspaceCodeVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .codeVersions()
+ .createOrUpdateWithResponse(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ "string",
+ new CodeVersionInner()
+ .withProperties(
+ new CodeVersionProperties()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsAnonymous(false)
+ .withCodeUri("fakeTokenPlaceholder")),
+ com.azure.core.util.Context.NONE);
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ 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;
+ }
+}
+```
+
+### CodeVersions_Delete
+
+```java
+/** Samples for CodeVersions Delete. */
+public final class CodeVersionsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/CodeVersion/delete.json
+ */
+ /**
+ * Sample code: Delete Workspace Code Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ 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);
+ }
+}
+```
+
+### CodeVersions_Get
+
+```java
+/** Samples for CodeVersions Get. */
+public final class CodeVersionsGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/CodeVersion/get.json
+ */
+ /**
+ * Sample code: Get Workspace Code Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ 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);
+ }
+}
+```
+
+### CodeVersions_List
+
+```java
+/** Samples for CodeVersions List. */
+public final class CodeVersionsListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/CodeVersion/list.json
+ */
+ /**
+ * Sample code: List Workspace Code Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listWorkspaceCodeVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .codeVersions()
+ .list(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ "string",
+ 1,
+ null,
+ null,
+ null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### 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;
+
+/** Samples for ComponentContainers CreateOrUpdate. */
+public final class ComponentContainersCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ComponentContainer/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Workspace Component Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateWorkspaceComponentContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .componentContainers()
+ .createOrUpdateWithResponse(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ new ComponentContainerInner()
+ .withProperties(
+ new ComponentContainerProperties()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))),
+ com.azure.core.util.Context.NONE);
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ 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;
+ }
+}
+```
+
+### ComponentContainers_Delete
+
+```java
+/** Samples for ComponentContainers Delete. */
+public final class ComponentContainersDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ComponentContainer/delete.json
+ */
+ /**
+ * Sample code: Delete Workspace Component Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteWorkspaceComponentContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .componentContainers()
+ .deleteWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ComponentContainers_Get
```java
/** Samples for ComponentContainers Get. */
public final class ComponentContainersGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ComponentContainer/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ComponentContainer/get.json
*/
/**
- * Sample code: Get Component Container.
+ * Sample code: Get Workspace Component Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getComponentContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void getWorkspaceComponentContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.componentContainers()
.getWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
@@ -932,14 +1421,14 @@ public final class ComponentContainersGetSamples {
/** Samples for ComponentContainers List. */
public final class ComponentContainersListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ComponentContainer/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ComponentContainer/list.json
*/
/**
- * Sample code: List Component Container.
+ * Sample code: List Workspace Component Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listComponentContainer(
+ public static void listWorkspaceComponentContainer(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.componentContainers().list("test-rg", "my-aml-workspace", null, null, com.azure.core.util.Context.NONE);
}
@@ -951,6 +1440,7 @@ public final class ComponentContainersListSamples {
```java
import com.azure.core.management.serializer.SerializerFactory;
import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.machinelearning.fluent.models.ComponentVersionInner;
import com.azure.resourcemanager.machinelearning.models.ComponentVersionProperties;
import java.io.IOException;
import java.util.HashMap;
@@ -959,35 +1449,40 @@ import java.util.Map;
/** Samples for ComponentVersions CreateOrUpdate. */
public final class ComponentVersionsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ComponentVersion/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ComponentVersion/createOrUpdate.json
*/
/**
- * Sample code: CreateOrUpdate Component Version.
+ * Sample code: CreateOrUpdate Workspace Component Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateComponentVersion(
+ public static void createOrUpdateWorkspaceComponentVersion(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) throws IOException {
manager
.componentVersions()
- .define("string")
- .withExistingComponent("test-rg", "my-aml-workspace", "string")
- .withProperties(
- new ComponentVersionProperties()
- .withDescription("string")
- .withProperties(mapOf("string", "string"))
- .withTags(mapOf("string", "string"))
- .withIsAnonymous(false)
- .withComponentSpec(
- SerializerFactory
- .createDefaultManagementSerializerAdapter()
- .deserialize(
- "{\"8ced901b-d826-477d-bfef-329da9672513\":null}",
- Object.class,
- SerializerEncoding.JSON)))
- .create();
+ .createOrUpdateWithResponse(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ "string",
+ new ComponentVersionInner()
+ .withProperties(
+ new ComponentVersionProperties()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsAnonymous(false)
+ .withComponentSpec(
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize(
+ "{\"8ced901b-d826-477d-bfef-329da9672513\":null}",
+ Object.class,
+ SerializerEncoding.JSON))),
+ com.azure.core.util.Context.NONE);
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -1007,14 +1502,14 @@ public final class ComponentVersionsCreateOrUpdateSamples {
/** Samples for ComponentVersions Delete. */
public final class ComponentVersionsDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ComponentVersion/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ComponentVersion/delete.json
*/
/**
- * Sample code: Delete Component Version.
+ * Sample code: Delete Workspace Component Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteComponentVersion(
+ public static void deleteWorkspaceComponentVersion(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.componentVersions()
@@ -1029,14 +1524,15 @@ public final class ComponentVersionsDeleteSamples {
/** Samples for ComponentVersions Get. */
public final class ComponentVersionsGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ComponentVersion/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ComponentVersion/get.json
*/
/**
- * Sample code: Get Component Version.
+ * Sample code: Get Workspace Component Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getComponentVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void getWorkspaceComponentVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.componentVersions()
.getWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
@@ -1050,17 +1546,27 @@ public final class ComponentVersionsGetSamples {
/** Samples for ComponentVersions List. */
public final class ComponentVersionsListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ComponentVersion/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ComponentVersion/list.json
*/
/**
- * Sample code: List Component Version.
+ * Sample code: List Workspace Component Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listComponentVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void listWorkspaceComponentVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.componentVersions()
- .list("test-rg", "my-aml-workspace", "string", "string", 1, null, null, com.azure.core.util.Context.NONE);
+ .list(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ "string",
+ 1,
+ null,
+ null,
+ null,
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1076,29 +1582,49 @@ import com.azure.resourcemanager.machinelearning.models.ApplicationSharingPolicy
import com.azure.resourcemanager.machinelearning.models.AssignedUser;
import com.azure.resourcemanager.machinelearning.models.ComputeInstance;
import com.azure.resourcemanager.machinelearning.models.ComputeInstanceAuthorizationType;
+import com.azure.resourcemanager.machinelearning.models.ComputeInstanceAutologgerSettings;
import com.azure.resourcemanager.machinelearning.models.ComputeInstanceProperties;
import com.azure.resourcemanager.machinelearning.models.ComputeInstanceSshSettings;
+import com.azure.resourcemanager.machinelearning.models.ComputePowerAction;
+import com.azure.resourcemanager.machinelearning.models.ComputeSchedules;
+import com.azure.resourcemanager.machinelearning.models.ComputeStartStopSchedule;
+import com.azure.resourcemanager.machinelearning.models.ComputeTriggerType;
+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.JupyterKernelConfig;
import com.azure.resourcemanager.machinelearning.models.Kubernetes;
import com.azure.resourcemanager.machinelearning.models.KubernetesProperties;
+import com.azure.resourcemanager.machinelearning.models.MlflowAutologger;
import com.azure.resourcemanager.machinelearning.models.OsType;
import com.azure.resourcemanager.machinelearning.models.PersonalComputeInstanceSettings;
+import com.azure.resourcemanager.machinelearning.models.Protocol;
import com.azure.resourcemanager.machinelearning.models.RemoteLoginPortPublicAccess;
import com.azure.resourcemanager.machinelearning.models.ResourceId;
import com.azure.resourcemanager.machinelearning.models.ScaleSettings;
+import com.azure.resourcemanager.machinelearning.models.ScheduleStatus;
import com.azure.resourcemanager.machinelearning.models.SshPublicAccess;
import com.azure.resourcemanager.machinelearning.models.VirtualMachineImage;
import com.azure.resourcemanager.machinelearning.models.VmPriority;
+import com.azure.resourcemanager.machinelearning.models.VolumeDefinition;
+import com.azure.resourcemanager.machinelearning.models.VolumeDefinitionType;
import java.time.Duration;
+import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
/** Samples for Compute CreateOrUpdate. */
public final class ComputeCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/createOrUpdate/BasicAKSCompute.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/createOrUpdate/BasicAKSCompute.json
*/
/**
* Sample code: Create an AKS Compute.
@@ -1116,7 +1642,7 @@ public final class ComputeCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/createOrUpdate/AKSCompute.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/createOrUpdate/AKSCompute.json
*/
/**
* Sample code: Update an AKS Compute.
@@ -1139,7 +1665,7 @@ public final class ComputeCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/createOrUpdate/KubernetesCompute.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/createOrUpdate/KubernetesCompute.json
*/
/**
* Sample code: Attach a Kubernetes Compute.
@@ -1176,7 +1702,7 @@ public final class ComputeCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/createOrUpdate/ComputeInstanceWithSchedules.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/createOrUpdate/ComputeInstanceWithSchedules.json
*/
/**
* Sample code: Create an ComputeInstance Compute with Schedules.
@@ -1204,12 +1730,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(ComputeTriggerType.CRON)
+ .withCron(
+ new Cron()
+ .withStartTime("2021-04-23T01:30:00")
+ .withTimeZone("Pacific Standard Time")
+ .withExpression("0 18 * * *")))))))
.create();
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/createOrUpdate/BasicAmlCompute.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/createOrUpdate/BasicAmlCompute.json
*/
/**
* Sample code: Create a AML Compute.
@@ -1245,7 +1785,7 @@ public final class ComputeCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/createOrUpdate/ComputeInstance.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/createOrUpdate/ComputeInstance.json
*/
/**
* Sample code: Create an ComputeInstance Compute.
@@ -1266,9 +1806,56 @@ public final class ComputeCreateOrUpdateSamples {
.withVmSize("STANDARD_NC6")
.withSubnet(new ResourceId().withId("test-subnet-resource-id"))
.withApplicationSharingPolicy(ApplicationSharingPolicy.PERSONAL)
+ .withAutologgerSettings(
+ new ComputeInstanceAutologgerSettings().withMlflowAutologger(MlflowAutologger.ENABLED))
.withSshSettings(
new ComputeInstanceSshSettings().withSshPublicAccess(SshPublicAccess.DISABLED))
+ .withCustomServices(
+ Arrays
+ .asList(
+ new CustomService()
+ .withName("rstudio-workbench")
+ .withImage(
+ new Image()
+ .withType(ImageType.DOCKER)
+ .withReference("ghcr.io/azure/rstudio-workbench:latest")
+ .withAdditionalProperties(mapOf()))
+ .withEnvironmentVariables(
+ mapOf(
+ "RSP_LICENSE",
+ new EnvironmentVariable()
+ .withType(EnvironmentVariableType.LOCAL)
+ .withValue("XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX")
+ .withAdditionalProperties(mapOf())))
+ .withDocker(
+ new Docker().withPrivileged(true).withAdditionalProperties(mapOf()))
+ .withEndpoints(
+ Arrays
+ .asList(
+ new Endpoint()
+ .withProtocol(Protocol.HTTP)
+ .withName("connect")
+ .withTarget(8787)
+ .withPublished(4444)))
+ .withVolumes(
+ Arrays
+ .asList(
+ new VolumeDefinition()
+ .withType(VolumeDefinitionType.BIND)
+ .withReadOnly(true)
+ .withSource("/mnt/azureuser/")
+ .withTarget("/home/testuser/")))
+ .withKernel(
+ new JupyterKernelConfig()
+ .withArgv(Arrays.asList("option1", "option2", "option3"))
+ .withDisplayName("TestKernel")
+ .withLanguage("python"))
+ .withAdditionalProperties(mapOf())))
.withComputeInstanceAuthorizationType(ComputeInstanceAuthorizationType.PERSONAL)
+ .withEnableOSPatching(true)
+ .withEnableRootAccess(true)
+ .withEnableSso(true)
+ .withReleaseQuotaOnStop(true)
.withPersonalComputeInstanceSettings(
new PersonalComputeInstanceSettings()
.withAssignedUser(
@@ -1279,7 +1866,7 @@ public final class ComputeCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/createOrUpdate/ComputeInstanceMinimal.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/createOrUpdate/ComputeInstanceMinimal.json
*/
/**
* Sample code: Create an ComputeInstance Compute with minimal inputs.
@@ -1299,7 +1886,7 @@ public final class ComputeCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/createOrUpdate/AmlCompute.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/createOrUpdate/AmlCompute.json
*/
/**
* Sample code: Update a AML Compute.
@@ -1326,7 +1913,7 @@ public final class ComputeCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/createOrUpdate/BasicDataFactoryCompute.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/createOrUpdate/BasicDataFactoryCompute.json
*/
/**
* Sample code: Create a DataFactory Compute.
@@ -1344,6 +1931,7 @@ public final class ComputeCreateOrUpdateSamples {
.create();
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -1365,7 +1953,7 @@ import com.azure.resourcemanager.machinelearning.models.UnderlyingResourceAction
/** Samples for Compute Delete. */
public final class ComputeDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/delete.json
*/
/**
* Sample code: Delete Compute.
@@ -1391,7 +1979,7 @@ public final class ComputeDeleteSamples {
/** Samples for Compute Get. */
public final class ComputeGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/get/AKSCompute.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/get/AKSCompute.json
*/
/**
* Sample code: Get a AKS Compute.
@@ -1405,7 +1993,7 @@ public final class ComputeGetSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/get/KubernetesCompute.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/get/KubernetesCompute.json
*/
/**
* Sample code: Get a Kubernetes Compute.
@@ -1419,7 +2007,7 @@ public final class ComputeGetSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/get/ComputeInstance.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/get/ComputeInstance.json
*/
/**
* Sample code: Get an ComputeInstance.
@@ -1433,7 +2021,7 @@ public final class ComputeGetSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/get/AmlCompute.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/get/AmlCompute.json
*/
/**
* Sample code: Get a AML Compute.
@@ -1448,13 +2036,35 @@ public final class ComputeGetSamples {
}
```
+### Compute_GetAllowedResizeSizes
+
+```java
+/** Samples for Compute GetAllowedResizeSizes. */
+public final class ComputeGetAllowedResizeSizesSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/getAllowedVMSizesForResize.json
+ */
+ /**
+ * Sample code: List VM Sizes.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listVMSizes(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .computes()
+ .getAllowedResizeSizesWithResponse(
+ "testrg123", "workspaces123", "compute123", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### Compute_List
```java
/** Samples for Compute List. */
public final class ComputeListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/list.json
*/
/**
* Sample code: Get Computes.
@@ -1473,7 +2083,7 @@ public final class ComputeListSamples {
/** Samples for Compute ListKeys. */
public final class ComputeListKeysSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/listKeys.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/listKeys.json
*/
/**
* Sample code: List AKS Compute Keys.
@@ -1494,7 +2104,7 @@ public final class ComputeListKeysSamples {
/** Samples for Compute ListNodes. */
public final class ComputeListNodesSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/listNodes.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/listNodes.json
*/
/**
* Sample code: Get compute nodes information for a compute.
@@ -1508,13 +2118,41 @@ public final class ComputeListNodesSamples {
}
```
+### Compute_Resize
+
+```java
+import com.azure.resourcemanager.machinelearning.models.ResizeSchema;
+
+/** Samples for Compute Resize. */
+public final class ComputeResizeSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/resize.json
+ */
+ /**
+ * Sample code: List VM Sizes.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listVMSizes(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .computes()
+ .resize(
+ "testrg123",
+ "workspaces123",
+ "compute123",
+ new ResizeSchema().withTargetVMSize("Standard_DS11_v2"),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### Compute_Restart
```java
/** Samples for Compute Restart. */
public final class ComputeRestartSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/restart.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/restart.json
*/
/**
* Sample code: Restart ComputeInstance Compute.
@@ -1534,7 +2172,7 @@ public final class ComputeRestartSamples {
/** Samples for Compute Start. */
public final class ComputeStartSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/start.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/start.json
*/
/**
* Sample code: Start ComputeInstance Compute.
@@ -1554,7 +2192,7 @@ public final class ComputeStartSamples {
/** Samples for Compute Stop. */
public final class ComputeStopSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/stop.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/stop.json
*/
/**
* Sample code: Stop ComputeInstance Compute.
@@ -1579,7 +2217,7 @@ import java.time.Duration;
/** Samples for Compute Update. */
public final class ComputeUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Compute/patch.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/patch.json
*/
/**
* Sample code: Update a AmlCompute Compute.
@@ -1607,39 +2245,158 @@ public final class ComputeUpdateSamples {
}
```
-### DataContainers_CreateOrUpdate
+### Compute_UpdateCustomServices
```java
-import com.azure.resourcemanager.machinelearning.models.DataContainerProperties;
-import com.azure.resourcemanager.machinelearning.models.DataType;
+import com.azure.resourcemanager.machinelearning.models.CustomService;
+import com.azure.resourcemanager.machinelearning.models.Docker;
+import com.azure.resourcemanager.machinelearning.models.Endpoint;
+import com.azure.resourcemanager.machinelearning.models.EnvironmentVariable;
+import com.azure.resourcemanager.machinelearning.models.EnvironmentVariableType;
+import com.azure.resourcemanager.machinelearning.models.Image;
+import com.azure.resourcemanager.machinelearning.models.ImageType;
+import com.azure.resourcemanager.machinelearning.models.Protocol;
+import com.azure.resourcemanager.machinelearning.models.VolumeDefinition;
+import com.azure.resourcemanager.machinelearning.models.VolumeDefinitionType;
+import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
-/** Samples for DataContainers CreateOrUpdate. */
-public final class DataContainersCreateOrUpdateSamples {
+/** Samples for Compute UpdateCustomServices. */
+public final class ComputeUpdateCustomServicesSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/DataContainer/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/updateCustomServices.json
*/
/**
- * Sample code: CreateOrUpdate Data Container.
+ * Sample code: Update Custom Services.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateDataContainer(
- com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void updateCustomServices(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .dataContainers()
- .define("datacontainer123")
- .withExistingWorkspace("testrg123", "workspace123")
- .withProperties(
- new DataContainerProperties()
- .withDescription("string")
- .withProperties(mapOf("properties1", "value1", "properties2", "value2"))
- .withTags(mapOf("tag1", "value1", "tag2", "value2"))
- .withDataType(DataType.fromString("UriFile")))
- .create();
- }
-
+ .computes()
+ .updateCustomServicesWithResponse(
+ "testrg123",
+ "workspaces123",
+ "compute123",
+ Arrays
+ .asList(
+ new CustomService()
+ .withName("rstudio-workbench")
+ .withImage(
+ new Image()
+ .withType(ImageType.DOCKER)
+ .withReference("ghcr.io/azure/rstudio-workbench:latest")
+ .withAdditionalProperties(mapOf()))
+ .withEnvironmentVariables(
+ mapOf(
+ "RSP_LICENSE",
+ new EnvironmentVariable()
+ .withType(EnvironmentVariableType.LOCAL)
+ .withValue("XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX")
+ .withAdditionalProperties(mapOf())))
+ .withDocker(new Docker().withPrivileged(true).withAdditionalProperties(mapOf()))
+ .withEndpoints(
+ Arrays
+ .asList(
+ new Endpoint()
+ .withProtocol(Protocol.HTTP)
+ .withName("connect")
+ .withTarget(8787)
+ .withPublished(4444)))
+ .withVolumes(
+ Arrays
+ .asList(
+ new VolumeDefinition()
+ .withType(VolumeDefinitionType.BIND)
+ .withReadOnly(true)
+ .withSource("/mnt/azureuser/")
+ .withTarget("/home/testuser/")))
+ .withAdditionalProperties(mapOf())),
+ com.azure.core.util.Context.NONE);
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Compute_UpdateIdleShutdownSetting
+
+```java
+import com.azure.resourcemanager.machinelearning.models.IdleShutdownSetting;
+
+/** Samples for Compute UpdateIdleShutdownSetting. */
+public final class ComputeUpdateIdleShutdownSettingSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Compute/updateIdleShutdownSetting.json
+ */
+ /**
+ * Sample code: Update idle shutdown setting of ComputeInstance.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void updateIdleShutdownSettingOfComputeInstance(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .computes()
+ .updateIdleShutdownSettingWithResponse(
+ "testrg123",
+ "workspaces123",
+ "compute123",
+ new IdleShutdownSetting().withIdleTimeBeforeShutdown("PT120M"),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### DataContainers_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.fluent.models.DataContainerInner;
+import com.azure.resourcemanager.machinelearning.models.DataContainerProperties;
+import com.azure.resourcemanager.machinelearning.models.DataType;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for DataContainers CreateOrUpdate. */
+public final class DataContainersCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/DataContainer/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Workspace Data Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateWorkspaceDataContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .dataContainers()
+ .createOrUpdateWithResponse(
+ "testrg123",
+ "workspace123",
+ "datacontainer123",
+ new DataContainerInner()
+ .withProperties(
+ new DataContainerProperties()
+ .withDescription("string")
+ .withProperties(mapOf("properties1", "value1", "properties2", "value2"))
+ .withTags(mapOf("tag1", "value1", "tag2", "value2"))
+ .withDataType(DataType.fromString("UriFile"))),
+ com.azure.core.util.Context.NONE);
+ }
+
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -1659,14 +2416,15 @@ public final class DataContainersCreateOrUpdateSamples {
/** Samples for DataContainers Delete. */
public final class DataContainersDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/DataContainer/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/DataContainer/delete.json
*/
/**
- * Sample code: Delete Data Container.
+ * Sample code: Delete Workspace Data Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteDataContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void deleteWorkspaceDataContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.dataContainers()
.deleteWithResponse("testrg123", "workspace123", "datacontainer123", com.azure.core.util.Context.NONE);
@@ -1680,14 +2438,15 @@ public final class DataContainersDeleteSamples {
/** Samples for DataContainers Get. */
public final class DataContainersGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/DataContainer/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/DataContainer/get.json
*/
/**
- * Sample code: Get Data Container.
+ * Sample code: Get Workspace Data Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getDataContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void getWorkspaceDataContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.dataContainers()
.getWithResponse("testrg123", "workspace123", "datacontainer123", com.azure.core.util.Context.NONE);
@@ -1701,14 +2460,15 @@ public final class DataContainersGetSamples {
/** Samples for DataContainers List. */
public final class DataContainersListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/DataContainer/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/DataContainer/list.json
*/
/**
- * Sample code: List Data Container.
+ * Sample code: List Workspace Data Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listDataContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void listWorkspaceDataContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.dataContainers().list("testrg123", "workspace123", null, null, com.azure.core.util.Context.NONE);
}
}
@@ -1717,6 +2477,7 @@ public final class DataContainersListSamples {
### DataVersions_CreateOrUpdate
```java
+import com.azure.resourcemanager.machinelearning.fluent.models.DataVersionBaseInner;
import com.azure.resourcemanager.machinelearning.models.UriFileDataVersion;
import java.util.HashMap;
import java.util.Map;
@@ -1724,29 +2485,34 @@ import java.util.Map;
/** Samples for DataVersions CreateOrUpdate. */
public final class DataVersionsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/DataVersionBase/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/DataVersionBase/createOrUpdate.json
*/
/**
- * Sample code: CreateOrUpdate Data Version Base.
+ * Sample code: CreateOrUpdate Workspace Data Version Base.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateDataVersionBase(
+ public static void createOrUpdateWorkspaceDataVersionBase(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.dataVersions()
- .define("string")
- .withExistingData("test-rg", "my-aml-workspace", "string")
- .withProperties(
- new UriFileDataVersion()
- .withDescription("string")
- .withProperties(mapOf("string", "string"))
- .withTags(mapOf("string", "string"))
- .withIsAnonymous(false)
- .withDataUri("string"))
- .create();
+ .createOrUpdateWithResponse(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ "string",
+ new DataVersionBaseInner()
+ .withProperties(
+ new UriFileDataVersion()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsAnonymous(false)
+ .withDataUri("string")),
+ com.azure.core.util.Context.NONE);
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -1766,14 +2532,15 @@ public final class DataVersionsCreateOrUpdateSamples {
/** Samples for DataVersions Delete. */
public final class DataVersionsDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/DataVersionBase/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/DataVersionBase/delete.json
*/
/**
- * Sample code: Delete Data Version Base.
+ * Sample code: Delete Workspace Data Version Base.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteDataVersionBase(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void deleteWorkspaceDataVersionBase(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.dataVersions()
.deleteWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
@@ -1787,14 +2554,15 @@ public final class DataVersionsDeleteSamples {
/** Samples for DataVersions Get. */
public final class DataVersionsGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/DataVersionBase/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/DataVersionBase/get.json
*/
/**
- * Sample code: Get Data Version Base.
+ * Sample code: Get Workspace Data Version Base.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getDataVersionBase(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void getWorkspaceDataVersionBase(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.dataVersions()
.getWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
@@ -1808,14 +2576,15 @@ public final class DataVersionsGetSamples {
/** Samples for DataVersions List. */
public final class DataVersionsListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/DataVersionBase/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/DataVersionBase/list.json
*/
/**
- * Sample code: List Data Version Base.
+ * Sample code: List Workspace Data Version Base.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listDataVersionBase(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void listWorkspaceDataVersionBase(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.dataVersions()
.list(
@@ -1827,6 +2596,7 @@ public final class DataVersionsListSamples {
null,
"string",
null,
+ null,
com.azure.core.util.Context.NONE);
}
}
@@ -1850,7 +2620,7 @@ import java.util.UUID;
/** Samples for Datastores CreateOrUpdate. */
public final class DatastoresCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Datastore/AzureDataLakeGen1WServicePrincipal/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Datastore/AzureDataLakeGen1WServicePrincipal/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate datastore (Azure Data Lake Gen1 w/ ServicePrincipal).
@@ -1881,7 +2651,7 @@ public final class DatastoresCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Datastore/AzureDataLakeGen2WServicePrincipal/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Datastore/AzureDataLakeGen2WServicePrincipal/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate datastore (Azure Data Lake Gen2 w/ Service Principal).
@@ -1915,7 +2685,7 @@ public final class DatastoresCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Datastore/AzureBlobWAccountKey/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Datastore/AzureBlobWAccountKey/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate datastore (AzureBlob w/ AccountKey).
@@ -1944,7 +2714,7 @@ public final class DatastoresCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Datastore/AzureFileWAccountKey/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Datastore/AzureFileWAccountKey/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate datastore (Azure File store w/ AccountKey).
@@ -1972,6 +2742,7 @@ public final class DatastoresCreateOrUpdateSamples {
.create();
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -1991,7 +2762,7 @@ public final class DatastoresCreateOrUpdateSamples {
/** Samples for Datastores Delete. */
public final class DatastoresDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Datastore/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Datastore/delete.json
*/
/**
* Sample code: Delete datastore.
@@ -2012,7 +2783,7 @@ public final class DatastoresDeleteSamples {
/** Samples for Datastores Get. */
public final class DatastoresGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Datastore/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Datastore/get.json
*/
/**
* Sample code: Get datastore.
@@ -2033,7 +2804,7 @@ import java.util.Arrays;
/** Samples for Datastores List. */
public final class DatastoresListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Datastore/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Datastore/list.json
*/
/**
* Sample code: List datastores.
@@ -2064,7 +2835,7 @@ public final class DatastoresListSamples {
/** Samples for Datastores ListSecrets. */
public final class DatastoresListSecretsSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Datastore/listSecrets.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Datastore/listSecrets.json
*/
/**
* Sample code: Get datastore secrets.
@@ -2082,6 +2853,7 @@ public final class DatastoresListSecretsSamples {
### EnvironmentContainers_CreateOrUpdate
```java
+import com.azure.resourcemanager.machinelearning.fluent.models.EnvironmentContainerInner;
import com.azure.resourcemanager.machinelearning.models.EnvironmentContainerProperties;
import java.util.HashMap;
import java.util.Map;
@@ -2089,29 +2861,45 @@ import java.util.Map;
/** Samples for EnvironmentContainers CreateOrUpdate. */
public final class EnvironmentContainersCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/EnvironmentContainer/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/EnvironmentContainer/createOrUpdate.json
*/
/**
- * Sample code: CreateOrUpdate Environment Container.
+ * Sample code: CreateOrUpdate Workspace Environment Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateEnvironmentContainer(
+ public static void createOrUpdateWorkspaceEnvironmentContainer(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.environmentContainers()
- .define("testEnvironment")
- .withExistingWorkspace("testrg123", "testworkspace")
- .withProperties(
- new EnvironmentContainerProperties()
- .withDescription("string")
+ .createOrUpdateWithResponse(
+ "testrg123",
+ "testworkspace",
+ "testEnvironment",
+ new EnvironmentContainerInner()
.withProperties(
- mapOf("additionalProp1", "string", "additionalProp2", "string", "additionalProp3", "string"))
- .withTags(
- mapOf("additionalProp1", "string", "additionalProp2", "string", "additionalProp3", "string")))
- .create();
+ new EnvironmentContainerProperties()
+ .withDescription("string")
+ .withProperties(
+ mapOf(
+ "additionalProp1",
+ "string",
+ "additionalProp2",
+ "string",
+ "additionalProp3",
+ "string"))
+ .withTags(
+ mapOf(
+ "additionalProp1",
+ "string",
+ "additionalProp2",
+ "string",
+ "additionalProp3",
+ "string"))),
+ com.azure.core.util.Context.NONE);
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -2131,14 +2919,14 @@ public final class EnvironmentContainersCreateOrUpdateSamples {
/** Samples for EnvironmentContainers Delete. */
public final class EnvironmentContainersDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/EnvironmentContainer/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/EnvironmentContainer/delete.json
*/
/**
- * Sample code: Delete Environment Container.
+ * Sample code: Delete Workspace Environment Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteEnvironmentContainer(
+ public static void deleteWorkspaceEnvironmentContainer(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.environmentContainers()
@@ -2153,14 +2941,14 @@ public final class EnvironmentContainersDeleteSamples {
/** Samples for EnvironmentContainers Get. */
public final class EnvironmentContainersGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/EnvironmentContainer/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/EnvironmentContainer/get.json
*/
/**
- * Sample code: Get Environment Container.
+ * Sample code: Get Workspace Environment Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getEnvironmentContainer(
+ public static void getWorkspaceEnvironmentContainer(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.environmentContainers()
@@ -2175,14 +2963,14 @@ public final class EnvironmentContainersGetSamples {
/** Samples for EnvironmentContainers List. */
public final class EnvironmentContainersListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/EnvironmentContainer/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/EnvironmentContainer/list.json
*/
/**
- * Sample code: List Environment Container.
+ * Sample code: List Workspace Environment Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listEnvironmentContainer(
+ public static void listWorkspaceEnvironmentContainer(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.environmentContainers()
@@ -2194,6 +2982,7 @@ public final class EnvironmentContainersListSamples {
### EnvironmentVersions_CreateOrUpdate
```java
+import com.azure.resourcemanager.machinelearning.fluent.models.EnvironmentVersionInner;
import com.azure.resourcemanager.machinelearning.models.BuildContext;
import com.azure.resourcemanager.machinelearning.models.EnvironmentVersionProperties;
import com.azure.resourcemanager.machinelearning.models.InferenceContainerProperties;
@@ -2204,40 +2993,45 @@ import java.util.Map;
/** Samples for EnvironmentVersions CreateOrUpdate. */
public final class EnvironmentVersionsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/EnvironmentVersion/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/EnvironmentVersion/createOrUpdate.json
*/
/**
- * Sample code: CreateOrUpdate Environment Version.
+ * Sample code: CreateOrUpdate Workspace Environment Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateEnvironmentVersion(
+ public static void createOrUpdateWorkspaceEnvironmentVersion(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.environmentVersions()
- .define("string")
- .withExistingEnvironment("test-rg", "my-aml-workspace", "string")
- .withProperties(
- new EnvironmentVersionProperties()
- .withDescription("string")
- .withProperties(mapOf("string", "string"))
- .withTags(mapOf("string", "string"))
- .withIsAnonymous(false)
- .withBuild(
- new BuildContext()
- .withContextUri(
- "https://storage-account.blob.core.windows.net/azureml/DockerBuildContext/95ddede6b9b8c4e90472db3acd0a8d28/")
- .withDockerfilePath("prod/Dockerfile"))
- .withCondaFile("string")
- .withImage("docker.io/tensorflow/serving:latest")
- .withInferenceConfig(
- new InferenceContainerProperties()
- .withLivenessRoute(new Route().withPath("string").withPort(1))
- .withReadinessRoute(new Route().withPath("string").withPort(1))
- .withScoringRoute(new Route().withPath("string").withPort(1))))
- .create();
+ .createOrUpdateWithResponse(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ "string",
+ new EnvironmentVersionInner()
+ .withProperties(
+ new EnvironmentVersionProperties()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsAnonymous(false)
+ .withBuild(
+ new BuildContext()
+ .withContextUri(
+ "https://storage-account.blob.core.windows.net/azureml/DockerBuildContext/95ddede6b9b8c4e90472db3acd0a8d28/")
+ .withDockerfilePath("prod/Dockerfile"))
+ .withCondaFile("string")
+ .withImage("docker.io/tensorflow/serving:latest")
+ .withInferenceConfig(
+ new InferenceContainerProperties()
+ .withLivenessRoute(new Route().withPath("string").withPort(1))
+ .withReadinessRoute(new Route().withPath("string").withPort(1))
+ .withScoringRoute(new Route().withPath("string").withPort(1)))),
+ com.azure.core.util.Context.NONE);
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -2257,14 +3051,14 @@ public final class EnvironmentVersionsCreateOrUpdateSamples {
/** Samples for EnvironmentVersions Delete. */
public final class EnvironmentVersionsDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/EnvironmentVersion/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/EnvironmentVersion/delete.json
*/
/**
- * Sample code: Delete Environment Version.
+ * Sample code: Delete Workspace Environment Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteEnvironmentVersion(
+ public static void deleteWorkspaceEnvironmentVersion(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.environmentVersions()
@@ -2279,14 +3073,15 @@ public final class EnvironmentVersionsDeleteSamples {
/** Samples for EnvironmentVersions Get. */
public final class EnvironmentVersionsGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/EnvironmentVersion/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/EnvironmentVersion/get.json
*/
/**
- * Sample code: Get Environment Version.
+ * Sample code: Get Workspace Environment Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getEnvironmentVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void getWorkspaceEnvironmentVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.environmentVersions()
.getWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
@@ -2300,317 +3095,4448 @@ public final class EnvironmentVersionsGetSamples {
/** Samples for EnvironmentVersions List. */
public final class EnvironmentVersionsListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/EnvironmentVersion/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/EnvironmentVersion/list.json
*/
/**
- * Sample code: List Environment Version.
+ * Sample code: List Workspace Environment Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listEnvironmentVersion(
+ public static void listWorkspaceEnvironmentVersion(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.environmentVersions()
- .list("test-rg", "my-aml-workspace", "string", "string", 1, null, null, com.azure.core.util.Context.NONE);
+ .list(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ "string",
+ 1,
+ null,
+ null,
+ null,
+ com.azure.core.util.Context.NONE);
}
}
```
-### Jobs_Cancel
+### Features_Get
```java
-/** Samples for Jobs Cancel. */
-public final class JobsCancelSamples {
+/** Samples for Features Get. */
+public final class FeaturesGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/cancel.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Feature/get.json
*/
/**
- * Sample code: Cancel Job.
+ * Sample code: Get Feature.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void cancelJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.jobs().cancel("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ public static void getFeature(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .features()
+ .getWithResponse(
+ "test-rg", "my-aml-workspace", "string", "string", "string", com.azure.core.util.Context.NONE);
}
}
```
-### Jobs_CreateOrUpdate
+### Features_List
```java
-import com.azure.core.management.serializer.SerializerFactory;
-import com.azure.core.util.serializer.SerializerEncoding;
-import com.azure.resourcemanager.machinelearning.models.AmlToken;
-import com.azure.resourcemanager.machinelearning.models.AutoMLJob;
-import com.azure.resourcemanager.machinelearning.models.CommandJob;
-import com.azure.resourcemanager.machinelearning.models.CommandJobLimits;
-import com.azure.resourcemanager.machinelearning.models.Goal;
-import com.azure.resourcemanager.machinelearning.models.GridSamplingAlgorithm;
-import com.azure.resourcemanager.machinelearning.models.ImageClassification;
-import com.azure.resourcemanager.machinelearning.models.ImageLimitSettings;
-import com.azure.resourcemanager.machinelearning.models.ImageModelDistributionSettingsClassification;
-import com.azure.resourcemanager.machinelearning.models.ImageModelSettingsClassification;
-import com.azure.resourcemanager.machinelearning.models.JobResourceConfiguration;
-import com.azure.resourcemanager.machinelearning.models.JobService;
-import com.azure.resourcemanager.machinelearning.models.LiteralJobInput;
-import com.azure.resourcemanager.machinelearning.models.MLTableJobInput;
-import com.azure.resourcemanager.machinelearning.models.MedianStoppingPolicy;
-import com.azure.resourcemanager.machinelearning.models.Mpi;
-import com.azure.resourcemanager.machinelearning.models.Objective;
-import com.azure.resourcemanager.machinelearning.models.OutputDeliveryMode;
-import com.azure.resourcemanager.machinelearning.models.PipelineJob;
-import com.azure.resourcemanager.machinelearning.models.SweepJob;
-import com.azure.resourcemanager.machinelearning.models.SweepJobLimits;
-import com.azure.resourcemanager.machinelearning.models.TensorFlow;
-import com.azure.resourcemanager.machinelearning.models.TrialComponent;
-import com.azure.resourcemanager.machinelearning.models.UriFileJobOutput;
-import java.io.IOException;
-import java.time.Duration;
-import java.util.Arrays;
+/** Samples for Features List. */
+public final class FeaturesListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Feature/list.json
+ */
+ /**
+ * Sample code: List Feature.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listFeature(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .features()
+ .list(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ "string",
+ null,
+ "string",
+ "string",
+ "string",
+ null,
+ null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### FeaturesetContainers_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.FeaturesetContainerProperties;
import java.util.HashMap;
import java.util.Map;
-/** Samples for Jobs CreateOrUpdate. */
-public final class JobsCreateOrUpdateSamples {
+/** Samples for FeaturesetContainers CreateOrUpdate. */
+public final class FeaturesetContainersCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/AutoMLJob/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/FeaturesetContainer/createOrUpdate.json
*/
/**
- * Sample code: CreateOrUpdate AutoML Job.
+ * Sample code: CreateOrUpdate Workspace Featureset Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateAutoMLJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager)
- throws IOException {
+ public static void createOrUpdateWorkspaceFeaturesetContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .jobs()
+ .featuresetContainers()
.define("string")
.withExistingWorkspace("test-rg", "my-aml-workspace")
.withProperties(
- new AutoMLJob()
+ new FeaturesetContainerProperties()
.withDescription("string")
.withProperties(mapOf("string", "string"))
.withTags(mapOf("string", "string"))
- .withComputeId("string")
- .withDisplayName("string")
- .withExperimentName("string")
- .withIdentity(new AmlToken())
- .withIsArchived(false)
- .withServices(
- mapOf(
- "string",
- new JobService()
- .withEndpoint("string")
- .withJobServiceType("string")
- .withPort(1)
- .withProperties(mapOf("string", "string"))))
- .withEnvironmentId("string")
- .withEnvironmentVariables(mapOf("string", "string"))
- .withOutputs(
- mapOf(
- "string",
- new UriFileJobOutput()
- .withDescription("string")
- .withMode(OutputDeliveryMode.READ_WRITE_MOUNT)
- .withUri("string")))
- .withResources(
- new JobResourceConfiguration()
- .withInstanceCount(1)
- .withInstanceType("string")
- .withProperties(
- mapOf(
- "string",
- SerializerFactory
- .createDefaultManagementSerializerAdapter()
- .deserialize(
- "{\"9bec0ab0-c62f-4fa9-a97c-7b24bbcc90ad\":null}",
- Object.class,
- SerializerEncoding.JSON))))
- .withTaskDetails(
- new ImageClassification()
- .withTargetColumnName("string")
- .withTrainingData(new MLTableJobInput().withUri("string"))
- .withModelSettings(new ImageModelSettingsClassification().withValidationCropSize(2))
- .withSearchSpace(
- Arrays
- .asList(
- new ImageModelDistributionSettingsClassification()
- .withValidationCropSize("choice(2, 360)")))
- .withLimitSettings(new ImageLimitSettings().withMaxTrials(2))))
+ .withIsArchived(false))
.create();
}
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### FeaturesetContainers_Delete
+
+```java
+/** Samples for FeaturesetContainers Delete. */
+public final class FeaturesetContainersDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/SweepJob/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/FeaturesetContainer/delete.json
*/
/**
- * Sample code: CreateOrUpdate Sweep Job.
+ * Sample code: Delete Workspace Featureset Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateSweepJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager)
+ public static void deleteWorkspaceFeaturesetContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .featuresetContainers()
+ .delete("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### FeaturesetContainers_GetEntity
+
+```java
+/** Samples for FeaturesetContainers GetEntity. */
+public final class FeaturesetContainersGetEntitySamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/FeaturesetContainer/getEntity.json
+ */
+ /**
+ * Sample code: GetEntity Workspace Featureset Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getEntityWorkspaceFeaturesetContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .featuresetContainers()
+ .getEntityWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### FeaturesetContainers_List
+
+```java
+import com.azure.resourcemanager.machinelearning.models.ListViewType;
+
+/** Samples for FeaturesetContainers List. */
+public final class FeaturesetContainersListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/FeaturesetContainer/list.json
+ */
+ /**
+ * Sample code: List Workspace Featureset Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listWorkspaceFeaturesetContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .featuresetContainers()
+ .list(
+ "test-rg",
+ "my-aml-workspace",
+ null,
+ "string",
+ ListViewType.ARCHIVED_ONLY,
+ null,
+ null,
+ null,
+ null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### FeaturesetVersions_Backfill
+
+```java
+import com.azure.resourcemanager.machinelearning.models.DataAvailabilityStatus;
+import com.azure.resourcemanager.machinelearning.models.FeatureWindow;
+import com.azure.resourcemanager.machinelearning.models.FeaturesetVersionBackfillRequest;
+import com.azure.resourcemanager.machinelearning.models.MaterializationComputeResource;
+import java.time.OffsetDateTime;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for FeaturesetVersions Backfill. */
+public final class FeaturesetVersionsBackfillSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/FeaturesetVersion/backfill.json
+ */
+ /**
+ * Sample code: Backfill Workspace Featureset Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void backfillWorkspaceFeaturesetVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .featuresetVersions()
+ .backfill(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ "string",
+ new FeaturesetVersionBackfillRequest()
+ .withDataAvailabilityStatus(Arrays.asList(DataAvailabilityStatus.NONE))
+ .withDescription("string")
+ .withDisplayName("string")
+ .withFeatureWindow(
+ new FeatureWindow()
+ .withFeatureWindowEnd(OffsetDateTime.parse("2020-01-01T12:34:56.999+00:51"))
+ .withFeatureWindowStart(OffsetDateTime.parse("2020-01-01T12:34:56.999+00:51")))
+ .withJobId("string")
+ .withResource(new MaterializationComputeResource().withInstanceType("string"))
+ .withSparkConfiguration(mapOf("string", "string"))
+ .withTags(mapOf("string", "string")),
+ com.azure.core.util.Context.NONE);
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### FeaturesetVersions_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.EmailNotificationEnableType;
+import com.azure.resourcemanager.machinelearning.models.FeaturesetSpecification;
+import com.azure.resourcemanager.machinelearning.models.FeaturesetVersionProperties;
+import com.azure.resourcemanager.machinelearning.models.MaterializationComputeResource;
+import com.azure.resourcemanager.machinelearning.models.MaterializationSettings;
+import com.azure.resourcemanager.machinelearning.models.MaterializationStoreType;
+import com.azure.resourcemanager.machinelearning.models.NotificationSetting;
+import com.azure.resourcemanager.machinelearning.models.RecurrenceFrequency;
+import com.azure.resourcemanager.machinelearning.models.RecurrenceSchedule;
+import com.azure.resourcemanager.machinelearning.models.RecurrenceTrigger;
+import com.azure.resourcemanager.machinelearning.models.WeekDay;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for FeaturesetVersions CreateOrUpdate. */
+public final class FeaturesetVersionsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/FeaturesetVersion/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Workspace Featureset Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateWorkspaceFeaturesetVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .featuresetVersions()
+ .define("string")
+ .withExistingFeatureset("test-rg", "my-aml-workspace", "string")
+ .withProperties(
+ new FeaturesetVersionProperties()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsAnonymous(false)
+ .withIsArchived(false)
+ .withEntities(Arrays.asList("string"))
+ .withMaterializationSettings(
+ new MaterializationSettings()
+ .withNotification(
+ new NotificationSetting()
+ .withEmailOn(Arrays.asList(EmailNotificationEnableType.JOB_FAILED))
+ .withEmails(Arrays.asList("string")))
+ .withResource(new MaterializationComputeResource().withInstanceType("string"))
+ .withSchedule(
+ new RecurrenceTrigger()
+ .withEndTime("string")
+ .withStartTime("string")
+ .withTimeZone("string")
+ .withFrequency(RecurrenceFrequency.DAY)
+ .withInterval(1)
+ .withSchedule(
+ new RecurrenceSchedule()
+ .withHours(Arrays.asList(1))
+ .withMinutes(Arrays.asList(1))
+ .withMonthDays(Arrays.asList(1))
+ .withWeekDays(Arrays.asList(WeekDay.MONDAY))))
+ .withSparkConfiguration(mapOf("string", "string"))
+ .withStoreType(MaterializationStoreType.ONLINE))
+ .withSpecification(new FeaturesetSpecification().withPath("string"))
+ .withStage("string"))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### FeaturesetVersions_Delete
+
+```java
+/** Samples for FeaturesetVersions Delete. */
+public final class FeaturesetVersionsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/FeaturesetVersion/delete.json
+ */
+ /**
+ * Sample code: Delete Workspace Featureset Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteWorkspaceFeaturesetVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .featuresetVersions()
+ .delete("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### FeaturesetVersions_Get
+
+```java
+/** Samples for FeaturesetVersions Get. */
+public final class FeaturesetVersionsGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/FeaturesetVersion/get.json
+ */
+ /**
+ * Sample code: Get Workspace Featureset Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getWorkspaceFeaturesetVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .featuresetVersions()
+ .getWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### FeaturesetVersions_List
+
+```java
+import com.azure.resourcemanager.machinelearning.models.ListViewType;
+
+/** Samples for FeaturesetVersions List. */
+public final class FeaturesetVersionsListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/FeaturesetVersion/list.json
+ */
+ /**
+ * Sample code: List Workspace Featureset Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listWorkspaceFeaturesetVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .featuresetVersions()
+ .list(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ null,
+ "string",
+ ListViewType.ALL,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### FeaturestoreEntityContainers_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.FeaturestoreEntityContainerProperties;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for FeaturestoreEntityContainers CreateOrUpdate. */
+public final class FeaturestoreEntityContainersCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/FeaturestoreEntityContainer/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Workspace Featurestore Entity Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateWorkspaceFeaturestoreEntityContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .featurestoreEntityContainers()
+ .define("string")
+ .withExistingWorkspace("test-rg", "my-aml-workspace")
+ .withProperties(
+ new FeaturestoreEntityContainerProperties()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsArchived(false))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### FeaturestoreEntityContainers_Delete
+
+```java
+/** Samples for FeaturestoreEntityContainers Delete. */
+public final class FeaturestoreEntityContainersDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/FeaturestoreEntityContainer/delete.json
+ */
+ /**
+ * Sample code: Delete Workspace Featurestore Entity Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteWorkspaceFeaturestoreEntityContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .featurestoreEntityContainers()
+ .delete("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### FeaturestoreEntityContainers_GetEntity
+
+```java
+/** Samples for FeaturestoreEntityContainers GetEntity. */
+public final class FeaturestoreEntityContainersGetEntitySamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/FeaturestoreEntityContainer/getEntity.json
+ */
+ /**
+ * Sample code: GetEntity Workspace Featurestore Entity Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getEntityWorkspaceFeaturestoreEntityContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .featurestoreEntityContainers()
+ .getEntityWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### FeaturestoreEntityContainers_List
+
+```java
+import com.azure.resourcemanager.machinelearning.models.ListViewType;
+
+/** Samples for FeaturestoreEntityContainers List. */
+public final class FeaturestoreEntityContainersListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/FeaturestoreEntityContainer/list.json
+ */
+ /**
+ * Sample code: List Workspace Featurestore Entity Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listWorkspaceFeaturestoreEntityContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .featurestoreEntityContainers()
+ .list(
+ "test-rg",
+ "my-aml-workspace",
+ null,
+ "string",
+ ListViewType.ALL,
+ null,
+ null,
+ null,
+ null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### FeaturestoreEntityVersions_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.FeatureDataType;
+import com.azure.resourcemanager.machinelearning.models.FeaturestoreEntityVersionProperties;
+import com.azure.resourcemanager.machinelearning.models.IndexColumn;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for FeaturestoreEntityVersions CreateOrUpdate. */
+public final class FeaturestoreEntityVersionsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/FeaturestoreEntityVersion/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Workspace Featurestore Entity Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateWorkspaceFeaturestoreEntityVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .featurestoreEntityVersions()
+ .define("string")
+ .withExistingFeaturestoreEntity("test-rg", "my-aml-workspace", "string")
+ .withProperties(
+ new FeaturestoreEntityVersionProperties()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsAnonymous(false)
+ .withIsArchived(false)
+ .withIndexColumns(
+ Arrays
+ .asList(new IndexColumn().withColumnName("string").withDataType(FeatureDataType.DATETIME))))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### FeaturestoreEntityVersions_Delete
+
+```java
+/** Samples for FeaturestoreEntityVersions Delete. */
+public final class FeaturestoreEntityVersionsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/FeaturestoreEntityVersion/delete.json
+ */
+ /**
+ * Sample code: Delete Workspace Featurestore Entity Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteWorkspaceFeaturestoreEntityVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .featurestoreEntityVersions()
+ .delete("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### FeaturestoreEntityVersions_Get
+
+```java
+/** Samples for FeaturestoreEntityVersions Get. */
+public final class FeaturestoreEntityVersionsGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/FeaturestoreEntityVersion/get.json
+ */
+ /**
+ * Sample code: Get Workspace Featurestore Entity Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getWorkspaceFeaturestoreEntityVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .featurestoreEntityVersions()
+ .getWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### FeaturestoreEntityVersions_List
+
+```java
+import com.azure.resourcemanager.machinelearning.models.ListViewType;
+
+/** Samples for FeaturestoreEntityVersions List. */
+public final class FeaturestoreEntityVersionsListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/FeaturestoreEntityVersion/list.json
+ */
+ /**
+ * Sample code: List Workspace Featurestore Entity Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listWorkspaceFeaturestoreEntityVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .featurestoreEntityVersions()
+ .list(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ null,
+ "string",
+ ListViewType.ACTIVE_ONLY,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### InferenceEndpoints_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.AuthMode;
+import com.azure.resourcemanager.machinelearning.models.InferenceEndpointProperties;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.machinelearning.models.Sku;
+import com.azure.resourcemanager.machinelearning.models.SkuTier;
+import com.azure.resourcemanager.machinelearning.models.UserAssignedIdentity;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for InferenceEndpoints CreateOrUpdate. */
+public final class InferenceEndpointsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/InferenceEndpoint/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Workspace Inference Endpoint.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateWorkspaceInferenceEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .inferenceEndpoints()
+ .define("testEndpointName")
+ .withRegion("string")
+ .withExistingInferencePool("test-rg1", "my-aml-workspace", "string")
+ .withProperties(
+ new InferenceEndpointProperties()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withAuthMode(AuthMode.AAD)
+ .withGroupId("string"))
+ .withTags(mapOf())
+ .withIdentity(
+ new ManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
+ .withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withKind("string")
+ .withSku(
+ new Sku()
+ .withName("string")
+ .withTier(SkuTier.STANDARD)
+ .withSize("string")
+ .withFamily("string")
+ .withCapacity(1))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### InferenceEndpoints_Delete
+
+```java
+/** Samples for InferenceEndpoints Delete. */
+public final class InferenceEndpointsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/InferenceEndpoint/delete.json
+ */
+ /**
+ * Sample code: Delete Workspace Inference Endpoint.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteWorkspaceInferenceEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .inferenceEndpoints()
+ .delete("test-rg", "my-aml-workspace", "string", "testEndpointName", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### InferenceEndpoints_Get
+
+```java
+/** Samples for InferenceEndpoints Get. */
+public final class InferenceEndpointsGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/InferenceEndpoint/get.json
+ */
+ /**
+ * Sample code: Get Workspace Inference Endpoint.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getWorkspaceInferenceEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .inferenceEndpoints()
+ .getWithResponse(
+ "test-rg", "my-aml-workspace", "string", "testEndpointName", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### InferenceEndpoints_List
+
+```java
+import com.azure.resourcemanager.machinelearning.models.OrderString;
+
+/** Samples for InferenceEndpoints List. */
+public final class InferenceEndpointsListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/InferenceEndpoint/list.json
+ */
+ /**
+ * Sample code: List Workspace Inference Endpoint.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listWorkspaceInferenceEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .inferenceEndpoints()
+ .list(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ 1,
+ null,
+ "string",
+ "string",
+ OrderString.CREATED_AT_ASC,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### InferenceEndpoints_Update
+
+```java
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerEncoding;
+import java.io.IOException;
+
+/** Samples for InferenceEndpoints Update. */
+public final class InferenceEndpointsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/InferenceEndpoint/update.json
+ */
+ /**
+ * Sample code: Update Workspace Inference Endpoint.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void updateWorkspaceInferenceEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) throws IOException {
+ manager
+ .inferenceEndpoints()
+ .update(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ "testEndpointName",
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize("{\"tags\":{}}", Object.class, SerializerEncoding.JSON),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### InferenceGroups_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.InferenceGroupProperties;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.machinelearning.models.Sku;
+import com.azure.resourcemanager.machinelearning.models.SkuTier;
+import com.azure.resourcemanager.machinelearning.models.UserAssignedIdentity;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for InferenceGroups CreateOrUpdate. */
+public final class InferenceGroupsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/InferenceGroup/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Workspace Inference Group.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateWorkspaceInferenceGroup(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .inferenceGroups()
+ .define("string")
+ .withRegion("string")
+ .withExistingInferencePool("test-rg", "my-aml-workspace", "string")
+ .withProperties(
+ new InferenceGroupProperties()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withBonusExtraCapacity(1)
+ .withMetadata("string")
+ .withPriority(1))
+ .withTags(mapOf())
+ .withIdentity(
+ new ManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
+ .withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withKind("string")
+ .withSku(
+ new Sku()
+ .withName("string")
+ .withTier(SkuTier.FREE)
+ .withSize("string")
+ .withFamily("string")
+ .withCapacity(1))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### InferenceGroups_Delete
+
+```java
+/** Samples for InferenceGroups Delete. */
+public final class InferenceGroupsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/InferenceGroup/delete.json
+ */
+ /**
+ * Sample code: Delete Workspace Inference Group.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteWorkspaceInferenceGroup(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .inferenceGroups()
+ .delete("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### InferenceGroups_Get
+
+```java
+/** Samples for InferenceGroups Get. */
+public final class InferenceGroupsGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/InferenceGroup/get.json
+ */
+ /**
+ * Sample code: Get Workspace Inference Group.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getWorkspaceInferenceGroup(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .inferenceGroups()
+ .getWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### InferenceGroups_GetStatus
+
+```java
+/** Samples for InferenceGroups GetStatus. */
+public final class InferenceGroupsGetStatusSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/InferenceGroup/getStatus.json
+ */
+ /**
+ * Sample code: GetStatus Workspace Inference Group.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getStatusWorkspaceInferenceGroup(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .inferenceGroups()
+ .getStatusWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### InferenceGroups_List
+
+```java
+import com.azure.resourcemanager.machinelearning.models.OrderString;
+
+/** Samples for InferenceGroups List. */
+public final class InferenceGroupsListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/InferenceGroup/list.json
+ */
+ /**
+ * Sample code: List Workspace Inference Group.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listWorkspaceInferenceGroup(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .inferenceGroups()
+ .list(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ 1,
+ null,
+ "string",
+ "string",
+ OrderString.CREATED_AT_DESC,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### InferenceGroups_ListSkus
+
+```java
+/** Samples for InferenceGroups ListSkus. */
+public final class InferenceGroupsListSkusSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/InferenceGroup/listSkus.json
+ */
+ /**
+ * Sample code: ListSkus Workspace Inference Group.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listSkusWorkspaceInferenceGroup(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .inferenceGroups()
+ .listSkus("test-rg", "my-aml-workspace", "string", "string", 1, null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### InferenceGroups_Update
+
+```java
+import com.azure.resourcemanager.machinelearning.models.InferenceGroup;
+import com.azure.resourcemanager.machinelearning.models.PartialSku;
+import com.azure.resourcemanager.machinelearning.models.SkuTier;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for InferenceGroups Update. */
+public final class InferenceGroupsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/InferenceGroup/update.json
+ */
+ /**
+ * Sample code: Update Workspace Inference Group.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void updateWorkspaceInferenceGroup(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ InferenceGroup resource =
+ manager
+ .inferenceGroups()
+ .getWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withTags(mapOf())
+ .withSku(
+ new PartialSku()
+ .withCapacity(1)
+ .withFamily("string")
+ .withName("string")
+ .withSize("string")
+ .withTier(SkuTier.STANDARD))
+ .apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### InferencePools_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.CodeConfiguration;
+import com.azure.resourcemanager.machinelearning.models.InferencePoolProperties;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.machinelearning.models.PoolEnvironmentConfiguration;
+import com.azure.resourcemanager.machinelearning.models.PoolModelConfiguration;
+import com.azure.resourcemanager.machinelearning.models.ProbeSettings;
+import com.azure.resourcemanager.machinelearning.models.RequestConfiguration;
+import com.azure.resourcemanager.machinelearning.models.Sku;
+import com.azure.resourcemanager.machinelearning.models.SkuTier;
+import com.azure.resourcemanager.machinelearning.models.UserAssignedIdentity;
+import java.time.Duration;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for InferencePools CreateOrUpdate. */
+public final class InferencePoolsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/InferencePool/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Workspace Inference Pool.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateWorkspaceInferencePool(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .inferencePools()
+ .define("string")
+ .withRegion("string")
+ .withExistingWorkspace("test-rg", "my-aml-workspace")
+ .withProperties(
+ new InferencePoolProperties()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withCodeConfiguration(
+ new CodeConfiguration().withCodeId("fakeTokenPlaceholder").withScoringScript("string"))
+ .withEnvironmentConfiguration(
+ new PoolEnvironmentConfiguration()
+ .withEnvironmentId("string")
+ .withEnvironmentVariables(mapOf("string", "string"))
+ .withLivenessProbe(
+ new ProbeSettings()
+ .withFailureThreshold(1)
+ .withInitialDelay(Duration.parse("PT5M"))
+ .withPeriod(Duration.parse("PT5M"))
+ .withSuccessThreshold(1)
+ .withTimeout(Duration.parse("PT5M")))
+ .withReadinessProbe(
+ new ProbeSettings()
+ .withFailureThreshold(1)
+ .withInitialDelay(Duration.parse("PT5M"))
+ .withPeriod(Duration.parse("PT5M"))
+ .withSuccessThreshold(1)
+ .withTimeout(Duration.parse("PT5M")))
+ .withStartupProbe(
+ new ProbeSettings()
+ .withFailureThreshold(1)
+ .withInitialDelay(Duration.parse("PT5M"))
+ .withPeriod(Duration.parse("PT5M"))
+ .withSuccessThreshold(1)
+ .withTimeout(Duration.parse("PT5M"))))
+ .withModelConfiguration(new PoolModelConfiguration().withModelId("string"))
+ .withNodeSkuType("string")
+ .withRequestConfiguration(
+ new RequestConfiguration()
+ .withMaxConcurrentRequestsPerInstance(1)
+ .withRequestTimeout(Duration.parse("PT5M"))))
+ .withTags(mapOf())
+ .withIdentity(
+ new ManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.USER_ASSIGNED)
+ .withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withKind("string")
+ .withSku(
+ new Sku()
+ .withName("string")
+ .withTier(SkuTier.FREE)
+ .withSize("string")
+ .withFamily("string")
+ .withCapacity(1))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### InferencePools_Delete
+
+```java
+/** Samples for InferencePools Delete. */
+public final class InferencePoolsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/InferencePool/delete.json
+ */
+ /**
+ * Sample code: Delete Workspace Inference Pool.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteWorkspaceInferencePool(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.inferencePools().delete("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### InferencePools_Get
+
+```java
+/** Samples for InferencePools Get. */
+public final class InferencePoolsGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/InferencePool/get.json
+ */
+ /**
+ * Sample code: Get Workspace Inference Pool.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getWorkspaceInferencePool(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .inferencePools()
+ .getWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### InferencePools_GetStatus
+
+```java
+/** Samples for InferencePools GetStatus. */
+public final class InferencePoolsGetStatusSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/InferencePool/getStatus.json
+ */
+ /**
+ * Sample code: GetStatus Workspace Inference Pool.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getStatusWorkspaceInferencePool(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .inferencePools()
+ .getStatusWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### InferencePools_List
+
+```java
+import com.azure.resourcemanager.machinelearning.models.OrderString;
+
+/** Samples for InferencePools List. */
+public final class InferencePoolsListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/InferencePool/list.json
+ */
+ /**
+ * Sample code: List Workspace Inference Pool.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listWorkspaceInferencePool(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .inferencePools()
+ .list(
+ "test-rg",
+ "my-aml-workspace",
+ 1,
+ null,
+ "string",
+ "string",
+ OrderString.UPDATED_AT_ASC,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### InferencePools_ListSkus
+
+```java
+/** Samples for InferencePools ListSkus. */
+public final class InferencePoolsListSkusSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/InferencePool/listSkus.json
+ */
+ /**
+ * Sample code: ListSkus Workspace Inference Pool.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listSkusWorkspaceInferencePool(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .inferencePools()
+ .listSkus("test-rg", "my-aml-workspace", "string", 1, null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### InferencePools_Update
+
+```java
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.machinelearning.models.InferencePool;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.machinelearning.models.PartialManagedServiceIdentity;
+import com.azure.resourcemanager.machinelearning.models.PartialSku;
+import com.azure.resourcemanager.machinelearning.models.SkuTier;
+import java.io.IOException;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for InferencePools Update. */
+public final class InferencePoolsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/InferencePool/update.json
+ */
+ /**
+ * Sample code: Update Workspace Inference Pool.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void updateWorkspaceInferencePool(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) throws IOException {
+ InferencePool resource =
+ manager
+ .inferencePools()
+ .getWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withTags(mapOf())
+ .withIdentity(
+ new PartialManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.USER_ASSIGNED)
+ .withUserAssignedIdentities(
+ mapOf(
+ "string",
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize("{}", Object.class, SerializerEncoding.JSON))))
+ .withSku(
+ new PartialSku()
+ .withCapacity(1)
+ .withFamily("string")
+ .withName("string")
+ .withSize("string")
+ .withTier(SkuTier.STANDARD))
+ .apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Jobs_Cancel
+
+```java
+/** Samples for Jobs Cancel. */
+public final class JobsCancelSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Job/cancel.json
+ */
+ /**
+ * Sample code: Cancel Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void cancelJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.jobs().cancel("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Jobs_CreateOrUpdate
+
+```java
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.machinelearning.models.AllNodes;
+import com.azure.resourcemanager.machinelearning.models.AmlToken;
+import com.azure.resourcemanager.machinelearning.models.AutologgerSettings;
+import com.azure.resourcemanager.machinelearning.models.CommandJob;
+import com.azure.resourcemanager.machinelearning.models.CommandJobLimits;
+import com.azure.resourcemanager.machinelearning.models.EmailNotificationEnableType;
+import com.azure.resourcemanager.machinelearning.models.JobResourceConfiguration;
+import com.azure.resourcemanager.machinelearning.models.JobService;
+import com.azure.resourcemanager.machinelearning.models.JobTier;
+import com.azure.resourcemanager.machinelearning.models.LiteralJobInput;
+import com.azure.resourcemanager.machinelearning.models.MLFlowAutologgerState;
+import com.azure.resourcemanager.machinelearning.models.NotificationSetting;
+import com.azure.resourcemanager.machinelearning.models.OutputDeliveryMode;
+import com.azure.resourcemanager.machinelearning.models.PipelineJob;
+import com.azure.resourcemanager.machinelearning.models.QueueSettings;
+import com.azure.resourcemanager.machinelearning.models.TensorFlow;
+import com.azure.resourcemanager.machinelearning.models.UriFileJobOutput;
+import java.io.IOException;
+import java.time.Duration;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for Jobs CreateOrUpdate. */
+public final class JobsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Job/AutoMLJob/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate AutoML Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateAutoMLJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager)
+ throws IOException {
+ manager
+ .jobs()
+ .define("string")
+ .withExistingWorkspace("test-rg", "my-aml-workspace")
+ .withProperties(
+ new CommandJob()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withComponentId("string")
+ .withComputeId("string")
+ .withDisplayName("string")
+ .withExperimentName("string")
+ .withIdentity(new AmlToken())
+ .withIsArchived(false)
+ .withNotificationSetting(
+ new NotificationSetting()
+ .withEmailOn(Arrays.asList(EmailNotificationEnableType.JOB_COMPLETED))
+ .withEmails(Arrays.asList("string")))
+ .withServices(
+ mapOf(
+ "string",
+ new JobService()
+ .withEndpoint("string")
+ .withJobServiceType("string")
+ .withNodes(new AllNodes())
+ .withPort(1)
+ .withProperties(mapOf("string", "string"))))
+ .withAutologgerSettings(
+ new AutologgerSettings().withMlflowAutologger(MLFlowAutologgerState.DISABLED))
+ .withCodeId("fakeTokenPlaceholder")
+ .withCommand("string")
+ .withDistribution(new TensorFlow().withParameterServerCount(1).withWorkerCount(1))
+ .withEnvironmentId("string")
+ .withEnvironmentVariables(mapOf("string", "string"))
+ .withInputs(mapOf("string", new LiteralJobInput().withDescription("string").withValue("string")))
+ .withLimits(new CommandJobLimits().withTimeout(Duration.parse("PT5M")))
+ .withOutputs(
+ mapOf(
+ "string",
+ new UriFileJobOutput()
+ .withDescription("string")
+ .withAssetName("string")
+ .withAssetVersion("string")
+ .withMode(OutputDeliveryMode.DIRECT)
+ .withUri("string")))
+ .withQueueSettings(new QueueSettings().withJobTier(JobTier.PREMIUM).withPriority(1))
+ .withResources(
+ new JobResourceConfiguration()
+ .withInstanceCount(1)
+ .withInstanceType("string")
+ .withLocations(Arrays.asList("string"))
+ .withProperties(
+ mapOf(
+ "string",
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize(
+ "{\"f69c8d5a-9b39-4183-92d3-a2b18944cf95\":null}",
+ Object.class,
+ SerializerEncoding.JSON)))
+ .withDockerArgs("string")
+ .withShmSize("2g")))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Job/SweepJob/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Sweep Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateSweepJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager)
throws IOException {
manager
- .jobs()
+ .jobs()
+ .define("string")
+ .withExistingWorkspace("test-rg", "my-aml-workspace")
+ .withProperties(
+ new CommandJob()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withComponentId("string")
+ .withComputeId("string")
+ .withDisplayName("string")
+ .withExperimentName("string")
+ .withIdentity(new AmlToken())
+ .withIsArchived(false)
+ .withNotificationSetting(
+ new NotificationSetting()
+ .withEmailOn(Arrays.asList(EmailNotificationEnableType.JOB_COMPLETED))
+ .withEmails(Arrays.asList("string")))
+ .withServices(
+ mapOf(
+ "string",
+ new JobService()
+ .withEndpoint("string")
+ .withJobServiceType("string")
+ .withNodes(new AllNodes())
+ .withPort(1)
+ .withProperties(mapOf("string", "string"))))
+ .withAutologgerSettings(
+ new AutologgerSettings().withMlflowAutologger(MLFlowAutologgerState.DISABLED))
+ .withCodeId("fakeTokenPlaceholder")
+ .withCommand("string")
+ .withDistribution(new TensorFlow().withParameterServerCount(1).withWorkerCount(1))
+ .withEnvironmentId("string")
+ .withEnvironmentVariables(mapOf("string", "string"))
+ .withInputs(mapOf("string", new LiteralJobInput().withDescription("string").withValue("string")))
+ .withLimits(new CommandJobLimits().withTimeout(Duration.parse("PT5M")))
+ .withOutputs(
+ mapOf(
+ "string",
+ new UriFileJobOutput()
+ .withDescription("string")
+ .withAssetName("string")
+ .withAssetVersion("string")
+ .withMode(OutputDeliveryMode.READ_WRITE_MOUNT)
+ .withUri("string")))
+ .withQueueSettings(new QueueSettings().withJobTier(JobTier.BASIC).withPriority(1))
+ .withResources(
+ new JobResourceConfiguration()
+ .withInstanceCount(1)
+ .withInstanceType("string")
+ .withLocations(Arrays.asList("string"))
+ .withProperties(
+ mapOf(
+ "string",
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize(
+ "{\"5fc1f627-491e-45a0-a6a2-f5b4be884911\":null}",
+ Object.class,
+ SerializerEncoding.JSON)))
+ .withDockerArgs("string")
+ .withShmSize("2g")))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Job/PipelineJob/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Pipeline Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdatePipelineJob(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) throws IOException {
+ manager
+ .jobs()
+ .define("string")
+ .withExistingWorkspace("test-rg", "my-aml-workspace")
+ .withProperties(
+ new PipelineJob()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withComputeId("string")
+ .withDisplayName("string")
+ .withExperimentName("string")
+ .withServices(
+ mapOf(
+ "string",
+ new JobService()
+ .withEndpoint("string")
+ .withJobServiceType("string")
+ .withPort(1)
+ .withProperties(mapOf("string", "string"))))
+ .withInputs(mapOf("string", new LiteralJobInput().withDescription("string").withValue("string")))
+ .withOutputs(
+ mapOf(
+ "string",
+ new UriFileJobOutput()
+ .withDescription("string")
+ .withMode(OutputDeliveryMode.UPLOAD)
+ .withUri("string")))
+ .withSettings(
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize("{}", Object.class, SerializerEncoding.JSON)))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Job/CommandJob/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Command Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateCommandJob(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) throws IOException {
+ manager
+ .jobs()
+ .define("string")
+ .withExistingWorkspace("test-rg", "my-aml-workspace")
+ .withProperties(
+ new CommandJob()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withComponentId("string")
+ .withComputeId("string")
+ .withDisplayName("string")
+ .withExperimentName("string")
+ .withIdentity(new AmlToken())
+ .withIsArchived(false)
+ .withNotificationSetting(
+ new NotificationSetting()
+ .withEmailOn(Arrays.asList(EmailNotificationEnableType.JOB_CANCELLED))
+ .withEmails(Arrays.asList("string")))
+ .withServices(
+ mapOf(
+ "string",
+ new JobService()
+ .withEndpoint("string")
+ .withJobServiceType("string")
+ .withNodes(new AllNodes())
+ .withPort(1)
+ .withProperties(mapOf("string", "string"))))
+ .withAutologgerSettings(
+ new AutologgerSettings().withMlflowAutologger(MLFlowAutologgerState.DISABLED))
+ .withCodeId("fakeTokenPlaceholder")
+ .withCommand("string")
+ .withDistribution(new TensorFlow().withParameterServerCount(1).withWorkerCount(1))
+ .withEnvironmentId("string")
+ .withEnvironmentVariables(mapOf("string", "string"))
+ .withInputs(mapOf("string", new LiteralJobInput().withDescription("string").withValue("string")))
+ .withLimits(new CommandJobLimits().withTimeout(Duration.parse("PT5M")))
+ .withOutputs(
+ mapOf(
+ "string",
+ new UriFileJobOutput()
+ .withDescription("string")
+ .withAssetName("string")
+ .withAssetVersion("string")
+ .withMode(OutputDeliveryMode.UPLOAD)
+ .withUri("string")))
+ .withQueueSettings(new QueueSettings().withJobTier(JobTier.BASIC).withPriority(1))
+ .withResources(
+ new JobResourceConfiguration()
+ .withInstanceCount(1)
+ .withInstanceType("string")
+ .withLocations(Arrays.asList("string"))
+ .withProperties(
+ mapOf(
+ "string",
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize(
+ "{\"c9ac10d0-915b-4de5-afe8-a4c78a37a558\":null}",
+ Object.class,
+ SerializerEncoding.JSON)))
+ .withDockerArgs("string")
+ .withShmSize("2g")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Jobs_Delete
+
+```java
+/** Samples for Jobs Delete. */
+public final class JobsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Job/delete.json
+ */
+ /**
+ * Sample code: Delete Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.jobs().delete("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Jobs_Get
+
+```java
+/** Samples for Jobs Get. */
+public final class JobsGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Job/CommandJob/get.json
+ */
+ /**
+ * Sample code: Get Command Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getCommandJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.jobs().getWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Job/AutoMLJob/get.json
+ */
+ /**
+ * Sample code: Get AutoML Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getAutoMLJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.jobs().getWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Job/SweepJob/get.json
+ */
+ /**
+ * Sample code: Get Sweep Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getSweepJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.jobs().getWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Job/PipelineJob/get.json
+ */
+ /**
+ * Sample code: Get Pipeline Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getPipelineJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.jobs().getWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Jobs_List
+
+```java
+import com.azure.resourcemanager.machinelearning.models.ListViewType;
+
+/** Samples for Jobs List. */
+public final class JobsListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Job/CommandJob/list.json
+ */
+ /**
+ * Sample code: List Command Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listCommandJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .jobs()
+ .list(
+ "test-rg",
+ "my-aml-workspace",
+ null,
+ "string",
+ "string",
+ ListViewType.ACTIVE_ONLY,
+ "string",
+ false,
+ "string",
+ null,
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Job/PipelineJob/list.json
+ */
+ /**
+ * Sample code: List Pipeline Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listPipelineJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .jobs()
+ .list(
+ "test-rg",
+ "my-aml-workspace",
+ null,
+ "string",
+ "string",
+ null,
+ null,
+ null,
+ null,
+ null,
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Job/SweepJob/list.json
+ */
+ /**
+ * Sample code: List Sweep Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listSweepJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .jobs()
+ .list(
+ "test-rg",
+ "my-aml-workspace",
+ null,
+ "string",
+ "string",
+ ListViewType.ACTIVE_ONLY,
+ "string",
+ false,
+ "string",
+ null,
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Job/AutoMLJob/list.json
+ */
+ /**
+ * Sample code: List AutoML Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listAutoMLJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .jobs()
+ .list(
+ "test-rg",
+ "my-aml-workspace",
+ null,
+ "string",
+ "string",
+ ListViewType.ALL,
+ "string",
+ false,
+ "string",
+ null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Jobs_Update
+
+```java
+import com.azure.resourcemanager.machinelearning.models.AzureDevOpsWebhook;
+import com.azure.resourcemanager.machinelearning.models.JobBase;
+import com.azure.resourcemanager.machinelearning.models.PartialJobBase;
+import com.azure.resourcemanager.machinelearning.models.PartialNotificationSetting;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for Jobs Update. */
+public final class JobsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Job/update.json
+ */
+ /**
+ * Sample code: Update Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void updateJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ JobBase resource =
+ manager
+ .jobs()
+ .getWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withProperties(
+ new PartialJobBase()
+ .withNotificationSetting(
+ new PartialNotificationSetting()
+ .withWebhooks(mapOf("string", new AzureDevOpsWebhook().withEventType("string")))))
+ .apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### LabelingJobs_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.fluent.models.LabelingJobPropertiesInner;
+import com.azure.resourcemanager.machinelearning.models.LabelCategory;
+import com.azure.resourcemanager.machinelearning.models.LabelClass;
+import com.azure.resourcemanager.machinelearning.models.LabelingJobImageProperties;
+import com.azure.resourcemanager.machinelearning.models.LabelingJobInstructions;
+import com.azure.resourcemanager.machinelearning.models.MLAssistConfigurationEnabled;
+import com.azure.resourcemanager.machinelearning.models.MultiSelect;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for LabelingJobs CreateOrUpdate. */
+public final class LabelingJobsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/LabelingJob/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Labeling Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateLabelingJob(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .labelingJobs()
+ .define("testLabelingJob")
+ .withExistingWorkspace("workspace-1234", "testworkspace")
+ .withProperties(
+ new LabelingJobPropertiesInner()
+ .withDescription("string")
+ .withProperties(
+ mapOf("additionalProp1", "string", "additionalProp2", "string", "additionalProp3", "string"))
+ .withTags(
+ mapOf("additionalProp1", "string", "additionalProp2", "string", "additionalProp3", "string"))
+ .withJobInstructions(new LabelingJobInstructions().withUri("link/to/instructions"))
+ .withLabelCategories(
+ mapOf(
+ "myCategory1",
+ new LabelCategory()
+ .withClasses(
+ mapOf(
+ "myLabelClass1",
+ new LabelClass().withDisplayName("myLabelClass1").withSubclasses(mapOf()),
+ "myLabelClass2",
+ new LabelClass().withDisplayName("myLabelClass2").withSubclasses(mapOf())))
+ .withDisplayName("myCategory1Title")
+ .withMultiSelect(MultiSelect.DISABLED),
+ "myCategory2",
+ new LabelCategory()
+ .withClasses(
+ mapOf(
+ "myLabelClass1",
+ new LabelClass().withDisplayName("myLabelClass1").withSubclasses(mapOf()),
+ "myLabelClass2",
+ new LabelClass().withDisplayName("myLabelClass2").withSubclasses(mapOf())))
+ .withDisplayName("myCategory2Title")
+ .withMultiSelect(MultiSelect.DISABLED)))
+ .withLabelingJobMediaProperties(new LabelingJobImageProperties())
+ .withMlAssistConfiguration(
+ new MLAssistConfigurationEnabled()
+ .withInferencingComputeBinding(
+ "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/computes/myscoringcompute")
+ .withTrainingComputeBinding(
+ "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/computes/mytrainingompute")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### LabelingJobs_Delete
+
+```java
+/** Samples for LabelingJobs Delete. */
+public final class LabelingJobsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/LabelingJob/delete.json
+ */
+ /**
+ * Sample code: Delete Labeling Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteLabelingJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .labelingJobs()
+ .deleteWithResponse("workspace-1234", "testworkspace", "testLabelingJob", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### LabelingJobs_ExportLabels
+
+```java
+import com.azure.resourcemanager.machinelearning.models.DatasetExportSummary;
+
+/** Samples for LabelingJobs ExportLabels. */
+public final class LabelingJobsExportLabelsSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/LabelingJob/exportLabels.json
+ */
+ /**
+ * Sample code: ExportLabels Labeling Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void exportLabelsLabelingJob(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .labelingJobs()
+ .exportLabels(
+ "workspace-1234",
+ "testworkspace",
+ "testLabelingJob",
+ new DatasetExportSummary(),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### LabelingJobs_Get
+
+```java
+/** Samples for LabelingJobs Get. */
+public final class LabelingJobsGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/LabelingJob/get.json
+ */
+ /**
+ * Sample code: Get Labeling Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getLabelingJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .labelingJobs()
+ .getWithResponse("workspace-1234", "testworkspace", "testLabelingJob", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### LabelingJobs_List
+
+```java
+/** Samples for LabelingJobs List. */
+public final class LabelingJobsListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/LabelingJob/list.json
+ */
+ /**
+ * Sample code: List Labeling Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listLabelingJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.labelingJobs().list("workspace-1234", "testworkspace", null, null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### LabelingJobs_Pause
+
+```java
+/** Samples for LabelingJobs Pause. */
+public final class LabelingJobsPauseSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/LabelingJob/pause.json
+ */
+ /**
+ * Sample code: Pause Labeling Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void pauseLabelingJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .labelingJobs()
+ .pauseWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### LabelingJobs_Resume
+
+```java
+/** Samples for LabelingJobs Resume. */
+public final class LabelingJobsResumeSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/LabelingJob/resume.json
+ */
+ /**
+ * Sample code: Resume Labeling Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void resumeLabelingJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.labelingJobs().resume("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ManagedNetworkProvisions_ProvisionManagedNetwork
+
+```java
+import com.azure.resourcemanager.machinelearning.models.ManagedNetworkProvisionOptions;
+
+/** Samples for ManagedNetworkProvisions ProvisionManagedNetwork. */
+public final class ManagedNetworkProvisionsProvisionManagedNetworkSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/ManagedNetwork/provision.json
+ */
+ /**
+ * Sample code: Provision ManagedNetwork.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void provisionManagedNetwork(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .managedNetworkProvisions()
+ .provisionManagedNetwork(
+ "test-rg",
+ "aml-workspace-name",
+ new ManagedNetworkProvisionOptions().withIncludeSpark(false),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ManagedNetworkSettingsRule_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.FqdnOutboundRule;
+import com.azure.resourcemanager.machinelearning.models.RuleCategory;
+import com.azure.resourcemanager.machinelearning.models.RuleStatus;
+
+/** Samples for ManagedNetworkSettingsRule CreateOrUpdate. */
+public final class ManagedNetworkSettingsRuleCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/ManagedNetwork/createOrUpdateRule.json
+ */
+ /**
+ * Sample code: CreateOrUpdate ManagedNetworkSettingsRule.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateManagedNetworkSettingsRule(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .managedNetworkSettingsRules()
+ .define("some_string")
+ .withExistingWorkspace("test-rg", "aml-workspace-name")
+ .withProperties(
+ new FqdnOutboundRule()
+ .withCategory(RuleCategory.USER_DEFINED)
+ .withStatus(RuleStatus.ACTIVE)
+ .withDestination("some_string"))
+ .create();
+ }
+}
+```
+
+### ManagedNetworkSettingsRule_Delete
+
+```java
+/** Samples for ManagedNetworkSettingsRule Delete. */
+public final class ManagedNetworkSettingsRuleDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/ManagedNetwork/deleteRule.json
+ */
+ /**
+ * Sample code: Delete ManagedNetworkSettingsRule.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteManagedNetworkSettingsRule(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .managedNetworkSettingsRules()
+ .delete("test-rg", "aml-workspace-name", "some_string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ManagedNetworkSettingsRule_Get
+
+```java
+/** Samples for ManagedNetworkSettingsRule Get. */
+public final class ManagedNetworkSettingsRuleGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/ManagedNetwork/getRule.json
+ */
+ /**
+ * Sample code: Get ManagedNetworkSettingsRule.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getManagedNetworkSettingsRule(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .managedNetworkSettingsRules()
+ .getWithResponse("test-rg", "aml-workspace-name", "some_string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ManagedNetworkSettingsRule_List
+
+```java
+/** Samples for ManagedNetworkSettingsRule List. */
+public final class ManagedNetworkSettingsRuleListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/ManagedNetwork/listRule.json
+ */
+ /**
+ * Sample code: List ManagedNetworkSettingsRule.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listManagedNetworkSettingsRule(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.managedNetworkSettingsRules().list("test-rg", "aml-workspace-name", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ModelContainers_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.fluent.models.ModelContainerInner;
+import com.azure.resourcemanager.machinelearning.models.ModelContainerProperties;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for ModelContainers CreateOrUpdate. */
+public final class ModelContainersCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ModelContainer/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Workspace Model Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateWorkspaceModelContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .modelContainers()
+ .createOrUpdateWithResponse(
+ "testrg123",
+ "workspace123",
+ "testContainer",
+ new ModelContainerInner()
+ .withProperties(
+ new ModelContainerProperties()
+ .withDescription("Model container description")
+ .withTags(mapOf("tag1", "value1", "tag2", "value2"))),
+ com.azure.core.util.Context.NONE);
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### ModelContainers_Delete
+
+```java
+/** Samples for ModelContainers Delete. */
+public final class ModelContainersDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ModelContainer/delete.json
+ */
+ /**
+ * Sample code: Delete Workspace Model Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteWorkspaceModelContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .modelContainers()
+ .deleteWithResponse("testrg123", "workspace123", "testContainer", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ModelContainers_Get
+
+```java
+/** Samples for ModelContainers Get. */
+public final class ModelContainersGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ModelContainer/get.json
+ */
+ /**
+ * Sample code: Get Workspace Model Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getWorkspaceModelContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .modelContainers()
+ .getWithResponse("testrg123", "workspace123", "testContainer", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ModelContainers_List
+
+```java
+/** Samples for ModelContainers List. */
+public final class ModelContainersListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ModelContainer/list.json
+ */
+ /**
+ * Sample code: List Workspace Model Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listWorkspaceModelContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.modelContainers().list("testrg123", "workspace123", null, null, null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ModelVersions_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.fluent.models.ModelVersionInner;
+import com.azure.resourcemanager.machinelearning.models.FlavorData;
+import com.azure.resourcemanager.machinelearning.models.ModelVersionProperties;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for ModelVersions CreateOrUpdate. */
+public final class ModelVersionsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ModelVersion/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Workspace Model Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateWorkspaceModelVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .modelVersions()
+ .createOrUpdateWithResponse(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ "string",
+ new ModelVersionInner()
+ .withProperties(
+ new ModelVersionProperties()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsAnonymous(false)
+ .withFlavors(mapOf("string", new FlavorData().withData(mapOf("string", "string"))))
+ .withModelType("CustomModel")
+ .withModelUri("string")),
+ com.azure.core.util.Context.NONE);
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### ModelVersions_Delete
+
+```java
+/** Samples for ModelVersions Delete. */
+public final class ModelVersionsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ModelVersion/delete.json
+ */
+ /**
+ * Sample code: Delete Workspace Model Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteWorkspaceModelVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .modelVersions()
+ .deleteWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ModelVersions_Get
+
+```java
+/** Samples for ModelVersions Get. */
+public final class ModelVersionsGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ModelVersion/get.json
+ */
+ /**
+ * Sample code: Get Workspace Model Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getWorkspaceModelVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .modelVersions()
+ .getWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ModelVersions_List
+
+```java
+/** Samples for ModelVersions List. */
+public final class ModelVersionsListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ModelVersion/list.json
+ */
+ /**
+ * Sample code: List Workspace Model Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listWorkspaceModelVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .modelVersions()
+ .list(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ null,
+ "string",
+ 1,
+ "string",
+ "string",
+ 1,
+ "string",
+ "string",
+ null,
+ null,
+ null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ModelVersions_PackageMethod
+
+```java
+import com.azure.resourcemanager.machinelearning.models.AzureMLBatchInferencingServer;
+import com.azure.resourcemanager.machinelearning.models.BaseEnvironmentId;
+import com.azure.resourcemanager.machinelearning.models.CodeConfiguration;
+import com.azure.resourcemanager.machinelearning.models.ModelConfiguration;
+import com.azure.resourcemanager.machinelearning.models.ModelPackageInput;
+import com.azure.resourcemanager.machinelearning.models.PackageInputDeliveryMode;
+import com.azure.resourcemanager.machinelearning.models.PackageInputPathUrl;
+import com.azure.resourcemanager.machinelearning.models.PackageInputType;
+import com.azure.resourcemanager.machinelearning.models.PackageRequest;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for ModelVersions PackageMethod. */
+public final class ModelVersionsPackageMethodSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ModelVersion/package.json
+ */
+ /**
+ * Sample code: Package Workspace Model Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void packageWorkspaceModelVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .modelVersions()
+ .packageMethod(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ "string",
+ new PackageRequest()
+ .withBaseEnvironmentSource(new BaseEnvironmentId().withResourceId("string"))
+ .withEnvironmentVariables(mapOf("string", "string"))
+ .withInferencingServer(
+ new AzureMLBatchInferencingServer()
+ .withCodeConfiguration(
+ new CodeConfiguration().withCodeId("fakeTokenPlaceholder").withScoringScript("string")))
+ .withInputs(
+ Arrays
+ .asList(
+ new ModelPackageInput()
+ .withInputType(PackageInputType.URI_FILE)
+ .withMode(PackageInputDeliveryMode.DOWNLOAD)
+ .withMountPath("string")
+ .withPath(new PackageInputPathUrl().withUrl("string"))))
+ .withModelConfiguration(
+ new ModelConfiguration()
+ .withMode(PackageInputDeliveryMode.fromString("ReadOnlyMount"))
+ .withMountPath("string"))
+ .withTags(mapOf("string", "string"))
+ .withTargetEnvironmentId("string"),
+ com.azure.core.util.Context.NONE);
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### OnlineDeployments_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.CodeConfiguration;
+import com.azure.resourcemanager.machinelearning.models.ContainerResourceRequirements;
+import com.azure.resourcemanager.machinelearning.models.ContainerResourceSettings;
+import com.azure.resourcemanager.machinelearning.models.DefaultScaleSettings;
+import com.azure.resourcemanager.machinelearning.models.KubernetesOnlineDeployment;
+import com.azure.resourcemanager.machinelearning.models.ManagedOnlineDeployment;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.machinelearning.models.OnlineRequestSettings;
+import com.azure.resourcemanager.machinelearning.models.ProbeSettings;
+import com.azure.resourcemanager.machinelearning.models.Sku;
+import com.azure.resourcemanager.machinelearning.models.SkuTier;
+import com.azure.resourcemanager.machinelearning.models.UserAssignedIdentity;
+import java.time.Duration;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for OnlineDeployments CreateOrUpdate. */
+public final class OnlineDeploymentsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Kubernetes Online Deployment.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateKubernetesOnlineDeployment(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .onlineDeployments()
+ .define("testDeploymentName")
+ .withRegion("string")
+ .withExistingOnlineEndpoint("test-rg", "my-aml-workspace", "testEndpointName")
+ .withProperties(
+ new KubernetesOnlineDeployment()
+ .withCodeConfiguration(
+ new CodeConfiguration().withCodeId("fakeTokenPlaceholder").withScoringScript("string"))
+ .withDescription("string")
+ .withEnvironmentId("string")
+ .withEnvironmentVariables(mapOf("string", "string"))
+ .withProperties(mapOf("string", "string"))
+ .withAppInsightsEnabled(false)
+ .withInstanceType("string")
+ .withLivenessProbe(
+ new ProbeSettings()
+ .withFailureThreshold(1)
+ .withInitialDelay(Duration.parse("PT5M"))
+ .withPeriod(Duration.parse("PT5M"))
+ .withSuccessThreshold(1)
+ .withTimeout(Duration.parse("PT5M")))
+ .withModel("string")
+ .withModelMountPath("string")
+ .withRequestSettings(
+ new OnlineRequestSettings()
+ .withMaxConcurrentRequestsPerInstance(1)
+ .withMaxQueueWait(Duration.parse("PT5M"))
+ .withRequestTimeout(Duration.parse("PT5M")))
+ .withScaleSettings(new DefaultScaleSettings())
+ .withContainerResourceRequirements(
+ new ContainerResourceRequirements()
+ .withContainerResourceLimits(
+ new ContainerResourceSettings().withCpu("\"1\"").withGpu("\"1\"").withMemory("\"2Gi\""))
+ .withContainerResourceRequests(
+ new ContainerResourceSettings()
+ .withCpu("\"1\"")
+ .withGpu("\"1\"")
+ .withMemory("\"2Gi\""))))
+ .withTags(mapOf())
+ .withIdentity(
+ new ManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
+ .withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withKind("string")
+ .withSku(
+ new Sku()
+ .withName("string")
+ .withTier(SkuTier.FREE)
+ .withSize("string")
+ .withFamily("string")
+ .withCapacity(1))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Managed Online Deployment.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateManagedOnlineDeployment(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .onlineDeployments()
+ .define("testDeploymentName")
+ .withRegion("string")
+ .withExistingOnlineEndpoint("test-rg", "my-aml-workspace", "testEndpointName")
+ .withProperties(
+ new ManagedOnlineDeployment()
+ .withCodeConfiguration(
+ new CodeConfiguration().withCodeId("fakeTokenPlaceholder").withScoringScript("string"))
+ .withDescription("string")
+ .withEnvironmentId("string")
+ .withEnvironmentVariables(mapOf("string", "string"))
+ .withProperties(mapOf("string", "string"))
+ .withAppInsightsEnabled(false)
+ .withInstanceType("string")
+ .withLivenessProbe(
+ new ProbeSettings()
+ .withFailureThreshold(1)
+ .withInitialDelay(Duration.parse("PT5M"))
+ .withPeriod(Duration.parse("PT5M"))
+ .withSuccessThreshold(1)
+ .withTimeout(Duration.parse("PT5M")))
+ .withModel("string")
+ .withModelMountPath("string")
+ .withReadinessProbe(
+ new ProbeSettings()
+ .withFailureThreshold(30)
+ .withInitialDelay(Duration.parse("PT1S"))
+ .withPeriod(Duration.parse("PT10S"))
+ .withSuccessThreshold(1)
+ .withTimeout(Duration.parse("PT2S")))
+ .withRequestSettings(
+ new OnlineRequestSettings()
+ .withMaxConcurrentRequestsPerInstance(1)
+ .withMaxQueueWait(Duration.parse("PT5M"))
+ .withRequestTimeout(Duration.parse("PT5M")))
+ .withScaleSettings(new DefaultScaleSettings()))
+ .withTags(mapOf())
+ .withIdentity(
+ new ManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
+ .withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withKind("string")
+ .withSku(
+ new Sku()
+ .withName("string")
+ .withTier(SkuTier.FREE)
+ .withSize("string")
+ .withFamily("string")
+ .withCapacity(1))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### OnlineDeployments_Delete
+
+```java
+/** Samples for OnlineDeployments Delete. */
+public final class OnlineDeploymentsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/OnlineDeployment/delete.json
+ */
+ /**
+ * Sample code: Delete Workspace Online Deployment.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteWorkspaceOnlineDeployment(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .onlineDeployments()
+ .delete("testrg123", "workspace123", "testEndpoint", "testDeployment", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### OnlineDeployments_Get
+
+```java
+/** Samples for OnlineDeployments Get. */
+public final class OnlineDeploymentsGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/get.json
+ */
+ /**
+ * Sample code: Get Kubernetes Online Deployment.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getKubernetesOnlineDeployment(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .onlineDeployments()
+ .getWithResponse(
+ "test-rg",
+ "my-aml-workspace",
+ "testEndpointName",
+ "testDeploymentName",
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/get.json
+ */
+ /**
+ * Sample code: Get Managed Online Deployment.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getManagedOnlineDeployment(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .onlineDeployments()
+ .getWithResponse(
+ "test-rg",
+ "my-aml-workspace",
+ "testEndpointName",
+ "testDeploymentName",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### OnlineDeployments_GetLogs
+
+```java
+import com.azure.resourcemanager.machinelearning.models.ContainerType;
+import com.azure.resourcemanager.machinelearning.models.DeploymentLogsRequest;
+
+/** Samples for OnlineDeployments GetLogs. */
+public final class OnlineDeploymentsGetLogsSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/OnlineDeployment/getLogs.json
+ */
+ /**
+ * Sample code: Get Online Deployment Logs.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getOnlineDeploymentLogs(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .onlineDeployments()
+ .getLogsWithResponse(
+ "testrg123",
+ "workspace123",
+ "testEndpoint",
+ "testDeployment",
+ new DeploymentLogsRequest().withContainerType(ContainerType.STORAGE_INITIALIZER).withTail(0),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### OnlineDeployments_List
+
+```java
+/** Samples for OnlineDeployments List. */
+public final class OnlineDeploymentsListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/OnlineDeployment/list.json
+ */
+ /**
+ * Sample code: List Online Deployments.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listOnlineDeployments(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .onlineDeployments()
+ .list(
+ "test-rg", "my-aml-workspace", "testEndpointName", "string", 1, null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### OnlineDeployments_ListSkus
+
+```java
+/** Samples for OnlineDeployments ListSkus. */
+public final class OnlineDeploymentsListSkusSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/listSkus.json
+ */
+ /**
+ * Sample code: List Managed Online Deployment Skus.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listManagedOnlineDeploymentSkus(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .onlineDeployments()
+ .listSkus(
+ "test-rg",
+ "my-aml-workspace",
+ "testEndpointName",
+ "testDeploymentName",
+ 1,
+ null,
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/listSkus.json
+ */
+ /**
+ * Sample code: List Kubernetes Online Deployment Skus.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listKubernetesOnlineDeploymentSkus(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .onlineDeployments()
+ .listSkus(
+ "test-rg",
+ "my-aml-workspace",
+ "testEndpointName",
+ "testDeploymentName",
+ 1,
+ null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### OnlineDeployments_Update
+
+```java
+import com.azure.resourcemanager.machinelearning.models.OnlineDeployment;
+import com.azure.resourcemanager.machinelearning.models.PartialSku;
+import com.azure.resourcemanager.machinelearning.models.SkuTier;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for OnlineDeployments Update. */
+public final class OnlineDeploymentsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/update.json
+ */
+ /**
+ * Sample code: Update Managed Online Deployment.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void updateManagedOnlineDeployment(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ OnlineDeployment resource =
+ manager
+ .onlineDeployments()
+ .getWithResponse(
+ "test-rg",
+ "my-aml-workspace",
+ "testEndpointName",
+ "testDeploymentName",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withTags(mapOf())
+ .withSku(
+ new PartialSku()
+ .withCapacity(1)
+ .withFamily("string")
+ .withName("string")
+ .withSize("string")
+ .withTier(SkuTier.FREE))
+ .apply();
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/update.json
+ */
+ /**
+ * Sample code: Update Kubernetes Online Deployment.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void updateKubernetesOnlineDeployment(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ OnlineDeployment resource =
+ manager
+ .onlineDeployments()
+ .getWithResponse(
+ "test-rg",
+ "my-aml-workspace",
+ "testEndpointName",
+ "testDeploymentName",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withTags(mapOf())
+ .withSku(
+ new PartialSku()
+ .withCapacity(1)
+ .withFamily("string")
+ .withName("string")
+ .withSize("string")
+ .withTier(SkuTier.FREE))
+ .apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### OnlineEndpoints_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.EndpointAuthMode;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.machinelearning.models.OnlineEndpointProperties;
+import com.azure.resourcemanager.machinelearning.models.Sku;
+import com.azure.resourcemanager.machinelearning.models.SkuTier;
+import com.azure.resourcemanager.machinelearning.models.UserAssignedIdentity;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for OnlineEndpoints CreateOrUpdate. */
+public final class OnlineEndpointsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/OnlineEndpoint/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Workspace Online Endpoint.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateWorkspaceOnlineEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .onlineEndpoints()
+ .define("testEndpointName")
+ .withRegion("string")
+ .withExistingWorkspace("test-rg", "my-aml-workspace")
+ .withProperties(
+ new OnlineEndpointProperties()
+ .withAuthMode(EndpointAuthMode.AMLTOKEN)
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withCompute("string")
+ .withTraffic(mapOf("string", 1)))
+ .withTags(mapOf())
+ .withIdentity(
+ new ManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
+ .withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withKind("string")
+ .withSku(
+ new Sku()
+ .withName("string")
+ .withTier(SkuTier.FREE)
+ .withSize("string")
+ .withFamily("string")
+ .withCapacity(1))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### OnlineEndpoints_Delete
+
+```java
+/** Samples for OnlineEndpoints Delete. */
+public final class OnlineEndpointsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/OnlineEndpoint/delete.json
+ */
+ /**
+ * Sample code: Delete Workspace Online Endpoint.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteWorkspaceOnlineEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .onlineEndpoints()
+ .delete("test-rg", "my-aml-workspace", "testEndpointName", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### OnlineEndpoints_Get
+
+```java
+/** Samples for OnlineEndpoints Get. */
+public final class OnlineEndpointsGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/OnlineEndpoint/get.json
+ */
+ /**
+ * Sample code: Get Workspace Online Endpoint.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getWorkspaceOnlineEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .onlineEndpoints()
+ .getWithResponse("test-rg", "my-aml-workspace", "testEndpointName", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### OnlineEndpoints_GetToken
+
+```java
+/** Samples for OnlineEndpoints GetToken. */
+public final class OnlineEndpointsGetTokenSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/OnlineEndpoint/getToken.json
+ */
+ /**
+ * Sample code: GetToken Workspace Online Endpoint.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getTokenWorkspaceOnlineEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .onlineEndpoints()
+ .getTokenWithResponse("test-rg", "my-aml-workspace", "testEndpointName", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### OnlineEndpoints_List
+
+```java
+import com.azure.resourcemanager.machinelearning.models.EndpointComputeType;
+import com.azure.resourcemanager.machinelearning.models.OrderString;
+
+/** Samples for OnlineEndpoints List. */
+public final class OnlineEndpointsListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/OnlineEndpoint/list.json
+ */
+ /**
+ * Sample code: List Workspace Online Endpoint.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listWorkspaceOnlineEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .onlineEndpoints()
+ .list(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ 1,
+ EndpointComputeType.MANAGED,
+ null,
+ "string",
+ "string",
+ OrderString.CREATED_AT_DESC,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### OnlineEndpoints_ListKeys
+
+```java
+/** Samples for OnlineEndpoints ListKeys. */
+public final class OnlineEndpointsListKeysSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/OnlineEndpoint/listKeys.json
+ */
+ /**
+ * Sample code: ListKeys Workspace Online Endpoint.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listKeysWorkspaceOnlineEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .onlineEndpoints()
+ .listKeysWithResponse("test-rg", "my-aml-workspace", "testEndpointName", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### OnlineEndpoints_RegenerateKeys
+
+```java
+import com.azure.resourcemanager.machinelearning.models.KeyType;
+import com.azure.resourcemanager.machinelearning.models.RegenerateEndpointKeysRequest;
+
+/** Samples for OnlineEndpoints RegenerateKeys. */
+public final class OnlineEndpointsRegenerateKeysSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/OnlineEndpoint/regenerateKeys.json
+ */
+ /**
+ * Sample code: RegenerateKeys Workspace Online Endpoint.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void regenerateKeysWorkspaceOnlineEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .onlineEndpoints()
+ .regenerateKeys(
+ "test-rg",
+ "my-aml-workspace",
+ "testEndpointName",
+ new RegenerateEndpointKeysRequest().withKeyType(KeyType.PRIMARY).withKeyValue("fakeTokenPlaceholder"),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### OnlineEndpoints_Update
+
+```java
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.machinelearning.models.OnlineEndpoint;
+import com.azure.resourcemanager.machinelearning.models.PartialManagedServiceIdentity;
+import java.io.IOException;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for OnlineEndpoints Update. */
+public final class OnlineEndpointsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/OnlineEndpoint/update.json
+ */
+ /**
+ * Sample code: Update Workspace Online Endpoint.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void updateWorkspaceOnlineEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) throws IOException {
+ OnlineEndpoint resource =
+ manager
+ .onlineEndpoints()
+ .getWithResponse("test-rg", "my-aml-workspace", "testEndpointName", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withTags(mapOf())
+ .withIdentity(
+ new PartialManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
+ .withUserAssignedIdentities(
+ mapOf(
+ "string",
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize("{}", Object.class, SerializerEncoding.JSON))))
+ .apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Operations_List
+
+```java
+/** Samples for Operations List. */
+public final class OperationsListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/operationsList.json
+ */
+ /**
+ * Sample code: OperationsList.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void operationsList(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.operations().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### PrivateEndpointConnections_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.EndpointServiceConnectionStatus;
+import com.azure.resourcemanager.machinelearning.models.PrivateLinkServiceConnectionState;
+
+/** Samples for PrivateEndpointConnections CreateOrUpdate. */
+public final class PrivateEndpointConnectionsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/PrivateEndpointConnection/createOrUpdate.json
+ */
+ /**
+ * Sample code: WorkspacePutPrivateEndpointConnection.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void workspacePutPrivateEndpointConnection(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .privateEndpointConnections()
+ .define("{privateEndpointConnectionName}")
+ .withExistingWorkspace("rg-1234", "testworkspace")
+ .withPrivateLinkServiceConnectionState(
+ new PrivateLinkServiceConnectionState()
+ .withDescription("Auto-Approved")
+ .withStatus(EndpointServiceConnectionStatus.APPROVED))
+ .create();
+ }
+}
+```
+
+### PrivateEndpointConnections_Delete
+
+```java
+/** Samples for PrivateEndpointConnections Delete. */
+public final class PrivateEndpointConnectionsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/PrivateEndpointConnection/delete.json
+ */
+ /**
+ * Sample code: WorkspacePutPrivateEndpointConnection.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void workspacePutPrivateEndpointConnection(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .privateEndpointConnections()
+ .deleteWithResponse(
+ "rg-1234", "testworkspace", "{privateEndpointConnectionName}", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### PrivateEndpointConnections_Get
+
+```java
+/** Samples for PrivateEndpointConnections Get. */
+public final class PrivateEndpointConnectionsGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/PrivateEndpointConnection/get.json
+ */
+ /**
+ * Sample code: WorkspaceGetPrivateEndpointConnection.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void workspaceGetPrivateEndpointConnection(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .privateEndpointConnections()
+ .getWithResponse(
+ "rg-1234", "testworkspace", "{privateEndpointConnectionName}", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### PrivateEndpointConnections_List
+
+```java
+/** Samples for PrivateEndpointConnections List. */
+public final class PrivateEndpointConnectionsListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/PrivateEndpointConnection/list.json
+ */
+ /**
+ * Sample code: StorageAccountListPrivateEndpointConnections.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void storageAccountListPrivateEndpointConnections(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.privateEndpointConnections().list("rg-1234", "testworkspace", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### PrivateLinkResources_List
+
+```java
+/** Samples for PrivateLinkResources List. */
+public final class PrivateLinkResourcesListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/PrivateLinkResource/list.json
+ */
+ /**
+ * Sample code: WorkspaceListPrivateLinkResources.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void workspaceListPrivateLinkResources(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.privateLinkResources().list("rg-1234", "testworkspace", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Quotas_List
+
+```java
+/** Samples for Quotas List. */
+public final class QuotasListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Quota/list.json
+ */
+ /**
+ * Sample code: List workspace quotas by VMFamily.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listWorkspaceQuotasByVMFamily(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.quotas().list("eastus", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Quotas_Update
+
+```java
+import com.azure.resourcemanager.machinelearning.models.QuotaBaseProperties;
+import com.azure.resourcemanager.machinelearning.models.QuotaUnit;
+import com.azure.resourcemanager.machinelearning.models.QuotaUpdateParameters;
+import java.util.Arrays;
+
+/** Samples for Quotas Update. */
+public final class QuotasUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Quota/update.json
+ */
+ /**
+ * Sample code: update quotas.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void updateQuotas(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .quotas()
+ .updateWithResponse(
+ "eastus",
+ new QuotaUpdateParameters()
+ .withValue(
+ Arrays
+ .asList(
+ new QuotaBaseProperties()
+ .withId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace1/quotas/Standard_DSv2_Family_Cluster_Dedicated_vCPUs")
+ .withType("Microsoft.MachineLearningServices/workspaces/quotas")
+ .withLimit(100L)
+ .withUnit(QuotaUnit.COUNT),
+ new QuotaBaseProperties()
+ .withId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace2/quotas/Standard_DSv2_Family_Cluster_Dedicated_vCPUs")
+ .withType("Microsoft.MachineLearningServices/workspaces/quotas")
+ .withLimit(200L)
+ .withUnit(QuotaUnit.COUNT))),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Registries_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.AcrDetails;
+import com.azure.resourcemanager.machinelearning.models.ArmResourceId;
+import com.azure.resourcemanager.machinelearning.models.EndpointServiceConnectionStatus;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.machinelearning.models.PrivateEndpointResource;
+import com.azure.resourcemanager.machinelearning.models.RegistryPrivateEndpointConnection;
+import com.azure.resourcemanager.machinelearning.models.RegistryPrivateLinkServiceConnectionState;
+import com.azure.resourcemanager.machinelearning.models.RegistryRegionArmDetails;
+import com.azure.resourcemanager.machinelearning.models.Sku;
+import com.azure.resourcemanager.machinelearning.models.SkuTier;
+import com.azure.resourcemanager.machinelearning.models.StorageAccountDetails;
+import com.azure.resourcemanager.machinelearning.models.SystemCreatedAcrAccount;
+import com.azure.resourcemanager.machinelearning.models.SystemCreatedStorageAccount;
+import com.azure.resourcemanager.machinelearning.models.UserAssignedIdentity;
+import com.azure.resourcemanager.machinelearning.models.UserCreatedAcrAccount;
+import com.azure.resourcemanager.machinelearning.models.UserCreatedStorageAccount;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for Registries CreateOrUpdate. */
+public final class RegistriesCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registries/createOrUpdate-SystemCreated.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Registry with system created accounts.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateRegistryWithSystemCreatedAccounts(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registries()
+ .define("string")
+ .withRegion("string")
+ .withExistingResourceGroup("test-rg")
+ .withTags(mapOf())
+ .withIdentity(
+ new ManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.NONE)
+ .withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withKind("string")
+ .withSku(
+ new Sku()
+ .withName("string")
+ .withTier(SkuTier.FREE)
+ .withSize("string")
+ .withFamily("string")
+ .withCapacity(1))
+ .withDiscoveryUrl("string")
+ .withIntellectualPropertyPublisher("string")
+ .withManagedResourceGroup(new ArmResourceId().withResourceId("string"))
+ .withMlFlowRegistryUri("string")
+ .withRegistryPrivateEndpointConnections(
+ Arrays
+ .asList(
+ new RegistryPrivateEndpointConnection()
+ .withId("string")
+ .withLocation("string")
+ .withGroupIds(Arrays.asList("string"))
+ .withPrivateEndpoint(new PrivateEndpointResource().withSubnetArmId("string"))
+ .withRegistryPrivateLinkServiceConnectionState(
+ new RegistryPrivateLinkServiceConnectionState()
+ .withActionsRequired("string")
+ .withDescription("string")
+ .withStatus(EndpointServiceConnectionStatus.APPROVED))
+ .withProvisioningState("string")))
+ .withPublicNetworkAccess("string")
+ .withRegionDetails(
+ Arrays
+ .asList(
+ new RegistryRegionArmDetails()
+ .withAcrDetails(
+ Arrays
+ .asList(
+ new AcrDetails()
+ .withSystemCreatedAcrAccount(
+ new SystemCreatedAcrAccount()
+ .withAcrAccountName("string")
+ .withAcrAccountSku("string")
+ .withArmResourceId(new ArmResourceId().withResourceId("string")))))
+ .withLocation("string")
+ .withStorageAccountDetails(
+ Arrays
+ .asList(
+ new StorageAccountDetails()
+ .withSystemCreatedStorageAccount(
+ new SystemCreatedStorageAccount()
+ .withAllowBlobPublicAccess(false)
+ .withArmResourceId(new ArmResourceId().withResourceId("string"))
+ .withStorageAccountHnsEnabled(false)
+ .withStorageAccountName("string")
+ .withStorageAccountType("string"))))))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registries/createOrUpdate-UserCreated.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Registry with user created accounts.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateRegistryWithUserCreatedAccounts(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registries()
+ .define("string")
+ .withRegion("string")
+ .withExistingResourceGroup("test-rg")
+ .withTags(mapOf())
+ .withIdentity(
+ new ManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.NONE)
+ .withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withKind("string")
+ .withSku(
+ new Sku()
+ .withName("string")
+ .withTier(SkuTier.FREE)
+ .withSize("string")
+ .withFamily("string")
+ .withCapacity(1))
+ .withDiscoveryUrl("string")
+ .withIntellectualPropertyPublisher("string")
+ .withManagedResourceGroup(new ArmResourceId().withResourceId("string"))
+ .withMlFlowRegistryUri("string")
+ .withRegistryPrivateEndpointConnections(
+ Arrays
+ .asList(
+ new RegistryPrivateEndpointConnection()
+ .withId("string")
+ .withLocation("string")
+ .withGroupIds(Arrays.asList("string"))
+ .withPrivateEndpoint(new PrivateEndpointResource().withSubnetArmId("string"))
+ .withRegistryPrivateLinkServiceConnectionState(
+ new RegistryPrivateLinkServiceConnectionState()
+ .withActionsRequired("string")
+ .withDescription("string")
+ .withStatus(EndpointServiceConnectionStatus.APPROVED))
+ .withProvisioningState("string")))
+ .withPublicNetworkAccess("string")
+ .withRegionDetails(
+ Arrays
+ .asList(
+ new RegistryRegionArmDetails()
+ .withAcrDetails(
+ Arrays
+ .asList(
+ new AcrDetails()
+ .withUserCreatedAcrAccount(
+ new UserCreatedAcrAccount()
+ .withArmResourceId(new ArmResourceId().withResourceId("string")))))
+ .withLocation("string")
+ .withStorageAccountDetails(
+ Arrays
+ .asList(
+ new StorageAccountDetails()
+ .withUserCreatedStorageAccount(
+ new UserCreatedStorageAccount()
+ .withArmResourceId(
+ new ArmResourceId().withResourceId("string")))))))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Registries_Delete
+
+```java
+/** Samples for Registries Delete. */
+public final class RegistriesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registries/delete.json
+ */
+ /**
+ * Sample code: Delete Registry.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteRegistry(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.registries().delete("test-rg", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Registries_GetByResourceGroup
+
+```java
+/** Samples for Registries GetByResourceGroup. */
+public final class RegistriesGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registries/get-UserCreated.json
+ */
+ /**
+ * Sample code: Get Registry with user created accounts.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getRegistryWithUserCreatedAccounts(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.registries().getByResourceGroupWithResponse("test-rg", "string", com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registries/get-SystemCreated.json
+ */
+ /**
+ * Sample code: Get Registry with system created accounts.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getRegistryWithSystemCreatedAccounts(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.registries().getByResourceGroupWithResponse("test-rg", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Registries_List
+
+```java
+/** Samples for Registries List. */
+public final class RegistriesListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registries/listBySubscription.json
+ */
+ /**
+ * Sample code: List registries by subscription.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listRegistriesBySubscription(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.registries().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Registries_ListByResourceGroup
+
+```java
+/** Samples for Registries ListByResourceGroup. */
+public final class RegistriesListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registries/list-UserCreated.json
+ */
+ /**
+ * Sample code: List registries with user created accounts.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listRegistriesWithUserCreatedAccounts(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.registries().listByResourceGroup("test-rg", com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registries/list-SystemCreated.json
+ */
+ /**
+ * Sample code: List registries with system created accounts.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listRegistriesWithSystemCreatedAccounts(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.registries().listByResourceGroup("test-rg", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Registries_RemoveRegions
+
+```java
+import com.azure.resourcemanager.machinelearning.fluent.models.RegistryInner;
+import com.azure.resourcemanager.machinelearning.models.AcrDetails;
+import com.azure.resourcemanager.machinelearning.models.ArmResourceId;
+import com.azure.resourcemanager.machinelearning.models.EndpointServiceConnectionStatus;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.machinelearning.models.PrivateEndpointResource;
+import com.azure.resourcemanager.machinelearning.models.RegistryPrivateEndpointConnection;
+import com.azure.resourcemanager.machinelearning.models.RegistryPrivateLinkServiceConnectionState;
+import com.azure.resourcemanager.machinelearning.models.RegistryRegionArmDetails;
+import com.azure.resourcemanager.machinelearning.models.Sku;
+import com.azure.resourcemanager.machinelearning.models.SkuTier;
+import com.azure.resourcemanager.machinelearning.models.StorageAccountDetails;
+import com.azure.resourcemanager.machinelearning.models.SystemCreatedAcrAccount;
+import com.azure.resourcemanager.machinelearning.models.SystemCreatedStorageAccount;
+import com.azure.resourcemanager.machinelearning.models.UserAssignedIdentity;
+import com.azure.resourcemanager.machinelearning.models.UserCreatedAcrAccount;
+import com.azure.resourcemanager.machinelearning.models.UserCreatedStorageAccount;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for Registries RemoveRegions. */
+public final class RegistriesRemoveRegionsSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registries/removeRegions.json
+ */
+ /**
+ * Sample code: Remove regions from registry.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void removeRegionsFromRegistry(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registries()
+ .removeRegions(
+ "test-rg",
+ "string",
+ new RegistryInner()
+ .withLocation("string")
+ .withTags(mapOf())
+ .withIdentity(
+ new ManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.NONE)
+ .withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withKind("string")
+ .withSku(
+ new Sku()
+ .withName("string")
+ .withTier(SkuTier.FREE)
+ .withSize("string")
+ .withFamily("string")
+ .withCapacity(1))
+ .withDiscoveryUrl("string")
+ .withIntellectualPropertyPublisher("string")
+ .withManagedResourceGroup(new ArmResourceId().withResourceId("string"))
+ .withMlFlowRegistryUri("string")
+ .withRegistryPrivateEndpointConnections(
+ Arrays
+ .asList(
+ new RegistryPrivateEndpointConnection()
+ .withId("string")
+ .withLocation("string")
+ .withGroupIds(Arrays.asList("string"))
+ .withPrivateEndpoint(new PrivateEndpointResource().withSubnetArmId("string"))
+ .withRegistryPrivateLinkServiceConnectionState(
+ new RegistryPrivateLinkServiceConnectionState()
+ .withActionsRequired("string")
+ .withDescription("string")
+ .withStatus(EndpointServiceConnectionStatus.APPROVED))
+ .withProvisioningState("string")))
+ .withPublicNetworkAccess("string")
+ .withRegionDetails(
+ Arrays
+ .asList(
+ new RegistryRegionArmDetails()
+ .withAcrDetails(
+ Arrays
+ .asList(
+ new AcrDetails()
+ .withSystemCreatedAcrAccount(
+ new SystemCreatedAcrAccount()
+ .withAcrAccountName("string")
+ .withAcrAccountSku("string")
+ .withArmResourceId(
+ new ArmResourceId().withResourceId("string")))
+ .withUserCreatedAcrAccount(
+ new UserCreatedAcrAccount()
+ .withArmResourceId(
+ new ArmResourceId().withResourceId("string")))))
+ .withLocation("string")
+ .withStorageAccountDetails(
+ Arrays
+ .asList(
+ new StorageAccountDetails()
+ .withSystemCreatedStorageAccount(
+ new SystemCreatedStorageAccount()
+ .withAllowBlobPublicAccess(false)
+ .withArmResourceId(
+ new ArmResourceId().withResourceId("string"))
+ .withStorageAccountHnsEnabled(false)
+ .withStorageAccountName("string")
+ .withStorageAccountType("string"))
+ .withUserCreatedStorageAccount(
+ new UserCreatedStorageAccount()
+ .withArmResourceId(
+ new ArmResourceId().withResourceId("string"))))))),
+ com.azure.core.util.Context.NONE);
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Registries_Update
+
+```java
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.machinelearning.models.PartialSku;
+import com.azure.resourcemanager.machinelearning.models.Registry;
+import com.azure.resourcemanager.machinelearning.models.RegistryPartialManagedServiceIdentity;
+import com.azure.resourcemanager.machinelearning.models.SkuTier;
+import com.azure.resourcemanager.machinelearning.models.UserAssignedIdentity;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for Registries Update. */
+public final class RegistriesUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registries/update-UserCreated.json
+ */
+ /**
+ * Sample code: Update Registry with user created accounts.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void updateRegistryWithUserCreatedAccounts(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ Registry resource =
+ manager
+ .registries()
+ .getByResourceGroupWithResponse("test-rg", "string", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withTags(mapOf())
+ .withIdentity(
+ new RegistryPartialManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.USER_ASSIGNED)
+ .withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withSku(
+ new PartialSku()
+ .withCapacity(1)
+ .withFamily("string")
+ .withName("string")
+ .withSize("string")
+ .withTier(SkuTier.BASIC))
+ .apply();
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registries/update-SystemCreated.json
+ */
+ /**
+ * Sample code: Update Registry with system created accounts.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void updateRegistryWithSystemCreatedAccounts(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ Registry resource =
+ manager
+ .registries()
+ .getByResourceGroupWithResponse("test-rg", "string", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withTags(mapOf())
+ .withIdentity(
+ new RegistryPartialManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
+ .withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withSku(
+ new PartialSku()
+ .withCapacity(1)
+ .withFamily("string")
+ .withName("string")
+ .withSize("string")
+ .withTier(SkuTier.BASIC))
+ .apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### RegistryCodeContainers_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.CodeContainerProperties;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for RegistryCodeContainers CreateOrUpdate. */
+public final class RegistryCodeContainersCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/CodeContainer/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Registry Code Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateRegistryCodeContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryCodeContainers()
+ .define("testContainer")
+ .withExistingRegistry("testrg123", "testregistry")
+ .withProperties(
+ new CodeContainerProperties()
+ .withDescription("string")
+ .withTags(mapOf("tag1", "value1", "tag2", "value2")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### RegistryCodeContainers_Delete
+
+```java
+/** Samples for RegistryCodeContainers Delete. */
+public final class RegistryCodeContainersDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/CodeContainer/delete.json
+ */
+ /**
+ * Sample code: Delete Registry Code Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteRegistryCodeContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryCodeContainers()
+ .delete("testrg123", "testregistry", "testContainer", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RegistryCodeContainers_Get
+
+```java
+/** Samples for RegistryCodeContainers Get. */
+public final class RegistryCodeContainersGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/CodeContainer/get.json
+ */
+ /**
+ * Sample code: Get Registry Code Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getRegistryCodeContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryCodeContainers()
+ .getWithResponse("testrg123", "testregistry", "testContainer", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RegistryCodeContainers_List
+
+```java
+/** Samples for RegistryCodeContainers List. */
+public final class RegistryCodeContainersListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/CodeContainer/list.json
+ */
+ /**
+ * Sample code: List Registry Code Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listRegistryCodeContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.registryCodeContainers().list("testrg123", "testregistry", null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RegistryCodeVersions_CreateOrGetStartPendingUpload
+
+```java
+import com.azure.resourcemanager.machinelearning.models.PendingUploadRequestDto;
+import com.azure.resourcemanager.machinelearning.models.PendingUploadType;
+
+/** Samples for RegistryCodeVersions CreateOrGetStartPendingUpload. */
+public final class RegistryCodeVersionsCreateOrGetStartPendingUploadSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/CodeVersion/createOrGetStartPendingUpload.json
+ */
+ /**
+ * Sample code: CreateOrGetStartPendingUpload Registry Code Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrGetStartPendingUploadRegistryCodeVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryCodeVersions()
+ .createOrGetStartPendingUploadWithResponse(
+ "test-rg",
+ "registryName",
+ "string",
+ "string",
+ new PendingUploadRequestDto()
+ .withPendingUploadId("string")
+ .withPendingUploadType(PendingUploadType.NONE),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RegistryCodeVersions_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.CodeVersionProperties;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for RegistryCodeVersions CreateOrUpdate. */
+public final class RegistryCodeVersionsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/CodeVersion/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Registry Code Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateRegistryCodeVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryCodeVersions()
+ .define("string")
+ .withExistingCode("test-rg", "my-aml-registry", "string")
+ .withProperties(
+ new CodeVersionProperties()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsAnonymous(false)
+ .withCodeUri("fakeTokenPlaceholder"))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### RegistryCodeVersions_Delete
+
+```java
+/** Samples for RegistryCodeVersions Delete. */
+public final class RegistryCodeVersionsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/CodeVersion/delete.json
+ */
+ /**
+ * Sample code: Delete Registry Code Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteRegistryCodeVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryCodeVersions()
+ .delete("test-rg", "my-aml-registry", "string", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RegistryCodeVersions_Get
+
+```java
+/** Samples for RegistryCodeVersions Get. */
+public final class RegistryCodeVersionsGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/CodeVersion/get.json
+ */
+ /**
+ * Sample code: Get Registry Code Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getRegistryCodeVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryCodeVersions()
+ .getWithResponse("test-rg", "my-aml-registry", "string", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RegistryCodeVersions_List
+
+```java
+/** Samples for RegistryCodeVersions List. */
+public final class RegistryCodeVersionsListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/CodeVersion/list.json
+ */
+ /**
+ * Sample code: List Registry Code Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listRegistryCodeVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryCodeVersions()
+ .list("test-rg", "my-aml-registry", "string", "string", 1, null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RegistryComponentContainers_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.ComponentContainerProperties;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for RegistryComponentContainers CreateOrUpdate. */
+public final class RegistryComponentContainersCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/ComponentContainer/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Registry Component Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateRegistryComponentContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryComponentContainers()
.define("string")
- .withExistingWorkspace("test-rg", "my-aml-workspace")
+ .withExistingRegistry("test-rg", "my-aml-registry")
.withProperties(
- new SweepJob()
+ new ComponentContainerProperties()
.withDescription("string")
.withProperties(mapOf("string", "string"))
- .withTags(mapOf("string", "string"))
- .withComputeId("string")
- .withDisplayName("string")
- .withExperimentName("string")
- .withServices(
- mapOf(
- "string",
- new JobService()
- .withEndpoint("string")
- .withJobServiceType("string")
- .withPort(1)
- .withProperties(mapOf("string", "string"))))
- .withEarlyTermination(new MedianStoppingPolicy().withDelayEvaluation(1).withEvaluationInterval(1))
- .withLimits(
- new SweepJobLimits()
- .withMaxConcurrentTrials(1)
- .withMaxTotalTrials(1)
- .withTrialTimeout(Duration.parse("PT1S")))
- .withObjective(new Objective().withGoal(Goal.MINIMIZE).withPrimaryMetric("string"))
- .withSamplingAlgorithm(new GridSamplingAlgorithm())
- .withSearchSpace(
- SerializerFactory
- .createDefaultManagementSerializerAdapter()
- .deserialize("{\"string\":{}}", Object.class, SerializerEncoding.JSON))
- .withTrial(
- new TrialComponent()
- .withCodeId("fakeTokenPlaceholder")
- .withCommand("string")
- .withDistribution(new Mpi().withProcessCountPerInstance(1))
- .withEnvironmentId("string")
- .withEnvironmentVariables(mapOf("string", "string"))
- .withResources(
- new JobResourceConfiguration()
- .withInstanceCount(1)
- .withInstanceType("string")
- .withProperties(
- mapOf(
- "string",
- SerializerFactory
- .createDefaultManagementSerializerAdapter()
- .deserialize(
- "{\"e6b6493e-7d5e-4db3-be1e-306ec641327e\":null}",
- Object.class,
- SerializerEncoding.JSON))))))
+ .withTags(mapOf("string", "string")))
.create();
}
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### RegistryComponentContainers_Delete
+
+```java
+/** Samples for RegistryComponentContainers Delete. */
+public final class RegistryComponentContainersDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/PipelineJob/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/ComponentContainer/delete.json
*/
/**
- * Sample code: CreateOrUpdate Pipeline Job.
+ * Sample code: Delete Registry Component Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdatePipelineJob(
- com.azure.resourcemanager.machinelearning.MachineLearningManager manager) throws IOException {
+ public static void deleteRegistryComponentContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .jobs()
- .define("string")
- .withExistingWorkspace("test-rg", "my-aml-workspace")
- .withProperties(
- new PipelineJob()
- .withDescription("string")
- .withProperties(mapOf("string", "string"))
- .withTags(mapOf("string", "string"))
- .withComputeId("string")
- .withDisplayName("string")
- .withExperimentName("string")
- .withServices(
- mapOf(
- "string",
- new JobService()
- .withEndpoint("string")
- .withJobServiceType("string")
- .withPort(1)
- .withProperties(mapOf("string", "string"))))
- .withInputs(mapOf("string", new LiteralJobInput().withDescription("string").withValue("string")))
- .withOutputs(
- mapOf(
- "string",
- new UriFileJobOutput()
- .withDescription("string")
- .withMode(OutputDeliveryMode.UPLOAD)
- .withUri("string")))
- .withSettings(
- SerializerFactory
- .createDefaultManagementSerializerAdapter()
- .deserialize("{}", Object.class, SerializerEncoding.JSON)))
- .create();
+ .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/2022-10-01/examples/Job/CommandJob/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/ComponentContainer/get.json
*/
/**
- * Sample code: CreateOrUpdate Command Job.
+ * Sample code: Get Registry Component Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateCommandJob(
+ public static void getRegistryComponentContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryComponentContainers()
+ .getWithResponse("test-rg", "my-aml-registry", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RegistryComponentContainers_List
+
+```java
+/** Samples for RegistryComponentContainers List. */
+public final class RegistryComponentContainersListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/ComponentContainer/list.json
+ */
+ /**
+ * Sample code: List Registry Component Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listRegistryComponentContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryComponentContainers()
+ .list("test-rg", "my-aml-registry", null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RegistryComponentVersions_CreateOrUpdate
+
+```java
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.machinelearning.models.ComponentVersionProperties;
+import java.io.IOException;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for RegistryComponentVersions CreateOrUpdate. */
+public final class RegistryComponentVersionsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/ComponentVersion/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Registry Component Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateRegistryComponentVersion(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) throws IOException {
manager
- .jobs()
+ .registryComponentVersions()
.define("string")
- .withExistingWorkspace("test-rg", "my-aml-workspace")
+ .withExistingComponent("test-rg", "my-aml-registry", "string")
.withProperties(
- new CommandJob()
+ new ComponentVersionProperties()
.withDescription("string")
.withProperties(mapOf("string", "string"))
.withTags(mapOf("string", "string"))
- .withComputeId("string")
- .withDisplayName("string")
- .withExperimentName("string")
- .withIdentity(new AmlToken())
- .withServices(
- mapOf(
- "string",
- new JobService()
- .withEndpoint("string")
- .withJobServiceType("string")
- .withPort(1)
- .withProperties(mapOf("string", "string"))))
- .withCodeId("fakeTokenPlaceholder")
- .withCommand("string")
- .withDistribution(new TensorFlow().withParameterServerCount(1).withWorkerCount(1))
- .withEnvironmentId("string")
- .withEnvironmentVariables(mapOf("string", "string"))
- .withInputs(mapOf("string", new LiteralJobInput().withDescription("string").withValue("string")))
- .withLimits(new CommandJobLimits().withTimeout(Duration.parse("PT5M")))
- .withOutputs(
- mapOf(
- "string",
- new UriFileJobOutput()
- .withDescription("string")
- .withMode(OutputDeliveryMode.READ_WRITE_MOUNT)
- .withUri("string")))
- .withResources(
- new JobResourceConfiguration()
- .withInstanceCount(1)
- .withInstanceType("string")
- .withProperties(
- mapOf(
- "string",
- SerializerFactory
- .createDefaultManagementSerializerAdapter()
- .deserialize(
- "{\"e6b6493e-7d5e-4db3-be1e-306ec641327e\":null}",
- Object.class,
- SerializerEncoding.JSON)))))
+ .withIsAnonymous(false)
+ .withComponentSpec(
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize(
+ "{\"8ced901b-d826-477d-bfef-329da9672513\":null}",
+ Object.class,
+ SerializerEncoding.JSON)))
.create();
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -2624,171 +7550,256 @@ public final class JobsCreateOrUpdateSamples {
}
```
-### Jobs_Delete
+### RegistryComponentVersions_Delete
```java
-/** Samples for Jobs Delete. */
-public final class JobsDeleteSamples {
+/** Samples for RegistryComponentVersions Delete. */
+public final class RegistryComponentVersionsDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/ComponentVersion/delete.json
*/
/**
- * Sample code: Delete Job.
+ * Sample code: Delete Registry Component Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.jobs().delete("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ public static void deleteRegistryComponentVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryComponentVersions()
+ .delete("test-rg", "my-aml-registry", "string", "string", com.azure.core.util.Context.NONE);
}
}
```
-### Jobs_Get
+### RegistryComponentVersions_Get
```java
-/** Samples for Jobs Get. */
-public final class JobsGetSamples {
+/** Samples for RegistryComponentVersions Get. */
+public final class RegistryComponentVersionsGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/CommandJob/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/ComponentVersion/get.json
*/
/**
- * Sample code: Get Command Job.
+ * Sample code: Get Registry Component Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getCommandJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.jobs().getWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ public static void 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/2022-10-01/examples/Job/AutoMLJob/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/ComponentVersion/list.json
*/
/**
- * Sample code: Get AutoML Job.
+ * Sample code: List Registry Component Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getAutoMLJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.jobs().getWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ public static void listRegistryComponentVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryComponentVersions()
+ .list("test-rg", "my-aml-registry", "string", "string", 1, null, 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/2022-10-01/examples/Job/SweepJob/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/DataContainer/createOrUpdate.json
*/
/**
- * Sample code: Get Sweep Job.
+ * Sample code: CreateOrUpdate Registry Data Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getSweepJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.jobs().getWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ public static void 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();
}
- /*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/PipelineJob/get.json
- */
- /**
- * Sample code: Get Pipeline Job.
- *
- * @param manager Entry point to MachineLearningManager.
- */
- public static void getPipelineJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.jobs().getWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
}
}
```
-### Jobs_List
+### RegistryDataContainers_Delete
```java
-/** Samples for Jobs List. */
-public final class JobsListSamples {
+/** Samples for RegistryDataContainers Delete. */
+public final class RegistryDataContainersDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/CommandJob/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/DataContainer/delete.json
*/
/**
- * Sample code: List Command Job.
+ * Sample code: Delete Registry Data Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listCommandJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager
- .jobs()
- .list("test-rg", "my-aml-workspace", null, "string", "string", null, com.azure.core.util.Context.NONE);
+ 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/2022-10-01/examples/Job/PipelineJob/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/DataContainer/get.json
*/
/**
- * Sample code: List Pipeline Job.
+ * Sample code: Get Registry Data Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listPipelineJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void getRegistryDataContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .jobs()
- .list("test-rg", "my-aml-workspace", null, "string", "string", null, com.azure.core.util.Context.NONE);
+ .registryDataContainers()
+ .getWithResponse("test-rg", "registryName", "string", com.azure.core.util.Context.NONE);
}
+}
+```
+
+### RegistryDataContainers_List
+```java
+import com.azure.resourcemanager.machinelearning.models.ListViewType;
+
+/** Samples for RegistryDataContainers List. */
+public final class RegistryDataContainersListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Job/SweepJob/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/DataContainer/registryList.json
*/
/**
- * Sample code: List Sweep Job.
+ * Sample code: RegistryList Registry Data Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listSweepJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void registryListRegistryDataContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .jobs()
- .list("test-rg", "my-aml-workspace", null, "string", "string", null, com.azure.core.util.Context.NONE);
+ .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/2022-10-01/examples/Job/AutoMLJob/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/DataVersionBase/createOrGetStartPendingUpload.json
*/
/**
- * Sample code: List AutoML Job.
+ * Sample code: CreateOrGetStartPendingUpload Registry Data Version Base.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listAutoMLJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.jobs().list("test-rg", "my-aml-workspace", null, null, null, null, com.azure.core.util.Context.NONE);
+ public static void 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);
}
}
```
-### ModelContainers_CreateOrUpdate
+### RegistryDataVersions_CreateOrUpdate
```java
-import com.azure.resourcemanager.machinelearning.models.ModelContainerProperties;
+import com.azure.resourcemanager.machinelearning.models.MLTableData;
+import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
-/** Samples for ModelContainers CreateOrUpdate. */
-public final class ModelContainersCreateOrUpdateSamples {
+/** Samples for RegistryDataVersions CreateOrUpdate. */
+public final class RegistryDataVersionsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ModelContainer/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/DataVersionBase/createOrUpdate.json
*/
/**
- * Sample code: CreateOrUpdate Model Container.
+ * Sample code: CreateOrUpdate Registry Data Version Base.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateModelContainer(
+ public static void createOrUpdateRegistryDataVersionBase(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .modelContainers()
- .define("testContainer")
- .withExistingWorkspace("testrg123", "workspace123")
+ .registryDataVersions()
+ .define("string")
+ .withExistingData("test-rg", "registryName", "string")
.withProperties(
- new ModelContainerProperties()
- .withDescription("Model container description")
- .withTags(mapOf("tag1", "value1", "tag2", "value2")))
+ new MLTableData()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsAnonymous(false)
+ .withIsArchived(false)
+ .withDataUri("string")
+ .withReferencedUris(Arrays.asList("string")))
.create();
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -2802,103 +7813,117 @@ public final class ModelContainersCreateOrUpdateSamples {
}
```
-### ModelContainers_Delete
+### RegistryDataVersions_Delete
```java
-/** Samples for ModelContainers Delete. */
-public final class ModelContainersDeleteSamples {
+/** Samples for RegistryDataVersions Delete. */
+public final class RegistryDataVersionsDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ModelContainer/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/DataVersionBase/delete.json
*/
/**
- * Sample code: Delete Model Container.
+ * Sample code: Delete Registry Data Version Base.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteModelContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void deleteRegistryDataVersionBase(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .modelContainers()
- .deleteWithResponse("testrg123", "workspace123", "testContainer", com.azure.core.util.Context.NONE);
+ .registryDataVersions()
+ .delete("test-rg", "registryName", "string", "string", com.azure.core.util.Context.NONE);
}
}
```
-### ModelContainers_Get
+### RegistryDataVersions_Get
```java
-/** Samples for ModelContainers Get. */
-public final class ModelContainersGetSamples {
+/** Samples for RegistryDataVersions Get. */
+public final class RegistryDataVersionsGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ModelContainer/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/DataVersionBase/get.json
*/
/**
- * Sample code: Get Model Container.
+ * Sample code: Get Registry Data Version Base.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getModelContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void getRegistryDataVersionBase(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .modelContainers()
- .getWithResponse("testrg123", "workspace123", "testContainer", com.azure.core.util.Context.NONE);
+ .registryDataVersions()
+ .getWithResponse("test-rg", "registryName", "string", "string", com.azure.core.util.Context.NONE);
}
}
```
-### ModelContainers_List
+### RegistryDataVersions_List
```java
-/** Samples for ModelContainers List. */
-public final class ModelContainersListSamples {
+import com.azure.resourcemanager.machinelearning.models.ListViewType;
+
+/** Samples for RegistryDataVersions List. */
+public final class RegistryDataVersionsListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ModelContainer/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/DataVersionBase/registryList.json
*/
/**
- * Sample code: List Model Container.
+ * Sample code: RegistryList Registry Data Version Base.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listModelContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.modelContainers().list("testrg123", "workspace123", null, null, null, com.azure.core.util.Context.NONE);
+ public static void 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);
}
}
```
-### ModelVersions_CreateOrUpdate
+### RegistryEnvironmentContainers_CreateOrUpdate
```java
-import com.azure.resourcemanager.machinelearning.models.FlavorData;
-import com.azure.resourcemanager.machinelearning.models.ModelVersionProperties;
+import com.azure.resourcemanager.machinelearning.models.EnvironmentContainerProperties;
import java.util.HashMap;
import java.util.Map;
-/** Samples for ModelVersions CreateOrUpdate. */
-public final class ModelVersionsCreateOrUpdateSamples {
+/** Samples for RegistryEnvironmentContainers CreateOrUpdate. */
+public final class RegistryEnvironmentContainersCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ModelVersion/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/EnvironmentContainer/createOrUpdate.json
*/
/**
- * Sample code: CreateOrUpdate Model Version.
+ * Sample code: CreateOrUpdate Registry Environment Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateModelVersion(
+ public static void createOrUpdateRegistryEnvironmentContainer(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .modelVersions()
- .define("string")
- .withExistingModel("test-rg", "my-aml-workspace", "string")
+ .registryEnvironmentContainers()
+ .define("testEnvironment")
+ .withExistingRegistry("testrg123", "testregistry")
.withProperties(
- new ModelVersionProperties()
+ new EnvironmentContainerProperties()
.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"))
+ .withProperties(
+ mapOf("additionalProp1", "string", "additionalProp2", "string", "additionalProp3", "string"))
+ .withTags(
+ mapOf("additionalProp1", "string", "additionalProp2", "string", "additionalProp3", "string")))
.create();
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -2912,233 +7937,120 @@ public final class ModelVersionsCreateOrUpdateSamples {
}
```
-### ModelVersions_Delete
+### RegistryEnvironmentContainers_Delete
```java
-/** Samples for ModelVersions Delete. */
-public final class ModelVersionsDeleteSamples {
+/** Samples for RegistryEnvironmentContainers Delete. */
+public final class RegistryEnvironmentContainersDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ModelVersion/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/EnvironmentContainer/delete.json
*/
/**
- * Sample code: Delete Model Version.
+ * Sample code: Delete Registry Environment Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteModelVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void deleteRegistryEnvironmentContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .modelVersions()
- .deleteWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
+ .registryEnvironmentContainers()
+ .delete("testrg123", "testregistry", "testContainer", com.azure.core.util.Context.NONE);
}
}
```
-### ModelVersions_Get
+### RegistryEnvironmentContainers_Get
```java
-/** Samples for ModelVersions Get. */
-public final class ModelVersionsGetSamples {
+/** Samples for RegistryEnvironmentContainers Get. */
+public final class RegistryEnvironmentContainersGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ModelVersion/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/EnvironmentContainer/get.json
*/
/**
- * Sample code: Get Model Version.
+ * Sample code: Get Registry Environment Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getModelVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void getRegistryEnvironmentContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .modelVersions()
- .getWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
+ .registryEnvironmentContainers()
+ .getWithResponse("testrg123", "testregistry", "testEnvironment", com.azure.core.util.Context.NONE);
}
}
```
-### ModelVersions_List
+### RegistryEnvironmentContainers_List
```java
-/** Samples for ModelVersions List. */
-public final class ModelVersionsListSamples {
+/** Samples for RegistryEnvironmentContainers List. */
+public final class RegistryEnvironmentContainersListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ModelVersion/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/EnvironmentContainer/list.json
*/
/**
- * Sample code: List Model Version.
+ * Sample code: List Registry Environment Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listModelVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void listRegistryEnvironmentContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .modelVersions()
- .list(
- "test-rg",
- "my-aml-workspace",
- "string",
- null,
- "string",
- 1,
- "string",
- "string",
- 1,
- "string",
- "string",
- null,
- null,
- com.azure.core.util.Context.NONE);
+ .registryEnvironmentContainers()
+ .list("testrg123", "testregistry", null, null, com.azure.core.util.Context.NONE);
}
}
```
-### OnlineDeployments_CreateOrUpdate
+### RegistryEnvironmentVersions_CreateOrUpdate
```java
-import com.azure.resourcemanager.machinelearning.models.CodeConfiguration;
-import com.azure.resourcemanager.machinelearning.models.ContainerResourceRequirements;
-import com.azure.resourcemanager.machinelearning.models.ContainerResourceSettings;
-import com.azure.resourcemanager.machinelearning.models.DefaultScaleSettings;
-import com.azure.resourcemanager.machinelearning.models.KubernetesOnlineDeployment;
-import com.azure.resourcemanager.machinelearning.models.ManagedOnlineDeployment;
-import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentity;
-import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
-import com.azure.resourcemanager.machinelearning.models.OnlineRequestSettings;
-import com.azure.resourcemanager.machinelearning.models.ProbeSettings;
-import com.azure.resourcemanager.machinelearning.models.Sku;
-import com.azure.resourcemanager.machinelearning.models.SkuTier;
-import com.azure.resourcemanager.machinelearning.models.UserAssignedIdentity;
-import java.time.Duration;
+import com.azure.resourcemanager.machinelearning.models.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 OnlineDeployments CreateOrUpdate. */
-public final class OnlineDeploymentsCreateOrUpdateSamples {
- /*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineDeployment/KubernetesOnlineDeployment/createOrUpdate.json
- */
- /**
- * Sample code: CreateOrUpdate Kubernetes Online Deployment.
- *
- * @param manager Entry point to MachineLearningManager.
- */
- public static void createOrUpdateKubernetesOnlineDeployment(
- com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager
- .onlineDeployments()
- .define("testDeploymentName")
- .withRegion("string")
- .withExistingOnlineEndpoint("test-rg", "my-aml-workspace", "testEndpointName")
- .withProperties(
- new KubernetesOnlineDeployment()
- .withCodeConfiguration(
- new CodeConfiguration().withCodeId("fakeTokenPlaceholder").withScoringScript("string"))
- .withDescription("string")
- .withEnvironmentId("string")
- .withEnvironmentVariables(mapOf("string", "string"))
- .withProperties(mapOf("string", "string"))
- .withAppInsightsEnabled(false)
- .withInstanceType("string")
- .withLivenessProbe(
- new ProbeSettings()
- .withFailureThreshold(1)
- .withInitialDelay(Duration.parse("PT5M"))
- .withPeriod(Duration.parse("PT5M"))
- .withSuccessThreshold(1)
- .withTimeout(Duration.parse("PT5M")))
- .withModel("string")
- .withModelMountPath("string")
- .withRequestSettings(
- new OnlineRequestSettings()
- .withMaxConcurrentRequestsPerInstance(1)
- .withMaxQueueWait(Duration.parse("PT5M"))
- .withRequestTimeout(Duration.parse("PT5M")))
- .withScaleSettings(new DefaultScaleSettings())
- .withContainerResourceRequirements(
- new ContainerResourceRequirements()
- .withContainerResourceLimits(
- new ContainerResourceSettings().withCpu("\"1\"").withGpu("\"1\"").withMemory("\"2Gi\""))
- .withContainerResourceRequests(
- new ContainerResourceSettings()
- .withCpu("\"1\"")
- .withGpu("\"1\"")
- .withMemory("\"2Gi\""))))
- .withTags(mapOf())
- .withIdentity(
- new ManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
- .withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
- .withKind("string")
- .withSku(
- new Sku()
- .withName("string")
- .withTier(SkuTier.FREE)
- .withSize("string")
- .withFamily("string")
- .withCapacity(1))
- .create();
- }
-
+/** Samples for RegistryEnvironmentVersions CreateOrUpdate. */
+public final class RegistryEnvironmentVersionsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineDeployment/ManagedOnlineDeployment/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/EnvironmentVersion/createOrUpdate.json
*/
/**
- * Sample code: CreateOrUpdate Managed Online Deployment.
+ * Sample code: CreateOrUpdate Registry Environment Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateManagedOnlineDeployment(
+ public static void createOrUpdateRegistryEnvironmentVersion(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .onlineDeployments()
- .define("testDeploymentName")
- .withRegion("string")
- .withExistingOnlineEndpoint("test-rg", "my-aml-workspace", "testEndpointName")
+ .registryEnvironmentVersions()
+ .define("string")
+ .withExistingEnvironment("test-rg", "my-aml-registry", "string")
.withProperties(
- new ManagedOnlineDeployment()
- .withCodeConfiguration(
- new CodeConfiguration().withCodeId("fakeTokenPlaceholder").withScoringScript("string"))
+ new EnvironmentVersionProperties()
.withDescription("string")
- .withEnvironmentId("string")
- .withEnvironmentVariables(mapOf("string", "string"))
.withProperties(mapOf("string", "string"))
- .withAppInsightsEnabled(false)
- .withInstanceType("string")
- .withLivenessProbe(
- new ProbeSettings()
- .withFailureThreshold(1)
- .withInitialDelay(Duration.parse("PT5M"))
- .withPeriod(Duration.parse("PT5M"))
- .withSuccessThreshold(1)
- .withTimeout(Duration.parse("PT5M")))
- .withModel("string")
- .withModelMountPath("string")
- .withReadinessProbe(
- new ProbeSettings()
- .withFailureThreshold(30)
- .withInitialDelay(Duration.parse("PT1S"))
- .withPeriod(Duration.parse("PT10S"))
- .withSuccessThreshold(1)
- .withTimeout(Duration.parse("PT2S")))
- .withRequestSettings(
- new OnlineRequestSettings()
- .withMaxConcurrentRequestsPerInstance(1)
- .withMaxQueueWait(Duration.parse("PT5M"))
- .withRequestTimeout(Duration.parse("PT5M")))
- .withScaleSettings(new DefaultScaleSettings()))
- .withTags(mapOf())
- .withIdentity(
- new ManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
- .withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
- .withKind("string")
- .withSku(
- new Sku()
- .withName("string")
- .withTier(SkuTier.FREE)
- .withSize("string")
- .withFamily("string")
- .withCapacity(1))
+ .withTags(mapOf("string", "string"))
+ .withIsAnonymous(false)
+ .withBuild(
+ new BuildContext()
+ .withContextUri(
+ "https://storage-account.blob.core.windows.net/azureml/DockerBuildContext/95ddede6b9b8c4e90472db3acd0a8d28/")
+ .withDockerfilePath("prod/Dockerfile"))
+ .withCondaFile("string")
+ .withImage("docker.io/tensorflow/serving:latest")
+ .withInferenceConfig(
+ new InferenceContainerProperties()
+ .withLivenessRoute(new Route().withPath("string").withPort(1))
+ .withReadinessRoute(new Route().withPath("string").withPort(1))
+ .withScoringRoute(new Route().withPath("string").withPort(1))))
.create();
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -3152,529 +8064,479 @@ public final class OnlineDeploymentsCreateOrUpdateSamples {
}
```
-### OnlineDeployments_Delete
+### RegistryEnvironmentVersions_Delete
```java
-/** Samples for OnlineDeployments Delete. */
-public final class OnlineDeploymentsDeleteSamples {
+/** Samples for RegistryEnvironmentVersions Delete. */
+public final class RegistryEnvironmentVersionsDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineDeployment/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/EnvironmentVersion/delete.json
*/
/**
- * Sample code: Delete Online Deployment.
+ * Sample code: Delete Registry Environment Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteOnlineDeployment(
+ public static void deleteRegistryEnvironmentVersion(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .onlineDeployments()
- .delete("testrg123", "workspace123", "testEndpoint", "testDeployment", com.azure.core.util.Context.NONE);
+ .registryEnvironmentVersions()
+ .delete("test-rg", "my-aml-registry", "string", "string", com.azure.core.util.Context.NONE);
}
}
```
-### OnlineDeployments_Get
+### RegistryEnvironmentVersions_Get
```java
-/** Samples for OnlineDeployments Get. */
-public final class OnlineDeploymentsGetSamples {
+/** Samples for RegistryEnvironmentVersions Get. */
+public final class RegistryEnvironmentVersionsGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineDeployment/KubernetesOnlineDeployment/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/EnvironmentVersion/get.json
*/
/**
- * Sample code: Get Kubernetes Online Deployment.
+ * Sample code: Get Registry Environment Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getKubernetesOnlineDeployment(
+ public static void getRegistryEnvironmentVersion(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .onlineDeployments()
- .getWithResponse(
- "test-rg",
- "my-aml-workspace",
- "testEndpointName",
- "testDeploymentName",
- com.azure.core.util.Context.NONE);
+ .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/2022-10-01/examples/OnlineDeployment/ManagedOnlineDeployment/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/EnvironmentVersion/list.json
*/
/**
- * Sample code: Get Managed Online Deployment.
+ * Sample code: List Registry Environment Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getManagedOnlineDeployment(
+ public static void listRegistryEnvironmentVersion(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .onlineDeployments()
- .getWithResponse(
+ .registryEnvironmentVersions()
+ .list(
"test-rg",
- "my-aml-workspace",
- "testEndpointName",
- "testDeploymentName",
+ "my-aml-regsitry",
+ "string",
+ "string",
+ 1,
+ null,
+ null,
+ null,
com.azure.core.util.Context.NONE);
}
}
```
-### OnlineDeployments_GetLogs
+### RegistryModelContainers_CreateOrUpdate
```java
-import com.azure.resourcemanager.machinelearning.models.ContainerType;
-import com.azure.resourcemanager.machinelearning.models.DeploymentLogsRequest;
+import com.azure.resourcemanager.machinelearning.models.ModelContainerProperties;
+import java.util.HashMap;
+import java.util.Map;
-/** Samples for OnlineDeployments GetLogs. */
-public final class OnlineDeploymentsGetLogsSamples {
+/** Samples for RegistryModelContainers CreateOrUpdate. */
+public final class RegistryModelContainersCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineDeployment/getLogs.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/ModelContainer/createOrUpdate.json
*/
/**
- * Sample code: Get Online Deployment Logs.
+ * Sample code: CreateOrUpdate Registry Model Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getOnlineDeploymentLogs(
+ public static void createOrUpdateRegistryModelContainer(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .onlineDeployments()
- .getLogsWithResponse(
- "testrg123",
- "workspace123",
- "testEndpoint",
- "testDeployment",
- new DeploymentLogsRequest().withContainerType(ContainerType.STORAGE_INITIALIZER).withTail(0),
- com.azure.core.util.Context.NONE);
+ .registryModelContainers()
+ .define("testContainer")
+ .withExistingRegistry("testrg123", "registry123")
+ .withProperties(
+ new ModelContainerProperties()
+ .withDescription("Model container description")
+ .withTags(mapOf("tag1", "value1", "tag2", "value2")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
}
}
```
-### OnlineDeployments_List
+### RegistryModelContainers_Delete
```java
-/** Samples for OnlineDeployments List. */
-public final class OnlineDeploymentsListSamples {
+/** Samples for RegistryModelContainers Delete. */
+public final class RegistryModelContainersDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineDeployment/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/ModelContainer/delete.json
*/
/**
- * Sample code: List Online Deployments.
+ * Sample code: Delete Registry Model Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listOnlineDeployments(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void deleteRegistryModelContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .onlineDeployments()
- .list(
- "test-rg", "my-aml-workspace", "testEndpointName", "string", 1, null, com.azure.core.util.Context.NONE);
+ .registryModelContainers()
+ .delete("testrg123", "registry123", "testContainer", com.azure.core.util.Context.NONE);
}
}
```
-### OnlineDeployments_ListSkus
+### RegistryModelContainers_Get
```java
-/** Samples for OnlineDeployments ListSkus. */
-public final class OnlineDeploymentsListSkusSamples {
+/** Samples for RegistryModelContainers Get. */
+public final class RegistryModelContainersGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineDeployment/ManagedOnlineDeployment/listSkus.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/ModelContainer/get.json
*/
/**
- * Sample code: List Managed Online Deployment Skus.
+ * Sample code: Get Registry Model Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listManagedOnlineDeploymentSkus(
+ public static void getRegistryModelContainer(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .onlineDeployments()
- .listSkus(
- "test-rg",
- "my-aml-workspace",
- "testEndpointName",
- "testDeploymentName",
- 1,
- null,
- com.azure.core.util.Context.NONE);
+ .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/2022-10-01/examples/OnlineDeployment/KubernetesOnlineDeployment/listSkus.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/ModelContainer/list.json
*/
/**
- * Sample code: List Kubernetes Online Deployment Skus.
+ * Sample code: List Registry Model Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listKubernetesOnlineDeploymentSkus(
+ public static void listRegistryModelContainer(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .onlineDeployments()
- .listSkus(
- "test-rg",
- "my-aml-workspace",
- "testEndpointName",
- "testDeploymentName",
- 1,
- null,
- com.azure.core.util.Context.NONE);
+ .registryModelContainers()
+ .list("testrg123", "registry123", null, null, com.azure.core.util.Context.NONE);
}
}
```
-### OnlineDeployments_Update
+### RegistryModelVersions_CreateOrGetStartPendingUpload
```java
-import com.azure.resourcemanager.machinelearning.models.OnlineDeployment;
-import com.azure.resourcemanager.machinelearning.models.PartialSku;
-import com.azure.resourcemanager.machinelearning.models.SkuTier;
-import java.util.HashMap;
-import java.util.Map;
-
-/** Samples for OnlineDeployments Update. */
-public final class OnlineDeploymentsUpdateSamples {
- /*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineDeployment/ManagedOnlineDeployment/update.json
- */
- /**
- * Sample code: Update Managed Online Deployment.
- *
- * @param manager Entry point to MachineLearningManager.
- */
- public static void updateManagedOnlineDeployment(
- com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- OnlineDeployment resource =
- manager
- .onlineDeployments()
- .getWithResponse(
- "test-rg",
- "my-aml-workspace",
- "testEndpointName",
- "testDeploymentName",
- com.azure.core.util.Context.NONE)
- .getValue();
- resource
- .update()
- .withTags(mapOf())
- .withSku(
- new PartialSku()
- .withCapacity(1)
- .withFamily("string")
- .withName("string")
- .withSize("string")
- .withTier(SkuTier.FREE))
- .apply();
- }
+import com.azure.resourcemanager.machinelearning.models.PendingUploadRequestDto;
+import com.azure.resourcemanager.machinelearning.models.PendingUploadType;
+/** Samples for RegistryModelVersions CreateOrGetStartPendingUpload. */
+public final class RegistryModelVersionsCreateOrGetStartPendingUploadSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineDeployment/KubernetesOnlineDeployment/update.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/ModelVersion/createOrGetStartPendingUpload.json
*/
/**
- * Sample code: Update Kubernetes Online Deployment.
+ * Sample code: CreateOrGetStartPendingUpload Registry Model Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void updateKubernetesOnlineDeployment(
+ public static void createOrGetStartPendingUploadRegistryModelVersion(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- OnlineDeployment resource =
- manager
- .onlineDeployments()
- .getWithResponse(
- "test-rg",
- "my-aml-workspace",
- "testEndpointName",
- "testDeploymentName",
- com.azure.core.util.Context.NONE)
- .getValue();
- resource
- .update()
- .withTags(mapOf())
- .withSku(
- new PartialSku()
- .withCapacity(1)
- .withFamily("string")
- .withName("string")
- .withSize("string")
- .withTier(SkuTier.FREE))
- .apply();
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
+ manager
+ .registryModelVersions()
+ .createOrGetStartPendingUploadWithResponse(
+ "test-rg",
+ "registryName",
+ "string",
+ "string",
+ new PendingUploadRequestDto()
+ .withPendingUploadId("string")
+ .withPendingUploadType(PendingUploadType.NONE),
+ com.azure.core.util.Context.NONE);
}
}
```
-### OnlineEndpoints_CreateOrUpdate
+### RegistryModelVersions_CreateOrUpdate
```java
-import com.azure.resourcemanager.machinelearning.models.EndpointAuthMode;
-import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentity;
-import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
-import com.azure.resourcemanager.machinelearning.models.OnlineEndpointProperties;
-import com.azure.resourcemanager.machinelearning.models.Sku;
-import com.azure.resourcemanager.machinelearning.models.SkuTier;
-import com.azure.resourcemanager.machinelearning.models.UserAssignedIdentity;
+import com.azure.resourcemanager.machinelearning.models.FlavorData;
+import com.azure.resourcemanager.machinelearning.models.ModelVersionProperties;
import java.util.HashMap;
import java.util.Map;
-/** Samples for OnlineEndpoints CreateOrUpdate. */
-public final class OnlineEndpointsCreateOrUpdateSamples {
+/** Samples for RegistryModelVersions CreateOrUpdate. */
+public final class RegistryModelVersionsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineEndpoint/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/ModelVersion/createOrUpdate.json
*/
/**
- * Sample code: CreateOrUpdate Online Endpoint.
+ * Sample code: CreateOrUpdate Registry Model Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateOnlineEndpoint(
+ public static void createOrUpdateRegistryModelVersion(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .onlineEndpoints()
- .define("testEndpointName")
- .withRegion("string")
- .withExistingWorkspace("test-rg", "my-aml-workspace")
+ .registryModelVersions()
+ .define("string")
+ .withExistingModel("test-rg", "my-aml-registry", "string")
.withProperties(
- new OnlineEndpointProperties()
- .withAuthMode(EndpointAuthMode.AMLTOKEN)
+ new ModelVersionProperties()
.withDescription("string")
.withProperties(mapOf("string", "string"))
- .withCompute("string")
- .withTraffic(mapOf("string", 1)))
- .withTags(mapOf())
- .withIdentity(
- new ManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
- .withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
- .withKind("string")
- .withSku(
- new Sku()
- .withName("string")
- .withTier(SkuTier.FREE)
- .withSize("string")
- .withFamily("string")
- .withCapacity(1))
+ .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;
- }
-}
-```
-
-### OnlineEndpoints_Delete
-
-```java
-/** 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
- */
- /**
- * Sample code: Delete Online Endpoint.
- *
- * @param manager Entry point to MachineLearningManager.
- */
- public static void deleteOnlineEndpoint(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager
- .onlineEndpoints()
- .delete("test-rg", "my-aml-workspace", "testEndpointName", com.azure.core.util.Context.NONE);
- }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
}
```
-### OnlineEndpoints_Get
+### RegistryModelVersions_Delete
```java
-/** Samples for OnlineEndpoints Get. */
-public final class OnlineEndpointsGetSamples {
+/** Samples for RegistryModelVersions Delete. */
+public final class RegistryModelVersionsDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineEndpoint/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/ModelVersion/delete.json
*/
/**
- * Sample code: Get Online Endpoint.
+ * Sample code: Delete Registry Model Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getOnlineEndpoint(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void deleteRegistryModelVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .onlineEndpoints()
- .getWithResponse("test-rg", "my-aml-workspace", "testEndpointName", com.azure.core.util.Context.NONE);
+ .registryModelVersions()
+ .delete("test-rg", "my-aml-registry", "string", "string", com.azure.core.util.Context.NONE);
}
}
```
-### OnlineEndpoints_GetToken
+### RegistryModelVersions_Get
```java
-/** Samples for OnlineEndpoints GetToken. */
-public final class OnlineEndpointsGetTokenSamples {
+/** Samples for RegistryModelVersions Get. */
+public final class RegistryModelVersionsGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineEndpoint/getToken.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/ModelVersion/get.json
*/
/**
- * Sample code: GetToken Online Endpoint.
+ * Sample code: Get Registry Model Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getTokenOnlineEndpoint(
+ public static void getRegistryModelVersion(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .onlineEndpoints()
- .getTokenWithResponse("test-rg", "my-aml-workspace", "testEndpointName", com.azure.core.util.Context.NONE);
+ .registryModelVersions()
+ .getWithResponse("test-rg", "my-aml-registry", "string", "string", com.azure.core.util.Context.NONE);
}
}
```
-### OnlineEndpoints_List
+### RegistryModelVersions_List
```java
-import com.azure.resourcemanager.machinelearning.models.EndpointComputeType;
-import com.azure.resourcemanager.machinelearning.models.OrderString;
-
-/** Samples for OnlineEndpoints List. */
-public final class OnlineEndpointsListSamples {
+/** Samples for RegistryModelVersions List. */
+public final class RegistryModelVersionsListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineEndpoint/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/ModelVersion/list.json
*/
/**
- * Sample code: List Online Endpoint.
+ * Sample code: List Registry Model Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listOnlineEndpoint(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void listRegistryModelVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .onlineEndpoints()
+ .registryModelVersions()
.list(
"test-rg",
- "my-aml-workspace",
+ "my-aml-registry",
"string",
- 1,
- EndpointComputeType.MANAGED,
null,
"string",
+ 1,
+ "string",
"string",
- OrderString.CREATED_AT_DESC,
+ "string",
+ "string",
+ null,
com.azure.core.util.Context.NONE);
}
}
```
-### OnlineEndpoints_ListKeys
-
-```java
-/** Samples for OnlineEndpoints ListKeys. */
-public final class OnlineEndpointsListKeysSamples {
- /*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineEndpoint/listKeys.json
- */
- /**
- * Sample code: ListKeys Online Endpoint.
- *
- * @param manager Entry point to MachineLearningManager.
- */
- public static void listKeysOnlineEndpoint(
- com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager
- .onlineEndpoints()
- .listKeysWithResponse("test-rg", "my-aml-workspace", "testEndpointName", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### OnlineEndpoints_RegenerateKeys
+### RegistryModelVersions_PackageMethod
```java
-import com.azure.resourcemanager.machinelearning.models.KeyType;
-import com.azure.resourcemanager.machinelearning.models.RegenerateEndpointKeysRequest;
+import com.azure.resourcemanager.machinelearning.models.AzureMLBatchInferencingServer;
+import com.azure.resourcemanager.machinelearning.models.BaseEnvironmentId;
+import com.azure.resourcemanager.machinelearning.models.CodeConfiguration;
+import com.azure.resourcemanager.machinelearning.models.ModelConfiguration;
+import com.azure.resourcemanager.machinelearning.models.ModelPackageInput;
+import com.azure.resourcemanager.machinelearning.models.PackageInputDeliveryMode;
+import com.azure.resourcemanager.machinelearning.models.PackageInputPathUrl;
+import com.azure.resourcemanager.machinelearning.models.PackageInputType;
+import com.azure.resourcemanager.machinelearning.models.PackageRequest;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
-/** Samples for OnlineEndpoints RegenerateKeys. */
-public final class OnlineEndpointsRegenerateKeysSamples {
+/** Samples for RegistryModelVersions PackageMethod. */
+public final class RegistryModelVersionsPackageMethodSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineEndpoint/regenerateKeys.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Registry/ModelVersion/package.json
*/
/**
- * Sample code: RegenerateKeys Online Endpoint.
+ * Sample code: Package Registry Model Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void regenerateKeysOnlineEndpoint(
+ public static void packageRegistryModelVersion(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .onlineEndpoints()
- .regenerateKeys(
+ .registryModelVersions()
+ .packageMethod(
"test-rg",
- "my-aml-workspace",
- "testEndpointName",
- new RegenerateEndpointKeysRequest().withKeyType(KeyType.PRIMARY).withKeyValue("fakeTokenPlaceholder"),
+ "my-aml-registry",
+ "string",
+ "string",
+ new PackageRequest()
+ .withBaseEnvironmentSource(new BaseEnvironmentId().withResourceId("string"))
+ .withEnvironmentVariables(mapOf("string", "string"))
+ .withInferencingServer(
+ new AzureMLBatchInferencingServer()
+ .withCodeConfiguration(
+ new CodeConfiguration().withCodeId("fakeTokenPlaceholder").withScoringScript("string")))
+ .withInputs(
+ Arrays
+ .asList(
+ new ModelPackageInput()
+ .withInputType(PackageInputType.URI_FILE)
+ .withMode(PackageInputDeliveryMode.DOWNLOAD)
+ .withMountPath("string")
+ .withPath(new PackageInputPathUrl().withUrl("string"))))
+ .withModelConfiguration(
+ new ModelConfiguration()
+ .withMode(PackageInputDeliveryMode.fromString("ReadOnlyMount"))
+ .withMountPath("string"))
+ .withTags(mapOf("string", "string"))
+ .withTargetEnvironmentId("string"),
com.azure.core.util.Context.NONE);
}
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
}
```
-### OnlineEndpoints_Update
+### Schedules_CreateOrUpdate
```java
import com.azure.core.management.serializer.SerializerFactory;
import com.azure.core.util.serializer.SerializerEncoding;
-import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
-import com.azure.resourcemanager.machinelearning.models.OnlineEndpoint;
-import com.azure.resourcemanager.machinelearning.models.PartialManagedServiceIdentity;
+import com.azure.resourcemanager.machinelearning.models.CronTrigger;
+import com.azure.resourcemanager.machinelearning.models.EndpointScheduleAction;
+import com.azure.resourcemanager.machinelearning.models.ScheduleProperties;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
-/** Samples for OnlineEndpoints Update. */
-public final class OnlineEndpointsUpdateSamples {
+/** Samples for Schedules CreateOrUpdate. */
+public final class SchedulesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/OnlineEndpoint/update.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Schedule/createOrUpdate.json
*/
/**
- * Sample code: Update Online Endpoint.
+ * Sample code: CreateOrUpdate Schedule.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void updateOnlineEndpoint(com.azure.resourcemanager.machinelearning.MachineLearningManager manager)
+ public static void createOrUpdateSchedule(com.azure.resourcemanager.machinelearning.MachineLearningManager manager)
throws IOException {
- OnlineEndpoint resource =
- manager
- .onlineEndpoints()
- .getWithResponse("test-rg", "my-aml-workspace", "testEndpointName", com.azure.core.util.Context.NONE)
- .getValue();
- resource
- .update()
- .withTags(mapOf())
- .withIdentity(
- new PartialManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
- .withUserAssignedIdentities(
- mapOf(
- "string",
- SerializerFactory
- .createDefaultManagementSerializerAdapter()
- .deserialize("{}", Object.class, SerializerEncoding.JSON))))
- .apply();
+ manager
+ .schedules()
+ .define("string")
+ .withExistingWorkspace("test-rg", "my-aml-workspace")
+ .withProperties(
+ new ScheduleProperties()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withAction(
+ new EndpointScheduleAction()
+ .withEndpointInvocationDefinition(
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize(
+ "{\"9965593e-526f-4b89-bb36-761138cf2794\":null}",
+ Object.class,
+ SerializerEncoding.JSON)))
+ .withDisplayName("string")
+ .withIsEnabled(false)
+ .withTrigger(
+ new CronTrigger()
+ .withEndTime("string")
+ .withStartTime("string")
+ .withTimeZone("string")
+ .withExpression("string")))
+ .create();
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -3688,325 +8550,332 @@ public final class OnlineEndpointsUpdateSamples {
}
```
-### Operations_List
+### Schedules_Delete
```java
-/** Samples for Operations List. */
-public final class OperationsListSamples {
+/** Samples for Schedules Delete. */
+public final class SchedulesDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Workspace/operationsList.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Schedule/delete.json
*/
/**
- * Sample code: OperationsList.
+ * Sample code: Delete Schedule.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void operationsList(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.operations().list(com.azure.core.util.Context.NONE);
+ public static void deleteSchedule(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.schedules().delete("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
}
}
```
-### PrivateEndpointConnections_CreateOrUpdate
+### Schedules_Get
```java
-import com.azure.resourcemanager.machinelearning.models.PrivateEndpointServiceConnectionStatus;
-import com.azure.resourcemanager.machinelearning.models.PrivateLinkServiceConnectionState;
-
-/** Samples for PrivateEndpointConnections CreateOrUpdate. */
-public final class PrivateEndpointConnectionsCreateOrUpdateSamples {
+/** Samples for Schedules Get. */
+public final class SchedulesGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/PrivateEndpointConnection/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Schedule/get.json
*/
/**
- * Sample code: WorkspacePutPrivateEndpointConnection.
+ * Sample code: Get Schedule.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void workspacePutPrivateEndpointConnection(
- com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager
- .privateEndpointConnections()
- .define("{privateEndpointConnectionName}")
- .withExistingWorkspace("rg-1234", "testworkspace")
- .withPrivateLinkServiceConnectionState(
- new PrivateLinkServiceConnectionState()
- .withStatus(PrivateEndpointServiceConnectionStatus.APPROVED)
- .withDescription("Auto-Approved"))
- .create();
+ public static void getSchedule(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.schedules().getWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
}
}
```
-### PrivateEndpointConnections_Delete
+### Schedules_List
```java
-/** Samples for PrivateEndpointConnections Delete. */
-public final class PrivateEndpointConnectionsDeleteSamples {
+/** Samples for Schedules List. */
+public final class SchedulesListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/PrivateEndpointConnection/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Schedule/list.json
*/
/**
- * Sample code: WorkspaceDeletePrivateEndpointConnection.
+ * Sample code: List Schedules.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void workspaceDeletePrivateEndpointConnection(
- com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager
- .privateEndpointConnections()
- .deleteWithResponse(
- "rg-1234", "testworkspace", "{privateEndpointConnectionName}", com.azure.core.util.Context.NONE);
+ public static void listSchedules(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.schedules().list("test-rg", "my-aml-workspace", null, null, com.azure.core.util.Context.NONE);
}
}
```
-### PrivateEndpointConnections_Get
+### ServerlessEndpoints_CreateOrUpdate
```java
-/** Samples for PrivateEndpointConnections Get. */
-public final class PrivateEndpointConnectionsGetSamples {
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.machinelearning.models.ServerlessEndpointCapacityReservation;
+import com.azure.resourcemanager.machinelearning.models.ServerlessEndpointProperties;
+import com.azure.resourcemanager.machinelearning.models.ServerlessInferenceEndpointAuthMode;
+import com.azure.resourcemanager.machinelearning.models.ServerlessOffer;
+import com.azure.resourcemanager.machinelearning.models.Sku;
+import com.azure.resourcemanager.machinelearning.models.SkuTier;
+import com.azure.resourcemanager.machinelearning.models.UserAssignedIdentity;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for ServerlessEndpoints CreateOrUpdate. */
+public final class ServerlessEndpointsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/PrivateEndpointConnection/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ServerlessEndpoint/createOrUpdate.json
*/
/**
- * Sample code: WorkspaceGetPrivateEndpointConnection.
+ * Sample code: CreateOrUpdate Workspace Serverless Endpoint.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void workspaceGetPrivateEndpointConnection(
+ public static void createOrUpdateWorkspaceServerlessEndpoint(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .privateEndpointConnections()
- .getWithResponse(
- "rg-1234", "testworkspace", "{privateEndpointConnectionName}", com.azure.core.util.Context.NONE);
+ .serverlessEndpoints()
+ .define("string")
+ .withRegion("string")
+ .withExistingWorkspace("test-rg", "my-aml-workspace")
+ .withProperties(
+ new ServerlessEndpointProperties()
+ .withAuthMode(ServerlessInferenceEndpointAuthMode.AAD)
+ .withCapacityReservation(
+ new ServerlessEndpointCapacityReservation()
+ .withCapacityReservationGroupId("string")
+ .withEndpointReservedCapacity(1))
+ .withOffer(new ServerlessOffer().withOfferName("string").withPublisher("string")))
+ .withTags(mapOf())
+ .withIdentity(
+ new ManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.USER_ASSIGNED)
+ .withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withKind("string")
+ .withSku(
+ new Sku()
+ .withName("string")
+ .withTier(SkuTier.STANDARD)
+ .withSize("string")
+ .withFamily("string")
+ .withCapacity(1))
+ .create();
}
-}
-```
-
-### PrivateEndpointConnections_List
-```java
-/** Samples for PrivateEndpointConnections List. */
-public final class PrivateEndpointConnectionsListSamples {
- /*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/PrivateEndpointConnection/list.json
- */
- /**
- * Sample code: StorageAccountListPrivateEndpointConnections.
- *
- * @param manager Entry point to MachineLearningManager.
- */
- public static void storageAccountListPrivateEndpointConnections(
- com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.privateEndpointConnections().list("rg-1234", "testworkspace", com.azure.core.util.Context.NONE);
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
}
}
```
-### PrivateLinkResources_List
+### ServerlessEndpoints_Delete
```java
-/** Samples for PrivateLinkResources List. */
-public final class PrivateLinkResourcesListSamples {
+/** Samples for ServerlessEndpoints Delete. */
+public final class ServerlessEndpointsDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/PrivateLinkResource/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ServerlessEndpoint/delete.json
*/
/**
- * Sample code: WorkspaceListPrivateLinkResources.
+ * Sample code: Delete Workspace Serverless Endpoint.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void workspaceListPrivateLinkResources(
+ public static void deleteWorkspaceServerlessEndpoint(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.privateLinkResources().listWithResponse("rg-1234", "testworkspace", com.azure.core.util.Context.NONE);
+ manager.serverlessEndpoints().delete("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
}
}
```
-### Quotas_List
+### ServerlessEndpoints_Get
```java
-/** Samples for Quotas List. */
-public final class QuotasListSamples {
+/** Samples for ServerlessEndpoints Get. */
+public final class ServerlessEndpointsGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Quota/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ServerlessEndpoint/get.json
*/
/**
- * Sample code: List workspace quotas by VMFamily.
+ * Sample code: Get Workspace Serverless Endpoint.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listWorkspaceQuotasByVMFamily(
+ public static void getWorkspaceServerlessEndpoint(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.quotas().list("eastus", com.azure.core.util.Context.NONE);
+ manager
+ .serverlessEndpoints()
+ .getWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
}
}
```
-### Quotas_Update
+### ServerlessEndpoints_GetStatus
```java
-import com.azure.resourcemanager.machinelearning.models.QuotaBaseProperties;
-import com.azure.resourcemanager.machinelearning.models.QuotaUnit;
-import com.azure.resourcemanager.machinelearning.models.QuotaUpdateParameters;
-import java.util.Arrays;
-
-/** Samples for Quotas Update. */
-public final class QuotasUpdateSamples {
+/** Samples for ServerlessEndpoints GetStatus. */
+public final class ServerlessEndpointsGetStatusSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Quota/update.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ServerlessEndpoint/getStatus.json
*/
/**
- * Sample code: update quotas.
+ * Sample code: GetStatus Workspace Serverless Endpoint.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void updateQuotas(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void getStatusWorkspaceServerlessEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
- .quotas()
- .updateWithResponse(
- "eastus",
- new QuotaUpdateParameters()
- .withValue(
- Arrays
- .asList(
- new QuotaBaseProperties()
- .withId(
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace1/quotas/Standard_DSv2_Family_Cluster_Dedicated_vCPUs")
- .withType("Microsoft.MachineLearningServices/workspaces/quotas")
- .withLimit(100L)
- .withUnit(QuotaUnit.COUNT),
- new QuotaBaseProperties()
- .withId(
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace2/quotas/Standard_DSv2_Family_Cluster_Dedicated_vCPUs")
- .withType("Microsoft.MachineLearningServices/workspaces/quotas")
- .withLimit(200L)
- .withUnit(QuotaUnit.COUNT))),
- com.azure.core.util.Context.NONE);
+ .serverlessEndpoints()
+ .getStatusWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
}
}
```
-### Schedules_CreateOrUpdate
+### ServerlessEndpoints_List
```java
-import com.azure.core.management.serializer.SerializerFactory;
-import com.azure.core.util.serializer.SerializerEncoding;
-import com.azure.resourcemanager.machinelearning.models.CronTrigger;
-import com.azure.resourcemanager.machinelearning.models.EndpointScheduleAction;
-import com.azure.resourcemanager.machinelearning.models.ScheduleProperties;
-import java.io.IOException;
-import java.util.HashMap;
-import java.util.Map;
-
-/** Samples for Schedules CreateOrUpdate. */
-public final class SchedulesCreateOrUpdateSamples {
+/** Samples for ServerlessEndpoints List. */
+public final class ServerlessEndpointsListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Schedule/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ServerlessEndpoint/list.json
*/
/**
- * Sample code: CreateOrUpdate Schedule.
+ * Sample code: List Workspace Serverless Endpoint.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateSchedule(com.azure.resourcemanager.machinelearning.MachineLearningManager manager)
- throws IOException {
- manager
- .schedules()
- .define("string")
- .withExistingWorkspace("test-rg", "my-aml-workspace")
- .withProperties(
- new ScheduleProperties()
- .withDescription("string")
- .withProperties(mapOf("string", "string"))
- .withTags(mapOf("string", "string"))
- .withAction(
- new EndpointScheduleAction()
- .withEndpointInvocationDefinition(
- SerializerFactory
- .createDefaultManagementSerializerAdapter()
- .deserialize(
- "{\"9965593e-526f-4b89-bb36-761138cf2794\":null}",
- Object.class,
- SerializerEncoding.JSON)))
- .withDisplayName("string")
- .withIsEnabled(false)
- .withTrigger(
- new CronTrigger()
- .withEndTime("string")
- .withStartTime("string")
- .withTimeZone("string")
- .withExpression("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;
+ public static void listWorkspaceServerlessEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.serverlessEndpoints().list("test-rg", "my-aml-workspace", null, com.azure.core.util.Context.NONE);
}
}
```
-### Schedules_Delete
+### ServerlessEndpoints_ListKeys
```java
-/** Samples for Schedules Delete. */
-public final class SchedulesDeleteSamples {
+/** Samples for ServerlessEndpoints ListKeys. */
+public final class ServerlessEndpointsListKeysSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Schedule/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ServerlessEndpoint/listKeys.json
*/
/**
- * Sample code: Delete Schedule.
+ * Sample code: ListKeys Workspace Serverless Endpoint.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteSchedule(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.schedules().delete("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ public static void listKeysWorkspaceServerlessEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .serverlessEndpoints()
+ .listKeysWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
}
}
```
-### Schedules_Get
+### ServerlessEndpoints_RegenerateKeys
```java
-/** Samples for Schedules Get. */
-public final class SchedulesGetSamples {
+import com.azure.resourcemanager.machinelearning.models.KeyType;
+import com.azure.resourcemanager.machinelearning.models.RegenerateEndpointKeysRequest;
+
+/** Samples for ServerlessEndpoints RegenerateKeys. */
+public final class ServerlessEndpointsRegenerateKeysSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Schedule/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ServerlessEndpoint/regenerateKeys.json
*/
/**
- * Sample code: Get Schedule.
+ * Sample code: RegenerateKeys Workspace Serverless Endpoint.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getSchedule(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.schedules().getWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ public static void regenerateKeysWorkspaceServerlessEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .serverlessEndpoints()
+ .regenerateKeys(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ new RegenerateEndpointKeysRequest().withKeyType(KeyType.PRIMARY).withKeyValue("fakeTokenPlaceholder"),
+ com.azure.core.util.Context.NONE);
}
}
```
-### Schedules_List
+### ServerlessEndpoints_Update
```java
-/** Samples for Schedules List. */
-public final class SchedulesListSamples {
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.machinelearning.models.PartialManagedServiceIdentity;
+import com.azure.resourcemanager.machinelearning.models.PartialSku;
+import com.azure.resourcemanager.machinelearning.models.ServerlessEndpoint;
+import com.azure.resourcemanager.machinelearning.models.SkuTier;
+import java.io.IOException;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for ServerlessEndpoints Update. */
+public final class ServerlessEndpointsUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Schedule/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/ServerlessEndpoint/update.json
*/
/**
- * Sample code: List Schedules.
+ * Sample code: Update Workspace Serverless Endpoint.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listSchedules(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.schedules().list("test-rg", "my-aml-workspace", null, null, com.azure.core.util.Context.NONE);
+ public static void updateWorkspaceServerlessEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) throws IOException {
+ ServerlessEndpoint resource =
+ manager
+ .serverlessEndpoints()
+ .getWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withTags(mapOf())
+ .withIdentity(
+ new PartialManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.NONE)
+ .withUserAssignedIdentities(
+ mapOf(
+ "string",
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize("{}", Object.class, SerializerEncoding.JSON))))
+ .withSku(
+ new PartialSku()
+ .withCapacity(1)
+ .withFamily("string")
+ .withName("string")
+ .withSize("string")
+ .withTier(SkuTier.BASIC))
+ .apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
}
}
```
@@ -4017,7 +8886,7 @@ public final class SchedulesListSamples {
/** Samples for Usages List. */
public final class UsagesListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Usage/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Usage/list.json
*/
/**
* Sample code: List Usages.
@@ -4036,7 +8905,7 @@ public final class UsagesListSamples {
/** Samples for VirtualMachineSizes List. */
public final class VirtualMachineSizesListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/VirtualMachineSize/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/VirtualMachineSize/list.json
*/
/**
* Sample code: List VM Sizes.
@@ -4054,11 +8923,12 @@ public final class VirtualMachineSizesListSamples {
```java
import com.azure.resourcemanager.machinelearning.models.ConnectionCategory;
import com.azure.resourcemanager.machinelearning.models.NoneAuthTypeWorkspaceConnectionProperties;
+import java.time.OffsetDateTime;
/** Samples for WorkspaceConnections Create. */
public final class WorkspaceConnectionsCreateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/WorkspaceConnection/create.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/WorkspaceConnection/create.json
*/
/**
* Sample code: CreateWorkspaceConnection.
@@ -4074,6 +8944,7 @@ public final class WorkspaceConnectionsCreateSamples {
.withProperties(
new NoneAuthTypeWorkspaceConnectionProperties()
.withCategory(ConnectionCategory.CONTAINER_REGISTRY)
+ .withExpiryTime(OffsetDateTime.parse("2024-03-15T14:30:00Z"))
.withTarget("www.facebook.com"))
.create();
}
@@ -4086,7 +8957,7 @@ public final class WorkspaceConnectionsCreateSamples {
/** Samples for WorkspaceConnections Delete. */
public final class WorkspaceConnectionsDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/WorkspaceConnection/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/WorkspaceConnection/delete.json
*/
/**
* Sample code: DeleteWorkspaceConnection.
@@ -4108,7 +8979,7 @@ public final class WorkspaceConnectionsDeleteSamples {
/** Samples for WorkspaceConnections Get. */
public final class WorkspaceConnectionsGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/WorkspaceConnection/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/WorkspaceConnection/get.json
*/
/**
* Sample code: GetWorkspaceConnection.
@@ -4119,7 +8990,7 @@ public final class WorkspaceConnectionsGetSamples {
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.workspaceConnections()
- .getWithResponse("resourceGroup-1", "workspace-1", "connection-1", com.azure.core.util.Context.NONE);
+ .getWithResponse("resourceGroup-1", "workspace-1", "connection-1", null, com.azure.core.util.Context.NONE);
}
}
```
@@ -4130,7 +9001,7 @@ public final class WorkspaceConnectionsGetSamples {
/** Samples for WorkspaceConnections List. */
public final class WorkspaceConnectionsListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/WorkspaceConnection/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/WorkspaceConnection/list.json
*/
/**
* Sample code: ListWorkspaceConnections.
@@ -4151,13 +9022,122 @@ public final class WorkspaceConnectionsListSamples {
}
```
+### WorkspaceConnections_ListSecrets
+
+```java
+/** Samples for WorkspaceConnections ListSecrets. */
+public final class WorkspaceConnectionsListSecretsSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/WorkspaceConnection/listSecrets.json
+ */
+ /**
+ * Sample code: GetWorkspaceConnection.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getWorkspaceConnection(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .workspaceConnections()
+ .listSecretsWithResponse(
+ "test-rg", "aml-workspace-name", "some_string", null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WorkspaceConnections_TestConnection
+
+```java
+import com.azure.resourcemanager.machinelearning.fluent.models.WorkspaceConnectionPropertiesV2BasicResourceInner;
+import com.azure.resourcemanager.machinelearning.models.ConnectionCategory;
+import com.azure.resourcemanager.machinelearning.models.NoneAuthTypeWorkspaceConnectionProperties;
+import java.time.OffsetDateTime;
+
+/** Samples for WorkspaceConnections TestConnection. */
+public final class WorkspaceConnectionsTestConnectionSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/WorkspaceConnection/testConnection.json
+ */
+ /**
+ * Sample code: TestWorkspaceConnection.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void testWorkspaceConnection(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .workspaceConnections()
+ .testConnection(
+ "resourceGroup-1",
+ "workspace-1",
+ "connection-1",
+ new WorkspaceConnectionPropertiesV2BasicResourceInner()
+ .withProperties(
+ new NoneAuthTypeWorkspaceConnectionProperties()
+ .withCategory(ConnectionCategory.CONTAINER_REGISTRY)
+ .withExpiryTime(OffsetDateTime.parse("2024-03-15T14:30:00Z"))
+ .withTarget("target_url")),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WorkspaceConnections_Update
+
+```java
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.machinelearning.models.AccessKeyAuthTypeWorkspaceConnectionProperties;
+import com.azure.resourcemanager.machinelearning.models.ConnectionCategory;
+import com.azure.resourcemanager.machinelearning.models.WorkspaceConnectionAccessKey;
+import com.azure.resourcemanager.machinelearning.models.WorkspaceConnectionPropertiesV2BasicResource;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+
+/** Samples for WorkspaceConnections Update. */
+public final class WorkspaceConnectionsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/WorkspaceConnection/update.json
+ */
+ /**
+ * Sample code: UpdateWorkspaceConnection.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void updateWorkspaceConnection(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) throws IOException {
+ WorkspaceConnectionPropertiesV2BasicResource resource =
+ manager
+ .workspaceConnections()
+ .getWithResponse("test-rg", "aml-workspace-name", "some_string", null, com.azure.core.util.Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withProperties(
+ new AccessKeyAuthTypeWorkspaceConnectionProperties()
+ .withCategory(ConnectionCategory.ADLSGEN2)
+ .withExpiryTime(OffsetDateTime.parse("2020-01-01T00:00:00Z"))
+ .withMetadata(
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize("{}", Object.class, SerializerEncoding.JSON))
+ .withTarget("some_string")
+ .withCredentials(
+ new WorkspaceConnectionAccessKey()
+ .withAccessKeyId("fakeTokenPlaceholder")
+ .withSecretAccessKey("fakeTokenPlaceholder")))
+ .apply();
+ }
+}
+```
+
### WorkspaceFeatures_List
```java
/** Samples for WorkspaceFeatures List. */
public final class WorkspaceFeaturesListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/WorkspaceFeature/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/WorkspaceFeature/list.json
*/
/**
* Sample code: List Workspace features.
@@ -4173,13 +9153,13 @@ public final class WorkspaceFeaturesListSamples {
### Workspaces_CreateOrUpdate
```java
-import com.azure.resourcemanager.machinelearning.models.EncryptionKeyVaultProperties;
import com.azure.resourcemanager.machinelearning.models.EncryptionProperty;
import com.azure.resourcemanager.machinelearning.models.EncryptionStatus;
+import com.azure.resourcemanager.machinelearning.models.EndpointServiceConnectionStatus;
import com.azure.resourcemanager.machinelearning.models.IdentityForCmk;
+import com.azure.resourcemanager.machinelearning.models.KeyVaultProperties;
import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentity;
import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
-import com.azure.resourcemanager.machinelearning.models.PrivateEndpointServiceConnectionStatus;
import com.azure.resourcemanager.machinelearning.models.SharedPrivateLinkResource;
import com.azure.resourcemanager.machinelearning.models.UserAssignedIdentity;
import java.util.Arrays;
@@ -4189,7 +9169,7 @@ import java.util.Map;
/** Samples for Workspaces CreateOrUpdate. */
public final class WorkspacesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Workspace/create.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/create.json
*/
/**
* Sample code: Create Workspace.
@@ -4209,42 +9189,43 @@ public final class WorkspacesCreateOrUpdateSamples {
mapOf(
"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testuai",
new UserAssignedIdentity())))
- .withDescription("test description")
- .withFriendlyName("HelloName")
- .withKeyVault(
- "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.KeyVault/vaults/testkv")
.withApplicationInsights(
"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/microsoft.insights/components/testinsights")
.withContainerRegistry(
"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.ContainerRegistry/registries/testRegistry")
- .withStorageAccount(
- "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/accountcrud-1234/providers/Microsoft.Storage/storageAccounts/testStorageAccount")
+ .withDescription("test description")
.withEncryption(
new EncryptionProperty()
- .withStatus(EncryptionStatus.ENABLED)
.withIdentity(
new IdentityForCmk()
.withUserAssignedIdentity(
"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testuai"))
.withKeyVaultProperties(
- new EncryptionKeyVaultProperties()
- .withKeyVaultArmId("fakeTokenPlaceholder")
+ new KeyVaultProperties()
+ .withIdentityClientId("")
.withKeyIdentifier("fakeTokenPlaceholder")
- .withIdentityClientId("")))
+ .withKeyVaultArmId("fakeTokenPlaceholder"))
+ .withStatus(EncryptionStatus.ENABLED))
+ .withFriendlyName("HelloName")
.withHbiWorkspace(false)
+ .withKeyVault(
+ "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.KeyVault/vaults/testkv")
.withSharedPrivateLinkResources(
Arrays
.asList(
new SharedPrivateLinkResource()
.withName("testdbresource")
+ .withGroupId("Sql")
.withPrivateLinkResourceId(
"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.DocumentDB/databaseAccounts/testdbresource/privateLinkResources/Sql")
- .withGroupId("Sql")
.withRequestMessage("Please approve")
- .withStatus(PrivateEndpointServiceConnectionStatus.APPROVED)))
+ .withStatus(EndpointServiceConnectionStatus.APPROVED)))
+ .withStorageAccount(
+ "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/accountcrud-1234/providers/Microsoft.Storage/storageAccounts/testStorageAccount")
.create();
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -4264,7 +9245,7 @@ public final class WorkspacesCreateOrUpdateSamples {
/** Samples for Workspaces Delete. */
public final class WorkspacesDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Workspace/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/delete.json
*/
/**
* Sample code: Delete Workspace.
@@ -4272,7 +9253,7 @@ public final class WorkspacesDeleteSamples {
* @param manager Entry point to MachineLearningManager.
*/
public static void deleteWorkspace(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.workspaces().delete("workspace-1234", "testworkspace", com.azure.core.util.Context.NONE);
+ manager.workspaces().delete("workspace-1234", "testworkspace", null, com.azure.core.util.Context.NONE);
}
}
```
@@ -4288,7 +9269,7 @@ import java.util.Map;
/** Samples for Workspaces Diagnose. */
public final class WorkspacesDiagnoseSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Workspace/diagnose.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/diagnose.json
*/
/**
* Sample code: Diagnose Workspace.
@@ -4304,18 +9285,19 @@ public final class WorkspacesDiagnoseSamples {
new DiagnoseWorkspaceParameters()
.withValue(
new DiagnoseRequestProperties()
- .withUdr(mapOf())
+ .withApplicationInsights(mapOf())
+ .withContainerRegistry(mapOf())
+ .withDnsResolution(mapOf())
+ .withKeyVault(mapOf())
.withNsg(mapOf())
+ .withOthers(mapOf())
.withResourceLock(mapOf())
- .withDnsResolution(mapOf())
.withStorageAccount(mapOf())
- .withKeyVault(mapOf())
- .withContainerRegistry(mapOf())
- .withApplicationInsights(mapOf())
- .withOthers(mapOf())),
+ .withUdr(mapOf())),
com.azure.core.util.Context.NONE);
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -4335,7 +9317,7 @@ public final class WorkspacesDiagnoseSamples {
/** Samples for Workspaces GetByResourceGroup. */
public final class WorkspacesGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Workspace/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/get.json
*/
/**
* Sample code: Get Workspace.
@@ -4356,7 +9338,7 @@ public final class WorkspacesGetByResourceGroupSamples {
/** Samples for Workspaces List. */
public final class WorkspacesListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Workspace/listBySubscription.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/listBySubscription.json
*/
/**
* Sample code: Get Workspaces by subscription.
@@ -4365,7 +9347,7 @@ public final class WorkspacesListSamples {
*/
public static void getWorkspacesBySubscription(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.workspaces().list(null, com.azure.core.util.Context.NONE);
+ manager.workspaces().list(null, null, com.azure.core.util.Context.NONE);
}
}
```
@@ -4376,7 +9358,7 @@ public final class WorkspacesListSamples {
/** Samples for Workspaces ListByResourceGroup. */
public final class WorkspacesListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Workspace/listByResourceGroup.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/listByResourceGroup.json
*/
/**
* Sample code: Get Workspaces by Resource Group.
@@ -4385,7 +9367,7 @@ public final class WorkspacesListByResourceGroupSamples {
*/
public static void getWorkspacesByResourceGroup(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.workspaces().listByResourceGroup("workspace-1234", null, com.azure.core.util.Context.NONE);
+ manager.workspaces().listByResourceGroup("workspace-1234", null, null, com.azure.core.util.Context.NONE);
}
}
```
@@ -4396,7 +9378,7 @@ public final class WorkspacesListByResourceGroupSamples {
/** Samples for Workspaces ListKeys. */
public final class WorkspacesListKeysSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Workspace/listKeys.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/listKeys.json
*/
/**
* Sample code: List Workspace Keys.
@@ -4415,7 +9397,7 @@ public final class WorkspacesListKeysSamples {
/** Samples for Workspaces ListNotebookAccessToken. */
public final class WorkspacesListNotebookAccessTokenSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Workspace/listNotebookAccessToken.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/listNotebookAccessToken.json
*/
/**
* Sample code: List Workspace Keys.
@@ -4436,7 +9418,7 @@ public final class WorkspacesListNotebookAccessTokenSamples {
/** Samples for Workspaces ListNotebookKeys. */
public final class WorkspacesListNotebookKeysSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Notebook/listKeys.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Notebook/listKeys.json
*/
/**
* Sample code: List Workspace Keys.
@@ -4457,7 +9439,7 @@ public final class WorkspacesListNotebookKeysSamples {
/** Samples for Workspaces ListOutboundNetworkDependenciesEndpoints. */
public final class WorkspacesListOutboundNetworkDependenciesEndpointsSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/ExternalFQDN/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/ExternalFQDN/get.json
*/
/**
* Sample code: ListOutboundNetworkDependenciesEndpoints.
@@ -4480,7 +9462,7 @@ public final class WorkspacesListOutboundNetworkDependenciesEndpointsSamples {
/** Samples for Workspaces ListStorageAccountKeys. */
public final class WorkspacesListStorageAccountKeysSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Workspace/listStorageAccountKeys.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/listStorageAccountKeys.json
*/
/**
* Sample code: List Workspace Keys.
@@ -4501,7 +9483,7 @@ public final class WorkspacesListStorageAccountKeysSamples {
/** Samples for Workspaces PrepareNotebook. */
public final class WorkspacesPrepareNotebookSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Notebook/prepare.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Notebook/prepare.json
*/
/**
* Sample code: Prepare Notebook.
@@ -4520,7 +9502,7 @@ public final class WorkspacesPrepareNotebookSamples {
/** Samples for Workspaces ResyncKeys. */
public final class WorkspacesResyncKeysSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Workspace/resyncKeys.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/resyncKeys.json
*/
/**
* Sample code: Resync Workspace Keys.
@@ -4536,13 +9518,13 @@ public final class WorkspacesResyncKeysSamples {
### Workspaces_Update
```java
-import com.azure.resourcemanager.machinelearning.models.PublicNetworkAccess;
+import com.azure.resourcemanager.machinelearning.models.PublicNetworkAccessType;
import com.azure.resourcemanager.machinelearning.models.Workspace;
/** Samples for Workspaces Update. */
public final class WorkspacesUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2022-10-01/examples/Workspace/update.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/examples/Workspace/update.json
*/
/**
* Sample code: Update Workspace.
@@ -4559,7 +9541,7 @@ public final class WorkspacesUpdateSamples {
.update()
.withDescription("new description")
.withFriendlyName("New friendly name")
- .withPublicNetworkAccess(PublicNetworkAccess.DISABLED)
+ .withPublicNetworkAccess(PublicNetworkAccessType.DISABLED)
.apply();
}
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/pom.xml b/sdk/machinelearning/azure-resourcemanager-machinelearning/pom.xml
index ab53de65246f6..275ca09f703e4 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/pom.xml
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/pom.xml
@@ -1,3 +1,8 @@
+
4.0.0
@@ -13,7 +18,7 @@
jar
Microsoft Azure SDK for Machine Learning Management
- This package contains Microsoft Azure SDK for Machine Learning Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. These APIs allow end users to operate on Azure Machine Learning Workspace resources. Package tag package-2022-10.
+ This package contains Microsoft Azure SDK for Machine Learning Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. These APIs allow end users to operate on Azure Machine Learning Workspace resources. Package tag package-preview-2023-08.
https://github.com/Azure/azure-sdk-for-java
@@ -38,7 +43,9 @@
UTF-8
- true
+ 0
+ 0
+ true
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/MachineLearningManager.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/MachineLearningManager.java
index a212fe3e6c4a3..35079ccb30239 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,10 +23,11 @@
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.CapacityReservationGroupsImpl;
import com.azure.resourcemanager.machinelearning.implementation.CodeContainersImpl;
import com.azure.resourcemanager.machinelearning.implementation.CodeVersionsImpl;
import com.azure.resourcemanager.machinelearning.implementation.ComponentContainersImpl;
@@ -37,7 +38,18 @@
import com.azure.resourcemanager.machinelearning.implementation.DatastoresImpl;
import com.azure.resourcemanager.machinelearning.implementation.EnvironmentContainersImpl;
import com.azure.resourcemanager.machinelearning.implementation.EnvironmentVersionsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.FeaturesImpl;
+import com.azure.resourcemanager.machinelearning.implementation.FeaturesetContainersImpl;
+import com.azure.resourcemanager.machinelearning.implementation.FeaturesetVersionsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.FeaturestoreEntityContainersImpl;
+import com.azure.resourcemanager.machinelearning.implementation.FeaturestoreEntityVersionsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.InferenceEndpointsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.InferenceGroupsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.InferencePoolsImpl;
import com.azure.resourcemanager.machinelearning.implementation.JobsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.LabelingJobsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.ManagedNetworkProvisionsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.ManagedNetworkSettingsRulesImpl;
import com.azure.resourcemanager.machinelearning.implementation.ModelContainersImpl;
import com.azure.resourcemanager.machinelearning.implementation.ModelVersionsImpl;
import com.azure.resourcemanager.machinelearning.implementation.OnlineDeploymentsImpl;
@@ -46,7 +58,19 @@
import com.azure.resourcemanager.machinelearning.implementation.PrivateEndpointConnectionsImpl;
import com.azure.resourcemanager.machinelearning.implementation.PrivateLinkResourcesImpl;
import com.azure.resourcemanager.machinelearning.implementation.QuotasImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RegistriesImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RegistryCodeContainersImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RegistryCodeVersionsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RegistryComponentContainersImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RegistryComponentVersionsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RegistryDataContainersImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RegistryDataVersionsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RegistryEnvironmentContainersImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RegistryEnvironmentVersionsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RegistryModelContainersImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RegistryModelVersionsImpl;
import com.azure.resourcemanager.machinelearning.implementation.SchedulesImpl;
+import com.azure.resourcemanager.machinelearning.implementation.ServerlessEndpointsImpl;
import com.azure.resourcemanager.machinelearning.implementation.UsagesImpl;
import com.azure.resourcemanager.machinelearning.implementation.VirtualMachineSizesImpl;
import com.azure.resourcemanager.machinelearning.implementation.WorkspaceConnectionsImpl;
@@ -54,6 +78,7 @@
import com.azure.resourcemanager.machinelearning.implementation.WorkspacesImpl;
import com.azure.resourcemanager.machinelearning.models.BatchDeployments;
import com.azure.resourcemanager.machinelearning.models.BatchEndpoints;
+import com.azure.resourcemanager.machinelearning.models.CapacityReservationGroups;
import com.azure.resourcemanager.machinelearning.models.CodeContainers;
import com.azure.resourcemanager.machinelearning.models.CodeVersions;
import com.azure.resourcemanager.machinelearning.models.ComponentContainers;
@@ -64,7 +89,18 @@
import com.azure.resourcemanager.machinelearning.models.Datastores;
import com.azure.resourcemanager.machinelearning.models.EnvironmentContainers;
import com.azure.resourcemanager.machinelearning.models.EnvironmentVersions;
+import com.azure.resourcemanager.machinelearning.models.Features;
+import com.azure.resourcemanager.machinelearning.models.FeaturesetContainers;
+import com.azure.resourcemanager.machinelearning.models.FeaturesetVersions;
+import com.azure.resourcemanager.machinelearning.models.FeaturestoreEntityContainers;
+import com.azure.resourcemanager.machinelearning.models.FeaturestoreEntityVersions;
+import com.azure.resourcemanager.machinelearning.models.InferenceEndpoints;
+import com.azure.resourcemanager.machinelearning.models.InferenceGroups;
+import com.azure.resourcemanager.machinelearning.models.InferencePools;
import com.azure.resourcemanager.machinelearning.models.Jobs;
+import com.azure.resourcemanager.machinelearning.models.LabelingJobs;
+import com.azure.resourcemanager.machinelearning.models.ManagedNetworkProvisions;
+import com.azure.resourcemanager.machinelearning.models.ManagedNetworkSettingsRules;
import com.azure.resourcemanager.machinelearning.models.ModelContainers;
import com.azure.resourcemanager.machinelearning.models.ModelVersions;
import com.azure.resourcemanager.machinelearning.models.OnlineDeployments;
@@ -73,7 +109,19 @@
import com.azure.resourcemanager.machinelearning.models.PrivateEndpointConnections;
import com.azure.resourcemanager.machinelearning.models.PrivateLinkResources;
import com.azure.resourcemanager.machinelearning.models.Quotas;
+import com.azure.resourcemanager.machinelearning.models.Registries;
+import com.azure.resourcemanager.machinelearning.models.RegistryCodeContainers;
+import com.azure.resourcemanager.machinelearning.models.RegistryCodeVersions;
+import com.azure.resourcemanager.machinelearning.models.RegistryComponentContainers;
+import com.azure.resourcemanager.machinelearning.models.RegistryComponentVersions;
+import com.azure.resourcemanager.machinelearning.models.RegistryDataContainers;
+import com.azure.resourcemanager.machinelearning.models.RegistryDataVersions;
+import com.azure.resourcemanager.machinelearning.models.RegistryEnvironmentContainers;
+import com.azure.resourcemanager.machinelearning.models.RegistryEnvironmentVersions;
+import com.azure.resourcemanager.machinelearning.models.RegistryModelContainers;
+import com.azure.resourcemanager.machinelearning.models.RegistryModelVersions;
import com.azure.resourcemanager.machinelearning.models.Schedules;
+import com.azure.resourcemanager.machinelearning.models.ServerlessEndpoints;
import com.azure.resourcemanager.machinelearning.models.Usages;
import com.azure.resourcemanager.machinelearning.models.VirtualMachineSizes;
import com.azure.resourcemanager.machinelearning.models.WorkspaceConnections;
@@ -91,10 +139,6 @@
* resources.
*/
public final class MachineLearningManager {
- private Operations operations;
-
- private Workspaces workspaces;
-
private Usages usages;
private VirtualMachineSizes virtualMachineSizes;
@@ -103,11 +147,27 @@ public final class MachineLearningManager {
private Computes computes;
- private PrivateEndpointConnections privateEndpointConnections;
+ private CapacityReservationGroups capacityReservationGroups;
- private PrivateLinkResources privateLinkResources;
+ private RegistryCodeContainers registryCodeContainers;
- private WorkspaceConnections workspaceConnections;
+ 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;
@@ -131,8 +191,26 @@ public final class MachineLearningManager {
private EnvironmentVersions environmentVersions;
+ private FeaturesetContainers featuresetContainers;
+
+ private Features features;
+
+ private FeaturesetVersions featuresetVersions;
+
+ private FeaturestoreEntityContainers featurestoreEntityContainers;
+
+ private FeaturestoreEntityVersions featurestoreEntityVersions;
+
+ private InferencePools inferencePools;
+
+ private InferenceEndpoints inferenceEndpoints;
+
+ private InferenceGroups inferenceGroups;
+
private Jobs jobs;
+ private LabelingJobs labelingJobs;
+
private ModelContainers modelContainers;
private ModelVersions modelVersions;
@@ -143,15 +221,33 @@ public final class MachineLearningManager {
private Schedules schedules;
+ private ServerlessEndpoints serverlessEndpoints;
+
+ private Registries registries;
+
private WorkspaceFeatures workspaceFeatures;
- private final AzureMachineLearningWorkspaces clientObject;
+ private Operations operations;
+
+ private Workspaces workspaces;
+
+ private WorkspaceConnections workspaceConnections;
+
+ private ManagedNetworkSettingsRules managedNetworkSettingsRules;
+
+ private PrivateEndpointConnections privateEndpointConnections;
+
+ private PrivateLinkResources privateLinkResources;
+
+ private ManagedNetworkProvisions managedNetworkProvisions;
+
+ private final AzureMachineLearningServices clientObject;
private MachineLearningManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
this.clientObject =
- new AzureMachineLearningWorkspacesBuilder()
+ new AzureMachineLearningServicesBuilder()
.pipeline(httpPipeline)
.endpoint(profile.getEnvironment().getResourceManagerEndpoint())
.subscriptionId(profile.getSubscriptionId())
@@ -310,7 +406,7 @@ public MachineLearningManager authenticate(TokenCredential credential, AzureProf
.append("-")
.append("com.azure.resourcemanager.machinelearning")
.append("/")
- .append("1.0.0");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
@@ -367,30 +463,6 @@ public MachineLearningManager authenticate(TokenCredential credential, AzureProf
}
}
- /**
- * Gets the resource collection API of Operations.
- *
- * @return Resource collection API of Operations.
- */
- public Operations operations() {
- if (this.operations == null) {
- this.operations = new OperationsImpl(clientObject.getOperations(), this);
- }
- return operations;
- }
-
- /**
- * Gets the resource collection API of Workspaces. It manages Workspace.
- *
- * @return Resource collection API of Workspaces.
- */
- public Workspaces workspaces() {
- if (this.workspaces == null) {
- this.workspaces = new WorkspacesImpl(clientObject.getWorkspaces(), this);
- }
- return workspaces;
- }
-
/**
* Gets the resource collection API of Usages.
*
@@ -440,41 +512,143 @@ public Computes computes() {
}
/**
- * Gets the resource collection API of PrivateEndpointConnections. It manages PrivateEndpointConnection.
+ * Gets the resource collection API of CapacityReservationGroups. It manages CapacityReservationGroup.
*
- * @return Resource collection API of PrivateEndpointConnections.
+ * @return Resource collection API of CapacityReservationGroups.
*/
- public PrivateEndpointConnections privateEndpointConnections() {
- if (this.privateEndpointConnections == null) {
- this.privateEndpointConnections =
- new PrivateEndpointConnectionsImpl(clientObject.getPrivateEndpointConnections(), this);
+ public CapacityReservationGroups capacityReservationGroups() {
+ if (this.capacityReservationGroups == null) {
+ this.capacityReservationGroups =
+ new CapacityReservationGroupsImpl(clientObject.getCapacityReservationGroups(), this);
}
- return privateEndpointConnections;
+ return capacityReservationGroups;
}
/**
- * Gets the resource collection API of PrivateLinkResources.
+ * Gets the resource collection API of RegistryCodeContainers. It manages CodeContainer.
*
- * @return Resource collection API of PrivateLinkResources.
+ * @return Resource collection API of RegistryCodeContainers.
*/
- public PrivateLinkResources privateLinkResources() {
- if (this.privateLinkResources == null) {
- this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this);
+ public RegistryCodeContainers registryCodeContainers() {
+ if (this.registryCodeContainers == null) {
+ this.registryCodeContainers =
+ new RegistryCodeContainersImpl(clientObject.getRegistryCodeContainers(), this);
}
- return privateLinkResources;
+ return registryCodeContainers;
}
/**
- * Gets the resource collection API of WorkspaceConnections. It manages
- * WorkspaceConnectionPropertiesV2BasicResource.
+ * Gets the resource collection API of RegistryCodeVersions. It manages CodeVersion.
*
- * @return Resource collection API of WorkspaceConnections.
+ * @return Resource collection API of RegistryCodeVersions.
*/
- public WorkspaceConnections workspaceConnections() {
- if (this.workspaceConnections == null) {
- this.workspaceConnections = new WorkspaceConnectionsImpl(clientObject.getWorkspaceConnections(), this);
+ public RegistryCodeVersions registryCodeVersions() {
+ if (this.registryCodeVersions == null) {
+ this.registryCodeVersions = new RegistryCodeVersionsImpl(clientObject.getRegistryCodeVersions(), this);
}
- return workspaceConnections;
+ 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;
}
/**
@@ -502,7 +676,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 +688,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 +700,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 +712,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 +724,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 +736,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 +760,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 +772,7 @@ public EnvironmentContainers environmentContainers() {
}
/**
- * Gets the resource collection API of EnvironmentVersions. It manages EnvironmentVersion.
+ * Gets the resource collection API of EnvironmentVersions.
*
* @return Resource collection API of EnvironmentVersions.
*/
@@ -609,6 +783,104 @@ public EnvironmentVersions environmentVersions() {
return environmentVersions;
}
+ /**
+ * Gets the resource collection API of FeaturesetContainers. It manages FeaturesetContainer.
+ *
+ * @return Resource collection API of FeaturesetContainers.
+ */
+ public FeaturesetContainers featuresetContainers() {
+ if (this.featuresetContainers == null) {
+ this.featuresetContainers = new FeaturesetContainersImpl(clientObject.getFeaturesetContainers(), this);
+ }
+ return featuresetContainers;
+ }
+
+ /**
+ * Gets the resource collection API of Features.
+ *
+ * @return Resource collection API of Features.
+ */
+ public Features features() {
+ if (this.features == null) {
+ this.features = new FeaturesImpl(clientObject.getFeatures(), this);
+ }
+ return features;
+ }
+
+ /**
+ * Gets the resource collection API of FeaturesetVersions. It manages FeaturesetVersion.
+ *
+ * @return Resource collection API of FeaturesetVersions.
+ */
+ public FeaturesetVersions featuresetVersions() {
+ if (this.featuresetVersions == null) {
+ this.featuresetVersions = new FeaturesetVersionsImpl(clientObject.getFeaturesetVersions(), this);
+ }
+ return featuresetVersions;
+ }
+
+ /**
+ * Gets the resource collection API of FeaturestoreEntityContainers. It manages FeaturestoreEntityContainer.
+ *
+ * @return Resource collection API of FeaturestoreEntityContainers.
+ */
+ public FeaturestoreEntityContainers featurestoreEntityContainers() {
+ if (this.featurestoreEntityContainers == null) {
+ this.featurestoreEntityContainers =
+ new FeaturestoreEntityContainersImpl(clientObject.getFeaturestoreEntityContainers(), this);
+ }
+ return featurestoreEntityContainers;
+ }
+
+ /**
+ * Gets the resource collection API of FeaturestoreEntityVersions. It manages FeaturestoreEntityVersion.
+ *
+ * @return Resource collection API of FeaturestoreEntityVersions.
+ */
+ public FeaturestoreEntityVersions featurestoreEntityVersions() {
+ if (this.featurestoreEntityVersions == null) {
+ this.featurestoreEntityVersions =
+ new FeaturestoreEntityVersionsImpl(clientObject.getFeaturestoreEntityVersions(), this);
+ }
+ return featurestoreEntityVersions;
+ }
+
+ /**
+ * Gets the resource collection API of InferencePools. It manages InferencePool.
+ *
+ * @return Resource collection API of InferencePools.
+ */
+ public InferencePools inferencePools() {
+ if (this.inferencePools == null) {
+ this.inferencePools = new InferencePoolsImpl(clientObject.getInferencePools(), this);
+ }
+ return inferencePools;
+ }
+
+ /**
+ * Gets the resource collection API of InferenceEndpoints. It manages InferenceEndpoint.
+ *
+ * @return Resource collection API of InferenceEndpoints.
+ */
+ public InferenceEndpoints inferenceEndpoints() {
+ if (this.inferenceEndpoints == null) {
+ this.inferenceEndpoints = new InferenceEndpointsImpl(clientObject.getInferenceEndpoints(), this);
+ }
+ return inferenceEndpoints;
+ }
+
+ /**
+ * Gets the resource collection API of InferenceGroups. It manages InferenceGroup.
+ *
+ * @return Resource collection API of InferenceGroups.
+ */
+ public InferenceGroups inferenceGroups() {
+ if (this.inferenceGroups == null) {
+ this.inferenceGroups = new InferenceGroupsImpl(clientObject.getInferenceGroups(), this);
+ }
+ return inferenceGroups;
+ }
+
/**
* Gets the resource collection API of Jobs. It manages JobBase.
*
@@ -622,7 +894,19 @@ public Jobs jobs() {
}
/**
- * Gets the resource collection API of ModelContainers. It manages ModelContainer.
+ * Gets the resource collection API of LabelingJobs. It manages LabelingJob.
+ *
+ * @return Resource collection API of LabelingJobs.
+ */
+ public LabelingJobs labelingJobs() {
+ if (this.labelingJobs == null) {
+ this.labelingJobs = new LabelingJobsImpl(clientObject.getLabelingJobs(), this);
+ }
+ return labelingJobs;
+ }
+
+ /**
+ * Gets the resource collection API of ModelContainers.
*
* @return Resource collection API of ModelContainers.
*/
@@ -634,7 +918,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 +965,30 @@ public Schedules schedules() {
return schedules;
}
+ /**
+ * Gets the resource collection API of ServerlessEndpoints. It manages ServerlessEndpoint.
+ *
+ * @return Resource collection API of ServerlessEndpoints.
+ */
+ public ServerlessEndpoints serverlessEndpoints() {
+ if (this.serverlessEndpoints == null) {
+ this.serverlessEndpoints = new ServerlessEndpointsImpl(clientObject.getServerlessEndpoints(), this);
+ }
+ return serverlessEndpoints;
+ }
+
+ /**
+ * Gets the resource collection API of Registries. It manages Registry.
+ *
+ * @return Resource collection API of Registries.
+ */
+ public Registries registries() {
+ if (this.registries == null) {
+ this.registries = new RegistriesImpl(clientObject.getRegistries(), this);
+ }
+ return registries;
+ }
+
/**
* Gets the resource collection API of WorkspaceFeatures.
*
@@ -694,10 +1002,100 @@ public WorkspaceFeatures workspaceFeatures() {
}
/**
- * @return Wrapped service client AzureMachineLearningWorkspaces providing direct access to the underlying
- * auto-generated API implementation, based on Azure REST API.
+ * Gets the resource collection API of Operations.
+ *
+ * @return Resource collection API of Operations.
+ */
+ public Operations operations() {
+ if (this.operations == null) {
+ this.operations = new OperationsImpl(clientObject.getOperations(), this);
+ }
+ return operations;
+ }
+
+ /**
+ * Gets the resource collection API of Workspaces. It manages Workspace.
+ *
+ * @return Resource collection API of Workspaces.
+ */
+ public Workspaces workspaces() {
+ if (this.workspaces == null) {
+ this.workspaces = new WorkspacesImpl(clientObject.getWorkspaces(), this);
+ }
+ return workspaces;
+ }
+
+ /**
+ * Gets the resource collection API of WorkspaceConnections. It manages
+ * WorkspaceConnectionPropertiesV2BasicResource.
+ *
+ * @return Resource collection API of WorkspaceConnections.
+ */
+ public WorkspaceConnections workspaceConnections() {
+ if (this.workspaceConnections == null) {
+ this.workspaceConnections = new WorkspaceConnectionsImpl(clientObject.getWorkspaceConnections(), this);
+ }
+ return workspaceConnections;
+ }
+
+ /**
+ * Gets the resource collection API of ManagedNetworkSettingsRules. It manages OutboundRuleBasicResource.
+ *
+ * @return Resource collection API of ManagedNetworkSettingsRules.
+ */
+ public ManagedNetworkSettingsRules managedNetworkSettingsRules() {
+ if (this.managedNetworkSettingsRules == null) {
+ this.managedNetworkSettingsRules =
+ new ManagedNetworkSettingsRulesImpl(clientObject.getManagedNetworkSettingsRules(), this);
+ }
+ return managedNetworkSettingsRules;
+ }
+
+ /**
+ * Gets the resource collection API of PrivateEndpointConnections. It manages PrivateEndpointConnection.
+ *
+ * @return Resource collection API of PrivateEndpointConnections.
+ */
+ public PrivateEndpointConnections privateEndpointConnections() {
+ if (this.privateEndpointConnections == null) {
+ this.privateEndpointConnections =
+ new PrivateEndpointConnectionsImpl(clientObject.getPrivateEndpointConnections(), this);
+ }
+ return privateEndpointConnections;
+ }
+
+ /**
+ * Gets the resource collection API of PrivateLinkResources.
+ *
+ * @return Resource collection API of PrivateLinkResources.
+ */
+ public PrivateLinkResources privateLinkResources() {
+ if (this.privateLinkResources == null) {
+ this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this);
+ }
+ return privateLinkResources;
+ }
+
+ /**
+ * Gets the resource collection API of ManagedNetworkProvisions.
+ *
+ * @return Resource collection API of ManagedNetworkProvisions.
+ */
+ public ManagedNetworkProvisions managedNetworkProvisions() {
+ if (this.managedNetworkProvisions == null) {
+ this.managedNetworkProvisions =
+ new ManagedNetworkProvisionsImpl(clientObject.getManagedNetworkProvisions(), this);
+ }
+ return managedNetworkProvisions;
+ }
+
+ /**
+ * Gets wrapped service client AzureMachineLearningServices providing direct access to the underlying auto-generated
+ * API implementation, based on Azure REST API.
+ *
+ * @return Wrapped service client AzureMachineLearningServices.
*/
- public AzureMachineLearningWorkspaces serviceClient() {
+ public AzureMachineLearningServices serviceClient() {
return this.clientObject;
}
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/AzureMachineLearningServices.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/AzureMachineLearningServices.java
new file mode 100644
index 0000000000000..cbbec1b3d6111
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/AzureMachineLearningServices.java
@@ -0,0 +1,403 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.machinelearning.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/** The interface for AzureMachineLearningServices class. */
+public interface AzureMachineLearningServices {
+ /**
+ * Gets The ID of the target subscription.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ String getEndpoint();
+
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ String getApiVersion();
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ HttpPipeline getHttpPipeline();
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ Duration getDefaultPollInterval();
+
+ /**
+ * Gets the UsagesClient object to access its operations.
+ *
+ * @return the UsagesClient object.
+ */
+ UsagesClient getUsages();
+
+ /**
+ * Gets the VirtualMachineSizesClient object to access its operations.
+ *
+ * @return the VirtualMachineSizesClient object.
+ */
+ VirtualMachineSizesClient getVirtualMachineSizes();
+
+ /**
+ * Gets the QuotasClient object to access its operations.
+ *
+ * @return the QuotasClient object.
+ */
+ QuotasClient getQuotas();
+
+ /**
+ * Gets the ComputesClient object to access its operations.
+ *
+ * @return the ComputesClient object.
+ */
+ ComputesClient getComputes();
+
+ /**
+ * Gets the CapacityReservationGroupsClient object to access its operations.
+ *
+ * @return the CapacityReservationGroupsClient object.
+ */
+ CapacityReservationGroupsClient getCapacityReservationGroups();
+
+ /**
+ * Gets the RegistryCodeContainersClient object to access its operations.
+ *
+ * @return the RegistryCodeContainersClient object.
+ */
+ RegistryCodeContainersClient getRegistryCodeContainers();
+
+ /**
+ * Gets the RegistryCodeVersionsClient object to access its operations.
+ *
+ * @return the RegistryCodeVersionsClient object.
+ */
+ RegistryCodeVersionsClient getRegistryCodeVersions();
+
+ /**
+ * Gets the RegistryComponentContainersClient object to access its operations.
+ *
+ * @return the RegistryComponentContainersClient object.
+ */
+ RegistryComponentContainersClient getRegistryComponentContainers();
+
+ /**
+ * Gets the RegistryComponentVersionsClient object to access its operations.
+ *
+ * @return the RegistryComponentVersionsClient object.
+ */
+ RegistryComponentVersionsClient getRegistryComponentVersions();
+
+ /**
+ * Gets the RegistryDataContainersClient object to access its operations.
+ *
+ * @return the RegistryDataContainersClient object.
+ */
+ RegistryDataContainersClient getRegistryDataContainers();
+
+ /**
+ * Gets the RegistryDataVersionsClient object to access its operations.
+ *
+ * @return the RegistryDataVersionsClient object.
+ */
+ RegistryDataVersionsClient getRegistryDataVersions();
+
+ /**
+ * Gets the RegistryEnvironmentContainersClient object to access its operations.
+ *
+ * @return the RegistryEnvironmentContainersClient object.
+ */
+ RegistryEnvironmentContainersClient getRegistryEnvironmentContainers();
+
+ /**
+ * Gets the RegistryEnvironmentVersionsClient object to access its operations.
+ *
+ * @return the RegistryEnvironmentVersionsClient object.
+ */
+ RegistryEnvironmentVersionsClient getRegistryEnvironmentVersions();
+
+ /**
+ * Gets the RegistryModelContainersClient object to access its operations.
+ *
+ * @return the RegistryModelContainersClient object.
+ */
+ RegistryModelContainersClient getRegistryModelContainers();
+
+ /**
+ * Gets the RegistryModelVersionsClient object to access its operations.
+ *
+ * @return the RegistryModelVersionsClient object.
+ */
+ RegistryModelVersionsClient getRegistryModelVersions();
+
+ /**
+ * Gets the BatchEndpointsClient object to access its operations.
+ *
+ * @return the BatchEndpointsClient object.
+ */
+ BatchEndpointsClient getBatchEndpoints();
+
+ /**
+ * Gets the BatchDeploymentsClient object to access its operations.
+ *
+ * @return the BatchDeploymentsClient object.
+ */
+ BatchDeploymentsClient getBatchDeployments();
+
+ /**
+ * Gets the CodeContainersClient object to access its operations.
+ *
+ * @return the CodeContainersClient object.
+ */
+ CodeContainersClient getCodeContainers();
+
+ /**
+ * Gets the CodeVersionsClient object to access its operations.
+ *
+ * @return the CodeVersionsClient object.
+ */
+ CodeVersionsClient getCodeVersions();
+
+ /**
+ * Gets the ComponentContainersClient object to access its operations.
+ *
+ * @return the ComponentContainersClient object.
+ */
+ ComponentContainersClient getComponentContainers();
+
+ /**
+ * Gets the ComponentVersionsClient object to access its operations.
+ *
+ * @return the ComponentVersionsClient object.
+ */
+ ComponentVersionsClient getComponentVersions();
+
+ /**
+ * Gets the DataContainersClient object to access its operations.
+ *
+ * @return the DataContainersClient object.
+ */
+ DataContainersClient getDataContainers();
+
+ /**
+ * Gets the DataVersionsClient object to access its operations.
+ *
+ * @return the DataVersionsClient object.
+ */
+ DataVersionsClient getDataVersions();
+
+ /**
+ * Gets the DatastoresClient object to access its operations.
+ *
+ * @return the DatastoresClient object.
+ */
+ DatastoresClient getDatastores();
+
+ /**
+ * Gets the EnvironmentContainersClient object to access its operations.
+ *
+ * @return the EnvironmentContainersClient object.
+ */
+ EnvironmentContainersClient getEnvironmentContainers();
+
+ /**
+ * Gets the EnvironmentVersionsClient object to access its operations.
+ *
+ * @return the EnvironmentVersionsClient object.
+ */
+ EnvironmentVersionsClient getEnvironmentVersions();
+
+ /**
+ * Gets the FeaturesetContainersClient object to access its operations.
+ *
+ * @return the FeaturesetContainersClient object.
+ */
+ FeaturesetContainersClient getFeaturesetContainers();
+
+ /**
+ * Gets the FeaturesClient object to access its operations.
+ *
+ * @return the FeaturesClient object.
+ */
+ FeaturesClient getFeatures();
+
+ /**
+ * Gets the FeaturesetVersionsClient object to access its operations.
+ *
+ * @return the FeaturesetVersionsClient object.
+ */
+ FeaturesetVersionsClient getFeaturesetVersions();
+
+ /**
+ * Gets the FeaturestoreEntityContainersClient object to access its operations.
+ *
+ * @return the FeaturestoreEntityContainersClient object.
+ */
+ FeaturestoreEntityContainersClient getFeaturestoreEntityContainers();
+
+ /**
+ * Gets the FeaturestoreEntityVersionsClient object to access its operations.
+ *
+ * @return the FeaturestoreEntityVersionsClient object.
+ */
+ FeaturestoreEntityVersionsClient getFeaturestoreEntityVersions();
+
+ /**
+ * Gets the InferencePoolsClient object to access its operations.
+ *
+ * @return the InferencePoolsClient object.
+ */
+ InferencePoolsClient getInferencePools();
+
+ /**
+ * Gets the InferenceEndpointsClient object to access its operations.
+ *
+ * @return the InferenceEndpointsClient object.
+ */
+ InferenceEndpointsClient getInferenceEndpoints();
+
+ /**
+ * Gets the InferenceGroupsClient object to access its operations.
+ *
+ * @return the InferenceGroupsClient object.
+ */
+ InferenceGroupsClient getInferenceGroups();
+
+ /**
+ * Gets the JobsClient object to access its operations.
+ *
+ * @return the JobsClient object.
+ */
+ JobsClient getJobs();
+
+ /**
+ * Gets the LabelingJobsClient object to access its operations.
+ *
+ * @return the LabelingJobsClient object.
+ */
+ LabelingJobsClient getLabelingJobs();
+
+ /**
+ * Gets the ModelContainersClient object to access its operations.
+ *
+ * @return the ModelContainersClient object.
+ */
+ ModelContainersClient getModelContainers();
+
+ /**
+ * Gets the ModelVersionsClient object to access its operations.
+ *
+ * @return the ModelVersionsClient object.
+ */
+ ModelVersionsClient getModelVersions();
+
+ /**
+ * Gets the OnlineEndpointsClient object to access its operations.
+ *
+ * @return the OnlineEndpointsClient object.
+ */
+ OnlineEndpointsClient getOnlineEndpoints();
+
+ /**
+ * Gets the OnlineDeploymentsClient object to access its operations.
+ *
+ * @return the OnlineDeploymentsClient object.
+ */
+ OnlineDeploymentsClient getOnlineDeployments();
+
+ /**
+ * Gets the SchedulesClient object to access its operations.
+ *
+ * @return the SchedulesClient object.
+ */
+ SchedulesClient getSchedules();
+
+ /**
+ * Gets the ServerlessEndpointsClient object to access its operations.
+ *
+ * @return the ServerlessEndpointsClient object.
+ */
+ ServerlessEndpointsClient getServerlessEndpoints();
+
+ /**
+ * Gets the RegistriesClient object to access its operations.
+ *
+ * @return the RegistriesClient object.
+ */
+ RegistriesClient getRegistries();
+
+ /**
+ * Gets the WorkspaceFeaturesClient object to access its operations.
+ *
+ * @return the WorkspaceFeaturesClient object.
+ */
+ WorkspaceFeaturesClient getWorkspaceFeatures();
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
+
+ /**
+ * Gets the WorkspacesClient object to access its operations.
+ *
+ * @return the WorkspacesClient object.
+ */
+ WorkspacesClient getWorkspaces();
+
+ /**
+ * Gets the WorkspaceConnectionsClient object to access its operations.
+ *
+ * @return the WorkspaceConnectionsClient object.
+ */
+ WorkspaceConnectionsClient getWorkspaceConnections();
+
+ /**
+ * Gets the ManagedNetworkSettingsRulesClient object to access its operations.
+ *
+ * @return the ManagedNetworkSettingsRulesClient object.
+ */
+ ManagedNetworkSettingsRulesClient getManagedNetworkSettingsRules();
+
+ /**
+ * Gets the PrivateEndpointConnectionsClient object to access its operations.
+ *
+ * @return the PrivateEndpointConnectionsClient object.
+ */
+ PrivateEndpointConnectionsClient getPrivateEndpointConnections();
+
+ /**
+ * Gets the PrivateLinkResourcesClient object to access its operations.
+ *
+ * @return the PrivateLinkResourcesClient object.
+ */
+ PrivateLinkResourcesClient getPrivateLinkResources();
+
+ /**
+ * Gets the ManagedNetworkProvisionsClient object to access its operations.
+ *
+ * @return the ManagedNetworkProvisionsClient object.
+ */
+ ManagedNetworkProvisionsClient getManagedNetworkProvisions();
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/AzureMachineLearningWorkspaces.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/AzureMachineLearningWorkspaces.java
deleted file mode 100644
index e8a40ef9b43c9..0000000000000
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/AzureMachineLearningWorkspaces.java
+++ /dev/null
@@ -1,235 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.machinelearning.fluent;
-
-import com.azure.core.http.HttpPipeline;
-import java.time.Duration;
-
-/** The interface for AzureMachineLearningWorkspaces class. */
-public interface AzureMachineLearningWorkspaces {
- /**
- * Gets The ID of the target subscription.
- *
- * @return the subscriptionId value.
- */
- String getSubscriptionId();
-
- /**
- * Gets server parameter.
- *
- * @return the endpoint value.
- */
- String getEndpoint();
-
- /**
- * Gets Api Version.
- *
- * @return the apiVersion value.
- */
- String getApiVersion();
-
- /**
- * Gets The HTTP pipeline to send requests through.
- *
- * @return the httpPipeline value.
- */
- HttpPipeline getHttpPipeline();
-
- /**
- * Gets The default poll interval for long-running operation.
- *
- * @return the defaultPollInterval value.
- */
- Duration getDefaultPollInterval();
-
- /**
- * Gets the OperationsClient object to access its operations.
- *
- * @return the OperationsClient object.
- */
- OperationsClient getOperations();
-
- /**
- * Gets the WorkspacesClient object to access its operations.
- *
- * @return the WorkspacesClient object.
- */
- WorkspacesClient getWorkspaces();
-
- /**
- * Gets the UsagesClient object to access its operations.
- *
- * @return the UsagesClient object.
- */
- UsagesClient getUsages();
-
- /**
- * Gets the VirtualMachineSizesClient object to access its operations.
- *
- * @return the VirtualMachineSizesClient object.
- */
- VirtualMachineSizesClient getVirtualMachineSizes();
-
- /**
- * Gets the QuotasClient object to access its operations.
- *
- * @return the QuotasClient object.
- */
- QuotasClient getQuotas();
-
- /**
- * Gets the ComputesClient object to access its operations.
- *
- * @return the ComputesClient object.
- */
- ComputesClient getComputes();
-
- /**
- * Gets the PrivateEndpointConnectionsClient object to access its operations.
- *
- * @return the PrivateEndpointConnectionsClient object.
- */
- PrivateEndpointConnectionsClient getPrivateEndpointConnections();
-
- /**
- * Gets the PrivateLinkResourcesClient object to access its operations.
- *
- * @return the PrivateLinkResourcesClient object.
- */
- PrivateLinkResourcesClient getPrivateLinkResources();
-
- /**
- * Gets the WorkspaceConnectionsClient object to access its operations.
- *
- * @return the WorkspaceConnectionsClient object.
- */
- WorkspaceConnectionsClient getWorkspaceConnections();
-
- /**
- * Gets the BatchEndpointsClient object to access its operations.
- *
- * @return the BatchEndpointsClient object.
- */
- BatchEndpointsClient getBatchEndpoints();
-
- /**
- * Gets the BatchDeploymentsClient object to access its operations.
- *
- * @return the BatchDeploymentsClient object.
- */
- BatchDeploymentsClient getBatchDeployments();
-
- /**
- * Gets the CodeContainersClient object to access its operations.
- *
- * @return the CodeContainersClient object.
- */
- CodeContainersClient getCodeContainers();
-
- /**
- * Gets the CodeVersionsClient object to access its operations.
- *
- * @return the CodeVersionsClient object.
- */
- CodeVersionsClient getCodeVersions();
-
- /**
- * Gets the ComponentContainersClient object to access its operations.
- *
- * @return the ComponentContainersClient object.
- */
- ComponentContainersClient getComponentContainers();
-
- /**
- * Gets the ComponentVersionsClient object to access its operations.
- *
- * @return the ComponentVersionsClient object.
- */
- ComponentVersionsClient getComponentVersions();
-
- /**
- * Gets the DataContainersClient object to access its operations.
- *
- * @return the DataContainersClient object.
- */
- DataContainersClient getDataContainers();
-
- /**
- * Gets the DataVersionsClient object to access its operations.
- *
- * @return the DataVersionsClient object.
- */
- DataVersionsClient getDataVersions();
-
- /**
- * Gets the DatastoresClient object to access its operations.
- *
- * @return the DatastoresClient object.
- */
- DatastoresClient getDatastores();
-
- /**
- * Gets the EnvironmentContainersClient object to access its operations.
- *
- * @return the EnvironmentContainersClient object.
- */
- EnvironmentContainersClient getEnvironmentContainers();
-
- /**
- * Gets the EnvironmentVersionsClient object to access its operations.
- *
- * @return the EnvironmentVersionsClient object.
- */
- EnvironmentVersionsClient getEnvironmentVersions();
-
- /**
- * Gets the JobsClient object to access its operations.
- *
- * @return the JobsClient object.
- */
- JobsClient getJobs();
-
- /**
- * Gets the ModelContainersClient object to access its operations.
- *
- * @return the ModelContainersClient object.
- */
- ModelContainersClient getModelContainers();
-
- /**
- * Gets the ModelVersionsClient object to access its operations.
- *
- * @return the ModelVersionsClient object.
- */
- ModelVersionsClient getModelVersions();
-
- /**
- * Gets the OnlineEndpointsClient object to access its operations.
- *
- * @return the OnlineEndpointsClient object.
- */
- OnlineEndpointsClient getOnlineEndpoints();
-
- /**
- * Gets the OnlineDeploymentsClient object to access its operations.
- *
- * @return the OnlineDeploymentsClient object.
- */
- OnlineDeploymentsClient getOnlineDeployments();
-
- /**
- * Gets the SchedulesClient object to access its operations.
- *
- * @return the SchedulesClient object.
- */
- SchedulesClient getSchedules();
-
- /**
- * Gets the WorkspaceFeaturesClient object to access its operations.
- *
- * @return the WorkspaceFeaturesClient object.
- */
- WorkspaceFeaturesClient getWorkspaceFeatures();
-}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/CapacityReservationGroupsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/CapacityReservationGroupsClient.java
new file mode 100644
index 0000000000000..adce70131d7de
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/CapacityReservationGroupsClient.java
@@ -0,0 +1,185 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.machinelearning.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.machinelearning.fluent.models.CapacityReservationGroupInner;
+import com.azure.resourcemanager.machinelearning.models.PartialMinimalTrackedResourceWithSkuAndIdentity;
+
+/** An instance of this class provides access to all the operations defined in CapacityReservationGroupsClient. */
+public interface CapacityReservationGroupsClient {
+ /**
+ * The list operation.
+ *
+ * @throws com.azure.core.management.exception.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 CapacityReservationGroup entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * The list operation.
+ *
+ * @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 CapacityReservationGroup entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String skip, Context context);
+
+ /**
+ * The listByResourceGroup operation.
+ *
+ * @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 CapacityReservationGroup entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * The listByResourceGroup operation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param skip Continuation token for pagination.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of CapacityReservationGroup entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(
+ String resourceGroupName, String skip, Context context);
+
+ /**
+ * The delete operation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param groupId The groupId parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceGroupName, String groupId, Context context);
+
+ /**
+ * The delete operation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param groupId The groupId parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 groupId);
+
+ /**
+ * The getByResourceGroup operation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param groupId The groupId parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException 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 getByResourceGroupWithResponse(
+ String resourceGroupName, String groupId, Context context);
+
+ /**
+ * The getByResourceGroup operation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param groupId The groupId parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException 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)
+ CapacityReservationGroupInner getByResourceGroup(String resourceGroupName, String groupId);
+
+ /**
+ * The update operation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param groupId The groupId parameter.
+ * @param body Strictly used in update requests.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException 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 groupId,
+ PartialMinimalTrackedResourceWithSkuAndIdentity body,
+ Context context);
+
+ /**
+ * The update operation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param groupId The groupId parameter.
+ * @param body Strictly used in update requests.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException 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)
+ CapacityReservationGroupInner update(
+ String resourceGroupName, String groupId, PartialMinimalTrackedResourceWithSkuAndIdentity body);
+
+ /**
+ * The createOrUpdate operation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param groupId The groupId parameter.
+ * @param body The body parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException 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 createOrUpdateWithResponse(
+ String resourceGroupName, String groupId, CapacityReservationGroupInner body, Context context);
+
+ /**
+ * The createOrUpdate operation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param groupId The groupId parameter.
+ * @param body The body parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException 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)
+ CapacityReservationGroupInner createOrUpdate(
+ String resourceGroupName, String groupId, CapacityReservationGroupInner body);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/CodeVersionsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/CodeVersionsClient.java
index fa5b5e3a44693..b619227035501 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/CodeVersionsClient.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/CodeVersionsClient.java
@@ -10,6 +10,8 @@
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.machinelearning.fluent.models.CodeVersionInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.PendingUploadResponseDtoInner;
+import com.azure.resourcemanager.machinelearning.models.PendingUploadRequestDto;
/** An instance of this class provides access to all the operations defined in CodeVersionsClient. */
public interface CodeVersionsClient {
@@ -36,6 +38,8 @@ public interface CodeVersionsClient {
* @param orderBy Ordering of list.
* @param top Maximum number of records to return.
* @param skip Continuation token for pagination.
+ * @param hash If specified, return CodeVersion assets with specified content hash value, regardless of name.
+ * @param hashVersion Hash algorithm version when listing by hash.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -50,6 +54,8 @@ PagedIterable list(
String orderBy,
Integer top,
String skip,
+ String hash,
+ String hashVersion,
Context context);
/**
@@ -154,4 +160,44 @@ Response createOrUpdateWithResponse(
@ServiceMethod(returns = ReturnType.SINGLE)
CodeVersionInner createOrUpdate(
String resourceGroupName, String workspaceName, String name, String version, CodeVersionInner body);
+
+ /**
+ * Generate a storage location and credential for the client to upload a code asset to.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Pending upload request object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrGetStartPendingUploadWithResponse(
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ String version,
+ PendingUploadRequestDto body,
+ Context context);
+
+ /**
+ * Generate a storage location and credential for the client to upload a code asset to.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Pending upload request object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PendingUploadResponseDtoInner createOrGetStartPendingUpload(
+ String resourceGroupName, String workspaceName, String name, String version, PendingUploadRequestDto body);
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ComponentVersionsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ComponentVersionsClient.java
index c1374059eaa05..55ccee820c554 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ComponentVersionsClient.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ComponentVersionsClient.java
@@ -38,6 +38,7 @@ public interface ComponentVersionsClient {
* @param top Maximum number of records to return.
* @param skip Continuation token for pagination.
* @param listViewType View type for including/excluding (for example) archived entities.
+ * @param stage Component stage.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -53,6 +54,7 @@ PagedIterable list(
Integer top,
String skip,
ListViewType listViewType,
+ String stage,
Context context);
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ComputesClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ComputesClient.java
index 5676a642b1704..037a3fadd7249 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ComputesClient.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ComputesClient.java
@@ -13,9 +13,14 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.machinelearning.fluent.models.ComputeResourceInner;
import com.azure.resourcemanager.machinelearning.fluent.models.ComputeSecretsInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.VirtualMachineSizeListResultInner;
import com.azure.resourcemanager.machinelearning.models.AmlComputeNodeInformation;
import com.azure.resourcemanager.machinelearning.models.ClusterUpdateParameters;
+import com.azure.resourcemanager.machinelearning.models.CustomService;
+import com.azure.resourcemanager.machinelearning.models.IdleShutdownSetting;
+import com.azure.resourcemanager.machinelearning.models.ResizeSchema;
import com.azure.resourcemanager.machinelearning.models.UnderlyingResourceAction;
+import java.util.List;
/** An instance of this class provides access to all the operations defined in ComputesClient. */
public interface ComputesClient {
@@ -318,6 +323,42 @@ void delete(
UnderlyingResourceAction underlyingResourceAction,
Context context);
+ /**
+ * Updates the custom services list. The list of custom services provided shall be overwritten.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param computeName Name of the Azure Machine Learning compute.
+ * @param customServices New list of Custom Services.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateCustomServicesWithResponse(
+ String resourceGroupName,
+ String workspaceName,
+ String computeName,
+ List customServices,
+ Context context);
+
+ /**
+ * Updates the custom services list. The list of custom services provided shall be overwritten.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param computeName Name of the Azure Machine Learning compute.
+ * @param customServices New list of Custom Services.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void updateCustomServices(
+ String resourceGroupName, String workspaceName, String computeName, List customServices);
+
/**
* Get the details (e.g IP address, port etc) of all the compute nodes in the compute.
*
@@ -552,4 +593,134 @@ SyncPoller, Void> beginRestart(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void restart(String resourceGroupName, String workspaceName, String computeName, Context context);
+
+ /**
+ * Updates the idle shutdown setting of a compute instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param computeName Name of the Azure Machine Learning compute.
+ * @param parameters The object for updating idle shutdown setting of specified ComputeInstance.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateIdleShutdownSettingWithResponse(
+ String resourceGroupName,
+ String workspaceName,
+ String computeName,
+ IdleShutdownSetting parameters,
+ Context context);
+
+ /**
+ * Updates the idle shutdown setting of a compute instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param computeName Name of the Azure Machine Learning compute.
+ * @param parameters The object for updating idle shutdown setting of specified ComputeInstance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void updateIdleShutdownSetting(
+ String resourceGroupName, String workspaceName, String computeName, IdleShutdownSetting parameters);
+
+ /**
+ * Returns supported virtual machine sizes for resize.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param computeName Name of the Azure Machine Learning compute.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the List Virtual Machine size operation response along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getAllowedResizeSizesWithResponse(
+ String resourceGroupName, String workspaceName, String computeName, Context context);
+
+ /**
+ * Returns supported virtual machine sizes for resize.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param computeName Name of the Azure Machine Learning compute.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the List Virtual Machine size operation response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VirtualMachineSizeListResultInner getAllowedResizeSizes(
+ String resourceGroupName, String workspaceName, String computeName);
+
+ /**
+ * Updates the size of a Compute Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param computeName Name of the Azure Machine Learning compute.
+ * @param parameters The object for updating VM size setting of specified Compute Instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginResize(
+ String resourceGroupName, String workspaceName, String computeName, ResizeSchema parameters);
+
+ /**
+ * Updates the size of a Compute Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param computeName Name of the Azure Machine Learning compute.
+ * @param parameters The object for updating VM size setting of specified Compute Instance.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginResize(
+ String resourceGroupName, String workspaceName, String computeName, ResizeSchema parameters, Context context);
+
+ /**
+ * Updates the size of a Compute Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param computeName Name of the Azure Machine Learning compute.
+ * @param parameters The object for updating VM size setting of specified Compute Instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void resize(String resourceGroupName, String workspaceName, String computeName, ResizeSchema parameters);
+
+ /**
+ * Updates the size of a Compute Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param computeName Name of the Azure Machine Learning compute.
+ * @param parameters The object for updating VM size setting of specified Compute Instance.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void resize(
+ String resourceGroupName, String workspaceName, String computeName, ResizeSchema parameters, Context context);
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/DataVersionsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/DataVersionsClient.java
index bf43827ba11f0..13f4c1913326c 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/DataVersionsClient.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/DataVersionsClient.java
@@ -41,6 +41,7 @@ public interface DataVersionsClient {
* @param tags Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2.
* @param listViewType [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for
* including/excluding (for example) archived entities.
+ * @param stage data stage.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -57,6 +58,7 @@ PagedIterable list(
String skip,
String tags,
ListViewType listViewType,
+ String stage,
Context context);
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/EnvironmentVersionsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/EnvironmentVersionsClient.java
index 9b6667f2237ec..83d15a43c9650 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/EnvironmentVersionsClient.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/EnvironmentVersionsClient.java
@@ -38,6 +38,7 @@ public interface EnvironmentVersionsClient {
* @param top Maximum number of records to return.
* @param skip Continuation token for pagination.
* @param listViewType View type for including/excluding (for example) archived entities.
+ * @param stage Stage for including/excluding (for example) archived entities. Takes priority over listViewType.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -53,6 +54,7 @@ PagedIterable list(
Integer top,
String skip,
ListViewType listViewType,
+ String stage,
Context context);
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/FeaturesClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/FeaturesClient.java
new file mode 100644
index 0000000000000..d270e75fe0acb
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/FeaturesClient.java
@@ -0,0 +1,110 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.machinelearning.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.machinelearning.fluent.models.FeatureInner;
+import com.azure.resourcemanager.machinelearning.models.ListViewType;
+
+/** An instance of this class provides access to all the operations defined in FeaturesClient. */
+public interface FeaturesClient {
+ /**
+ * List Features.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param featuresetName Featureset name. This is case-sensitive.
+ * @param featuresetVersion Featureset Version identifier. This is case-sensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of Feature entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName, String workspaceName, String featuresetName, String featuresetVersion);
+
+ /**
+ * List Features.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param featuresetName Featureset name. This is case-sensitive.
+ * @param featuresetVersion Featureset Version identifier. This is case-sensitive.
+ * @param skip Continuation token for pagination.
+ * @param tags Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2.
+ * @param featureName feature name.
+ * @param description Description of the featureset.
+ * @param listViewType [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for
+ * including/excluding (for example) archived entities.
+ * @param pageSize Page size.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of Feature entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName,
+ String workspaceName,
+ String featuresetName,
+ String featuresetVersion,
+ String skip,
+ String tags,
+ String featureName,
+ String description,
+ ListViewType listViewType,
+ Integer pageSize,
+ Context context);
+
+ /**
+ * Get feature.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param featuresetName Feature set name. This is case-sensitive.
+ * @param featuresetVersion Feature set version identifier. This is case-sensitive.
+ * @param featureName Feature Name. This is case-sensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return feature along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName,
+ String workspaceName,
+ String featuresetName,
+ String featuresetVersion,
+ String featureName,
+ Context context);
+
+ /**
+ * Get feature.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param featuresetName Feature set name. This is case-sensitive.
+ * @param featuresetVersion Feature set version identifier. This is case-sensitive.
+ * @param featureName Feature Name. This is case-sensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return feature.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FeatureInner get(
+ String resourceGroupName,
+ String workspaceName,
+ String featuresetName,
+ String featuresetVersion,
+ String featureName);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/FeaturesetContainersClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/FeaturesetContainersClient.java
new file mode 100644
index 0000000000000..7a1756fad503c
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/FeaturesetContainersClient.java
@@ -0,0 +1,216 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.machinelearning.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.machinelearning.fluent.models.FeaturesetContainerInner;
+import com.azure.resourcemanager.machinelearning.models.ListViewType;
+
+/** An instance of this class provides access to all the operations defined in FeaturesetContainersClient. */
+public interface FeaturesetContainersClient {
+ /**
+ * List featurestore entity containers.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of FeaturesetContainer entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String workspaceName);
+
+ /**
+ * List featurestore entity containers.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param skip Continuation token for pagination.
+ * @param tags Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2.
+ * @param listViewType [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for
+ * including/excluding (for example) archived entities.
+ * @param pageSize page size.
+ * @param name name for the featureset.
+ * @param description description for the feature set.
+ * @param createdBy createdBy user name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of FeaturesetContainer entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName,
+ String workspaceName,
+ String skip,
+ String tags,
+ ListViewType listViewType,
+ Integer pageSize,
+ String name,
+ String description,
+ String createdBy,
+ Context context);
+
+ /**
+ * Delete container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, String name);
+
+ /**
+ * Delete container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String workspaceName, String name, Context context);
+
+ /**
+ * Delete container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String name);
+
+ /**
+ * Delete container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String name, Context context);
+
+ /**
+ * Get container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getEntityWithResponse(
+ String resourceGroupName, String workspaceName, String name, Context context);
+
+ /**
+ * Get container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FeaturesetContainerInner getEntity(String resourceGroupName, String workspaceName, String name);
+
+ /**
+ * Create or update container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param body Container entity to create or update.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, FeaturesetContainerInner> beginCreateOrUpdate(
+ String resourceGroupName, String workspaceName, String name, FeaturesetContainerInner body);
+
+ /**
+ * Create or update container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param body Container entity to create or update.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, FeaturesetContainerInner> beginCreateOrUpdate(
+ String resourceGroupName, String workspaceName, String name, FeaturesetContainerInner body, Context context);
+
+ /**
+ * Create or update container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param body Container entity to create or update.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FeaturesetContainerInner createOrUpdate(
+ String resourceGroupName, String workspaceName, String name, FeaturesetContainerInner body);
+
+ /**
+ * Create or update container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param body Container entity to create or update.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FeaturesetContainerInner createOrUpdate(
+ String resourceGroupName, String workspaceName, String name, FeaturesetContainerInner body, Context context);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/FeaturesetVersionsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/FeaturesetVersionsClient.java
new file mode 100644
index 0000000000000..5ebd69cc3d8b5
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/FeaturesetVersionsClient.java
@@ -0,0 +1,338 @@
+// 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.FeaturesetVersionBackfillResponseInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.FeaturesetVersionInner;
+import com.azure.resourcemanager.machinelearning.models.FeaturesetVersionBackfillRequest;
+import com.azure.resourcemanager.machinelearning.models.ListViewType;
+
+/** An instance of this class provides access to all the operations defined in FeaturesetVersionsClient. */
+public interface FeaturesetVersionsClient {
+ /**
+ * List versions.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Featureset name. This is case-sensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of FeaturesetVersion entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String workspaceName, String name);
+
+ /**
+ * List versions.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Featureset name. This is case-sensitive.
+ * @param skip Continuation token for pagination.
+ * @param tags Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2.
+ * @param listViewType [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for
+ * including/excluding (for example) archived entities.
+ * @param pageSize page size.
+ * @param versionName name for the featureset version.
+ * @param version featureset version.
+ * @param description description for the feature set version.
+ * @param createdBy createdBy user name.
+ * @param stage Specifies the featurestore stage.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of FeaturesetVersion entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ String skip,
+ String tags,
+ ListViewType listViewType,
+ Integer pageSize,
+ String versionName,
+ String version,
+ String description,
+ String createdBy,
+ String stage,
+ Context context);
+
+ /**
+ * Delete version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String workspaceName, String name, String version);
+
+ /**
+ * Delete version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String workspaceName, String name, String version, Context context);
+
+ /**
+ * Delete version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String name, String version);
+
+ /**
+ * Delete version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String name, String version, Context context);
+
+ /**
+ * Get version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return version along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String workspaceName, String name, String version, Context context);
+
+ /**
+ * Get version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return version.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FeaturesetVersionInner get(String resourceGroupName, String workspaceName, String name, String version);
+
+ /**
+ * Create or update version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Version entity to create or update.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, FeaturesetVersionInner> beginCreateOrUpdate(
+ String resourceGroupName, String workspaceName, String name, String version, FeaturesetVersionInner body);
+
+ /**
+ * Create or update version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Version entity to create or update.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, FeaturesetVersionInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ String version,
+ FeaturesetVersionInner body,
+ Context context);
+
+ /**
+ * Create or update version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Version entity to create or update.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FeaturesetVersionInner createOrUpdate(
+ String resourceGroupName, String workspaceName, String name, String version, FeaturesetVersionInner body);
+
+ /**
+ * Create or update version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Version entity to create or update.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FeaturesetVersionInner createOrUpdate(
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ String version,
+ FeaturesetVersionInner body,
+ Context context);
+
+ /**
+ * Backfill.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Feature set version backfill request entity.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of response payload for creating a backfill request for a given
+ * feature set version.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, FeaturesetVersionBackfillResponseInner>
+ beginBackfill(
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ String version,
+ FeaturesetVersionBackfillRequest body);
+
+ /**
+ * Backfill.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Feature set version backfill request entity.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of response payload for creating a backfill request for a given
+ * feature set version.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, FeaturesetVersionBackfillResponseInner>
+ beginBackfill(
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ String version,
+ FeaturesetVersionBackfillRequest body,
+ Context context);
+
+ /**
+ * Backfill.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Feature set version backfill request entity.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return response payload for creating a backfill request for a given feature set version.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FeaturesetVersionBackfillResponseInner backfill(
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ String version,
+ FeaturesetVersionBackfillRequest body);
+
+ /**
+ * Backfill.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Feature set version backfill request entity.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return response payload for creating a backfill request for a given feature set version.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FeaturesetVersionBackfillResponseInner backfill(
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ String version,
+ FeaturesetVersionBackfillRequest body,
+ Context context);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/FeaturestoreEntityContainersClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/FeaturestoreEntityContainersClient.java
new file mode 100644
index 0000000000000..17f5cbe9d1925
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/FeaturestoreEntityContainersClient.java
@@ -0,0 +1,226 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.machinelearning.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.machinelearning.fluent.models.FeaturestoreEntityContainerInner;
+import com.azure.resourcemanager.machinelearning.models.ListViewType;
+
+/** An instance of this class provides access to all the operations defined in FeaturestoreEntityContainersClient. */
+public interface FeaturestoreEntityContainersClient {
+ /**
+ * List featurestore entity containers.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of FeaturestoreEntityContainer entities as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String workspaceName);
+
+ /**
+ * List featurestore entity containers.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param skip Continuation token for pagination.
+ * @param tags Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2.
+ * @param listViewType [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for
+ * including/excluding (for example) archived entities.
+ * @param pageSize page size.
+ * @param name name for the featurestore entity.
+ * @param description description for the featurestore entity.
+ * @param createdBy createdBy user name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of FeaturestoreEntityContainer entities as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName,
+ String workspaceName,
+ String skip,
+ String tags,
+ ListViewType listViewType,
+ Integer pageSize,
+ String name,
+ String description,
+ String createdBy,
+ Context context);
+
+ /**
+ * Delete container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, String name);
+
+ /**
+ * Delete container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String workspaceName, String name, Context context);
+
+ /**
+ * Delete container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String name);
+
+ /**
+ * Delete container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String name, Context context);
+
+ /**
+ * Get container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getEntityWithResponse(
+ String resourceGroupName, String workspaceName, String name, Context context);
+
+ /**
+ * Get container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FeaturestoreEntityContainerInner getEntity(String resourceGroupName, String workspaceName, String name);
+
+ /**
+ * Create or update container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param body Container entity to create or update.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, FeaturestoreEntityContainerInner> beginCreateOrUpdate(
+ String resourceGroupName, String workspaceName, String name, FeaturestoreEntityContainerInner body);
+
+ /**
+ * Create or update container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param body Container entity to create or update.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, FeaturestoreEntityContainerInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ FeaturestoreEntityContainerInner body,
+ Context context);
+
+ /**
+ * Create or update container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param body Container entity to create or update.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FeaturestoreEntityContainerInner createOrUpdate(
+ String resourceGroupName, String workspaceName, String name, FeaturestoreEntityContainerInner body);
+
+ /**
+ * Create or update container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param body Container entity to create or update.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FeaturestoreEntityContainerInner createOrUpdate(
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ FeaturestoreEntityContainerInner body,
+ Context context);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/FeaturestoreEntityVersionsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/FeaturestoreEntityVersionsClient.java
new file mode 100644
index 0000000000000..c9309a685edad
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/FeaturestoreEntityVersionsClient.java
@@ -0,0 +1,252 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.machinelearning.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.machinelearning.fluent.models.FeaturestoreEntityVersionInner;
+import com.azure.resourcemanager.machinelearning.models.ListViewType;
+
+/** An instance of this class provides access to all the operations defined in FeaturestoreEntityVersionsClient. */
+public interface FeaturestoreEntityVersionsClient {
+ /**
+ * List versions.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Feature entity name. This is case-sensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of FeaturestoreEntityVersion entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String workspaceName, String name);
+
+ /**
+ * List versions.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Feature entity name. This is case-sensitive.
+ * @param skip Continuation token for pagination.
+ * @param tags Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2.
+ * @param listViewType [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for
+ * including/excluding (for example) archived entities.
+ * @param pageSize page size.
+ * @param versionName name for the featurestore entity version.
+ * @param version featurestore entity version.
+ * @param description description for the feature entity version.
+ * @param createdBy createdBy user name.
+ * @param stage Specifies the featurestore stage.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of FeaturestoreEntityVersion entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ String skip,
+ String tags,
+ ListViewType listViewType,
+ Integer pageSize,
+ String versionName,
+ String version,
+ String description,
+ String createdBy,
+ String stage,
+ Context context);
+
+ /**
+ * Delete version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String workspaceName, String name, String version);
+
+ /**
+ * Delete version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String workspaceName, String name, String version, Context context);
+
+ /**
+ * Delete version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String name, String version);
+
+ /**
+ * Delete version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String name, String version, Context context);
+
+ /**
+ * Get version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return version along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String workspaceName, String name, String version, Context context);
+
+ /**
+ * Get version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return version.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FeaturestoreEntityVersionInner get(String resourceGroupName, String workspaceName, String name, String version);
+
+ /**
+ * Create or update version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Version entity to create or update.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, FeaturestoreEntityVersionInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ String version,
+ FeaturestoreEntityVersionInner body);
+
+ /**
+ * Create or update version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Version entity to create or update.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, FeaturestoreEntityVersionInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ String version,
+ FeaturestoreEntityVersionInner body,
+ Context context);
+
+ /**
+ * Create or update version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Version entity to create or update.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FeaturestoreEntityVersionInner createOrUpdate(
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ String version,
+ FeaturestoreEntityVersionInner body);
+
+ /**
+ * Create or update version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Container name. This is case-sensitive.
+ * @param version Version identifier. This is case-sensitive.
+ * @param body Version entity to create or update.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FeaturestoreEntityVersionInner createOrUpdate(
+ String resourceGroupName,
+ String workspaceName,
+ String name,
+ String version,
+ FeaturestoreEntityVersionInner body,
+ Context context);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/InferenceEndpointsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/InferenceEndpointsClient.java
new file mode 100644
index 0000000000000..08f34f57adb58
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/InferenceEndpointsClient.java
@@ -0,0 +1,325 @@
+// 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.InferenceEndpointInner;
+import com.azure.resourcemanager.machinelearning.models.OrderString;
+
+/** An instance of this class provides access to all the operations defined in InferenceEndpointsClient. */
+public interface InferenceEndpointsClient {
+ /**
+ * List Inference Endpoints.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName Name of the InferencePool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 InferenceEndpoint entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String workspaceName, String poolName);
+
+ /**
+ * List Inference Endpoints.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName Name of the InferencePool.
+ * @param count Number of InferenceEndpoint to be retrieved in a page of results.
+ * @param skip Continuation token for pagination.
+ * @param tags A set of tags with which to filter the returned models. It is a comma separated string of tags key or
+ * tags key=value. Example: tagKey1,tagKey2,tagKey3=value3 .
+ * @param properties A set of properties with which to filter the returned models. It is a comma separated string of
+ * properties key and/or properties key=value Example: propKey1,propKey2,propKey3=value3 .
+ * @param orderBy The option to order the response.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of InferenceEndpoint entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName,
+ String workspaceName,
+ String poolName,
+ Integer count,
+ String skip,
+ String tags,
+ String properties,
+ OrderString orderBy,
+ Context context);
+
+ /**
+ * Delete InferenceEndpoint (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param endpointName InferenceEndpoint 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 workspaceName, String poolName, String endpointName);
+
+ /**
+ * Delete InferenceEndpoint (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param endpointName InferenceEndpoint 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 workspaceName, String poolName, String endpointName, Context context);
+
+ /**
+ * Delete InferenceEndpoint (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param endpointName InferenceEndpoint 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 workspaceName, String poolName, String endpointName);
+
+ /**
+ * Delete InferenceEndpoint (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param endpointName InferenceEndpoint 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 workspaceName, String poolName, String endpointName, Context context);
+
+ /**
+ * Get InferenceEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param endpointName InferenceEndpoint 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 inferenceEndpoint along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String workspaceName, String poolName, String endpointName, Context context);
+
+ /**
+ * Get InferenceEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param endpointName InferenceEndpoint 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 inferenceEndpoint.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ InferenceEndpointInner get(String resourceGroupName, String workspaceName, String poolName, String endpointName);
+
+ /**
+ * Update InferenceEndpoint (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param endpointName InferenceEndpoint name.
+ * @param body Online Endpoint entity to apply during operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException 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, InferenceEndpointInner> beginUpdate(
+ String resourceGroupName, String workspaceName, String poolName, String endpointName, Object body);
+
+ /**
+ * Update InferenceEndpoint (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param endpointName InferenceEndpoint name.
+ * @param body Online Endpoint entity to apply during operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, InferenceEndpointInner> beginUpdate(
+ String resourceGroupName,
+ String workspaceName,
+ String poolName,
+ String endpointName,
+ Object body,
+ Context context);
+
+ /**
+ * Update InferenceEndpoint (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param endpointName InferenceEndpoint name.
+ * @param body Online Endpoint entity to apply during operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException 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)
+ InferenceEndpointInner update(
+ String resourceGroupName, String workspaceName, String poolName, String endpointName, Object body);
+
+ /**
+ * Update InferenceEndpoint (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param endpointName InferenceEndpoint name.
+ * @param body Online Endpoint entity to apply during operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ InferenceEndpointInner update(
+ String resourceGroupName,
+ String workspaceName,
+ String poolName,
+ String endpointName,
+ Object body,
+ Context context);
+
+ /**
+ * Create or update InferenceEndpoint (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param endpointName InferenceEndpoint name.
+ * @param body InferenceEndpoint entity to apply during operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException 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, InferenceEndpointInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String workspaceName,
+ String poolName,
+ String endpointName,
+ InferenceEndpointInner body);
+
+ /**
+ * Create or update InferenceEndpoint (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param endpointName InferenceEndpoint name.
+ * @param body InferenceEndpoint entity to apply during operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, InferenceEndpointInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String workspaceName,
+ String poolName,
+ String endpointName,
+ InferenceEndpointInner body,
+ Context context);
+
+ /**
+ * Create or update InferenceEndpoint (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param endpointName InferenceEndpoint name.
+ * @param body InferenceEndpoint entity to apply during operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException 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)
+ InferenceEndpointInner createOrUpdate(
+ String resourceGroupName,
+ String workspaceName,
+ String poolName,
+ String endpointName,
+ InferenceEndpointInner body);
+
+ /**
+ * Create or update InferenceEndpoint (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param endpointName InferenceEndpoint name.
+ * @param body InferenceEndpoint entity to apply during operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ InferenceEndpointInner createOrUpdate(
+ String resourceGroupName,
+ String workspaceName,
+ String poolName,
+ String endpointName,
+ InferenceEndpointInner body,
+ Context context);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/InferenceGroupsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/InferenceGroupsClient.java
new file mode 100644
index 0000000000000..9e7d662238633
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/InferenceGroupsClient.java
@@ -0,0 +1,401 @@
+// 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.GroupStatusInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.InferenceGroupInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.SkuResourceInner;
+import com.azure.resourcemanager.machinelearning.models.OrderString;
+import com.azure.resourcemanager.machinelearning.models.PartialMinimalTrackedResourceWithSku;
+
+/** An instance of this class provides access to all the operations defined in InferenceGroupsClient. */
+public interface InferenceGroupsClient {
+ /**
+ * List Inference Groups.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName Name of the InferencePool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 InferenceGroup entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String workspaceName, String poolName);
+
+ /**
+ * List Inference Groups.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName Name of the InferencePool.
+ * @param count Number of InferenceGroup to be retrieved in a page of results.
+ * @param skip Continuation token for pagination.
+ * @param tags A set of tags with which to filter the returned models. It is a comma separated string of tags key or
+ * tags key=value. Example: tagKey1,tagKey2,tagKey3=value3 .
+ * @param properties A set of properties with which to filter the returned models. It is a comma separated string of
+ * properties key and/or properties key=value Example: propKey1,propKey2,propKey3=value3 .
+ * @param orderBy The option to order the response.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of InferenceGroup entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName,
+ String workspaceName,
+ String poolName,
+ Integer count,
+ String skip,
+ String tags,
+ String properties,
+ OrderString orderBy,
+ Context context);
+
+ /**
+ * Delete InferenceGroup (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param groupName InferenceGroup 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 workspaceName, String poolName, String groupName);
+
+ /**
+ * Delete InferenceGroup (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param groupName InferenceGroup 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 workspaceName, String poolName, String groupName, Context context);
+
+ /**
+ * Delete InferenceGroup (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param groupName InferenceGroup 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 workspaceName, String poolName, String groupName);
+
+ /**
+ * Delete InferenceGroup (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param groupName InferenceGroup 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 workspaceName, String poolName, String groupName, Context context);
+
+ /**
+ * Get InferenceGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param groupName InferenceGroup 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 inferenceGroup along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String workspaceName, String poolName, String groupName, Context context);
+
+ /**
+ * Get InferenceGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param groupName InferenceGroup 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 inferenceGroup.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ InferenceGroupInner get(String resourceGroupName, String workspaceName, String poolName, String groupName);
+
+ /**
+ * Update InferenceGroup (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param groupName InferenceGroup name.
+ * @param body Online Endpoint entity to apply during operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException 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