diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/CHANGELOG.md b/sdk/machinelearning/azure-resourcemanager-machinelearning/CHANGELOG.md
index f4d8ab12ac0c..9d17664090dc 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/CHANGELOG.md
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/CHANGELOG.md
@@ -1,6 +1,8 @@
# Release History
-## 1.0.0-beta.3 (Unreleased)
+## 1.0.0-beta.1 (2022-09-23)
+
+- Azure Resource Manager Machine Learning client library for Java. This package contains Microsoft Azure SDK for Machine Learning Management SDK. These APIs allow end users to operate on Azure Machine Learning Workspace resources. Package tag package-preview-2022-10. 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 1c3706cbd2c4..4bc8413faaad 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-02-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for Machine Learning Management SDK. These APIs allow end users to operate on Azure Machine Learning Workspace resources. Package tag package-preview-2022-10. 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-beta.2
+ 1.0.0-beta.3
```
[//]: # ({x-version-update-end})
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/SAMPLE.md b/sdk/machinelearning/azure-resourcemanager-machinelearning/SAMPLE.md
index b28a237d2e91..25b495bf7791 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/SAMPLE.md
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/SAMPLE.md
@@ -58,6 +58,8 @@
- [Start](#compute_start)
- [Stop](#compute_stop)
- [Update](#compute_update)
+- [UpdateCustomServices](#compute_updatecustomservices)
+- [UpdateIdleShutdownSetting](#compute_updateidleshutdownsetting)
## DataContainers
@@ -103,6 +105,16 @@
- [Get](#jobs_get)
- [List](#jobs_list)
+## LabelingJobs
+
+- [CreateOrUpdate](#labelingjobs_createorupdate)
+- [Delete](#labelingjobs_delete)
+- [ExportLabels](#labelingjobs_exportlabels)
+- [Get](#labelingjobs_get)
+- [List](#labelingjobs_list)
+- [Pause](#labelingjobs_pause)
+- [Resume](#labelingjobs_resume)
+
## ModelContainers
- [CreateOrUpdate](#modelcontainers_createorupdate)
@@ -158,6 +170,78 @@
- [List](#quotas_list)
- [Update](#quotas_update)
+## Registries
+
+- [CreateOrUpdate](#registries_createorupdate)
+- [Delete](#registries_delete)
+- [GetByResourceGroup](#registries_getbyresourcegroup)
+- [List](#registries_list)
+- [ListByResourceGroup](#registries_listbyresourcegroup)
+- [Update](#registries_update)
+
+## RegistryCodeContainers
+
+- [CreateOrUpdate](#registrycodecontainers_createorupdate)
+- [Delete](#registrycodecontainers_delete)
+- [Get](#registrycodecontainers_get)
+- [List](#registrycodecontainers_list)
+
+## RegistryCodeVersions
+
+- [CreateOrUpdate](#registrycodeversions_createorupdate)
+- [Delete](#registrycodeversions_delete)
+- [Get](#registrycodeversions_get)
+- [List](#registrycodeversions_list)
+
+## RegistryComponentContainers
+
+- [CreateOrUpdate](#registrycomponentcontainers_createorupdate)
+- [Delete](#registrycomponentcontainers_delete)
+- [Get](#registrycomponentcontainers_get)
+- [List](#registrycomponentcontainers_list)
+
+## RegistryComponentVersions
+
+- [CreateOrUpdate](#registrycomponentversions_createorupdate)
+- [Delete](#registrycomponentversions_delete)
+- [Get](#registrycomponentversions_get)
+- [List](#registrycomponentversions_list)
+
+## RegistryEnvironmentContainers
+
+- [CreateOrUpdate](#registryenvironmentcontainers_createorupdate)
+- [Delete](#registryenvironmentcontainers_delete)
+- [Get](#registryenvironmentcontainers_get)
+- [List](#registryenvironmentcontainers_list)
+
+## RegistryEnvironmentVersions
+
+- [CreateOrUpdate](#registryenvironmentversions_createorupdate)
+- [Delete](#registryenvironmentversions_delete)
+- [Get](#registryenvironmentversions_get)
+- [List](#registryenvironmentversions_list)
+
+## RegistryModelContainers
+
+- [CreateOrUpdate](#registrymodelcontainers_createorupdate)
+- [Delete](#registrymodelcontainers_delete)
+- [Get](#registrymodelcontainers_get)
+- [List](#registrymodelcontainers_list)
+
+## RegistryModelVersions
+
+- [CreateOrUpdate](#registrymodelversions_createorupdate)
+- [Delete](#registrymodelversions_delete)
+- [Get](#registrymodelversions_get)
+- [List](#registrymodelversions_list)
+
+## Schedules
+
+- [CreateOrUpdate](#schedules_createorupdate)
+- [Delete](#schedules_delete)
+- [Get](#schedules_get)
+- [List](#schedules_list)
+
## Usages
- [List](#usages_list)
@@ -198,15 +282,15 @@
```java
import com.azure.core.management.serializer.SerializerFactory;
import com.azure.core.util.serializer.SerializerEncoding;
-import com.azure.resourcemanager.machinelearning.models.BatchDeploymentDetails;
+import com.azure.resourcemanager.machinelearning.models.BatchDeploymentProperties;
import com.azure.resourcemanager.machinelearning.models.BatchLoggingLevel;
import com.azure.resourcemanager.machinelearning.models.BatchOutputAction;
import com.azure.resourcemanager.machinelearning.models.BatchRetrySettings;
import com.azure.resourcemanager.machinelearning.models.CodeConfiguration;
+import com.azure.resourcemanager.machinelearning.models.DeploymentResourceConfiguration;
import com.azure.resourcemanager.machinelearning.models.IdAssetReference;
import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentity;
import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
-import com.azure.resourcemanager.machinelearning.models.ResourceConfiguration;
import com.azure.resourcemanager.machinelearning.models.Sku;
import com.azure.resourcemanager.machinelearning.models.SkuTier;
import com.azure.resourcemanager.machinelearning.models.UserAssignedIdentity;
@@ -218,14 +302,14 @@ import java.util.Map;
/** Samples for BatchDeployments CreateOrUpdate. */
public final class BatchDeploymentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/BatchDeployment/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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()
@@ -233,7 +317,7 @@ public final class BatchDeploymentsCreateOrUpdateSamples {
.withRegion("string")
.withExistingBatchEndpoint("test-rg", "my-aml-workspace", "testEndpointName")
.withProperties(
- new BatchDeploymentDetails()
+ new BatchDeploymentProperties()
.withCodeConfiguration(new CodeConfiguration().withCodeId("string").withScoringScript("string"))
.withDescription("string")
.withEnvironmentId("string")
@@ -248,7 +332,7 @@ public final class BatchDeploymentsCreateOrUpdateSamples {
.withOutputAction(BatchOutputAction.SUMMARY_ONLY)
.withOutputFileName("string")
.withResources(
- new ResourceConfiguration()
+ new DeploymentResourceConfiguration()
.withInstanceCount(1)
.withInstanceType("string")
.withProperties(
@@ -298,14 +382,15 @@ import com.azure.core.util.Context;
/** Samples for BatchDeployments Delete. */
public final class BatchDeploymentsDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/BatchDeployment/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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("test-rg", "my-aml-workspace", "testEndpointName", "testDeploymentName", Context.NONE);
@@ -321,14 +406,15 @@ import com.azure.core.util.Context;
/** Samples for BatchDeployments Get. */
public final class BatchDeploymentsGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/BatchDeployment/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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("test-rg", "my-aml-workspace", "testEndpointName", "testDeploymentName", Context.NONE);
@@ -344,14 +430,15 @@ import com.azure.core.util.Context;
/** Samples for BatchDeployments List. */
public final class BatchDeploymentsListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/BatchDeployment/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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("test-rg", "my-aml-workspace", "testEndpointName", "string", 1, null, Context.NONE);
@@ -362,38 +449,25 @@ public final class BatchDeploymentsListSamples {
### BatchDeployments_Update
```java
-import com.azure.core.management.serializer.SerializerFactory;
import com.azure.core.util.Context;
-import com.azure.core.util.serializer.SerializerEncoding;
-import com.azure.resourcemanager.machinelearning.models.BatchDeploymentData;
-import com.azure.resourcemanager.machinelearning.models.BatchLoggingLevel;
-import com.azure.resourcemanager.machinelearning.models.BatchOutputAction;
-import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.machinelearning.models.BatchDeployment;
import com.azure.resourcemanager.machinelearning.models.PartialBatchDeployment;
-import com.azure.resourcemanager.machinelearning.models.PartialBatchRetrySettings;
-import com.azure.resourcemanager.machinelearning.models.PartialCodeConfiguration;
-import com.azure.resourcemanager.machinelearning.models.PartialIdAssetReference;
-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.time.Duration;
import java.util.HashMap;
import java.util.Map;
/** Samples for BatchDeployments Update. */
public final class BatchDeploymentsUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/BatchDeployment/update.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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)
- throws IOException {
- BatchDeploymentData resource =
+ public static void updateWorkspaceBatchDeployment(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ BatchDeployment resource =
manager
.batchDeployments()
.getWithResponse("test-rg", "my-aml-workspace", "testEndpointName", "testDeploymentName", Context.NONE)
@@ -401,41 +475,7 @@ public final class BatchDeploymentsUpdateSamples {
resource
.update()
.withTags(mapOf())
- .withIdentity(
- new PartialManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
- .withUserAssignedIdentities(
- mapOf(
- "string",
- SerializerFactory
- .createDefaultManagementSerializerAdapter()
- .deserialize("{}", Object.class, SerializerEncoding.JSON))))
- .withKind("string")
- .withProperties(
- new PartialBatchDeployment()
- .withCodeConfiguration(
- new PartialCodeConfiguration().withCodeId("string").withScoringScript("string"))
- .withCompute("string")
- .withDescription("string")
- .withEnvironmentId("string")
- .withEnvironmentVariables(mapOf("string", "string"))
- .withErrorThreshold(1)
- .withLoggingLevel(BatchLoggingLevel.INFO)
- .withMaxConcurrencyPerInstance(1)
- .withMiniBatchSize(1L)
- .withModel(new PartialIdAssetReference().withAssetId("string"))
- .withOutputAction(BatchOutputAction.SUMMARY_ONLY)
- .withOutputFileName("string")
- .withProperties(mapOf("string", "string"))
- .withRetrySettings(
- new PartialBatchRetrySettings().withMaxRetries(1).withTimeout(Duration.parse("PT5M"))))
- .withSku(
- new PartialSku()
- .withCapacity(1)
- .withFamily("string")
- .withName("string")
- .withSize("string")
- .withTier(SkuTier.FREE))
+ .withProperties(new PartialBatchDeployment().withDescription("string"))
.apply();
}
@@ -456,7 +496,7 @@ public final class BatchDeploymentsUpdateSamples {
```java
import com.azure.resourcemanager.machinelearning.models.BatchEndpointDefaults;
-import com.azure.resourcemanager.machinelearning.models.BatchEndpointDetails;
+import com.azure.resourcemanager.machinelearning.models.BatchEndpointProperties;
import com.azure.resourcemanager.machinelearning.models.EndpointAuthMode;
import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentity;
import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
@@ -469,14 +509,14 @@ import java.util.Map;
/** Samples for BatchEndpoints CreateOrUpdate. */
public final class BatchEndpointsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/BatchEndpoint/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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()
@@ -484,7 +524,7 @@ public final class BatchEndpointsCreateOrUpdateSamples {
.withRegion("string")
.withExistingWorkspace("test-rg", "my-aml-workspace")
.withProperties(
- new BatchEndpointDetails()
+ new BatchEndpointProperties()
.withAuthMode(EndpointAuthMode.AMLTOKEN)
.withDescription("string")
.withProperties(mapOf("string", "string"))
@@ -526,14 +566,15 @@ import com.azure.core.util.Context;
/** Samples for BatchEndpoints Delete. */
public final class BatchEndpointsDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/BatchEndpoint/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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", Context.NONE);
}
}
@@ -547,14 +588,15 @@ import com.azure.core.util.Context;
/** Samples for BatchEndpoints Get. */
public final class BatchEndpointsGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/BatchEndpoint/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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", Context.NONE);
}
}
@@ -568,14 +610,15 @@ import com.azure.core.util.Context;
/** Samples for BatchEndpoints List. */
public final class BatchEndpointsListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/BatchEndpoint/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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, Context.NONE);
}
}
@@ -589,14 +632,15 @@ import com.azure.core.util.Context;
/** Samples for BatchEndpoints ListKeys. */
public final class BatchEndpointsListKeysSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/BatchEndpoint/listKeys.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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", Context.NONE);
}
}
@@ -608,13 +652,9 @@ public final class BatchEndpointsListKeysSamples {
import com.azure.core.management.serializer.SerializerFactory;
import com.azure.core.util.Context;
import com.azure.core.util.serializer.SerializerEncoding;
-import com.azure.resourcemanager.machinelearning.models.BatchEndpointData;
-import com.azure.resourcemanager.machinelearning.models.BatchEndpointDefaults;
+import com.azure.resourcemanager.machinelearning.models.BatchEndpoint;
import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
-import com.azure.resourcemanager.machinelearning.models.PartialBatchEndpoint;
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;
@@ -622,16 +662,16 @@ import java.util.Map;
/** Samples for BatchEndpoints Update. */
public final class BatchEndpointsUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/BatchEndpoint/update.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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 {
- BatchEndpointData resource =
+ public static void updateWorkspaceBatchEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) throws IOException {
+ BatchEndpoint resource =
manager
.batchEndpoints()
.getWithResponse("test-rg", "my-aml-workspace", "testEndpointName", Context.NONE)
@@ -648,16 +688,6 @@ public final class BatchEndpointsUpdateSamples {
SerializerFactory
.createDefaultManagementSerializerAdapter()
.deserialize("{}", Object.class, SerializerEncoding.JSON))))
- .withKind("string")
- .withProperties(
- new PartialBatchEndpoint().withDefaults(new BatchEndpointDefaults().withDeploymentName("string")))
- .withSku(
- new PartialSku()
- .withCapacity(1)
- .withFamily("string")
- .withName("string")
- .withSize("string")
- .withTier(SkuTier.FREE))
.apply();
}
@@ -677,31 +707,36 @@ public final class BatchEndpointsUpdateSamples {
### CodeContainers_CreateOrUpdate
```java
-import com.azure.resourcemanager.machinelearning.models.CodeContainerDetails;
+import com.azure.core.util.Context;
+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/preview/2022-02-01-preview/examples/CodeContainer/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Workspace/CodeContainer/createOrUpdate.json
*/
/**
- * Sample code: CreateOrUpdate Code Container.
+ * Sample code: CreateOrUpdate Workspace Code Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateCodeContainer(
+ public static void createOrUpdateWorkspaceCodeContainer(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.codeContainers()
- .define("testContainer")
- .withExistingWorkspace("testrg123", "testworkspace")
- .withProperties(
- new CodeContainerDetails()
- .withDescription("string")
- .withTags(mapOf("tag1", "value1", "tag2", "value2")))
- .create();
+ .createOrUpdateWithResponse(
+ "testrg123",
+ "testworkspace",
+ "testContainer",
+ new CodeContainerInner()
+ .withProperties(
+ new CodeContainerProperties()
+ .withDescription("string")
+ .withTags(mapOf("tag1", "value1", "tag2", "value2"))),
+ Context.NONE);
}
@SuppressWarnings("unchecked")
@@ -725,14 +760,15 @@ import com.azure.core.util.Context;
/** Samples for CodeContainers Delete. */
public final class CodeContainersDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/CodeContainer/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Workspace/CodeContainer/delete.json
*/
/**
- * Sample code: Delete Code Container.
+ * Sample code: Delete Workspace Code Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteCodeContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void deleteWorkspaceCodeContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.codeContainers().deleteWithResponse("testrg123", "testworkspace", "testContainer", Context.NONE);
}
}
@@ -746,14 +782,15 @@ import com.azure.core.util.Context;
/** Samples for CodeContainers Get. */
public final class CodeContainersGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/CodeContainer/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Workspace/CodeContainer/get.json
*/
/**
- * Sample code: Get Code Container.
+ * Sample code: Get Workspace Code Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getCodeContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void getWorkspaceCodeContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.codeContainers().getWithResponse("testrg123", "testworkspace", "testContainer", Context.NONE);
}
}
@@ -767,14 +804,15 @@ import com.azure.core.util.Context;
/** Samples for CodeContainers List. */
public final class CodeContainersListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/CodeContainer/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Workspace/CodeContainer/list.json
*/
/**
- * Sample code: List Code Container.
+ * Sample code: List Workspace Code Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listCodeContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void listWorkspaceCodeContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.codeContainers().list("testrg123", "testworkspace", null, Context.NONE);
}
}
@@ -783,34 +821,40 @@ public final class CodeContainersListSamples {
### CodeVersions_CreateOrUpdate
```java
-import com.azure.resourcemanager.machinelearning.models.CodeVersionDetails;
+import com.azure.core.util.Context;
+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/2022-02-01-preview/examples/CodeVersion/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Workspace/CodeVersion/createOrUpdate.json
*/
/**
- * Sample code: CreateOrUpdate Code Version.
+ * Sample code: CreateOrUpdate Workspace Code Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateCodeVersion(
+ public static void createOrUpdateWorkspaceCodeVersion(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.codeVersions()
- .define("string")
- .withExistingCode("test-rg", "my-aml-workspace", "string")
- .withProperties(
- new CodeVersionDetails()
- .withDescription("string")
- .withProperties(mapOf("string", "string"))
- .withTags(mapOf("string", "string"))
- .withIsAnonymous(false)
- .withCodeUri("https://blobStorage/folderName"))
- .create();
+ .createOrUpdateWithResponse(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ "string",
+ new CodeVersionInner()
+ .withProperties(
+ new CodeVersionProperties()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsAnonymous(false)
+ .withCodeUri("https://blobStorage/folderName")),
+ Context.NONE);
}
@SuppressWarnings("unchecked")
@@ -834,14 +878,15 @@ import com.azure.core.util.Context;
/** Samples for CodeVersions Delete. */
public final class CodeVersionsDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/CodeVersion/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Workspace/CodeVersion/delete.json
*/
/**
- * Sample code: Delete Code Version.
+ * Sample code: Delete Workspace Code Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteCodeVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void deleteWorkspaceCodeVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.codeVersions().deleteWithResponse("test-rg", "my-aml-workspace", "string", "string", Context.NONE);
}
}
@@ -855,14 +900,15 @@ import com.azure.core.util.Context;
/** Samples for CodeVersions Get. */
public final class CodeVersionsGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/CodeVersion/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Workspace/CodeVersion/get.json
*/
/**
- * Sample code: Get Code Version.
+ * Sample code: Get Workspace Code Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getCodeVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void getWorkspaceCodeVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.codeVersions().getWithResponse("test-rg", "my-aml-workspace", "string", "string", Context.NONE);
}
}
@@ -876,14 +922,15 @@ import com.azure.core.util.Context;
/** Samples for CodeVersions List. */
public final class CodeVersionsListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/CodeVersion/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Workspace/CodeVersion/list.json
*/
/**
- * Sample code: List Code Version.
+ * Sample code: List Workspace Code Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listCodeVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void listWorkspaceCodeVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.codeVersions().list("test-rg", "my-aml-workspace", "string", "string", 1, null, Context.NONE);
}
}
@@ -892,32 +939,37 @@ public final class CodeVersionsListSamples {
### ComponentContainers_CreateOrUpdate
```java
-import com.azure.resourcemanager.machinelearning.models.ComponentContainerDetails;
+import com.azure.core.util.Context;
+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/2022-02-01-preview/examples/ComponentContainer/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Workspace/ComponentContainer/createOrUpdate.json
*/
/**
- * Sample code: CreateOrUpdate Component Container.
+ * Sample code: CreateOrUpdate Workspace Component Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateComponentContainer(
+ public static void createOrUpdateWorkspaceComponentContainer(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.componentContainers()
- .define("string")
- .withExistingWorkspace("test-rg", "my-aml-workspace")
- .withProperties(
- new ComponentContainerDetails()
- .withDescription("string")
- .withProperties(mapOf("string", "string"))
- .withTags(mapOf("string", "string")))
- .create();
+ .createOrUpdateWithResponse(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ new ComponentContainerInner()
+ .withProperties(
+ new ComponentContainerProperties()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))),
+ Context.NONE);
}
@SuppressWarnings("unchecked")
@@ -941,14 +993,14 @@ import com.azure.core.util.Context;
/** Samples for ComponentContainers Delete. */
public final class ComponentContainersDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/ComponentContainer/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Workspace/ComponentContainer/delete.json
*/
/**
- * Sample code: Delete Component Container.
+ * Sample code: Delete Workspace Component Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteComponentContainer(
+ public static void deleteWorkspaceComponentContainer(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.componentContainers().deleteWithResponse("test-rg", "my-aml-workspace", "string", Context.NONE);
}
@@ -963,14 +1015,15 @@ import com.azure.core.util.Context;
/** Samples for ComponentContainers Get. */
public final class ComponentContainersGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/ComponentContainer/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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", Context.NONE);
}
}
@@ -984,14 +1037,14 @@ import com.azure.core.util.Context;
/** Samples for ComponentContainers List. */
public final class ComponentContainersListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/ComponentContainer/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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, Context.NONE);
}
@@ -1002,8 +1055,10 @@ public final class ComponentContainersListSamples {
```java
import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.Context;
import com.azure.core.util.serializer.SerializerEncoding;
-import com.azure.resourcemanager.machinelearning.models.ComponentVersionDetails;
+import com.azure.resourcemanager.machinelearning.fluent.models.ComponentVersionInner;
+import com.azure.resourcemanager.machinelearning.models.ComponentVersionProperties;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
@@ -1011,33 +1066,37 @@ import java.util.Map;
/** Samples for ComponentVersions CreateOrUpdate. */
public final class ComponentVersionsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/ComponentVersion/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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 ComponentVersionDetails()
- .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))),
+ Context.NONE);
}
@SuppressWarnings("unchecked")
@@ -1061,14 +1120,14 @@ import com.azure.core.util.Context;
/** Samples for ComponentVersions Delete. */
public final class ComponentVersionsDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/ComponentVersion/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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().deleteWithResponse("test-rg", "my-aml-workspace", "string", "string", Context.NONE);
}
@@ -1083,14 +1142,15 @@ import com.azure.core.util.Context;
/** Samples for ComponentVersions Get. */
public final class ComponentVersionsGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/ComponentVersion/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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", Context.NONE);
}
}
@@ -1104,14 +1164,15 @@ import com.azure.core.util.Context;
/** Samples for ComponentVersions List. */
public final class ComponentVersionsListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/ComponentVersion/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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, Context.NONE);
@@ -1130,29 +1191,42 @@ 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.CustomService;
import com.azure.resourcemanager.machinelearning.models.DataFactory;
+import com.azure.resourcemanager.machinelearning.models.Docker;
+import com.azure.resourcemanager.machinelearning.models.Endpoint;
+import com.azure.resourcemanager.machinelearning.models.EnvironmentVariable;
+import com.azure.resourcemanager.machinelearning.models.EnvironmentVariableType;
+import com.azure.resourcemanager.machinelearning.models.Image;
+import com.azure.resourcemanager.machinelearning.models.ImageType;
import com.azure.resourcemanager.machinelearning.models.InstanceTypeSchema;
import com.azure.resourcemanager.machinelearning.models.InstanceTypeSchemaResources;
import com.azure.resourcemanager.machinelearning.models.Kubernetes;
import com.azure.resourcemanager.machinelearning.models.KubernetesProperties;
+import com.azure.resourcemanager.machinelearning.models.MlflowAutologger;
import com.azure.resourcemanager.machinelearning.models.OsType;
import com.azure.resourcemanager.machinelearning.models.PersonalComputeInstanceSettings;
+import com.azure.resourcemanager.machinelearning.models.Protocol;
import com.azure.resourcemanager.machinelearning.models.RemoteLoginPortPublicAccess;
import com.azure.resourcemanager.machinelearning.models.ResourceId;
import com.azure.resourcemanager.machinelearning.models.ScaleSettings;
import com.azure.resourcemanager.machinelearning.models.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/preview/2022-02-01-preview/examples/Compute/createOrUpdate/BasicAKSCompute.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Compute/createOrUpdate/BasicAKSCompute.json
*/
/**
* Sample code: Create an AKS Compute.
@@ -1170,7 +1244,7 @@ public final class ComputeCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Compute/createOrUpdate/AKSCompute.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Compute/createOrUpdate/AKSCompute.json
*/
/**
* Sample code: Update an AKS Compute.
@@ -1193,7 +1267,7 @@ public final class ComputeCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Compute/createOrUpdate/KubernetesCompute.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Compute/createOrUpdate/KubernetesCompute.json
*/
/**
* Sample code: Attach a Kubernetes Compute.
@@ -1230,7 +1304,40 @@ public final class ComputeCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Compute/createOrUpdate/BasicAmlCompute.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Compute/createOrUpdate/ComputeInstanceWithSchedules.json
+ */
+ /**
+ * Sample code: Create an ComputeInstance Compute with Schedules.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createAnComputeInstanceComputeWithSchedules(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .computes()
+ .define("compute123")
+ .withExistingWorkspace("testrg123", "workspaces123")
+ .withRegion("eastus")
+ .withProperties(
+ new ComputeInstance()
+ .withProperties(
+ new ComputeInstanceProperties()
+ .withVmSize("STANDARD_NC6")
+ .withApplicationSharingPolicy(ApplicationSharingPolicy.PERSONAL)
+ .withSshSettings(
+ new ComputeInstanceSshSettings().withSshPublicAccess(SshPublicAccess.DISABLED))
+ .withComputeInstanceAuthorizationType(ComputeInstanceAuthorizationType.PERSONAL)
+ .withPersonalComputeInstanceSettings(
+ new PersonalComputeInstanceSettings()
+ .withAssignedUser(
+ new AssignedUser()
+ .withObjectId("00000000-0000-0000-0000-000000000000")
+ .withTenantId("00000000-0000-0000-0000-000000000000")))))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Compute/createOrUpdate/BasicAmlCompute.json
*/
/**
* Sample code: Create a AML Compute.
@@ -1266,7 +1373,7 @@ public final class ComputeCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Compute/createOrUpdate/ComputeInstance.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Compute/createOrUpdate/ComputeInstance.json
*/
/**
* Sample code: Create an ComputeInstance Compute.
@@ -1287,8 +1394,46 @@ public final class ComputeCreateOrUpdateSamples {
.withVmSize("STANDARD_NC6")
.withSubnet(new ResourceId().withId("test-subnet-resource-id"))
.withApplicationSharingPolicy(ApplicationSharingPolicy.PERSONAL)
+ .withAutologgerSettings(
+ new ComputeInstanceAutologgerSettings().withMlflowAutologger(MlflowAutologger.ENABLED))
.withSshSettings(
new ComputeInstanceSshSettings().withSshPublicAccess(SshPublicAccess.DISABLED))
+ .withCustomServices(
+ Arrays
+ .asList(
+ new CustomService()
+ .withName("rstudio-workbench")
+ .withImage(
+ new Image()
+ .withType(ImageType.DOCKER)
+ .withReference("ghcr.io/azure/rstudio-workbench:latest")
+ .withAdditionalProperties(mapOf()))
+ .withEnvironmentVariables(
+ mapOf(
+ "RSP_LICENSE",
+ new EnvironmentVariable()
+ .withType(EnvironmentVariableType.LOCAL)
+ .withValue("XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX")
+ .withAdditionalProperties(mapOf())))
+ .withDocker(
+ new Docker().withPrivileged(true).withAdditionalProperties(mapOf()))
+ .withEndpoints(
+ Arrays
+ .asList(
+ new Endpoint()
+ .withProtocol(Protocol.HTTP)
+ .withName("connect")
+ .withTarget(8787)
+ .withPublished(4444)))
+ .withVolumes(
+ Arrays
+ .asList(
+ new VolumeDefinition()
+ .withType(VolumeDefinitionType.BIND)
+ .withReadOnly(true)
+ .withSource("/mnt/azureuser/")
+ .withTarget("/home/testuser/")))
+ .withAdditionalProperties(mapOf())))
.withComputeInstanceAuthorizationType(ComputeInstanceAuthorizationType.PERSONAL)
.withPersonalComputeInstanceSettings(
new PersonalComputeInstanceSettings()
@@ -1300,7 +1445,7 @@ public final class ComputeCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Compute/createOrUpdate/ComputeInstanceMinimal.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Compute/createOrUpdate/ComputeInstanceMinimal.json
*/
/**
* Sample code: Create an ComputeInstance Compute with minimal inputs.
@@ -1320,7 +1465,7 @@ public final class ComputeCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Compute/createOrUpdate/AmlCompute.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Compute/createOrUpdate/AmlCompute.json
*/
/**
* Sample code: Update a AML Compute.
@@ -1347,7 +1492,7 @@ public final class ComputeCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Compute/createOrUpdate/BasicDataFactoryCompute.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Compute/createOrUpdate/BasicDataFactoryCompute.json
*/
/**
* Sample code: Create a DataFactory Compute.
@@ -1387,7 +1532,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/preview/2022-02-01-preview/examples/Compute/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Compute/delete.json
*/
/**
* Sample code: Delete Compute.
@@ -1410,7 +1555,7 @@ import com.azure.core.util.Context;
/** Samples for Compute Get. */
public final class ComputeGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Compute/get/AKSCompute.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Compute/get/AKSCompute.json
*/
/**
* Sample code: Get a AKS Compute.
@@ -1422,7 +1567,7 @@ public final class ComputeGetSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Compute/get/KubernetesCompute.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Compute/get/KubernetesCompute.json
*/
/**
* Sample code: Get a Kubernetes Compute.
@@ -1434,7 +1579,7 @@ public final class ComputeGetSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Compute/get/ComputeInstance.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Compute/get/ComputeInstance.json
*/
/**
* Sample code: Get an ComputeInstance.
@@ -1446,7 +1591,7 @@ public final class ComputeGetSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Compute/get/AmlCompute.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Compute/get/AmlCompute.json
*/
/**
* Sample code: Get a AML Compute.
@@ -1467,7 +1612,7 @@ import com.azure.core.util.Context;
/** Samples for Compute List. */
public final class ComputeListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Compute/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Compute/list.json
*/
/**
* Sample code: Get Computes.
@@ -1488,7 +1633,7 @@ import com.azure.core.util.Context;
/** Samples for Compute ListKeys. */
public final class ComputeListKeysSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Compute/listKeys.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Compute/listKeys.json
*/
/**
* Sample code: List AKS Compute Keys.
@@ -1509,7 +1654,7 @@ import com.azure.core.util.Context;
/** Samples for Compute ListNodes. */
public final class ComputeListNodesSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Compute/listNodes.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Compute/listNodes.json
*/
/**
* Sample code: Get compute nodes information for a compute.
@@ -1531,7 +1676,7 @@ import com.azure.core.util.Context;
/** Samples for Compute Restart. */
public final class ComputeRestartSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Compute/restart.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Compute/restart.json
*/
/**
* Sample code: Restart ComputeInstance Compute.
@@ -1553,7 +1698,7 @@ import com.azure.core.util.Context;
/** Samples for Compute Start. */
public final class ComputeStartSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Compute/start.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Compute/start.json
*/
/**
* Sample code: Start ComputeInstance Compute.
@@ -1575,7 +1720,7 @@ import com.azure.core.util.Context;
/** Samples for Compute Stop. */
public final class ComputeStopSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Compute/stop.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Compute/stop.json
*/
/**
* Sample code: Stop ComputeInstance Compute.
@@ -1601,7 +1746,7 @@ import java.time.Duration;
/** Samples for Compute Update. */
public final class ComputeUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Compute/patch.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Compute/patch.json
*/
/**
* Sample code: Update a AmlCompute Compute.
@@ -1626,10 +1771,125 @@ public final class ComputeUpdateSamples {
}
```
+### Compute_UpdateCustomServices
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.machinelearning.models.CustomService;
+import com.azure.resourcemanager.machinelearning.models.Docker;
+import com.azure.resourcemanager.machinelearning.models.Endpoint;
+import com.azure.resourcemanager.machinelearning.models.EnvironmentVariable;
+import com.azure.resourcemanager.machinelearning.models.EnvironmentVariableType;
+import com.azure.resourcemanager.machinelearning.models.Image;
+import com.azure.resourcemanager.machinelearning.models.ImageType;
+import com.azure.resourcemanager.machinelearning.models.Protocol;
+import com.azure.resourcemanager.machinelearning.models.VolumeDefinition;
+import com.azure.resourcemanager.machinelearning.models.VolumeDefinitionType;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for Compute UpdateCustomServices. */
+public final class ComputeUpdateCustomServicesSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Compute/updateCustomServices.json
+ */
+ /**
+ * Sample code: Update Custom Services.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void updateCustomServices(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .computes()
+ .updateCustomServicesWithResponse(
+ "testrg123",
+ "workspaces123",
+ "compute123",
+ Arrays
+ .asList(
+ new CustomService()
+ .withName("rstudio-workbench")
+ .withImage(
+ new Image()
+ .withType(ImageType.DOCKER)
+ .withReference("ghcr.io/azure/rstudio-workbench:latest")
+ .withAdditionalProperties(mapOf()))
+ .withEnvironmentVariables(
+ mapOf(
+ "RSP_LICENSE",
+ new EnvironmentVariable()
+ .withType(EnvironmentVariableType.LOCAL)
+ .withValue("XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX")
+ .withAdditionalProperties(mapOf())))
+ .withDocker(new Docker().withPrivileged(true).withAdditionalProperties(mapOf()))
+ .withEndpoints(
+ Arrays
+ .asList(
+ new Endpoint()
+ .withProtocol(Protocol.HTTP)
+ .withName("connect")
+ .withTarget(8787)
+ .withPublished(4444)))
+ .withVolumes(
+ Arrays
+ .asList(
+ new VolumeDefinition()
+ .withType(VolumeDefinitionType.BIND)
+ .withReadOnly(true)
+ .withSource("/mnt/azureuser/")
+ .withTarget("/home/testuser/")))
+ .withAdditionalProperties(mapOf())),
+ Context.NONE);
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Compute_UpdateIdleShutdownSetting
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.machinelearning.models.IdleShutdownSetting;
+
+/** Samples for Compute UpdateIdleShutdownSetting. */
+public final class ComputeUpdateIdleShutdownSettingSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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"),
+ Context.NONE);
+ }
+}
+```
+
### DataContainers_CreateOrUpdate
```java
-import com.azure.resourcemanager.machinelearning.models.DataContainerDetails;
+import com.azure.resourcemanager.machinelearning.models.DataContainerProperties;
import com.azure.resourcemanager.machinelearning.models.DataType;
import java.util.HashMap;
import java.util.Map;
@@ -1637,25 +1897,25 @@ import java.util.Map;
/** Samples for DataContainers CreateOrUpdate. */
public final class DataContainersCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/DataContainer/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Workspace/DataContainer/createOrUpdate.json
*/
/**
- * Sample code: CreateOrUpdate Data Container.
+ * Sample code: CreateOrUpdate Workspace Data Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateDataContainer(
+ public static void createOrUpdateWorkspaceDataContainer(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.dataContainers()
.define("datacontainer123")
.withExistingWorkspace("testrg123", "workspace123")
.withProperties(
- new DataContainerDetails()
+ new DataContainerProperties()
.withDescription("string")
.withProperties(mapOf("properties1", "value1", "properties2", "value2"))
.withTags(mapOf("tag1", "value1", "tag2", "value2"))
- .withDataType(DataType.URI_FILE))
+ .withDataType(DataType.fromString("UriFile")))
.create();
}
@@ -1680,14 +1940,15 @@ import com.azure.core.util.Context;
/** Samples for DataContainers Delete. */
public final class DataContainersDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/DataContainer/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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", Context.NONE);
}
}
@@ -1701,14 +1962,15 @@ import com.azure.core.util.Context;
/** Samples for DataContainers Get. */
public final class DataContainersGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/DataContainer/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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", Context.NONE);
}
}
@@ -1722,14 +1984,15 @@ import com.azure.core.util.Context;
/** Samples for DataContainers List. */
public final class DataContainersListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/DataContainer/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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, Context.NONE);
}
}
@@ -1745,14 +2008,14 @@ import java.util.Map;
/** Samples for DataVersions CreateOrUpdate. */
public final class DataVersionsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/DataVersionBase/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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()
@@ -1789,14 +2052,15 @@ import com.azure.core.util.Context;
/** Samples for DataVersions Delete. */
public final class DataVersionsDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/DataVersionBase/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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", Context.NONE);
}
}
@@ -1810,14 +2074,15 @@ import com.azure.core.util.Context;
/** Samples for DataVersions Get. */
public final class DataVersionsGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/DataVersionBase/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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", Context.NONE);
}
}
@@ -1831,14 +2096,15 @@ import com.azure.core.util.Context;
/** Samples for DataVersions List. */
public final class DataVersionsListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/DataVersionBase/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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("test-rg", "my-aml-workspace", "string", "string", 1, null, "string", null, Context.NONE);
@@ -1864,7 +2130,7 @@ import java.util.UUID;
/** Samples for Datastores CreateOrUpdate. */
public final class DatastoresCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Datastore/AzureDataLakeGen1WServicePrincipal/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Datastore/AzureDataLakeGen1WServicePrincipal/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate datastore (Azure Data Lake Gen1 w/ ServicePrincipal).
@@ -1894,7 +2160,7 @@ public final class DatastoresCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Datastore/AzureDataLakeGen2WServicePrincipal/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Datastore/AzureDataLakeGen2WServicePrincipal/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate datastore (Azure Data Lake Gen2 w/ Service Principal).
@@ -1927,7 +2193,7 @@ public final class DatastoresCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Datastore/AzureBlobWAccountKey/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Datastore/AzureBlobWAccountKey/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate datastore (AzureBlob w/ AccountKey).
@@ -1956,7 +2222,7 @@ public final class DatastoresCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Datastore/AzureFileWAccountKey/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Datastore/AzureFileWAccountKey/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate datastore (Azure File store w/ AccountKey).
@@ -2005,7 +2271,7 @@ import com.azure.core.util.Context;
/** Samples for Datastores Delete. */
public final class DatastoresDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Datastore/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Datastore/delete.json
*/
/**
* Sample code: Delete datastore.
@@ -2026,7 +2292,7 @@ import com.azure.core.util.Context;
/** Samples for Datastores Get. */
public final class DatastoresGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Datastore/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Datastore/get.json
*/
/**
* Sample code: Get datastore.
@@ -2048,7 +2314,7 @@ import java.util.Arrays;
/** Samples for Datastores List. */
public final class DatastoresListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Datastore/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Datastore/list.json
*/
/**
* Sample code: List datastores.
@@ -2081,7 +2347,7 @@ import com.azure.core.util.Context;
/** Samples for Datastores ListSecrets. */
public final class DatastoresListSecretsSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Datastore/listSecrets.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Datastore/listSecrets.json
*/
/**
* Sample code: Get datastore secrets.
@@ -2097,34 +2363,51 @@ public final class DatastoresListSecretsSamples {
### EnvironmentContainers_CreateOrUpdate
```java
-import com.azure.resourcemanager.machinelearning.models.EnvironmentContainerDetails;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.machinelearning.fluent.models.EnvironmentContainerInner;
+import com.azure.resourcemanager.machinelearning.models.EnvironmentContainerProperties;
import java.util.HashMap;
import java.util.Map;
/** Samples for EnvironmentContainers CreateOrUpdate. */
public final class EnvironmentContainersCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/EnvironmentContainer/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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 EnvironmentContainerDetails()
- .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"))),
+ Context.NONE);
}
@SuppressWarnings("unchecked")
@@ -2148,14 +2431,14 @@ import com.azure.core.util.Context;
/** Samples for EnvironmentContainers Delete. */
public final class EnvironmentContainersDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/EnvironmentContainer/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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().deleteWithResponse("testrg123", "testworkspace", "testContainer", Context.NONE);
}
@@ -2170,14 +2453,14 @@ import com.azure.core.util.Context;
/** Samples for EnvironmentContainers Get. */
public final class EnvironmentContainersGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/EnvironmentContainer/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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().getWithResponse("testrg123", "testworkspace", "testEnvironment", Context.NONE);
}
@@ -2192,14 +2475,14 @@ import com.azure.core.util.Context;
/** Samples for EnvironmentContainers List. */
public final class EnvironmentContainersListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/EnvironmentContainer/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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().list("testrg123", "testworkspace", null, null, Context.NONE);
}
@@ -2209,8 +2492,10 @@ public final class EnvironmentContainersListSamples {
### EnvironmentVersions_CreateOrUpdate
```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.machinelearning.fluent.models.EnvironmentVersionInner;
import com.azure.resourcemanager.machinelearning.models.BuildContext;
-import com.azure.resourcemanager.machinelearning.models.EnvironmentVersionDetails;
+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;
@@ -2219,38 +2504,42 @@ import java.util.Map;
/** Samples for EnvironmentVersions CreateOrUpdate. */
public final class EnvironmentVersionsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/EnvironmentVersion/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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 EnvironmentVersionDetails()
- .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)))),
+ Context.NONE);
}
@SuppressWarnings("unchecked")
@@ -2274,14 +2563,14 @@ import com.azure.core.util.Context;
/** Samples for EnvironmentVersions Delete. */
public final class EnvironmentVersionsDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/EnvironmentVersion/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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()
@@ -2298,14 +2587,15 @@ import com.azure.core.util.Context;
/** Samples for EnvironmentVersions Get. */
public final class EnvironmentVersionsGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/EnvironmentVersion/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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", Context.NONE);
}
}
@@ -2319,14 +2609,14 @@ import com.azure.core.util.Context;
/** Samples for EnvironmentVersions List. */
public final class EnvironmentVersionsListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/EnvironmentVersion/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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()
@@ -2343,7 +2633,7 @@ import com.azure.core.util.Context;
/** Samples for Jobs Cancel. */
public final class JobsCancelSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Job/cancel.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Job/cancel.json
*/
/**
* Sample code: Cancel Job.
@@ -2351,7 +2641,7 @@ public final class JobsCancelSamples {
* @param manager Entry point to MachineLearningManager.
*/
public static void cancelJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.jobs().cancelWithResponse("test-rg", "my-aml-workspace", "string", Context.NONE);
+ manager.jobs().cancel("test-rg", "my-aml-workspace", "string", Context.NONE);
}
}
```
@@ -2363,35 +2653,32 @@ import com.azure.core.management.serializer.SerializerFactory;
import com.azure.core.util.serializer.SerializerEncoding;
import com.azure.resourcemanager.machinelearning.models.AmlToken;
import com.azure.resourcemanager.machinelearning.models.AutoMLJob;
+import com.azure.resourcemanager.machinelearning.models.AutologgerSettings;
import com.azure.resourcemanager.machinelearning.models.CommandJob;
import com.azure.resourcemanager.machinelearning.models.CommandJobLimits;
-import com.azure.resourcemanager.machinelearning.models.CronSchedule;
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.ImageVerticalDataSettings;
+import com.azure.resourcemanager.machinelearning.models.JobResourceConfiguration;
import com.azure.resourcemanager.machinelearning.models.JobService;
import com.azure.resourcemanager.machinelearning.models.LiteralJobInput;
+import com.azure.resourcemanager.machinelearning.models.MLFlowAutologgerState;
import com.azure.resourcemanager.machinelearning.models.MLTableJobInput;
import com.azure.resourcemanager.machinelearning.models.MedianStoppingPolicy;
import com.azure.resourcemanager.machinelearning.models.Mpi;
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.ResourceConfiguration;
-import com.azure.resourcemanager.machinelearning.models.ScheduleStatus;
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.TrainingDataSettings;
import com.azure.resourcemanager.machinelearning.models.TrialComponent;
import com.azure.resourcemanager.machinelearning.models.UriFileJobOutput;
import java.io.IOException;
import java.time.Duration;
-import java.time.OffsetDateTime;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
@@ -2399,7 +2686,7 @@ import java.util.Map;
/** Samples for Jobs CreateOrUpdate. */
public final class JobsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Job/AutoMLJob/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Job/AutoMLJob/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate AutoML Job.
@@ -2422,13 +2709,6 @@ public final class JobsCreateOrUpdateSamples {
.withExperimentName("string")
.withIdentity(new AmlToken())
.withIsArchived(false)
- .withSchedule(
- new CronSchedule()
- .withEndTime(OffsetDateTime.parse("2020-01-01T12:34:56.999Z"))
- .withScheduleStatus(ScheduleStatus.DISABLED)
- .withStartTime(OffsetDateTime.parse("2020-01-01T12:34:56.999Z"))
- .withTimeZone("string")
- .withExpression("string"))
.withServices(
mapOf(
"string",
@@ -2447,7 +2727,7 @@ public final class JobsCreateOrUpdateSamples {
.withMode(OutputDeliveryMode.READ_WRITE_MOUNT)
.withUri("string")))
.withResources(
- new ResourceConfiguration()
+ new JobResourceConfiguration()
.withInstanceCount(1)
.withInstanceType("string")
.withProperties(
@@ -2461,23 +2741,20 @@ public final class JobsCreateOrUpdateSamples {
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)")))
- .withDataSettings(
- new ImageVerticalDataSettings()
- .withTargetColumnName("string")
- .withTrainingData(
- new TrainingDataSettings().withData(new MLTableJobInput().withUri("string"))))
.withLimitSettings(new ImageLimitSettings().withMaxTrials(2))))
.create();
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Job/SweepJob/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Job/SweepJob/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Sweep Job.
@@ -2526,7 +2803,7 @@ public final class JobsCreateOrUpdateSamples {
.withEnvironmentId("string")
.withEnvironmentVariables(mapOf("string", "string"))
.withResources(
- new ResourceConfiguration()
+ new JobResourceConfiguration()
.withInstanceCount(1)
.withInstanceType("string")
.withProperties(
@@ -2542,7 +2819,7 @@ public final class JobsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Job/PipelineJob/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Job/PipelineJob/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Pipeline Job.
@@ -2587,7 +2864,7 @@ public final class JobsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Job/CommandJob/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Job/CommandJob/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Command Job.
@@ -2617,6 +2894,8 @@ public final class JobsCreateOrUpdateSamples {
.withJobServiceType("string")
.withPort(1)
.withProperties(mapOf("string", "string"))))
+ .withAutologgerSettings(
+ new AutologgerSettings().withMlflowAutologger(MLFlowAutologgerState.ENABLED))
.withCodeId("string")
.withCommand("string")
.withDistribution(new TensorFlow().withParameterServerCount(1).withWorkerCount(1))
@@ -2632,7 +2911,7 @@ public final class JobsCreateOrUpdateSamples {
.withMode(OutputDeliveryMode.READ_WRITE_MOUNT)
.withUri("string")))
.withResources(
- new ResourceConfiguration()
+ new JobResourceConfiguration()
.withInstanceCount(1)
.withInstanceType("string")
.withProperties(
@@ -2668,7 +2947,7 @@ import com.azure.core.util.Context;
/** Samples for Jobs Delete. */
public final class JobsDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Job/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Job/delete.json
*/
/**
* Sample code: Delete Job.
@@ -2689,7 +2968,7 @@ import com.azure.core.util.Context;
/** Samples for Jobs Get. */
public final class JobsGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Job/CommandJob/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Job/CommandJob/get.json
*/
/**
* Sample code: Get Command Job.
@@ -2701,7 +2980,7 @@ public final class JobsGetSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Job/AutoMLJob/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Job/AutoMLJob/get.json
*/
/**
* Sample code: Get AutoML Job.
@@ -2713,7 +2992,7 @@ public final class JobsGetSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Job/SweepJob/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Job/SweepJob/get.json
*/
/**
* Sample code: Get Sweep Job.
@@ -2725,7 +3004,7 @@ public final class JobsGetSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Job/PipelineJob/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Job/PipelineJob/get.json
*/
/**
* Sample code: Get Pipeline Job.
@@ -2746,7 +3025,7 @@ import com.azure.core.util.Context;
/** Samples for Jobs List. */
public final class JobsListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Job/CommandJob/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Job/CommandJob/list.json
*/
/**
* Sample code: List Command Job.
@@ -2758,7 +3037,7 @@ public final class JobsListSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Job/PipelineJob/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Job/PipelineJob/list.json
*/
/**
* Sample code: List Pipeline Job.
@@ -2770,7 +3049,7 @@ public final class JobsListSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Job/SweepJob/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Job/SweepJob/list.json
*/
/**
* Sample code: List Sweep Job.
@@ -2782,7 +3061,7 @@ public final class JobsListSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Job/AutoMLJob/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Job/AutoMLJob/list.json
*/
/**
* Sample code: List AutoML Job.
@@ -2795,34 +3074,253 @@ public final class JobsListSamples {
}
```
+### LabelingJobs_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.LabelCategory;
+import com.azure.resourcemanager.machinelearning.models.LabelClass;
+import com.azure.resourcemanager.machinelearning.models.LabelingJobImageProperties;
+import com.azure.resourcemanager.machinelearning.models.LabelingJobInstructions;
+import com.azure.resourcemanager.machinelearning.models.LabelingJobProperties;
+import com.azure.resourcemanager.machinelearning.models.MLAssistConfigurationEnabled;
+import 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/2022-10-01-preview/examples/LabelingJob/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Labeling Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateLabelingJob(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .labelingJobs()
+ .define("testLabelingJob")
+ .withExistingWorkspace("workspace-1234", "testworkspace")
+ .withProperties(
+ new LabelingJobProperties()
+ .withDescription("string")
+ .withProperties(
+ mapOf("additionalProp1", "string", "additionalProp2", "string", "additionalProp3", "string"))
+ .withTags(
+ mapOf("additionalProp1", "string", "additionalProp2", "string", "additionalProp3", "string"))
+ .withJobInstructions(new LabelingJobInstructions().withUri("link/to/instructions"))
+ .withLabelCategories(
+ mapOf(
+ "myCategory1",
+ new LabelCategory()
+ .withClasses(
+ mapOf(
+ "myLabelClass1",
+ new LabelClass().withDisplayName("myLabelClass1").withSubclasses(mapOf()),
+ "myLabelClass2",
+ new LabelClass().withDisplayName("myLabelClass2").withSubclasses(mapOf())))
+ .withDisplayName("myCategory1Title")
+ .withMultiSelectEnabled(true),
+ "myCategory2",
+ new LabelCategory()
+ .withClasses(
+ mapOf(
+ "myLabelClass1",
+ new LabelClass().withDisplayName("myLabelClass1").withSubclasses(mapOf()),
+ "myLabelClass2",
+ new LabelClass().withDisplayName("myLabelClass2").withSubclasses(mapOf())))
+ .withDisplayName("myCategory2Title")
+ .withMultiSelectEnabled(true)))
+ .withLabelingJobMediaProperties(new LabelingJobImageProperties())
+ .withMlAssistConfiguration(
+ new MLAssistConfigurationEnabled()
+ .withInferencingComputeBinding(
+ "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/computes/myscoringcompute")
+ .withTrainingComputeBinding(
+ "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/computes/mytrainingompute")))
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### LabelingJobs_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for LabelingJobs Delete. */
+public final class LabelingJobsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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", Context.NONE);
+ }
+}
+```
+
+### LabelingJobs_ExportLabels
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.machinelearning.models.DatasetExportSummary;
+
+/** Samples for LabelingJobs ExportLabels. */
+public final class LabelingJobsExportLabelsSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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(), Context.NONE);
+ }
+}
+```
+
+### LabelingJobs_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for LabelingJobs Get. */
+public final class LabelingJobsGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/LabelingJob/get.json
+ */
+ /**
+ * Sample code: Get Labeling Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getLabelingJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .labelingJobs()
+ .getWithResponse("workspace-1234", "testworkspace", "testLabelingJob", true, true, Context.NONE);
+ }
+}
+```
+
+### LabelingJobs_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for LabelingJobs List. */
+public final class LabelingJobsListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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, 10, Context.NONE);
+ }
+}
+```
+
+### LabelingJobs_Pause
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for LabelingJobs Pause. */
+public final class LabelingJobsPauseSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/LabelingJob/pause.json
+ */
+ /**
+ * Sample code: Pause Labeling Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void pauseLabelingJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.labelingJobs().pauseWithResponse("workspace-1234", "testworkspace", "testLabelingJob", Context.NONE);
+ }
+}
+```
+
+### LabelingJobs_Resume
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for LabelingJobs Resume. */
+public final class LabelingJobsResumeSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/LabelingJob/resume.json
+ */
+ /**
+ * Sample code: Resume Labeling Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void resumeLabelingJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.labelingJobs().resume("workspace-1234", "testworkspace", "testLabelingJob", Context.NONE);
+ }
+}
+```
+
### ModelContainers_CreateOrUpdate
```java
-import com.azure.resourcemanager.machinelearning.models.ModelContainerDetails;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.machinelearning.fluent.models.ModelContainerInner;
+import com.azure.resourcemanager.machinelearning.models.ModelContainerProperties;
import java.util.HashMap;
import java.util.Map;
/** Samples for ModelContainers CreateOrUpdate. */
public final class ModelContainersCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/ModelContainer/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Workspace/ModelContainer/createOrUpdate.json
*/
/**
- * Sample code: CreateOrUpdate Model Container.
+ * Sample code: CreateOrUpdate Workspace Model Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateModelContainer(
+ public static void createOrUpdateWorkspaceModelContainer(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.modelContainers()
- .define("testContainer")
- .withExistingWorkspace("testrg123", "workspace123")
- .withProperties(
- new ModelContainerDetails()
- .withDescription("Model container description")
- .withTags(mapOf("tag1", "value1", "tag2", "value2")))
- .create();
+ .createOrUpdateWithResponse(
+ "testrg123",
+ "workspace123",
+ "testContainer",
+ new ModelContainerInner()
+ .withProperties(
+ new ModelContainerProperties()
+ .withDescription("Model container description")
+ .withTags(mapOf("tag1", "value1", "tag2", "value2"))),
+ Context.NONE);
}
@SuppressWarnings("unchecked")
@@ -2846,14 +3344,15 @@ import com.azure.core.util.Context;
/** Samples for ModelContainers Delete. */
public final class ModelContainersDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/ModelContainer/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Workspace/ModelContainer/delete.json
*/
/**
- * Sample code: Delete Model Container.
+ * Sample code: Delete Workspace Model Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteModelContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void deleteWorkspaceModelContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.modelContainers().deleteWithResponse("testrg123", "workspace123", "testContainer", Context.NONE);
}
}
@@ -2867,14 +3366,15 @@ import com.azure.core.util.Context;
/** Samples for ModelContainers Get. */
public final class ModelContainersGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/ModelContainer/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Workspace/ModelContainer/get.json
*/
/**
- * Sample code: Get Model Container.
+ * Sample code: Get Workspace Model Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getModelContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void getWorkspaceModelContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.modelContainers().getWithResponse("testrg123", "workspace123", "testContainer", Context.NONE);
}
}
@@ -2888,14 +3388,15 @@ import com.azure.core.util.Context;
/** Samples for ModelContainers List. */
public final class ModelContainersListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/ModelContainer/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Workspace/ModelContainer/list.json
*/
/**
- * Sample code: List Model Container.
+ * Sample code: List Workspace Model Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listModelContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void listWorkspaceModelContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.modelContainers().list("testrg123", "workspace123", null, null, null, Context.NONE);
}
}
@@ -2904,38 +3405,43 @@ public final class ModelContainersListSamples {
### ModelVersions_CreateOrUpdate
```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.machinelearning.fluent.models.ModelVersionInner;
import com.azure.resourcemanager.machinelearning.models.FlavorData;
-import com.azure.resourcemanager.machinelearning.models.ModelType;
-import com.azure.resourcemanager.machinelearning.models.ModelVersionDetails;
+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/2022-02-01-preview/examples/ModelVersion/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Workspace/ModelVersion/createOrUpdate.json
*/
/**
- * Sample code: CreateOrUpdate Model Version.
+ * Sample code: CreateOrUpdate Workspace Model Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateModelVersion(
+ public static void createOrUpdateWorkspaceModelVersion(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.modelVersions()
- .define("string")
- .withExistingModel("test-rg", "my-aml-workspace", "string")
- .withProperties(
- new ModelVersionDetails()
- .withDescription("string")
- .withProperties(mapOf("string", "string"))
- .withTags(mapOf("string", "string"))
- .withIsAnonymous(false)
- .withFlavors(mapOf("string", new FlavorData().withData(mapOf("string", "string"))))
- .withModelType(ModelType.CUSTOM_MODEL)
- .withModelUri("string"))
- .create();
+ .createOrUpdateWithResponse(
+ "test-rg",
+ "my-aml-workspace",
+ "string",
+ "string",
+ new ModelVersionInner()
+ .withProperties(
+ new ModelVersionProperties()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsAnonymous(false)
+ .withFlavors(mapOf("string", new FlavorData().withData(mapOf("string", "string"))))
+ .withModelType("CustomModel")
+ .withModelUri("string")),
+ Context.NONE);
}
@SuppressWarnings("unchecked")
@@ -2959,14 +3465,15 @@ import com.azure.core.util.Context;
/** Samples for ModelVersions Delete. */
public final class ModelVersionsDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/ModelVersion/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Workspace/ModelVersion/delete.json
*/
/**
- * Sample code: Delete Model Version.
+ * Sample code: Delete Workspace Model Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteModelVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void deleteWorkspaceModelVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.modelVersions().deleteWithResponse("test-rg", "my-aml-workspace", "string", "string", Context.NONE);
}
}
@@ -2980,14 +3487,15 @@ import com.azure.core.util.Context;
/** Samples for ModelVersions Get. */
public final class ModelVersionsGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/ModelVersion/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Workspace/ModelVersion/get.json
*/
/**
- * Sample code: Get Model Version.
+ * Sample code: Get Workspace Model Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getModelVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void getWorkspaceModelVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.modelVersions().getWithResponse("test-rg", "my-aml-workspace", "string", "string", Context.NONE);
}
}
@@ -3001,14 +3509,15 @@ import com.azure.core.util.Context;
/** Samples for ModelVersions List. */
public final class ModelVersionsListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/ModelVersion/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Workspace/ModelVersion/list.json
*/
/**
- * Sample code: List Model Version.
+ * Sample code: List Workspace Model Version.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listModelVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void listWorkspaceModelVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.modelVersions()
.list(
@@ -3053,7 +3562,7 @@ import java.util.Map;
/** Samples for OnlineDeployments CreateOrUpdate. */
public final class OnlineDeploymentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Kubernetes Online Deployment.
@@ -3117,7 +3626,7 @@ public final class OnlineDeploymentsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Managed Online Deployment.
@@ -3199,14 +3708,14 @@ import com.azure.core.util.Context;
/** Samples for OnlineDeployments Delete. */
public final class OnlineDeploymentsDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/OnlineDeployment/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Workspace/OnlineDeployment/delete.json
*/
/**
- * Sample code: Delete Online Deployment.
+ * Sample code: Delete Workspace Online Deployment.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteOnlineDeployment(
+ public static void deleteWorkspaceOnlineDeployment(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.onlineDeployments().delete("testrg123", "workspace123", "testEndpoint", "testDeployment", Context.NONE);
}
@@ -3221,7 +3730,7 @@ import com.azure.core.util.Context;
/** Samples for OnlineDeployments Get. */
public final class OnlineDeploymentsGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/get.json
*/
/**
* Sample code: Get Kubernetes Online Deployment.
@@ -3236,7 +3745,7 @@ public final class OnlineDeploymentsGetSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/get.json
*/
/**
* Sample code: Get Managed Online Deployment.
@@ -3262,7 +3771,7 @@ import com.azure.resourcemanager.machinelearning.models.DeploymentLogsRequest;
/** Samples for OnlineDeployments GetLogs. */
public final class OnlineDeploymentsGetLogsSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/OnlineDeployment/getLogs.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/OnlineDeployment/getLogs.json
*/
/**
* Sample code: Get Online Deployment Logs.
@@ -3292,7 +3801,7 @@ import com.azure.core.util.Context;
/** Samples for OnlineDeployments List. */
public final class OnlineDeploymentsListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/OnlineDeployment/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/OnlineDeployment/list.json
*/
/**
* Sample code: List Online Deployments.
@@ -3315,7 +3824,7 @@ import com.azure.core.util.Context;
/** Samples for OnlineDeployments ListSkus. */
public final class OnlineDeploymentsListSkusSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/listSkus.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/listSkus.json
*/
/**
* Sample code: List Managed Online Deployment Skus.
@@ -3330,7 +3839,7 @@ public final class OnlineDeploymentsListSkusSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/listSkus.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/listSkus.json
*/
/**
* Sample code: List Kubernetes Online Deployment Skus.
@@ -3349,24 +3858,17 @@ public final class OnlineDeploymentsListSkusSamples {
### OnlineDeployments_Update
```java
-import com.azure.core.management.serializer.SerializerFactory;
import com.azure.core.util.Context;
-import com.azure.core.util.serializer.SerializerEncoding;
-import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
-import com.azure.resourcemanager.machinelearning.models.OnlineDeploymentData;
-import com.azure.resourcemanager.machinelearning.models.PartialKubernetesOnlineDeployment;
-import com.azure.resourcemanager.machinelearning.models.PartialManagedOnlineDeployment;
-import com.azure.resourcemanager.machinelearning.models.PartialManagedServiceIdentity;
+import com.azure.resourcemanager.machinelearning.models.OnlineDeployment;
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 OnlineDeployments Update. */
public final class OnlineDeploymentsUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/update.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/update.json
*/
/**
* Sample code: Update Managed Online Deployment.
@@ -3374,8 +3876,8 @@ public final class OnlineDeploymentsUpdateSamples {
* @param manager Entry point to MachineLearningManager.
*/
public static void updateManagedOnlineDeployment(
- com.azure.resourcemanager.machinelearning.MachineLearningManager manager) throws IOException {
- OnlineDeploymentData resource =
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ OnlineDeployment resource =
manager
.onlineDeployments()
.getWithResponse("test-rg", "my-aml-workspace", "testEndpointName", "testDeploymentName", Context.NONE)
@@ -3383,17 +3885,6 @@ public final class OnlineDeploymentsUpdateSamples {
resource
.update()
.withTags(mapOf())
- .withIdentity(
- new PartialManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
- .withUserAssignedIdentities(
- mapOf(
- "string",
- SerializerFactory
- .createDefaultManagementSerializerAdapter()
- .deserialize("{}", Object.class, SerializerEncoding.JSON))))
- .withKind("string")
- .withProperties(new PartialManagedOnlineDeployment())
.withSku(
new PartialSku()
.withCapacity(1)
@@ -3405,7 +3896,7 @@ public final class OnlineDeploymentsUpdateSamples {
}
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/update.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/update.json
*/
/**
* Sample code: Update Kubernetes Online Deployment.
@@ -3413,8 +3904,8 @@ public final class OnlineDeploymentsUpdateSamples {
* @param manager Entry point to MachineLearningManager.
*/
public static void updateKubernetesOnlineDeployment(
- com.azure.resourcemanager.machinelearning.MachineLearningManager manager) throws IOException {
- OnlineDeploymentData resource =
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ OnlineDeployment resource =
manager
.onlineDeployments()
.getWithResponse("test-rg", "my-aml-workspace", "testEndpointName", "testDeploymentName", Context.NONE)
@@ -3422,17 +3913,6 @@ public final class OnlineDeploymentsUpdateSamples {
resource
.update()
.withTags(mapOf())
- .withIdentity(
- new PartialManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
- .withUserAssignedIdentities(
- mapOf(
- "string",
- SerializerFactory
- .createDefaultManagementSerializerAdapter()
- .deserialize("{}", Object.class, SerializerEncoding.JSON))))
- .withKind("string")
- .withProperties(new PartialKubernetesOnlineDeployment())
.withSku(
new PartialSku()
.withCapacity(1)
@@ -3462,7 +3942,7 @@ public final class OnlineDeploymentsUpdateSamples {
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.OnlineEndpointDetails;
+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;
@@ -3472,14 +3952,14 @@ import java.util.Map;
/** Samples for OnlineEndpoints CreateOrUpdate. */
public final class OnlineEndpointsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/OnlineEndpoint/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Workspace/OnlineEndpoint/createOrUpdate.json
*/
/**
- * Sample code: CreateOrUpdate Online Endpoint.
+ * Sample code: CreateOrUpdate Workspace Online Endpoint.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateOnlineEndpoint(
+ public static void createOrUpdateWorkspaceOnlineEndpoint(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.onlineEndpoints()
@@ -3487,7 +3967,7 @@ public final class OnlineEndpointsCreateOrUpdateSamples {
.withRegion("string")
.withExistingWorkspace("test-rg", "my-aml-workspace")
.withProperties(
- new OnlineEndpointDetails()
+ new OnlineEndpointProperties()
.withAuthMode(EndpointAuthMode.AMLTOKEN)
.withDescription("string")
.withProperties(mapOf("string", "string"))
@@ -3530,14 +4010,15 @@ import com.azure.core.util.Context;
/** Samples for OnlineEndpoints Delete. */
public final class OnlineEndpointsDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/OnlineEndpoint/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Workspace/OnlineEndpoint/delete.json
*/
/**
- * Sample code: Delete Online Endpoint.
+ * Sample code: Delete Workspace Online Endpoint.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteOnlineEndpoint(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void deleteWorkspaceOnlineEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.onlineEndpoints().delete("test-rg", "my-aml-workspace", "testEndpointName", Context.NONE);
}
}
@@ -3551,14 +4032,15 @@ import com.azure.core.util.Context;
/** Samples for OnlineEndpoints Get. */
public final class OnlineEndpointsGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/OnlineEndpoint/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Workspace/OnlineEndpoint/get.json
*/
/**
- * Sample code: Get Online Endpoint.
+ * Sample code: Get Workspace Online Endpoint.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getOnlineEndpoint(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void getWorkspaceOnlineEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.onlineEndpoints().getWithResponse("test-rg", "my-aml-workspace", "testEndpointName", Context.NONE);
}
}
@@ -3572,14 +4054,14 @@ import com.azure.core.util.Context;
/** Samples for OnlineEndpoints GetToken. */
public final class OnlineEndpointsGetTokenSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/OnlineEndpoint/getToken.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Workspace/OnlineEndpoint/getToken.json
*/
/**
- * Sample code: GetToken Online Endpoint.
+ * Sample code: GetToken Workspace Online Endpoint.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getTokenOnlineEndpoint(
+ public static void getTokenWorkspaceOnlineEndpoint(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.onlineEndpoints().getTokenWithResponse("test-rg", "my-aml-workspace", "testEndpointName", Context.NONE);
}
@@ -3596,14 +4078,15 @@ import com.azure.resourcemanager.machinelearning.models.OrderString;
/** Samples for OnlineEndpoints List. */
public final class OnlineEndpointsListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/OnlineEndpoint/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Workspace/OnlineEndpoint/list.json
*/
/**
- * Sample code: List Online Endpoint.
+ * Sample code: List Workspace Online Endpoint.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listOnlineEndpoint(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ public static void listWorkspaceOnlineEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.onlineEndpoints()
.list(
@@ -3629,14 +4112,14 @@ import com.azure.core.util.Context;
/** Samples for OnlineEndpoints ListKeys. */
public final class OnlineEndpointsListKeysSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/OnlineEndpoint/listKeys.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Workspace/OnlineEndpoint/listKeys.json
*/
/**
- * Sample code: ListKeys Online Endpoint.
+ * Sample code: ListKeys Workspace Online Endpoint.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listKeysOnlineEndpoint(
+ public static void listKeysWorkspaceOnlineEndpoint(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.onlineEndpoints().listKeysWithResponse("test-rg", "my-aml-workspace", "testEndpointName", Context.NONE);
}
@@ -3653,14 +4136,14 @@ import com.azure.resourcemanager.machinelearning.models.RegenerateEndpointKeysRe
/** Samples for OnlineEndpoints RegenerateKeys. */
public final class OnlineEndpointsRegenerateKeysSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/OnlineEndpoint/regenerateKeys.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Workspace/OnlineEndpoint/regenerateKeys.json
*/
/**
- * Sample code: RegenerateKeys Online Endpoint.
+ * Sample code: RegenerateKeys Workspace Online Endpoint.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void regenerateKeysOnlineEndpoint(
+ public static void regenerateKeysWorkspaceOnlineEndpoint(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager
.onlineEndpoints()
@@ -3681,11 +4164,8 @@ import com.azure.core.management.serializer.SerializerFactory;
import com.azure.core.util.Context;
import com.azure.core.util.serializer.SerializerEncoding;
import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
-import com.azure.resourcemanager.machinelearning.models.OnlineEndpointData;
+import com.azure.resourcemanager.machinelearning.models.OnlineEndpoint;
import com.azure.resourcemanager.machinelearning.models.PartialManagedServiceIdentity;
-import com.azure.resourcemanager.machinelearning.models.PartialOnlineEndpoint;
-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;
@@ -3693,16 +4173,16 @@ import java.util.Map;
/** Samples for OnlineEndpoints Update. */
public final class OnlineEndpointsUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/OnlineEndpoint/update.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Workspace/OnlineEndpoint/update.json
*/
/**
- * Sample code: Update Online Endpoint.
+ * Sample code: Update Workspace Online Endpoint.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void updateOnlineEndpoint(com.azure.resourcemanager.machinelearning.MachineLearningManager manager)
- throws IOException {
- OnlineEndpointData resource =
+ public static void updateWorkspaceOnlineEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) throws IOException {
+ OnlineEndpoint resource =
manager
.onlineEndpoints()
.getWithResponse("test-rg", "my-aml-workspace", "testEndpointName", Context.NONE)
@@ -3719,15 +4199,6 @@ public final class OnlineEndpointsUpdateSamples {
SerializerFactory
.createDefaultManagementSerializerAdapter()
.deserialize("{}", Object.class, SerializerEncoding.JSON))))
- .withKind("string")
- .withProperties(new PartialOnlineEndpoint().withTraffic(mapOf("string", 1)))
- .withSku(
- new PartialSku()
- .withCapacity(1)
- .withFamily("string")
- .withName("string")
- .withSize("string")
- .withTier(SkuTier.FREE))
.apply();
}
@@ -3752,7 +4223,7 @@ import com.azure.core.util.Context;
/** Samples for Operations List. */
public final class OperationsListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Workspace/operationsList.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Workspace/operationsList.json
*/
/**
* Sample code: OperationsList.
@@ -3774,7 +4245,7 @@ import com.azure.resourcemanager.machinelearning.models.PrivateLinkServiceConnec
/** Samples for PrivateEndpointConnections CreateOrUpdate. */
public final class PrivateEndpointConnectionsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/PrivateEndpointConnection/createOrUpdate.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/PrivateEndpointConnection/createOrUpdate.json
*/
/**
* Sample code: WorkspacePutPrivateEndpointConnection.
@@ -3804,7 +4275,7 @@ import com.azure.core.util.Context;
/** Samples for PrivateEndpointConnections Delete. */
public final class PrivateEndpointConnectionsDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/PrivateEndpointConnection/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/PrivateEndpointConnection/delete.json
*/
/**
* Sample code: WorkspaceDeletePrivateEndpointConnection.
@@ -3828,7 +4299,7 @@ import com.azure.core.util.Context;
/** Samples for PrivateEndpointConnections Get. */
public final class PrivateEndpointConnectionsGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/PrivateEndpointConnection/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/PrivateEndpointConnection/get.json
*/
/**
* Sample code: WorkspaceGetPrivateEndpointConnection.
@@ -3852,7 +4323,7 @@ import com.azure.core.util.Context;
/** Samples for PrivateEndpointConnections List. */
public final class PrivateEndpointConnectionsListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/PrivateEndpointConnection/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/PrivateEndpointConnection/list.json
*/
/**
* Sample code: StorageAccountListPrivateEndpointConnections.
@@ -3874,7 +4345,7 @@ import com.azure.core.util.Context;
/** Samples for PrivateLinkResources List. */
public final class PrivateLinkResourcesListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/PrivateLinkResource/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/PrivateLinkResource/list.json
*/
/**
* Sample code: WorkspaceListPrivateLinkResources.
@@ -3896,7 +4367,7 @@ import com.azure.core.util.Context;
/** Samples for Quotas List. */
public final class QuotasListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Quota/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Quota/list.json
*/
/**
* Sample code: List workspace quotas by VMFamily.
@@ -3922,7 +4393,7 @@ import java.util.Arrays;
/** Samples for Quotas Update. */
public final class QuotasUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Quota/update.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Quota/update.json
*/
/**
* Sample code: update quotas.
@@ -3955,25 +4426,1465 @@ public final class QuotasUpdateSamples {
}
```
-### Usages_List
+### Registries_CreateOrUpdate
```java
-import com.azure.core.util.Context;
+import com.azure.resourcemanager.machinelearning.models.AcrDetails;
+import com.azure.resourcemanager.machinelearning.models.ArmResourceId;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.machinelearning.models.RegistryProperties;
+import com.azure.resourcemanager.machinelearning.models.RegistryRegionArmDetails;
+import com.azure.resourcemanager.machinelearning.models.Sku;
+import com.azure.resourcemanager.machinelearning.models.SkuTier;
+import com.azure.resourcemanager.machinelearning.models.StorageAccountDetails;
+import com.azure.resourcemanager.machinelearning.models.SystemCreatedAcrAccount;
+import com.azure.resourcemanager.machinelearning.models.SystemCreatedStorageAccount;
+import com.azure.resourcemanager.machinelearning.models.UserAssignedIdentity;
+import com.azure.resourcemanager.machinelearning.models.UserCreatedAcrAccount;
+import com.azure.resourcemanager.machinelearning.models.UserCreatedStorageAccount;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
-/** Samples for Usages List. */
-public final class UsagesListSamples {
+/** Samples for Registries CreateOrUpdate. */
+public final class RegistriesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Usage/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Registries/createOrUpdate-SystemCreated.json
*/
/**
- * Sample code: List Usages.
+ * Sample code: CreateOrUpdate Registry with system created accounts.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listUsages(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.usages().list("eastus", Context.NONE);
- }
-}
+ public static void createOrUpdateRegistryWithSystemCreatedAccounts(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registries()
+ .define("string")
+ .withRegion("string")
+ .withExistingResourceGroup("test-rg")
+ .withProperties(
+ new RegistryProperties()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withRegionDetails(
+ Arrays
+ .asList(
+ new RegistryRegionArmDetails()
+ .withAcrDetails(
+ Arrays
+ .asList(
+ new AcrDetails()
+ .withSystemCreatedAcrAccount(
+ new SystemCreatedAcrAccount()
+ .withAcrAccountSku("string")
+ .withArmResourceId(
+ new ArmResourceId().withResourceId("string")))))
+ .withLocation("string")
+ .withStorageAccountDetails(
+ Arrays
+ .asList(
+ new StorageAccountDetails()
+ .withSystemCreatedStorageAccount(
+ new SystemCreatedStorageAccount()
+ .withArmResourceId(
+ new ArmResourceId().withResourceId("string"))
+ .withStorageAccountHnsEnabled(false)
+ .withStorageAccountType("string")))))))
+ .withTags(mapOf())
+ .withIdentity(
+ new ManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.NONE)
+ .withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withKind("string")
+ .withSku(
+ new Sku()
+ .withName("string")
+ .withTier(SkuTier.BASIC)
+ .withSize("string")
+ .withFamily("string")
+ .withCapacity(1))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Registries/createOrUpdate-UserCreated.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Registry with user created accounts.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateRegistryWithUserCreatedAccounts(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registries()
+ .define("string")
+ .withRegion("string")
+ .withExistingResourceGroup("test-rg")
+ .withProperties(
+ new RegistryProperties()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withRegionDetails(
+ Arrays
+ .asList(
+ new RegistryRegionArmDetails()
+ .withAcrDetails(
+ Arrays
+ .asList(
+ new AcrDetails()
+ .withUserCreatedAcrAccount(
+ new UserCreatedAcrAccount()
+ .withArmResourceId(
+ new ArmResourceId().withResourceId("string")))))
+ .withLocation("string")
+ .withStorageAccountDetails(
+ Arrays
+ .asList(
+ new StorageAccountDetails()
+ .withUserCreatedStorageAccount(
+ new UserCreatedStorageAccount()
+ .withArmResourceId(
+ new ArmResourceId().withResourceId("string"))))))))
+ .withTags(mapOf())
+ .withIdentity(
+ new ManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.NONE)
+ .withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withKind("string")
+ .withSku(
+ new Sku()
+ .withName("string")
+ .withTier(SkuTier.BASIC)
+ .withSize("string")
+ .withFamily("string")
+ .withCapacity(1))
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Registries_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Registries Delete. */
+public final class RegistriesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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().deleteWithResponse("test-rg", "string", Context.NONE);
+ }
+}
+```
+
+### Registries_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Registries GetByResourceGroup. */
+public final class RegistriesGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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", Context.NONE);
+ }
+}
+```
+
+### Registries_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Registries List. */
+public final class RegistriesListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Registries/listBySubscription.json
+ */
+ /**
+ * Sample code: List registries.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listRegistries(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.registries().list(null, Context.NONE);
+ }
+}
+```
+
+### Registries_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Registries ListByResourceGroup. */
+public final class RegistriesListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Registries/list-UserCreated.json
+ */
+ /**
+ * Sample code: List registries with user created accounts.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listRegistriesWithUserCreatedAccounts(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.registries().listByResourceGroup("test-rg", null, Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Registries/list-SystemCreated.json
+ */
+ /**
+ * Sample code: List registries with system created accounts.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listRegistriesWithSystemCreatedAccounts(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.registries().listByResourceGroup("test-rg", null, Context.NONE);
+ }
+}
+```
+
+### Registries_Update
+
+```java
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.Context;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.machinelearning.models.PartialManagedServiceIdentity;
+import com.azure.resourcemanager.machinelearning.models.PartialSku;
+import com.azure.resourcemanager.machinelearning.models.Registry;
+import com.azure.resourcemanager.machinelearning.models.SkuTier;
+import java.io.IOException;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for Registries Update. */
+public final class RegistriesUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Registries/update-UserCreated.json
+ */
+ /**
+ * Sample code: Update Registry with user created accounts.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void updateRegistryWithUserCreatedAccounts(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) throws IOException {
+ Registry resource =
+ manager.registries().getByResourceGroupWithResponse("test-rg", "string", Context.NONE).getValue();
+ resource
+ .update()
+ .withTags(mapOf())
+ .withIdentity(
+ new PartialManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.USER_ASSIGNED)
+ .withUserAssignedIdentities(
+ mapOf(
+ "string",
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize("{}", Object.class, SerializerEncoding.JSON))))
+ .withKind("string")
+ .withProperties(
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize("{}", Object.class, SerializerEncoding.JSON))
+ .withSku(
+ new PartialSku()
+ .withCapacity(1)
+ .withFamily("string")
+ .withName("string")
+ .withSize("string")
+ .withTier(SkuTier.PREMIUM))
+ .apply();
+ }
+
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Registries/update-SystemCreated.json
+ */
+ /**
+ * Sample code: Update Registry with system created accounts.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void updateRegistryWithSystemCreatedAccounts(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) throws IOException {
+ Registry resource =
+ manager.registries().getByResourceGroupWithResponse("test-rg", "string", Context.NONE).getValue();
+ resource
+ .update()
+ .withTags(mapOf())
+ .withIdentity(
+ new PartialManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.USER_ASSIGNED)
+ .withUserAssignedIdentities(
+ mapOf(
+ "string",
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize("{}", Object.class, SerializerEncoding.JSON))))
+ .withKind("string")
+ .withProperties(
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize("{}", Object.class, SerializerEncoding.JSON))
+ .withSku(
+ new PartialSku()
+ .withCapacity(1)
+ .withFamily("string")
+ .withName("string")
+ .withSize("string")
+ .withTier(SkuTier.PREMIUM))
+ .apply();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### RegistryCodeContainers_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.CodeContainerProperties;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for RegistryCodeContainers CreateOrUpdate. */
+public final class RegistryCodeContainersCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Registry/CodeContainer/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Registry Code Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateRegistryCodeContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryCodeContainers()
+ .define("testContainer")
+ .withExistingRegistry("testrg123", "testregistry")
+ .withProperties(
+ new CodeContainerProperties()
+ .withDescription("string")
+ .withTags(mapOf("tag1", "value1", "tag2", "value2")))
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### RegistryCodeContainers_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for RegistryCodeContainers Delete. */
+public final class RegistryCodeContainersDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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", Context.NONE);
+ }
+}
+```
+
+### RegistryCodeContainers_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for RegistryCodeContainers Get. */
+public final class RegistryCodeContainersGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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", Context.NONE);
+ }
+}
+```
+
+### RegistryCodeContainers_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for RegistryCodeContainers List. */
+public final class RegistryCodeContainersListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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, Context.NONE);
+ }
+}
+```
+
+### RegistryCodeVersions_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.CodeVersionProperties;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for RegistryCodeVersions CreateOrUpdate. */
+public final class RegistryCodeVersionsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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("https://blobStorage/folderName"))
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### RegistryCodeVersions_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for RegistryCodeVersions Delete. */
+public final class RegistryCodeVersionsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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", Context.NONE);
+ }
+}
+```
+
+### RegistryCodeVersions_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for RegistryCodeVersions Get. */
+public final class RegistryCodeVersionsGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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", Context.NONE);
+ }
+}
+```
+
+### RegistryCodeVersions_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for RegistryCodeVersions List. */
+public final class RegistryCodeVersionsListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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, Context.NONE);
+ }
+}
+```
+
+### RegistryComponentContainers_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.ComponentContainerProperties;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for RegistryComponentContainers CreateOrUpdate. */
+public final class RegistryComponentContainersCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Registry/ComponentContainer/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Registry Component Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateRegistryComponentContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryComponentContainers()
+ .define("string")
+ .withExistingRegistry("test-rg", "my-aml-registry")
+ .withProperties(
+ new ComponentContainerProperties()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string")))
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### RegistryComponentContainers_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for RegistryComponentContainers Delete. */
+public final class RegistryComponentContainersDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Registry/ComponentContainer/delete.json
+ */
+ /**
+ * Sample code: Delete Registry Component Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteRegistryComponentContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.registryComponentContainers().delete("test-rg", "my-aml-registry", "string", Context.NONE);
+ }
+}
+```
+
+### RegistryComponentContainers_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for RegistryComponentContainers Get. */
+public final class RegistryComponentContainersGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Registry/ComponentContainer/get.json
+ */
+ /**
+ * Sample code: Get Registry Component Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getRegistryComponentContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.registryComponentContainers().getWithResponse("test-rg", "my-aml-registry", "string", Context.NONE);
+ }
+}
+```
+
+### RegistryComponentContainers_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for RegistryComponentContainers List. */
+public final class RegistryComponentContainersListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-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, Context.NONE);
+ }
+}
+```
+
+### RegistryComponentVersions_CreateOrUpdate
+
+```java
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.machinelearning.models.ComponentVersionProperties;
+import java.io.IOException;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for RegistryComponentVersions CreateOrUpdate. */
+public final class RegistryComponentVersionsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Registry/ComponentVersion/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Registry Component Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateRegistryComponentVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) throws IOException {
+ manager
+ .registryComponentVersions()
+ .define("string")
+ .withExistingComponent("test-rg", "my-aml-registry", "string")
+ .withProperties(
+ new ComponentVersionProperties()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsAnonymous(false)
+ .withComponentSpec(
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize(
+ "{\"8ced901b-d826-477d-bfef-329da9672513\":null}",
+ Object.class,
+ SerializerEncoding.JSON)))
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### RegistryComponentVersions_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for RegistryComponentVersions Delete. */
+public final class RegistryComponentVersionsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Registry/ComponentVersion/delete.json
+ */
+ /**
+ * Sample code: Delete Registry Component Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteRegistryComponentVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.registryComponentVersions().delete("test-rg", "my-aml-registry", "string", "string", Context.NONE);
+ }
+}
+```
+
+### RegistryComponentVersions_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for RegistryComponentVersions Get. */
+public final class RegistryComponentVersionsGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Registry/ComponentVersion/get.json
+ */
+ /**
+ * Sample code: Get Registry Component Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getRegistryComponentVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryComponentVersions()
+ .getWithResponse("test-rg", "my-aml-registry", "string", "string", Context.NONE);
+ }
+}
+```
+
+### RegistryComponentVersions_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for RegistryComponentVersions List. */
+public final class RegistryComponentVersionsListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Registry/ComponentVersion/list.json
+ */
+ /**
+ * Sample code: List Registry Component Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listRegistryComponentVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryComponentVersions()
+ .list("test-rg", "my-aml-registry", "string", "string", 1, null, Context.NONE);
+ }
+}
+```
+
+### RegistryEnvironmentContainers_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.EnvironmentContainerProperties;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for RegistryEnvironmentContainers CreateOrUpdate. */
+public final class RegistryEnvironmentContainersCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Registry/EnvironmentContainer/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Registry Environment Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateRegistryEnvironmentContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryEnvironmentContainers()
+ .define("testEnvironment")
+ .withExistingRegistry("testrg123", "testregistry")
+ .withProperties(
+ new EnvironmentContainerProperties()
+ .withDescription("string")
+ .withProperties(
+ mapOf("additionalProp1", "string", "additionalProp2", "string", "additionalProp3", "string"))
+ .withTags(
+ mapOf("additionalProp1", "string", "additionalProp2", "string", "additionalProp3", "string")))
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### RegistryEnvironmentContainers_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for RegistryEnvironmentContainers Delete. */
+public final class RegistryEnvironmentContainersDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Registry/EnvironmentContainer/delete.json
+ */
+ /**
+ * Sample code: Delete Registry Environment Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteRegistryEnvironmentContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.registryEnvironmentContainers().delete("testrg123", "testregistry", "testContainer", Context.NONE);
+ }
+}
+```
+
+### RegistryEnvironmentContainers_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for RegistryEnvironmentContainers Get. */
+public final class RegistryEnvironmentContainersGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Registry/EnvironmentContainer/get.json
+ */
+ /**
+ * Sample code: Get Registry Environment Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getRegistryEnvironmentContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryEnvironmentContainers()
+ .getWithResponse("testrg123", "testregistry", "testEnvironment", Context.NONE);
+ }
+}
+```
+
+### RegistryEnvironmentContainers_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for RegistryEnvironmentContainers List. */
+public final class RegistryEnvironmentContainersListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Registry/EnvironmentContainer/list.json
+ */
+ /**
+ * Sample code: List Registry Environment Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listRegistryEnvironmentContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.registryEnvironmentContainers().list("testrg123", "testregistry", null, null, Context.NONE);
+ }
+}
+```
+
+### RegistryEnvironmentVersions_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.BuildContext;
+import com.azure.resourcemanager.machinelearning.models.EnvironmentVersionProperties;
+import com.azure.resourcemanager.machinelearning.models.InferenceContainerProperties;
+import com.azure.resourcemanager.machinelearning.models.Route;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for RegistryEnvironmentVersions CreateOrUpdate. */
+public final class RegistryEnvironmentVersionsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Registry/EnvironmentVersion/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Registry Environment Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateRegistryEnvironmentVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryEnvironmentVersions()
+ .define("string")
+ .withExistingEnvironment("test-rg", "my-aml-registry", "string")
+ .withProperties(
+ new EnvironmentVersionProperties()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsAnonymous(false)
+ .withBuild(
+ new BuildContext()
+ .withContextUri(
+ "https://storage-account.blob.core.windows.net/azureml/DockerBuildContext/95ddede6b9b8c4e90472db3acd0a8d28/")
+ .withDockerfilePath("prod/Dockerfile"))
+ .withCondaFile("string")
+ .withImage("docker.io/tensorflow/serving:latest")
+ .withInferenceConfig(
+ new InferenceContainerProperties()
+ .withLivenessRoute(new Route().withPath("string").withPort(1))
+ .withReadinessRoute(new Route().withPath("string").withPort(1))
+ .withScoringRoute(new Route().withPath("string").withPort(1))))
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### RegistryEnvironmentVersions_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for RegistryEnvironmentVersions Delete. */
+public final class RegistryEnvironmentVersionsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Registry/EnvironmentVersion/delete.json
+ */
+ /**
+ * Sample code: Delete Registry Environment Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteRegistryEnvironmentVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.registryEnvironmentVersions().delete("test-rg", "my-aml-registry", "string", "string", Context.NONE);
+ }
+}
+```
+
+### RegistryEnvironmentVersions_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for RegistryEnvironmentVersions Get. */
+public final class RegistryEnvironmentVersionsGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Registry/EnvironmentVersion/get.json
+ */
+ /**
+ * Sample code: Get Registry Environment Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getRegistryEnvironmentVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryEnvironmentVersions()
+ .getWithResponse("test-rg", "my-aml-registry", "string", "string", Context.NONE);
+ }
+}
+```
+
+### RegistryEnvironmentVersions_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for RegistryEnvironmentVersions List. */
+public final class RegistryEnvironmentVersionsListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Registry/EnvironmentVersion/list.json
+ */
+ /**
+ * Sample code: List Registry Environment Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listRegistryEnvironmentVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryEnvironmentVersions()
+ .list("test-rg", "my-aml-regsitry", "string", "string", 1, null, null, Context.NONE);
+ }
+}
+```
+
+### RegistryModelContainers_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.ModelContainerProperties;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for RegistryModelContainers CreateOrUpdate. */
+public final class RegistryModelContainersCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Registry/ModelContainer/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Registry Model Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateRegistryModelContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryModelContainers()
+ .define("testContainer")
+ .withExistingRegistry("testrg123", "registry123")
+ .withProperties(
+ new ModelContainerProperties()
+ .withDescription("Model container description")
+ .withTags(mapOf("tag1", "value1", "tag2", "value2")))
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### RegistryModelContainers_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for RegistryModelContainers Delete. */
+public final class RegistryModelContainersDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Registry/ModelContainer/delete.json
+ */
+ /**
+ * Sample code: Delete Registry Model Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteRegistryModelContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.registryModelContainers().delete("testrg123", "registry123", "testContainer", Context.NONE);
+ }
+}
+```
+
+### RegistryModelContainers_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for RegistryModelContainers Get. */
+public final class RegistryModelContainersGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Registry/ModelContainer/get.json
+ */
+ /**
+ * Sample code: Get Registry Model Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getRegistryModelContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.registryModelContainers().getWithResponse("testrg123", "registry123", "testContainer", Context.NONE);
+ }
+}
+```
+
+### RegistryModelContainers_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for RegistryModelContainers List. */
+public final class RegistryModelContainersListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Registry/ModelContainer/list.json
+ */
+ /**
+ * Sample code: List Registry Model Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listRegistryModelContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.registryModelContainers().list("testrg123", "registry123", null, null, Context.NONE);
+ }
+}
+```
+
+### RegistryModelVersions_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.FlavorData;
+import com.azure.resourcemanager.machinelearning.models.ModelVersionProperties;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for RegistryModelVersions CreateOrUpdate. */
+public final class RegistryModelVersionsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Registry/ModelVersion/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Registry Model Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateRegistryModelVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryModelVersions()
+ .define("string")
+ .withExistingModel("test-rg", "my-aml-registry", "string")
+ .withProperties(
+ new ModelVersionProperties()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsAnonymous(false)
+ .withFlavors(mapOf("string", new FlavorData().withData(mapOf("string", "string"))))
+ .withModelType("CustomModel")
+ .withModelUri("string"))
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### RegistryModelVersions_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for RegistryModelVersions Delete. */
+public final class RegistryModelVersionsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Registry/ModelVersion/delete.json
+ */
+ /**
+ * Sample code: Delete Registry Model Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteRegistryModelVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.registryModelVersions().delete("test-rg", "my-aml-registry", "string", "string", Context.NONE);
+ }
+}
+```
+
+### RegistryModelVersions_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for RegistryModelVersions Get. */
+public final class RegistryModelVersionsGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Registry/ModelVersion/get.json
+ */
+ /**
+ * Sample code: Get Registry Model Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getRegistryModelVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.registryModelVersions().getWithResponse("test-rg", "my-aml-registry", "string", "string", Context.NONE);
+ }
+}
+```
+
+### RegistryModelVersions_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for RegistryModelVersions List. */
+public final class RegistryModelVersionsListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Registry/ModelVersion/list.json
+ */
+ /**
+ * Sample code: List Registry Model Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listRegistryModelVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager
+ .registryModelVersions()
+ .list(
+ "test-rg",
+ "my-aml-registry",
+ "string",
+ null,
+ "string",
+ 1,
+ "string",
+ "string",
+ "string",
+ "string",
+ null,
+ Context.NONE);
+ }
+}
+```
+
+### Schedules_CreateOrUpdate
+
+```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 {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Schedule/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Schedule.
+ *
+ * @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;
+ }
+}
+```
+
+### Schedules_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Schedules Delete. */
+public final class SchedulesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Schedule/delete.json
+ */
+ /**
+ * Sample code: Delete Schedule.
+ *
+ * @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", Context.NONE);
+ }
+}
+```
+
+### Schedules_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Schedules Get. */
+public final class SchedulesGetSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Schedule/get.json
+ */
+ /**
+ * Sample code: Get Schedule.
+ *
+ * @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", Context.NONE);
+ }
+}
+```
+
+### Schedules_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Schedules List. */
+public final class SchedulesListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Schedule/list.json
+ */
+ /**
+ * Sample code: List Schedules.
+ *
+ * @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, Context.NONE);
+ }
+}
+```
+
+### Usages_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Usages List. */
+public final class UsagesListSamples {
+ /*
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Usage/list.json
+ */
+ /**
+ * Sample code: List Usages.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listUsages(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.usages().list("eastus", Context.NONE);
+ }
+}
```
### VirtualMachineSizes_List
@@ -3984,7 +5895,7 @@ import com.azure.core.util.Context;
/** Samples for VirtualMachineSizes List. */
public final class VirtualMachineSizesListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/VirtualMachineSize/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/VirtualMachineSize/list.json
*/
/**
* Sample code: List VM Sizes.
@@ -4000,10 +5911,12 @@ public final class VirtualMachineSizesListSamples {
### WorkspaceConnections_Create
```java
+import com.azure.resourcemanager.machinelearning.models.NoneAuthTypeWorkspaceConnectionProperties;
+
/** Samples for WorkspaceConnections Create. */
public final class WorkspaceConnectionsCreateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/WorkspaceConnection/create.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/WorkspaceConnection/create.json
*/
/**
* Sample code: CreateWorkspaceConnection.
@@ -4016,10 +5929,10 @@ public final class WorkspaceConnectionsCreateSamples {
.workspaceConnections()
.define("connection-1")
.withExistingWorkspace("resourceGroup-1", "workspace-1")
- .withCategory("ACR")
- .withTarget("www.facebook.com")
- .withAuthType("PAT")
- .withValue("secrets")
+ .withProperties(
+ new NoneAuthTypeWorkspaceConnectionProperties()
+ .withCategory("ContainerRegistry")
+ .withTarget("www.facebook.com"))
.create();
}
}
@@ -4033,7 +5946,7 @@ import com.azure.core.util.Context;
/** Samples for WorkspaceConnections Delete. */
public final class WorkspaceConnectionsDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/WorkspaceConnection/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/WorkspaceConnection/delete.json
*/
/**
* Sample code: DeleteWorkspaceConnection.
@@ -4057,7 +5970,7 @@ import com.azure.core.util.Context;
/** Samples for WorkspaceConnections Get. */
public final class WorkspaceConnectionsGetSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/WorkspaceConnection/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/WorkspaceConnection/get.json
*/
/**
* Sample code: GetWorkspaceConnection.
@@ -4079,7 +5992,7 @@ import com.azure.core.util.Context;
/** Samples for WorkspaceConnections List. */
public final class WorkspaceConnectionsListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/WorkspaceConnection/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/WorkspaceConnection/list.json
*/
/**
* Sample code: ListWorkspaceConnections.
@@ -4088,7 +6001,9 @@ public final class WorkspaceConnectionsListSamples {
*/
public static void listWorkspaceConnections(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.workspaceConnections().list("resourceGroup-1", "workspace-1", "www.facebook.com", "ACR", Context.NONE);
+ manager
+ .workspaceConnections()
+ .list("resourceGroup-1", "workspace-1", "www.facebook.com", "ContainerRegistry", Context.NONE);
}
}
```
@@ -4101,7 +6016,7 @@ import com.azure.core.util.Context;
/** Samples for WorkspaceFeatures List. */
public final class WorkspaceFeaturesListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/WorkspaceFeature/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/WorkspaceFeature/list.json
*/
/**
* Sample code: List Workspace features.
@@ -4133,7 +6048,7 @@ import java.util.Map;
/** Samples for Workspaces CreateOrUpdate. */
public final class WorkspacesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Workspace/create.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Workspace/create.json
*/
/**
* Sample code: Create Workspace.
@@ -4212,7 +6127,7 @@ import com.azure.core.util.Context;
/** Samples for Workspaces Delete. */
public final class WorkspacesDeleteSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Workspace/delete.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Workspace/delete.json
*/
/**
* Sample code: Delete Workspace.
@@ -4237,7 +6152,7 @@ import java.util.Map;
/** Samples for Workspaces Diagnose. */
public final class WorkspacesDiagnoseSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Workspace/diagnose.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Workspace/diagnose.json
*/
/**
* Sample code: Diagnose Workspace.
@@ -4286,7 +6201,7 @@ import com.azure.core.util.Context;
/** Samples for Workspaces GetByResourceGroup. */
public final class WorkspacesGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Workspace/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Workspace/get.json
*/
/**
* Sample code: Get Workspace.
@@ -4307,7 +6222,7 @@ import com.azure.core.util.Context;
/** Samples for Workspaces List. */
public final class WorkspacesListSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Workspace/listBySubscription.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Workspace/listBySubscription.json
*/
/**
* Sample code: Get Workspaces by subscription.
@@ -4329,7 +6244,7 @@ import com.azure.core.util.Context;
/** Samples for Workspaces ListByResourceGroup. */
public final class WorkspacesListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Workspace/listByResourceGroup.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Workspace/listByResourceGroup.json
*/
/**
* Sample code: Get Workspaces by Resource Group.
@@ -4351,7 +6266,7 @@ import com.azure.core.util.Context;
/** Samples for Workspaces ListKeys. */
public final class WorkspacesListKeysSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Workspace/listKeys.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Workspace/listKeys.json
*/
/**
* Sample code: List Workspace Keys.
@@ -4372,7 +6287,7 @@ import com.azure.core.util.Context;
/** Samples for Workspaces ListNotebookAccessToken. */
public final class WorkspacesListNotebookAccessTokenSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Workspace/listNotebookAccessToken.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Workspace/listNotebookAccessToken.json
*/
/**
* Sample code: List Workspace Keys.
@@ -4393,7 +6308,7 @@ import com.azure.core.util.Context;
/** Samples for Workspaces ListNotebookKeys. */
public final class WorkspacesListNotebookKeysSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Notebook/listKeys.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Notebook/listKeys.json
*/
/**
* Sample code: List Workspace Keys.
@@ -4414,7 +6329,7 @@ import com.azure.core.util.Context;
/** Samples for Workspaces ListOutboundNetworkDependenciesEndpoints. */
public final class WorkspacesListOutboundNetworkDependenciesEndpointsSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/ExternalFQDN/get.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/ExternalFQDN/get.json
*/
/**
* Sample code: ListOutboundNetworkDependenciesEndpoints.
@@ -4438,7 +6353,7 @@ import com.azure.core.util.Context;
/** Samples for Workspaces ListStorageAccountKeys. */
public final class WorkspacesListStorageAccountKeysSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Workspace/listStorageAccountKeys.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Workspace/listStorageAccountKeys.json
*/
/**
* Sample code: List Workspace Keys.
@@ -4459,7 +6374,7 @@ import com.azure.core.util.Context;
/** Samples for Workspaces PrepareNotebook. */
public final class WorkspacesPrepareNotebookSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Notebook/prepare.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Notebook/prepare.json
*/
/**
* Sample code: Prepare Notebook.
@@ -4480,7 +6395,7 @@ import com.azure.core.util.Context;
/** Samples for Workspaces ResyncKeys. */
public final class WorkspacesResyncKeysSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Workspace/resyncKeys.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Workspace/resyncKeys.json
*/
/**
* Sample code: Resync Workspace Keys.
@@ -4503,7 +6418,7 @@ import com.azure.resourcemanager.machinelearning.models.Workspace;
/** Samples for Workspaces Update. */
public final class WorkspacesUpdateSamples {
/*
- * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-02-01-preview/examples/Workspace/update.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/examples/Workspace/update.json
*/
/**
* Sample code: Update Workspace.
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/pom.xml b/sdk/machinelearning/azure-resourcemanager-machinelearning/pom.xml
index 82b5a13a8e13..c09de5891927 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/pom.xml
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/pom.xml
@@ -13,7 +13,7 @@
jar
Microsoft Azure SDK for Machine Learning Management
- This package contains Microsoft Azure SDK for Machine Learning Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. These APIs allow end users to operate on Azure Machine Learning Workspace resources. Package tag package-2022-02-01-preview.
+ This package contains Microsoft Azure SDK for Machine Learning Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. These APIs allow end users to operate on Azure Machine Learning Workspace resources. Package tag package-preview-2022-10.
https://github.com/Azure/azure-sdk-for-java
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/MachineLearningManager.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/MachineLearningManager.java
index 763294717f94..dffbc39eed53 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/MachineLearningManager.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/MachineLearningManager.java
@@ -23,8 +23,8 @@
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.machinelearning.fluent.AzureMachineLearningWorkspaces;
-import com.azure.resourcemanager.machinelearning.implementation.AzureMachineLearningWorkspacesBuilder;
+import com.azure.resourcemanager.machinelearning.fluent.AzureMachineLearningServices;
+import com.azure.resourcemanager.machinelearning.implementation.AzureMachineLearningServicesBuilder;
import com.azure.resourcemanager.machinelearning.implementation.BatchDeploymentsImpl;
import com.azure.resourcemanager.machinelearning.implementation.BatchEndpointsImpl;
import com.azure.resourcemanager.machinelearning.implementation.CodeContainersImpl;
@@ -38,6 +38,7 @@
import com.azure.resourcemanager.machinelearning.implementation.EnvironmentContainersImpl;
import com.azure.resourcemanager.machinelearning.implementation.EnvironmentVersionsImpl;
import com.azure.resourcemanager.machinelearning.implementation.JobsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.LabelingJobsImpl;
import com.azure.resourcemanager.machinelearning.implementation.ModelContainersImpl;
import com.azure.resourcemanager.machinelearning.implementation.ModelVersionsImpl;
import com.azure.resourcemanager.machinelearning.implementation.OnlineDeploymentsImpl;
@@ -46,6 +47,16 @@
import com.azure.resourcemanager.machinelearning.implementation.PrivateEndpointConnectionsImpl;
import com.azure.resourcemanager.machinelearning.implementation.PrivateLinkResourcesImpl;
import com.azure.resourcemanager.machinelearning.implementation.QuotasImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RegistriesImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RegistryCodeContainersImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RegistryCodeVersionsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RegistryComponentContainersImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RegistryComponentVersionsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RegistryEnvironmentContainersImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RegistryEnvironmentVersionsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RegistryModelContainersImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RegistryModelVersionsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.SchedulesImpl;
import com.azure.resourcemanager.machinelearning.implementation.UsagesImpl;
import com.azure.resourcemanager.machinelearning.implementation.VirtualMachineSizesImpl;
import com.azure.resourcemanager.machinelearning.implementation.WorkspaceConnectionsImpl;
@@ -64,6 +75,7 @@
import com.azure.resourcemanager.machinelearning.models.EnvironmentContainers;
import com.azure.resourcemanager.machinelearning.models.EnvironmentVersions;
import com.azure.resourcemanager.machinelearning.models.Jobs;
+import com.azure.resourcemanager.machinelearning.models.LabelingJobs;
import com.azure.resourcemanager.machinelearning.models.ModelContainers;
import com.azure.resourcemanager.machinelearning.models.ModelVersions;
import com.azure.resourcemanager.machinelearning.models.OnlineDeployments;
@@ -72,6 +84,16 @@
import com.azure.resourcemanager.machinelearning.models.PrivateEndpointConnections;
import com.azure.resourcemanager.machinelearning.models.PrivateLinkResources;
import com.azure.resourcemanager.machinelearning.models.Quotas;
+import com.azure.resourcemanager.machinelearning.models.Registries;
+import com.azure.resourcemanager.machinelearning.models.RegistryCodeContainers;
+import com.azure.resourcemanager.machinelearning.models.RegistryCodeVersions;
+import com.azure.resourcemanager.machinelearning.models.RegistryComponentContainers;
+import com.azure.resourcemanager.machinelearning.models.RegistryComponentVersions;
+import com.azure.resourcemanager.machinelearning.models.RegistryEnvironmentContainers;
+import com.azure.resourcemanager.machinelearning.models.RegistryEnvironmentVersions;
+import com.azure.resourcemanager.machinelearning.models.RegistryModelContainers;
+import com.azure.resourcemanager.machinelearning.models.RegistryModelVersions;
+import com.azure.resourcemanager.machinelearning.models.Schedules;
import com.azure.resourcemanager.machinelearning.models.Usages;
import com.azure.resourcemanager.machinelearning.models.VirtualMachineSizes;
import com.azure.resourcemanager.machinelearning.models.WorkspaceConnections;
@@ -107,6 +129,22 @@ public final class MachineLearningManager {
private WorkspaceConnections workspaceConnections;
+ private RegistryCodeContainers registryCodeContainers;
+
+ private RegistryCodeVersions registryCodeVersions;
+
+ private RegistryComponentContainers registryComponentContainers;
+
+ private RegistryComponentVersions registryComponentVersions;
+
+ private RegistryEnvironmentContainers registryEnvironmentContainers;
+
+ private RegistryEnvironmentVersions registryEnvironmentVersions;
+
+ private RegistryModelContainers registryModelContainers;
+
+ private RegistryModelVersions registryModelVersions;
+
private BatchEndpoints batchEndpoints;
private BatchDeployments batchDeployments;
@@ -131,6 +169,8 @@ public final class MachineLearningManager {
private Jobs jobs;
+ private LabelingJobs labelingJobs;
+
private ModelContainers modelContainers;
private ModelVersions modelVersions;
@@ -139,15 +179,19 @@ public final class MachineLearningManager {
private OnlineDeployments onlineDeployments;
+ private Schedules schedules;
+
private WorkspaceFeatures workspaceFeatures;
- private final AzureMachineLearningWorkspaces clientObject;
+ private Registries registries;
+
+ 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())
@@ -306,7 +350,7 @@ public MachineLearningManager authenticate(TokenCredential credential, AzureProf
.append("-")
.append("com.azure.resourcemanager.machinelearning")
.append("/")
- .append("1.0.0-beta.2");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
@@ -461,7 +505,8 @@ public PrivateLinkResources privateLinkResources() {
}
/**
- * Gets the resource collection API of WorkspaceConnections. It manages WorkspaceConnection.
+ * Gets the resource collection API of WorkspaceConnections. It manages
+ * WorkspaceConnectionPropertiesV2BasicResource.
*
* @return Resource collection API of WorkspaceConnections.
*/
@@ -473,7 +518,109 @@ public WorkspaceConnections workspaceConnections() {
}
/**
- * Gets the resource collection API of BatchEndpoints. It manages BatchEndpointData.
+ * Gets the resource collection API of RegistryCodeContainers. It manages CodeContainer.
+ *
+ * @return Resource collection API of RegistryCodeContainers.
+ */
+ public RegistryCodeContainers registryCodeContainers() {
+ if (this.registryCodeContainers == null) {
+ this.registryCodeContainers =
+ new RegistryCodeContainersImpl(clientObject.getRegistryCodeContainers(), this);
+ }
+ return registryCodeContainers;
+ }
+
+ /**
+ * Gets the resource collection API of RegistryCodeVersions. It manages CodeVersion.
+ *
+ * @return Resource collection API of RegistryCodeVersions.
+ */
+ public RegistryCodeVersions registryCodeVersions() {
+ if (this.registryCodeVersions == null) {
+ this.registryCodeVersions = new RegistryCodeVersionsImpl(clientObject.getRegistryCodeVersions(), this);
+ }
+ return registryCodeVersions;
+ }
+
+ /**
+ * Gets the resource collection API of RegistryComponentContainers. It manages ComponentContainer.
+ *
+ * @return Resource collection API of RegistryComponentContainers.
+ */
+ public RegistryComponentContainers registryComponentContainers() {
+ if (this.registryComponentContainers == null) {
+ this.registryComponentContainers =
+ new RegistryComponentContainersImpl(clientObject.getRegistryComponentContainers(), this);
+ }
+ return registryComponentContainers;
+ }
+
+ /**
+ * Gets the resource collection API of RegistryComponentVersions. It manages ComponentVersion.
+ *
+ * @return Resource collection API of RegistryComponentVersions.
+ */
+ public RegistryComponentVersions registryComponentVersions() {
+ if (this.registryComponentVersions == null) {
+ this.registryComponentVersions =
+ new RegistryComponentVersionsImpl(clientObject.getRegistryComponentVersions(), this);
+ }
+ return registryComponentVersions;
+ }
+
+ /**
+ * Gets the resource collection API of RegistryEnvironmentContainers. It manages EnvironmentContainer.
+ *
+ * @return Resource collection API of RegistryEnvironmentContainers.
+ */
+ public RegistryEnvironmentContainers registryEnvironmentContainers() {
+ if (this.registryEnvironmentContainers == null) {
+ this.registryEnvironmentContainers =
+ new RegistryEnvironmentContainersImpl(clientObject.getRegistryEnvironmentContainers(), this);
+ }
+ return registryEnvironmentContainers;
+ }
+
+ /**
+ * Gets the resource collection API of RegistryEnvironmentVersions. It manages EnvironmentVersion.
+ *
+ * @return Resource collection API of RegistryEnvironmentVersions.
+ */
+ public RegistryEnvironmentVersions registryEnvironmentVersions() {
+ if (this.registryEnvironmentVersions == null) {
+ this.registryEnvironmentVersions =
+ new RegistryEnvironmentVersionsImpl(clientObject.getRegistryEnvironmentVersions(), this);
+ }
+ return registryEnvironmentVersions;
+ }
+
+ /**
+ * Gets the resource collection API of RegistryModelContainers. It manages ModelContainer.
+ *
+ * @return Resource collection API of RegistryModelContainers.
+ */
+ public RegistryModelContainers registryModelContainers() {
+ if (this.registryModelContainers == null) {
+ this.registryModelContainers =
+ new RegistryModelContainersImpl(clientObject.getRegistryModelContainers(), this);
+ }
+ return registryModelContainers;
+ }
+
+ /**
+ * Gets the resource collection API of RegistryModelVersions. It manages ModelVersion.
+ *
+ * @return Resource collection API of RegistryModelVersions.
+ */
+ public RegistryModelVersions registryModelVersions() {
+ if (this.registryModelVersions == null) {
+ this.registryModelVersions = new RegistryModelVersionsImpl(clientObject.getRegistryModelVersions(), this);
+ }
+ return registryModelVersions;
+ }
+
+ /**
+ * Gets the resource collection API of BatchEndpoints. It manages BatchEndpoint.
*
* @return Resource collection API of BatchEndpoints.
*/
@@ -485,7 +632,7 @@ public BatchEndpoints batchEndpoints() {
}
/**
- * Gets the resource collection API of BatchDeployments. It manages BatchDeploymentData.
+ * Gets the resource collection API of BatchDeployments. It manages BatchDeployment.
*
* @return Resource collection API of BatchDeployments.
*/
@@ -497,7 +644,7 @@ public BatchDeployments batchDeployments() {
}
/**
- * Gets the resource collection API of CodeContainers. It manages CodeContainerData.
+ * Gets the resource collection API of CodeContainers.
*
* @return Resource collection API of CodeContainers.
*/
@@ -509,7 +656,7 @@ public CodeContainers codeContainers() {
}
/**
- * Gets the resource collection API of CodeVersions. It manages CodeVersionData.
+ * Gets the resource collection API of CodeVersions.
*
* @return Resource collection API of CodeVersions.
*/
@@ -521,7 +668,7 @@ public CodeVersions codeVersions() {
}
/**
- * Gets the resource collection API of ComponentContainers. It manages ComponentContainerData.
+ * Gets the resource collection API of ComponentContainers.
*
* @return Resource collection API of ComponentContainers.
*/
@@ -533,7 +680,7 @@ public ComponentContainers componentContainers() {
}
/**
- * Gets the resource collection API of ComponentVersions. It manages ComponentVersionData.
+ * Gets the resource collection API of ComponentVersions.
*
* @return Resource collection API of ComponentVersions.
*/
@@ -545,7 +692,7 @@ public ComponentVersions componentVersions() {
}
/**
- * Gets the resource collection API of DataContainers. It manages DataContainerData.
+ * Gets the resource collection API of DataContainers. It manages DataContainer.
*
* @return Resource collection API of DataContainers.
*/
@@ -557,7 +704,7 @@ public DataContainers dataContainers() {
}
/**
- * Gets the resource collection API of DataVersions. It manages DataVersionBaseData.
+ * Gets the resource collection API of DataVersions. It manages DataVersionBase.
*
* @return Resource collection API of DataVersions.
*/
@@ -569,7 +716,7 @@ public DataVersions dataVersions() {
}
/**
- * Gets the resource collection API of Datastores. It manages DatastoreData.
+ * Gets the resource collection API of Datastores. It manages Datastore.
*
* @return Resource collection API of Datastores.
*/
@@ -581,7 +728,7 @@ public Datastores datastores() {
}
/**
- * Gets the resource collection API of EnvironmentContainers. It manages EnvironmentContainerData.
+ * Gets the resource collection API of EnvironmentContainers.
*
* @return Resource collection API of EnvironmentContainers.
*/
@@ -593,7 +740,7 @@ public EnvironmentContainers environmentContainers() {
}
/**
- * Gets the resource collection API of EnvironmentVersions. It manages EnvironmentVersionData.
+ * Gets the resource collection API of EnvironmentVersions.
*
* @return Resource collection API of EnvironmentVersions.
*/
@@ -605,7 +752,7 @@ public EnvironmentVersions environmentVersions() {
}
/**
- * Gets the resource collection API of Jobs. It manages JobBaseData.
+ * Gets the resource collection API of Jobs. It manages JobBase.
*
* @return Resource collection API of Jobs.
*/
@@ -617,7 +764,19 @@ public Jobs jobs() {
}
/**
- * Gets the resource collection API of ModelContainers. It manages ModelContainerData.
+ * 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.
*/
@@ -629,7 +788,7 @@ public ModelContainers modelContainers() {
}
/**
- * Gets the resource collection API of ModelVersions. It manages ModelVersionData.
+ * Gets the resource collection API of ModelVersions.
*
* @return Resource collection API of ModelVersions.
*/
@@ -641,7 +800,7 @@ public ModelVersions modelVersions() {
}
/**
- * Gets the resource collection API of OnlineEndpoints. It manages OnlineEndpointData.
+ * Gets the resource collection API of OnlineEndpoints. It manages OnlineEndpoint.
*
* @return Resource collection API of OnlineEndpoints.
*/
@@ -653,7 +812,7 @@ public OnlineEndpoints onlineEndpoints() {
}
/**
- * Gets the resource collection API of OnlineDeployments. It manages OnlineDeploymentData.
+ * Gets the resource collection API of OnlineDeployments. It manages OnlineDeployment.
*
* @return Resource collection API of OnlineDeployments.
*/
@@ -664,6 +823,18 @@ public OnlineDeployments onlineDeployments() {
return onlineDeployments;
}
+ /**
+ * Gets the resource collection API of Schedules. It manages Schedule.
+ *
+ * @return Resource collection API of Schedules.
+ */
+ public Schedules schedules() {
+ if (this.schedules == null) {
+ this.schedules = new SchedulesImpl(clientObject.getSchedules(), this);
+ }
+ return schedules;
+ }
+
/**
* Gets the resource collection API of WorkspaceFeatures.
*
@@ -677,10 +848,22 @@ public WorkspaceFeatures workspaceFeatures() {
}
/**
- * @return Wrapped service client AzureMachineLearningWorkspaces providing direct access to the underlying
+ * 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;
+ }
+
+ /**
+ * @return Wrapped service client AzureMachineLearningServices providing direct access to the underlying
* auto-generated API implementation, based on Azure REST API.
*/
- public AzureMachineLearningWorkspaces serviceClient() {
+ public AzureMachineLearningServices serviceClient() {
return this.clientObject;
}
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/AzureMachineLearningWorkspaces.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/AzureMachineLearningServices.java
similarity index 70%
rename from sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/AzureMachineLearningWorkspaces.java
rename to sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/AzureMachineLearningServices.java
index 431d49bfc7f1..f0d6d8c639fe 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/AzureMachineLearningWorkspaces.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/AzureMachineLearningServices.java
@@ -7,8 +7,8 @@
import com.azure.core.http.HttpPipeline;
import java.time.Duration;
-/** The interface for AzureMachineLearningWorkspaces class. */
-public interface AzureMachineLearningWorkspaces {
+/** The interface for AzureMachineLearningServices class. */
+public interface AzureMachineLearningServices {
/**
* Gets The ID of the target subscription.
*
@@ -107,6 +107,62 @@ public interface AzureMachineLearningWorkspaces {
*/
WorkspaceConnectionsClient getWorkspaceConnections();
+ /**
+ * Gets the RegistryCodeContainersClient object to access its operations.
+ *
+ * @return the RegistryCodeContainersClient object.
+ */
+ RegistryCodeContainersClient getRegistryCodeContainers();
+
+ /**
+ * Gets the RegistryCodeVersionsClient object to access its operations.
+ *
+ * @return the RegistryCodeVersionsClient object.
+ */
+ RegistryCodeVersionsClient getRegistryCodeVersions();
+
+ /**
+ * Gets the RegistryComponentContainersClient object to access its operations.
+ *
+ * @return the RegistryComponentContainersClient object.
+ */
+ RegistryComponentContainersClient getRegistryComponentContainers();
+
+ /**
+ * Gets the RegistryComponentVersionsClient object to access its operations.
+ *
+ * @return the RegistryComponentVersionsClient object.
+ */
+ RegistryComponentVersionsClient getRegistryComponentVersions();
+
+ /**
+ * Gets the RegistryEnvironmentContainersClient object to access its operations.
+ *
+ * @return the RegistryEnvironmentContainersClient object.
+ */
+ RegistryEnvironmentContainersClient getRegistryEnvironmentContainers();
+
+ /**
+ * Gets the RegistryEnvironmentVersionsClient object to access its operations.
+ *
+ * @return the RegistryEnvironmentVersionsClient object.
+ */
+ RegistryEnvironmentVersionsClient getRegistryEnvironmentVersions();
+
+ /**
+ * Gets the RegistryModelContainersClient object to access its operations.
+ *
+ * @return the RegistryModelContainersClient object.
+ */
+ RegistryModelContainersClient getRegistryModelContainers();
+
+ /**
+ * Gets the RegistryModelVersionsClient object to access its operations.
+ *
+ * @return the RegistryModelVersionsClient object.
+ */
+ RegistryModelVersionsClient getRegistryModelVersions();
+
/**
* Gets the BatchEndpointsClient object to access its operations.
*
@@ -191,6 +247,13 @@ public interface AzureMachineLearningWorkspaces {
*/
JobsClient getJobs();
+ /**
+ * Gets the LabelingJobsClient object to access its operations.
+ *
+ * @return the LabelingJobsClient object.
+ */
+ LabelingJobsClient getLabelingJobs();
+
/**
* Gets the ModelContainersClient object to access its operations.
*
@@ -219,10 +282,24 @@ public interface AzureMachineLearningWorkspaces {
*/
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();
+
+ /**
+ * Gets the RegistriesClient object to access its operations.
+ *
+ * @return the RegistriesClient object.
+ */
+ RegistriesClient getRegistries();
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/BatchDeploymentsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/BatchDeploymentsClient.java
index cfc4d11cfdb4..547a679cd918 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/BatchDeploymentsClient.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/BatchDeploymentsClient.java
@@ -11,8 +11,8 @@
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.BatchDeploymentDataInner;
-import com.azure.resourcemanager.machinelearning.models.PartialBatchDeploymentPartialTrackedResource;
+import com.azure.resourcemanager.machinelearning.fluent.models.BatchDeploymentInner;
+import com.azure.resourcemanager.machinelearning.models.PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties;
/** An instance of this class provides access to all the operations defined in BatchDeploymentsClient. */
public interface BatchDeploymentsClient {
@@ -28,7 +28,7 @@ public interface BatchDeploymentsClient {
* @return a paginated list of BatchDeployment entities as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String workspaceName, String endpointName);
+ PagedIterable list(String resourceGroupName, String workspaceName, String endpointName);
/**
* Lists Batch inference deployments in the workspace.
@@ -46,7 +46,7 @@ public interface BatchDeploymentsClient {
* @return a paginated list of BatchDeployment entities as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
+ PagedIterable list(
String resourceGroupName,
String workspaceName,
String endpointName,
@@ -131,7 +131,7 @@ void delete(
* @return a batch inference deployment by id.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BatchDeploymentDataInner get(
+ BatchDeploymentInner get(
String resourceGroupName, String workspaceName, String endpointName, String deploymentName);
/**
@@ -148,7 +148,7 @@ BatchDeploymentDataInner get(
* @return a batch inference deployment by id along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
+ Response getWithResponse(
String resourceGroupName, String workspaceName, String endpointName, String deploymentName, Context context);
/**
@@ -165,12 +165,12 @@ Response getWithResponse(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, BatchDeploymentDataInner> beginUpdate(
+ SyncPoller, BatchDeploymentInner> beginUpdate(
String resourceGroupName,
String workspaceName,
String endpointName,
String deploymentName,
- PartialBatchDeploymentPartialTrackedResource body);
+ PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties body);
/**
* Update a batch inference deployment (asynchronous).
@@ -187,12 +187,12 @@ SyncPoller, BatchDeploymentDataInner> begin
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, BatchDeploymentDataInner> beginUpdate(
+ SyncPoller, BatchDeploymentInner> beginUpdate(
String resourceGroupName,
String workspaceName,
String endpointName,
String deploymentName,
- PartialBatchDeploymentPartialTrackedResource body,
+ PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties body,
Context context);
/**
@@ -209,12 +209,12 @@ SyncPoller, BatchDeploymentDataInner> begin
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BatchDeploymentDataInner update(
+ BatchDeploymentInner update(
String resourceGroupName,
String workspaceName,
String endpointName,
String deploymentName,
- PartialBatchDeploymentPartialTrackedResource body);
+ PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties body);
/**
* Update a batch inference deployment (asynchronous).
@@ -231,12 +231,12 @@ BatchDeploymentDataInner update(
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BatchDeploymentDataInner update(
+ BatchDeploymentInner update(
String resourceGroupName,
String workspaceName,
String endpointName,
String deploymentName,
- PartialBatchDeploymentPartialTrackedResource body,
+ PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties body,
Context context);
/**
@@ -253,12 +253,12 @@ BatchDeploymentDataInner update(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, BatchDeploymentDataInner> beginCreateOrUpdate(
+ SyncPoller, BatchDeploymentInner> beginCreateOrUpdate(
String resourceGroupName,
String workspaceName,
String endpointName,
String deploymentName,
- BatchDeploymentDataInner body);
+ BatchDeploymentInner body);
/**
* Creates/updates a batch inference deployment (asynchronous).
@@ -275,12 +275,12 @@ SyncPoller, BatchDeploymentDataInner> begin
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, BatchDeploymentDataInner> beginCreateOrUpdate(
+ SyncPoller, BatchDeploymentInner> beginCreateOrUpdate(
String resourceGroupName,
String workspaceName,
String endpointName,
String deploymentName,
- BatchDeploymentDataInner body,
+ BatchDeploymentInner body,
Context context);
/**
@@ -297,12 +297,12 @@ SyncPoller, BatchDeploymentDataInner> begin
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BatchDeploymentDataInner createOrUpdate(
+ BatchDeploymentInner createOrUpdate(
String resourceGroupName,
String workspaceName,
String endpointName,
String deploymentName,
- BatchDeploymentDataInner body);
+ BatchDeploymentInner body);
/**
* Creates/updates a batch inference deployment (asynchronous).
@@ -319,11 +319,11 @@ BatchDeploymentDataInner createOrUpdate(
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BatchDeploymentDataInner createOrUpdate(
+ BatchDeploymentInner createOrUpdate(
String resourceGroupName,
String workspaceName,
String endpointName,
String deploymentName,
- BatchDeploymentDataInner body,
+ BatchDeploymentInner body,
Context context);
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/BatchEndpointsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/BatchEndpointsClient.java
index 5b61e1422061..df3d62f87436 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/BatchEndpointsClient.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/BatchEndpointsClient.java
@@ -11,9 +11,9 @@
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.BatchEndpointDataInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.BatchEndpointInner;
import com.azure.resourcemanager.machinelearning.fluent.models.EndpointAuthKeysInner;
-import com.azure.resourcemanager.machinelearning.models.PartialBatchEndpointPartialTrackedResource;
+import com.azure.resourcemanager.machinelearning.models.PartialMinimalTrackedResourceWithIdentity;
/** An instance of this class provides access to all the operations defined in BatchEndpointsClient. */
public interface BatchEndpointsClient {
@@ -28,7 +28,7 @@ public interface BatchEndpointsClient {
* @return a paginated list of BatchEndpoint entities as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String workspaceName);
+ PagedIterable list(String resourceGroupName, String workspaceName);
/**
* Lists Batch inference endpoint in the workspace.
@@ -44,7 +44,7 @@ public interface BatchEndpointsClient {
* @return a paginated list of BatchEndpoint entities as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
+ PagedIterable list(
String resourceGroupName, String workspaceName, Integer count, String skip, Context context);
/**
@@ -116,7 +116,7 @@ SyncPoller, Void> beginDelete(
* @return a batch inference endpoint by name.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BatchEndpointDataInner get(String resourceGroupName, String workspaceName, String endpointName);
+ BatchEndpointInner get(String resourceGroupName, String workspaceName, String endpointName);
/**
* Gets a batch inference endpoint by name.
@@ -131,7 +131,7 @@ SyncPoller, Void> beginDelete(
* @return a batch inference endpoint by name along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
+ Response getWithResponse(
String resourceGroupName, String workspaceName, String endpointName, Context context);
/**
@@ -147,11 +147,11 @@ Response getWithResponse(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, BatchEndpointDataInner> beginUpdate(
+ SyncPoller, BatchEndpointInner> beginUpdate(
String resourceGroupName,
String workspaceName,
String endpointName,
- PartialBatchEndpointPartialTrackedResource body);
+ PartialMinimalTrackedResourceWithIdentity body);
/**
* Update a batch inference endpoint (asynchronous).
@@ -167,11 +167,11 @@ SyncPoller, BatchEndpointDataInner> beginUpda
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, BatchEndpointDataInner> beginUpdate(
+ SyncPoller, BatchEndpointInner> beginUpdate(
String resourceGroupName,
String workspaceName,
String endpointName,
- PartialBatchEndpointPartialTrackedResource body,
+ PartialMinimalTrackedResourceWithIdentity body,
Context context);
/**
@@ -187,11 +187,11 @@ SyncPoller, BatchEndpointDataInner> beginUpda
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BatchEndpointDataInner update(
+ BatchEndpointInner update(
String resourceGroupName,
String workspaceName,
String endpointName,
- PartialBatchEndpointPartialTrackedResource body);
+ PartialMinimalTrackedResourceWithIdentity body);
/**
* Update a batch inference endpoint (asynchronous).
@@ -207,11 +207,11 @@ BatchEndpointDataInner update(
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BatchEndpointDataInner update(
+ BatchEndpointInner update(
String resourceGroupName,
String workspaceName,
String endpointName,
- PartialBatchEndpointPartialTrackedResource body,
+ PartialMinimalTrackedResourceWithIdentity body,
Context context);
/**
@@ -227,8 +227,8 @@ BatchEndpointDataInner update(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, BatchEndpointDataInner> beginCreateOrUpdate(
- String resourceGroupName, String workspaceName, String endpointName, BatchEndpointDataInner body);
+ SyncPoller, BatchEndpointInner> beginCreateOrUpdate(
+ String resourceGroupName, String workspaceName, String endpointName, BatchEndpointInner body);
/**
* Creates a batch inference endpoint (asynchronous).
@@ -244,12 +244,8 @@ SyncPoller, BatchEndpointDataInner> beginCrea
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, BatchEndpointDataInner> beginCreateOrUpdate(
- String resourceGroupName,
- String workspaceName,
- String endpointName,
- BatchEndpointDataInner body,
- Context context);
+ SyncPoller, BatchEndpointInner> beginCreateOrUpdate(
+ String resourceGroupName, String workspaceName, String endpointName, BatchEndpointInner body, Context context);
/**
* Creates a batch inference endpoint (asynchronous).
@@ -264,8 +260,8 @@ SyncPoller, BatchEndpointDataInner> beginCrea
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BatchEndpointDataInner createOrUpdate(
- String resourceGroupName, String workspaceName, String endpointName, BatchEndpointDataInner body);
+ BatchEndpointInner createOrUpdate(
+ String resourceGroupName, String workspaceName, String endpointName, BatchEndpointInner body);
/**
* Creates a batch inference endpoint (asynchronous).
@@ -281,12 +277,8 @@ BatchEndpointDataInner createOrUpdate(
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BatchEndpointDataInner createOrUpdate(
- String resourceGroupName,
- String workspaceName,
- String endpointName,
- BatchEndpointDataInner body,
- Context context);
+ BatchEndpointInner createOrUpdate(
+ String resourceGroupName, String workspaceName, String endpointName, BatchEndpointInner body, Context context);
/**
* Lists batch Inference Endpoint keys.
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/CodeContainersClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/CodeContainersClient.java
index 03d7ba0721be..84e54dd52dfb 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/CodeContainersClient.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/CodeContainersClient.java
@@ -9,7 +9,7 @@
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.CodeContainerDataInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.CodeContainerInner;
/** An instance of this class provides access to all the operations defined in CodeContainersClient. */
public interface CodeContainersClient {
@@ -24,7 +24,7 @@ public interface CodeContainersClient {
* @return a paginated list of CodeContainer entities as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String workspaceName);
+ PagedIterable list(String resourceGroupName, String workspaceName);
/**
* List containers.
@@ -39,7 +39,7 @@ public interface CodeContainersClient {
* @return a paginated list of CodeContainer entities as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
+ PagedIterable list(
String resourceGroupName, String workspaceName, String skip, Context context);
/**
@@ -82,7 +82,7 @@ PagedIterable list(
* @return container.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- CodeContainerDataInner get(String resourceGroupName, String workspaceName, String name);
+ CodeContainerInner get(String resourceGroupName, String workspaceName, String name);
/**
* Get container.
@@ -97,7 +97,7 @@ PagedIterable list(
* @return container along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
+ Response getWithResponse(
String resourceGroupName, String workspaceName, String name, Context context);
/**
@@ -113,8 +113,8 @@ Response getWithResponse(
* @return azure Resource Manager resource envelope.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- CodeContainerDataInner createOrUpdate(
- String resourceGroupName, String workspaceName, String name, CodeContainerDataInner body);
+ CodeContainerInner createOrUpdate(
+ String resourceGroupName, String workspaceName, String name, CodeContainerInner body);
/**
* Create or update container.
@@ -130,6 +130,6 @@ CodeContainerDataInner createOrUpdate(
* @return azure Resource Manager resource envelope along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
- String resourceGroupName, String workspaceName, String name, CodeContainerDataInner body, Context context);
+ Response createOrUpdateWithResponse(
+ String resourceGroupName, String workspaceName, String name, CodeContainerInner body, Context context);
}
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 da65902f46c4..6284f9bdcd46 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
@@ -9,7 +9,7 @@
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.CodeVersionDataInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.CodeVersionInner;
/** An instance of this class provides access to all the operations defined in CodeVersionsClient. */
public interface CodeVersionsClient {
@@ -25,7 +25,7 @@ public interface CodeVersionsClient {
* @return a paginated list of CodeVersion entities as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String workspaceName, String name);
+ PagedIterable list(String resourceGroupName, String workspaceName, String name);
/**
* List versions.
@@ -43,7 +43,7 @@ public interface CodeVersionsClient {
* @return a paginated list of CodeVersion entities as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
+ PagedIterable list(
String resourceGroupName,
String workspaceName,
String name,
@@ -96,7 +96,7 @@ Response deleteWithResponse(
* @return version.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- CodeVersionDataInner get(String resourceGroupName, String workspaceName, String name, String version);
+ CodeVersionInner get(String resourceGroupName, String workspaceName, String name, String version);
/**
* Get version.
@@ -112,7 +112,7 @@ Response deleteWithResponse(
* @return version along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
+ Response getWithResponse(
String resourceGroupName, String workspaceName, String name, String version, Context context);
/**
@@ -129,8 +129,8 @@ Response getWithResponse(
* @return azure Resource Manager resource envelope.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- CodeVersionDataInner createOrUpdate(
- String resourceGroupName, String workspaceName, String name, String version, CodeVersionDataInner body);
+ CodeVersionInner createOrUpdate(
+ String resourceGroupName, String workspaceName, String name, String version, CodeVersionInner body);
/**
* Create or update version.
@@ -147,11 +147,11 @@ CodeVersionDataInner createOrUpdate(
* @return azure Resource Manager resource envelope along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
+ Response createOrUpdateWithResponse(
String resourceGroupName,
String workspaceName,
String name,
String version,
- CodeVersionDataInner body,
+ CodeVersionInner body,
Context context);
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ComponentContainersClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ComponentContainersClient.java
index eb2edf8ff681..2a80c6222557 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ComponentContainersClient.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ComponentContainersClient.java
@@ -9,7 +9,7 @@
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.ComponentContainerDataInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.ComponentContainerInner;
import com.azure.resourcemanager.machinelearning.models.ListViewType;
/** An instance of this class provides access to all the operations defined in ComponentContainersClient. */
@@ -25,7 +25,7 @@ public interface ComponentContainersClient {
* @return a paginated list of ComponentContainer entities as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String workspaceName);
+ PagedIterable list(String resourceGroupName, String workspaceName);
/**
* List component containers.
@@ -41,7 +41,7 @@ public interface ComponentContainersClient {
* @return a paginated list of ComponentContainer entities as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
+ PagedIterable list(
String resourceGroupName, String workspaceName, String skip, ListViewType listViewType, Context context);
/**
@@ -84,7 +84,7 @@ PagedIterable list(
* @return container.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ComponentContainerDataInner get(String resourceGroupName, String workspaceName, String name);
+ ComponentContainerInner get(String resourceGroupName, String workspaceName, String name);
/**
* Get container.
@@ -99,7 +99,7 @@ PagedIterable list(
* @return container along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
+ Response getWithResponse(
String resourceGroupName, String workspaceName, String name, Context context);
/**
@@ -115,8 +115,8 @@ Response getWithResponse(
* @return azure Resource Manager resource envelope.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ComponentContainerDataInner createOrUpdate(
- String resourceGroupName, String workspaceName, String name, ComponentContainerDataInner body);
+ ComponentContainerInner createOrUpdate(
+ String resourceGroupName, String workspaceName, String name, ComponentContainerInner body);
/**
* Create or update container.
@@ -132,6 +132,6 @@ ComponentContainerDataInner createOrUpdate(
* @return azure Resource Manager resource envelope along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
- String resourceGroupName, String workspaceName, String name, ComponentContainerDataInner body, Context context);
+ Response createOrUpdateWithResponse(
+ String resourceGroupName, String workspaceName, String name, ComponentContainerInner body, Context context);
}
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 a1f3e0bae9ec..a3da844db0a6 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
@@ -9,7 +9,7 @@
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.ComponentVersionDataInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.ComponentVersionInner;
import com.azure.resourcemanager.machinelearning.models.ListViewType;
/** An instance of this class provides access to all the operations defined in ComponentVersionsClient. */
@@ -26,7 +26,7 @@ public interface ComponentVersionsClient {
* @return a paginated list of ComponentVersion entities as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String workspaceName, String name);
+ PagedIterable list(String resourceGroupName, String workspaceName, String name);
/**
* List component versions.
@@ -45,7 +45,7 @@ public interface ComponentVersionsClient {
* @return a paginated list of ComponentVersion entities as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
+ PagedIterable list(
String resourceGroupName,
String workspaceName,
String name,
@@ -99,7 +99,7 @@ Response deleteWithResponse(
* @return version.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ComponentVersionDataInner get(String resourceGroupName, String workspaceName, String name, String version);
+ ComponentVersionInner get(String resourceGroupName, String workspaceName, String name, String version);
/**
* Get version.
@@ -115,7 +115,7 @@ Response deleteWithResponse(
* @return version along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
+ Response getWithResponse(
String resourceGroupName, String workspaceName, String name, String version, Context context);
/**
@@ -132,8 +132,8 @@ Response getWithResponse(
* @return azure Resource Manager resource envelope.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ComponentVersionDataInner createOrUpdate(
- String resourceGroupName, String workspaceName, String name, String version, ComponentVersionDataInner body);
+ ComponentVersionInner createOrUpdate(
+ String resourceGroupName, String workspaceName, String name, String version, ComponentVersionInner body);
/**
* Create or update version.
@@ -150,11 +150,11 @@ ComponentVersionDataInner createOrUpdate(
* @return azure Resource Manager resource envelope along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
+ Response createOrUpdateWithResponse(
String resourceGroupName,
String workspaceName,
String name,
String version,
- ComponentVersionDataInner body,
+ ComponentVersionInner body,
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 59109ed677d3..38d7965a7ea4 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ComputesClient.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ComputesClient.java
@@ -15,7 +15,10 @@
import com.azure.resourcemanager.machinelearning.fluent.models.ComputeSecretsInner;
import com.azure.resourcemanager.machinelearning.models.AmlComputeNodeInformation;
import com.azure.resourcemanager.machinelearning.models.ClusterUpdateParameters;
+import com.azure.resourcemanager.machinelearning.models.CustomService;
+import com.azure.resourcemanager.machinelearning.models.IdleShutdownSetting;
import com.azure.resourcemanager.machinelearning.models.UnderlyingResourceAction;
+import java.util.List;
/** An instance of this class provides access to all the operations defined in ComputesClient. */
public interface ComputesClient {
@@ -318,6 +321,42 @@ void delete(
UnderlyingResourceAction underlyingResourceAction,
Context context);
+ /**
+ * Updates the custom services list. The list of custom services provided shall be overwritten.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param computeName Name of the Azure Machine Learning compute.
+ * @param customServices New list of Custom Services.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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);
+
+ /**
+ * 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);
+
/**
* Get the details (e.g IP address, port etc) of all the compute nodes in the compute.
*
@@ -552,4 +591,40 @@ SyncPoller, Void> beginRestart(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void restart(String resourceGroupName, String workspaceName, String computeName, Context context);
+
+ /**
+ * Updates the idle shutdown setting of a compute instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param computeName Name of the Azure Machine Learning compute.
+ * @param parameters The object for updating idle shutdown setting of specified ComputeInstance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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);
+
+ /**
+ * 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);
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/DataContainersClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/DataContainersClient.java
index 533a6f679bbb..bcb3faa55ed8 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/DataContainersClient.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/DataContainersClient.java
@@ -9,7 +9,7 @@
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.DataContainerDataInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.DataContainerInner;
import com.azure.resourcemanager.machinelearning.models.ListViewType;
/** An instance of this class provides access to all the operations defined in DataContainersClient. */
@@ -25,7 +25,7 @@ public interface DataContainersClient {
* @return a paginated list of DataContainer entities as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String workspaceName);
+ PagedIterable list(String resourceGroupName, String workspaceName);
/**
* List data containers.
@@ -41,7 +41,7 @@ public interface DataContainersClient {
* @return a paginated list of DataContainer entities as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
+ PagedIterable list(
String resourceGroupName, String workspaceName, String skip, ListViewType listViewType, Context context);
/**
@@ -84,7 +84,7 @@ PagedIterable list(
* @return container.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DataContainerDataInner get(String resourceGroupName, String workspaceName, String name);
+ DataContainerInner get(String resourceGroupName, String workspaceName, String name);
/**
* Get container.
@@ -99,7 +99,7 @@ PagedIterable list(
* @return container along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
+ Response getWithResponse(
String resourceGroupName, String workspaceName, String name, Context context);
/**
@@ -115,8 +115,8 @@ Response getWithResponse(
* @return azure Resource Manager resource envelope.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DataContainerDataInner createOrUpdate(
- String resourceGroupName, String workspaceName, String name, DataContainerDataInner body);
+ DataContainerInner createOrUpdate(
+ String resourceGroupName, String workspaceName, String name, DataContainerInner body);
/**
* Create or update container.
@@ -132,6 +132,6 @@ DataContainerDataInner createOrUpdate(
* @return azure Resource Manager resource envelope along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
- String resourceGroupName, String workspaceName, String name, DataContainerDataInner body, Context context);
+ Response createOrUpdateWithResponse(
+ String resourceGroupName, String workspaceName, String name, DataContainerInner body, 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 f7aa9b60dbda..e83b7a4f1a0a 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
@@ -9,7 +9,7 @@
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.DataVersionBaseDataInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.DataVersionBaseInner;
import com.azure.resourcemanager.machinelearning.models.ListViewType;
/** An instance of this class provides access to all the operations defined in DataVersionsClient. */
@@ -26,7 +26,7 @@ public interface DataVersionsClient {
* @return a paginated list of DataVersionBase entities as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String workspaceName, String name);
+ PagedIterable list(String resourceGroupName, String workspaceName, String name);
/**
* List data versions in the data container.
@@ -48,7 +48,7 @@ public interface DataVersionsClient {
* @return a paginated list of DataVersionBase entities as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
+ PagedIterable list(
String resourceGroupName,
String workspaceName,
String name,
@@ -103,7 +103,7 @@ Response deleteWithResponse(
* @return version.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DataVersionBaseDataInner get(String resourceGroupName, String workspaceName, String name, String version);
+ DataVersionBaseInner get(String resourceGroupName, String workspaceName, String name, String version);
/**
* Get version.
@@ -119,7 +119,7 @@ Response deleteWithResponse(
* @return version along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
+ Response getWithResponse(
String resourceGroupName, String workspaceName, String name, String version, Context context);
/**
@@ -136,8 +136,8 @@ Response getWithResponse(
* @return azure Resource Manager resource envelope.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DataVersionBaseDataInner createOrUpdate(
- String resourceGroupName, String workspaceName, String name, String version, DataVersionBaseDataInner body);
+ DataVersionBaseInner createOrUpdate(
+ String resourceGroupName, String workspaceName, String name, String version, DataVersionBaseInner body);
/**
* Create or update version.
@@ -154,11 +154,11 @@ DataVersionBaseDataInner createOrUpdate(
* @return azure Resource Manager resource envelope along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
+ Response createOrUpdateWithResponse(
String resourceGroupName,
String workspaceName,
String name,
String version,
- DataVersionBaseDataInner body,
+ DataVersionBaseInner body,
Context context);
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/DatastoresClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/DatastoresClient.java
index 039579d9f50f..ae4a5f982a28 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/DatastoresClient.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/DatastoresClient.java
@@ -9,7 +9,7 @@
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.DatastoreDataInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.DatastoreInner;
import com.azure.resourcemanager.machinelearning.fluent.models.DatastoreSecretsInner;
import java.util.List;
@@ -26,7 +26,7 @@ public interface DatastoresClient {
* @return a paginated list of Datastore entities as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String workspaceName);
+ PagedIterable list(String resourceGroupName, String workspaceName);
/**
* List datastores.
@@ -47,7 +47,7 @@ public interface DatastoresClient {
* @return a paginated list of Datastore entities as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
+ PagedIterable list(
String resourceGroupName,
String workspaceName,
String skip,
@@ -99,7 +99,7 @@ PagedIterable list(
* @return datastore.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DatastoreDataInner get(String resourceGroupName, String workspaceName, String name);
+ DatastoreInner get(String resourceGroupName, String workspaceName, String name);
/**
* Get datastore.
@@ -114,7 +114,7 @@ PagedIterable list(
* @return datastore along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
+ Response getWithResponse(
String resourceGroupName, String workspaceName, String name, Context context);
/**
@@ -130,8 +130,7 @@ Response getWithResponse(
* @return azure Resource Manager resource envelope.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DatastoreDataInner createOrUpdate(
- String resourceGroupName, String workspaceName, String name, DatastoreDataInner body);
+ DatastoreInner createOrUpdate(String resourceGroupName, String workspaceName, String name, DatastoreInner body);
/**
* Create or update datastore.
@@ -148,11 +147,11 @@ DatastoreDataInner createOrUpdate(
* @return azure Resource Manager resource envelope along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
+ Response createOrUpdateWithResponse(
String resourceGroupName,
String workspaceName,
String name,
- DatastoreDataInner body,
+ DatastoreInner body,
Boolean skipValidation,
Context context);
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/EnvironmentContainersClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/EnvironmentContainersClient.java
index 2585f01d46cd..8444385bf89e 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/EnvironmentContainersClient.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/EnvironmentContainersClient.java
@@ -9,7 +9,7 @@
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.EnvironmentContainerDataInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.EnvironmentContainerInner;
import com.azure.resourcemanager.machinelearning.models.ListViewType;
/** An instance of this class provides access to all the operations defined in EnvironmentContainersClient. */
@@ -25,7 +25,7 @@ public interface EnvironmentContainersClient {
* @return a paginated list of EnvironmentContainer entities as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String workspaceName);
+ PagedIterable list(String resourceGroupName, String workspaceName);
/**
* List environment containers.
@@ -41,7 +41,7 @@ public interface EnvironmentContainersClient {
* @return a paginated list of EnvironmentContainer entities as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
+ PagedIterable list(
String resourceGroupName, String workspaceName, String skip, ListViewType listViewType, Context context);
/**
@@ -84,7 +84,7 @@ PagedIterable list(
* @return container.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- EnvironmentContainerDataInner get(String resourceGroupName, String workspaceName, String name);
+ EnvironmentContainerInner get(String resourceGroupName, String workspaceName, String name);
/**
* Get container.
@@ -99,7 +99,7 @@ PagedIterable list(
* @return container along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
+ Response getWithResponse(
String resourceGroupName, String workspaceName, String name, Context context);
/**
@@ -115,8 +115,8 @@ Response getWithResponse(
* @return azure Resource Manager resource envelope.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- EnvironmentContainerDataInner createOrUpdate(
- String resourceGroupName, String workspaceName, String name, EnvironmentContainerDataInner body);
+ EnvironmentContainerInner createOrUpdate(
+ String resourceGroupName, String workspaceName, String name, EnvironmentContainerInner body);
/**
* Create or update container.
@@ -132,10 +132,6 @@ EnvironmentContainerDataInner createOrUpdate(
* @return azure Resource Manager resource envelope along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
- String resourceGroupName,
- String workspaceName,
- String name,
- EnvironmentContainerDataInner body,
- Context context);
+ Response createOrUpdateWithResponse(
+ String resourceGroupName, String workspaceName, String name, EnvironmentContainerInner body, 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 ee7be12767ad..2f4805271c2c 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
@@ -9,7 +9,7 @@
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.EnvironmentVersionDataInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.EnvironmentVersionInner;
import com.azure.resourcemanager.machinelearning.models.ListViewType;
/** An instance of this class provides access to all the operations defined in EnvironmentVersionsClient. */
@@ -26,7 +26,7 @@ public interface EnvironmentVersionsClient {
* @return a paginated list of EnvironmentVersion entities as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String workspaceName, String name);
+ PagedIterable list(String resourceGroupName, String workspaceName, String name);
/**
* List versions.
@@ -45,7 +45,7 @@ public interface EnvironmentVersionsClient {
* @return a paginated list of EnvironmentVersion entities as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
+ PagedIterable list(
String resourceGroupName,
String workspaceName,
String name,
@@ -99,7 +99,7 @@ Response deleteWithResponse(
* @return version.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- EnvironmentVersionDataInner get(String resourceGroupName, String workspaceName, String name, String version);
+ EnvironmentVersionInner get(String resourceGroupName, String workspaceName, String name, String version);
/**
* Get version.
@@ -115,7 +115,7 @@ Response deleteWithResponse(
* @return version along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
+ Response getWithResponse(
String resourceGroupName, String workspaceName, String name, String version, Context context);
/**
@@ -132,8 +132,8 @@ Response getWithResponse(
* @return azure Resource Manager resource envelope.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- EnvironmentVersionDataInner createOrUpdate(
- String resourceGroupName, String workspaceName, String name, String version, EnvironmentVersionDataInner body);
+ EnvironmentVersionInner createOrUpdate(
+ String resourceGroupName, String workspaceName, String name, String version, EnvironmentVersionInner body);
/**
* Creates or updates an EnvironmentVersion.
@@ -150,11 +150,11 @@ EnvironmentVersionDataInner createOrUpdate(
* @return azure Resource Manager resource envelope along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
+ Response createOrUpdateWithResponse(
String resourceGroupName,
String workspaceName,
String name,
String version,
- EnvironmentVersionDataInner body,
+ EnvironmentVersionInner body,
Context context);
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/JobsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/JobsClient.java
index 6d280d7c1f6f..bd950bf0f9ed 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/JobsClient.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/JobsClient.java
@@ -11,7 +11,7 @@
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.JobBaseDataInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.JobBaseInner;
import com.azure.resourcemanager.machinelearning.models.ListViewType;
/** An instance of this class provides access to all the operations defined in JobsClient. */
@@ -27,7 +27,7 @@ public interface JobsClient {
* @return a paginated list of JobBase entities as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String workspaceName);
+ PagedIterable list(String resourceGroupName, String workspaceName);
/**
* Lists Jobs in the workspace.
@@ -47,7 +47,7 @@ public interface JobsClient {
* @return a paginated list of JobBase entities as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
+ PagedIterable list(
String resourceGroupName,
String workspaceName,
String skip,
@@ -127,7 +127,7 @@ SyncPoller, Void> beginDelete(
* @return a Job by name/id.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- JobBaseDataInner get(String resourceGroupName, String workspaceName, String id);
+ JobBaseInner get(String resourceGroupName, String workspaceName, String id);
/**
* Gets a Job by name/id.
@@ -142,8 +142,7 @@ SyncPoller, Void> beginDelete(
* @return a Job by name/id along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String workspaceName, String id, Context context);
+ Response getWithResponse(String resourceGroupName, String workspaceName, String id, Context context);
/**
* Creates and executes a Job.
@@ -158,7 +157,7 @@ Response getWithResponse(
* @return azure Resource Manager resource envelope.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- JobBaseDataInner createOrUpdate(String resourceGroupName, String workspaceName, String id, JobBaseDataInner body);
+ JobBaseInner createOrUpdate(String resourceGroupName, String workspaceName, String id, JobBaseInner body);
/**
* Creates and executes a Job.
@@ -174,11 +173,41 @@ Response getWithResponse(
* @return azure Resource Manager resource envelope along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
- String resourceGroupName, String workspaceName, String id, JobBaseDataInner body, Context context);
+ Response createOrUpdateWithResponse(
+ String resourceGroupName, String workspaceName, String id, JobBaseInner body, Context context);
+
+ /**
+ * Cancels a Job (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param id The name and identifier for the Job. 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> beginCancel(String resourceGroupName, String workspaceName, String id);
+
+ /**
+ * Cancels a Job (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param id The name and identifier for the Job. 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> beginCancel(
+ String resourceGroupName, String workspaceName, String id, Context context);
/**
- * Cancels a Job.
+ * Cancels a Job (asynchronous).
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
@@ -191,7 +220,7 @@ Response createOrUpdateWithResponse(
void cancel(String resourceGroupName, String workspaceName, String id);
/**
- * Cancels a Job.
+ * Cancels a Job (asynchronous).
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
@@ -200,8 +229,7 @@ Response createOrUpdateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown 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 cancelWithResponse(String resourceGroupName, String workspaceName, String id, Context context);
+ void cancel(String resourceGroupName, String workspaceName, String id, Context context);
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/LabelingJobsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/LabelingJobsClient.java
new file mode 100644
index 000000000000..40f878da75f9
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/LabelingJobsClient.java
@@ -0,0 +1,328 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.machinelearning.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.machinelearning.fluent.models.ExportSummaryInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.LabelingJobInner;
+
+/** An instance of this class provides access to all the operations defined in LabelingJobsClient. */
+public interface LabelingJobsClient {
+ /**
+ * Lists labeling jobs in the workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of LabelingJob entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String workspaceName);
+
+ /**
+ * Lists labeling jobs in the workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param skip Continuation token for pagination.
+ * @param count Number of labeling jobs to return.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of LabelingJob entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName, String workspaceName, String skip, Integer count, Context context);
+
+ /**
+ * Delete a labeling job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param id The name and identifier for the LabelingJob.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String id);
+
+ /**
+ * Delete a labeling job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param id The name and identifier for the LabelingJob.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceGroupName, String workspaceName, String id, Context context);
+
+ /**
+ * Gets a labeling job by name/id.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param id The name and identifier for the LabelingJob.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a labeling job by name/id.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LabelingJobInner get(String resourceGroupName, String workspaceName, String id);
+
+ /**
+ * Gets a labeling job by name/id.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param id The name and identifier for the LabelingJob.
+ * @param includeJobInstructions Boolean value to indicate whether to include JobInstructions in response.
+ * @param includeLabelCategories Boolean value to indicate Whether to include LabelCategories in response.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a labeling job by name/id along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName,
+ String workspaceName,
+ String id,
+ Boolean includeJobInstructions,
+ Boolean includeLabelCategories,
+ Context context);
+
+ /**
+ * Creates or updates a labeling job (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param id The name and identifier for the LabelingJob.
+ * @param body LabelingJob definition object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, LabelingJobInner> beginCreateOrUpdate(
+ String resourceGroupName, String workspaceName, String id, LabelingJobInner body);
+
+ /**
+ * Creates or updates a labeling job (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param id The name and identifier for the LabelingJob.
+ * @param body LabelingJob definition object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, LabelingJobInner> beginCreateOrUpdate(
+ String resourceGroupName, String workspaceName, String id, LabelingJobInner body, Context context);
+
+ /**
+ * Creates or updates a labeling job (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param id The name and identifier for the LabelingJob.
+ * @param body LabelingJob definition object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LabelingJobInner createOrUpdate(String resourceGroupName, String workspaceName, String id, LabelingJobInner body);
+
+ /**
+ * Creates or updates a labeling job (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param id The name and identifier for the LabelingJob.
+ * @param body LabelingJob definition object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azure Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LabelingJobInner createOrUpdate(
+ String resourceGroupName, String workspaceName, String id, LabelingJobInner body, Context context);
+
+ /**
+ * Export labels from a labeling job (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param id The name and identifier for the LabelingJob.
+ * @param body The export summary.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ExportSummaryInner> beginExportLabels(
+ String resourceGroupName, String workspaceName, String id, ExportSummaryInner body);
+
+ /**
+ * Export labels from a labeling job (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param id The name and identifier for the LabelingJob.
+ * @param body The export summary.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ExportSummaryInner> beginExportLabels(
+ String resourceGroupName, String workspaceName, String id, ExportSummaryInner body, Context context);
+
+ /**
+ * Export labels from a labeling job (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param id The name and identifier for the LabelingJob.
+ * @param body The export summary.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ExportSummaryInner exportLabels(String resourceGroupName, String workspaceName, String id, ExportSummaryInner body);
+
+ /**
+ * Export labels from a labeling job (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param id The name and identifier for the LabelingJob.
+ * @param body The export summary.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ExportSummaryInner exportLabels(
+ String resourceGroupName, String workspaceName, String id, ExportSummaryInner body, Context context);
+
+ /**
+ * Pause a labeling job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param id The name and identifier for the LabelingJob.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void pause(String resourceGroupName, String workspaceName, String id);
+
+ /**
+ * Pause a labeling job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param id The name and identifier for the LabelingJob.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response pauseWithResponse(String resourceGroupName, String workspaceName, String id, Context context);
+
+ /**
+ * Resume a labeling job (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param id The name and identifier for the LabelingJob.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginResume(String resourceGroupName, String workspaceName, String id);
+
+ /**
+ * Resume a labeling job (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param id The name and identifier for the LabelingJob.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginResume(
+ String resourceGroupName, String workspaceName, String id, Context context);
+
+ /**
+ * Resume a labeling job (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param id The name and identifier for the LabelingJob.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void resume(String resourceGroupName, String workspaceName, String id);
+
+ /**
+ * Resume a labeling job (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param id The name and identifier for the LabelingJob.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void resume(String resourceGroupName, String workspaceName, String id, Context context);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ModelContainersClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ModelContainersClient.java
index 78142802c0e5..28a7cd2b51f6 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ModelContainersClient.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ModelContainersClient.java
@@ -9,7 +9,7 @@
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.ModelContainerDataInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.ModelContainerInner;
import com.azure.resourcemanager.machinelearning.models.ListViewType;
/** An instance of this class provides access to all the operations defined in ModelContainersClient. */
@@ -25,7 +25,7 @@ public interface ModelContainersClient {
* @return a paginated list of ModelContainer entities as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String workspaceName);
+ PagedIterable list(String resourceGroupName, String workspaceName);
/**
* List model containers.
@@ -42,7 +42,7 @@ public interface ModelContainersClient {
* @return a paginated list of ModelContainer entities as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
+ PagedIterable list(
String resourceGroupName,
String workspaceName,
String skip,
@@ -90,7 +90,7 @@ PagedIterable list(
* @return container.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ModelContainerDataInner get(String resourceGroupName, String workspaceName, String name);
+ ModelContainerInner get(String resourceGroupName, String workspaceName, String name);
/**
* Get container.
@@ -105,7 +105,7 @@ PagedIterable list(
* @return container along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
+ Response getWithResponse(
String resourceGroupName, String workspaceName, String name, Context context);
/**
@@ -121,8 +121,8 @@ Response getWithResponse(
* @return azure Resource Manager resource envelope.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ModelContainerDataInner createOrUpdate(
- String resourceGroupName, String workspaceName, String name, ModelContainerDataInner body);
+ ModelContainerInner createOrUpdate(
+ String resourceGroupName, String workspaceName, String name, ModelContainerInner body);
/**
* Create or update container.
@@ -138,6 +138,6 @@ ModelContainerDataInner createOrUpdate(
* @return azure Resource Manager resource envelope along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
- String resourceGroupName, String workspaceName, String name, ModelContainerDataInner body, Context context);
+ Response createOrUpdateWithResponse(
+ String resourceGroupName, String workspaceName, String name, ModelContainerInner body, Context context);
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ModelVersionsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ModelVersionsClient.java
index 317537e9c843..0a3bd35fca24 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ModelVersionsClient.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ModelVersionsClient.java
@@ -9,7 +9,7 @@
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.ModelVersionDataInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.ModelVersionInner;
import com.azure.resourcemanager.machinelearning.models.ListViewType;
/** An instance of this class provides access to all the operations defined in ModelVersionsClient. */
@@ -26,7 +26,7 @@ public interface ModelVersionsClient {
* @return a paginated list of ModelVersion entities as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String workspaceName, String name);
+ PagedIterable list(String resourceGroupName, String workspaceName, String name);
/**
* List model versions.
@@ -51,7 +51,7 @@ public interface ModelVersionsClient {
* @return a paginated list of ModelVersion entities as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
+ PagedIterable list(
String resourceGroupName,
String workspaceName,
String name,
@@ -111,7 +111,7 @@ Response deleteWithResponse(
* @return version.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ModelVersionDataInner get(String resourceGroupName, String workspaceName, String name, String version);
+ ModelVersionInner get(String resourceGroupName, String workspaceName, String name, String version);
/**
* Get version.
@@ -127,7 +127,7 @@ Response deleteWithResponse(
* @return version along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
+ Response getWithResponse(
String resourceGroupName, String workspaceName, String name, String version, Context context);
/**
@@ -144,8 +144,8 @@ Response getWithResponse(
* @return azure Resource Manager resource envelope.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ModelVersionDataInner createOrUpdate(
- String resourceGroupName, String workspaceName, String name, String version, ModelVersionDataInner body);
+ ModelVersionInner createOrUpdate(
+ String resourceGroupName, String workspaceName, String name, String version, ModelVersionInner body);
/**
* Create or update version.
@@ -162,11 +162,11 @@ ModelVersionDataInner createOrUpdate(
* @return azure Resource Manager resource envelope along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
+ Response createOrUpdateWithResponse(
String resourceGroupName,
String workspaceName,
String name,
String version,
- ModelVersionDataInner body,
+ ModelVersionInner body,
Context context);
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/OnlineDeploymentsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/OnlineDeploymentsClient.java
index 46bea196ac72..149ff167d432 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/OnlineDeploymentsClient.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/OnlineDeploymentsClient.java
@@ -12,10 +12,10 @@
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.machinelearning.fluent.models.DeploymentLogsInner;
-import com.azure.resourcemanager.machinelearning.fluent.models.OnlineDeploymentDataInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.OnlineDeploymentInner;
import com.azure.resourcemanager.machinelearning.fluent.models.SkuResourceInner;
import com.azure.resourcemanager.machinelearning.models.DeploymentLogsRequest;
-import com.azure.resourcemanager.machinelearning.models.PartialOnlineDeploymentPartialTrackedResource;
+import com.azure.resourcemanager.machinelearning.models.PartialMinimalTrackedResourceWithSku;
/** An instance of this class provides access to all the operations defined in OnlineDeploymentsClient. */
public interface OnlineDeploymentsClient {
@@ -31,7 +31,7 @@ public interface OnlineDeploymentsClient {
* @return a paginated list of OnlineDeployment entities as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String workspaceName, String endpointName);
+ PagedIterable list(String resourceGroupName, String workspaceName, String endpointName);
/**
* List Inference Endpoint Deployments.
@@ -49,7 +49,7 @@ public interface OnlineDeploymentsClient {
* @return a paginated list of OnlineDeployment entities as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
+ PagedIterable list(
String resourceGroupName,
String workspaceName,
String endpointName,
@@ -134,7 +134,7 @@ void delete(
* @return inference Deployment Deployment.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OnlineDeploymentDataInner get(
+ OnlineDeploymentInner get(
String resourceGroupName, String workspaceName, String endpointName, String deploymentName);
/**
@@ -151,7 +151,7 @@ OnlineDeploymentDataInner get(
* @return inference Deployment Deployment along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
+ Response getWithResponse(
String resourceGroupName, String workspaceName, String endpointName, String deploymentName, Context context);
/**
@@ -168,12 +168,12 @@ Response getWithResponse(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OnlineDeploymentDataInner> beginUpdate(
+ SyncPoller, OnlineDeploymentInner> beginUpdate(
String resourceGroupName,
String workspaceName,
String endpointName,
String deploymentName,
- PartialOnlineDeploymentPartialTrackedResource body);
+ PartialMinimalTrackedResourceWithSku body);
/**
* Update Online Deployment (asynchronous).
@@ -190,12 +190,12 @@ SyncPoller, OnlineDeploymentDataInner> beg
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OnlineDeploymentDataInner> beginUpdate(
+ SyncPoller, OnlineDeploymentInner> beginUpdate(
String resourceGroupName,
String workspaceName,
String endpointName,
String deploymentName,
- PartialOnlineDeploymentPartialTrackedResource body,
+ PartialMinimalTrackedResourceWithSku body,
Context context);
/**
@@ -212,12 +212,12 @@ SyncPoller, OnlineDeploymentDataInner> beg
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OnlineDeploymentDataInner update(
+ OnlineDeploymentInner update(
String resourceGroupName,
String workspaceName,
String endpointName,
String deploymentName,
- PartialOnlineDeploymentPartialTrackedResource body);
+ PartialMinimalTrackedResourceWithSku body);
/**
* Update Online Deployment (asynchronous).
@@ -234,12 +234,12 @@ OnlineDeploymentDataInner update(
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OnlineDeploymentDataInner update(
+ OnlineDeploymentInner update(
String resourceGroupName,
String workspaceName,
String endpointName,
String deploymentName,
- PartialOnlineDeploymentPartialTrackedResource body,
+ PartialMinimalTrackedResourceWithSku body,
Context context);
/**
@@ -256,12 +256,12 @@ OnlineDeploymentDataInner update(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OnlineDeploymentDataInner> beginCreateOrUpdate(
+ SyncPoller, OnlineDeploymentInner> beginCreateOrUpdate(
String resourceGroupName,
String workspaceName,
String endpointName,
String deploymentName,
- OnlineDeploymentDataInner body);
+ OnlineDeploymentInner body);
/**
* Create or update Inference Endpoint Deployment (asynchronous).
@@ -278,12 +278,12 @@ SyncPoller, OnlineDeploymentDataInner> beg
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OnlineDeploymentDataInner> beginCreateOrUpdate(
+ SyncPoller, OnlineDeploymentInner> beginCreateOrUpdate(
String resourceGroupName,
String workspaceName,
String endpointName,
String deploymentName,
- OnlineDeploymentDataInner body,
+ OnlineDeploymentInner body,
Context context);
/**
@@ -300,12 +300,12 @@ SyncPoller, OnlineDeploymentDataInner> beg
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OnlineDeploymentDataInner createOrUpdate(
+ OnlineDeploymentInner createOrUpdate(
String resourceGroupName,
String workspaceName,
String endpointName,
String deploymentName,
- OnlineDeploymentDataInner body);
+ OnlineDeploymentInner body);
/**
* Create or update Inference Endpoint Deployment (asynchronous).
@@ -322,12 +322,12 @@ OnlineDeploymentDataInner createOrUpdate(
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OnlineDeploymentDataInner createOrUpdate(
+ OnlineDeploymentInner createOrUpdate(
String resourceGroupName,
String workspaceName,
String endpointName,
String deploymentName,
- OnlineDeploymentDataInner body,
+ OnlineDeploymentInner body,
Context context);
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/OnlineEndpointsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/OnlineEndpointsClient.java
index 7dfed8a382a2..afa0ac76816f 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/OnlineEndpointsClient.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/OnlineEndpointsClient.java
@@ -13,10 +13,10 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.machinelearning.fluent.models.EndpointAuthKeysInner;
import com.azure.resourcemanager.machinelearning.fluent.models.EndpointAuthTokenInner;
-import com.azure.resourcemanager.machinelearning.fluent.models.OnlineEndpointDataInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.OnlineEndpointInner;
import com.azure.resourcemanager.machinelearning.models.EndpointComputeType;
import com.azure.resourcemanager.machinelearning.models.OrderString;
-import com.azure.resourcemanager.machinelearning.models.PartialOnlineEndpointPartialTrackedResource;
+import com.azure.resourcemanager.machinelearning.models.PartialMinimalTrackedResourceWithIdentity;
import com.azure.resourcemanager.machinelearning.models.RegenerateEndpointKeysRequest;
/** An instance of this class provides access to all the operations defined in OnlineEndpointsClient. */
@@ -32,7 +32,7 @@ public interface OnlineEndpointsClient {
* @return a paginated list of OnlineEndpoint entities as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String workspaceName);
+ PagedIterable