diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/CHANGELOG.md b/sdk/machinelearning/azure-resourcemanager-machinelearning/CHANGELOG.md
index f4d8ab12ac0c8..6c42fd83be258 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-08-05)
+
+- 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-06. 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 1c3706cbd2c4e..e3cf7ee702f15 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-06. 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 b28a237d2e917..994f545ec80a7 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,13 @@
- [List](#quotas_list)
- [Update](#quotas_update)
+## Schedules
+
+- [CreateOrUpdate](#schedules_createorupdate)
+- [Delete](#schedules_delete)
+- [Get](#schedules_get)
+- [List](#schedules_list)
+
## Usages
- [List](#usages_list)
@@ -198,15 +217,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,7 +237,7 @@ 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-06-01-preview/examples/BatchDeployment/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Batch Deployment.
@@ -233,7 +252,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 +267,7 @@ public final class BatchDeploymentsCreateOrUpdateSamples {
.withOutputAction(BatchOutputAction.SUMMARY_ONLY)
.withOutputFileName("string")
.withResources(
- new ResourceConfiguration()
+ new DeploymentResourceConfiguration()
.withInstanceCount(1)
.withInstanceType("string")
.withProperties(
@@ -298,7 +317,7 @@ 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-06-01-preview/examples/BatchDeployment/delete.json
*/
/**
* Sample code: Delete Batch Deployment.
@@ -321,7 +340,7 @@ 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-06-01-preview/examples/BatchDeployment/get.json
*/
/**
* Sample code: Get Batch Deployment.
@@ -344,7 +363,7 @@ 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-06-01-preview/examples/BatchDeployment/list.json
*/
/**
* Sample code: List Batch Deployment.
@@ -362,38 +381,24 @@ 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-06-01-preview/examples/BatchDeployment/update.json
*/
/**
* Sample code: Update 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 updateBatchDeployment(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ BatchDeployment resource =
manager
.batchDeployments()
.getWithResponse("test-rg", "my-aml-workspace", "testEndpointName", "testDeploymentName", Context.NONE)
@@ -401,41 +406,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 +427,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,7 +440,7 @@ 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-06-01-preview/examples/BatchEndpoint/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Batch Endpoint.
@@ -484,7 +455,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,7 +497,7 @@ 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-06-01-preview/examples/BatchEndpoint/delete.json
*/
/**
* Sample code: Delete Batch Endpoint.
@@ -547,7 +518,7 @@ 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-06-01-preview/examples/BatchEndpoint/get.json
*/
/**
* Sample code: Get Batch Endpoint.
@@ -568,7 +539,7 @@ 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-06-01-preview/examples/BatchEndpoint/list.json
*/
/**
* Sample code: List Batch Endpoint.
@@ -589,7 +560,7 @@ 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-06-01-preview/examples/BatchEndpoint/listKeys.json
*/
/**
* Sample code: ListKeys Batch Endpoint.
@@ -608,13 +579,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,7 +589,7 @@ 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-06-01-preview/examples/BatchEndpoint/update.json
*/
/**
* Sample code: Update Batch Endpoint.
@@ -631,7 +598,7 @@ public final class BatchEndpointsUpdateSamples {
*/
public static void updateBatchEndpoint(com.azure.resourcemanager.machinelearning.MachineLearningManager manager)
throws IOException {
- BatchEndpointData resource =
+ BatchEndpoint resource =
manager
.batchEndpoints()
.getWithResponse("test-rg", "my-aml-workspace", "testEndpointName", Context.NONE)
@@ -648,16 +615,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,14 +634,14 @@ public final class BatchEndpointsUpdateSamples {
### CodeContainers_CreateOrUpdate
```java
-import com.azure.resourcemanager.machinelearning.models.CodeContainerDetails;
+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-06-01-preview/examples/CodeContainer/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Code Container.
@@ -698,7 +655,7 @@ public final class CodeContainersCreateOrUpdateSamples {
.define("testContainer")
.withExistingWorkspace("testrg123", "testworkspace")
.withProperties(
- new CodeContainerDetails()
+ new CodeContainerProperties()
.withDescription("string")
.withTags(mapOf("tag1", "value1", "tag2", "value2")))
.create();
@@ -725,7 +682,7 @@ 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-06-01-preview/examples/CodeContainer/delete.json
*/
/**
* Sample code: Delete Code Container.
@@ -746,7 +703,7 @@ 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-06-01-preview/examples/CodeContainer/get.json
*/
/**
* Sample code: Get Code Container.
@@ -767,7 +724,7 @@ 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-06-01-preview/examples/CodeContainer/list.json
*/
/**
* Sample code: List Code Container.
@@ -783,14 +740,14 @@ public final class CodeContainersListSamples {
### CodeVersions_CreateOrUpdate
```java
-import com.azure.resourcemanager.machinelearning.models.CodeVersionDetails;
+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-06-01-preview/examples/CodeVersion/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Code Version.
@@ -804,7 +761,7 @@ public final class CodeVersionsCreateOrUpdateSamples {
.define("string")
.withExistingCode("test-rg", "my-aml-workspace", "string")
.withProperties(
- new CodeVersionDetails()
+ new CodeVersionProperties()
.withDescription("string")
.withProperties(mapOf("string", "string"))
.withTags(mapOf("string", "string"))
@@ -834,7 +791,7 @@ 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-06-01-preview/examples/CodeVersion/delete.json
*/
/**
* Sample code: Delete Code Version.
@@ -855,7 +812,7 @@ 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-06-01-preview/examples/CodeVersion/get.json
*/
/**
* Sample code: Get Code Version.
@@ -876,7 +833,7 @@ 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-06-01-preview/examples/CodeVersion/list.json
*/
/**
* Sample code: List Code Version.
@@ -892,14 +849,14 @@ public final class CodeVersionsListSamples {
### ComponentContainers_CreateOrUpdate
```java
-import com.azure.resourcemanager.machinelearning.models.ComponentContainerDetails;
+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-06-01-preview/examples/ComponentContainer/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Component Container.
@@ -913,7 +870,7 @@ public final class ComponentContainersCreateOrUpdateSamples {
.define("string")
.withExistingWorkspace("test-rg", "my-aml-workspace")
.withProperties(
- new ComponentContainerDetails()
+ new ComponentContainerProperties()
.withDescription("string")
.withProperties(mapOf("string", "string"))
.withTags(mapOf("string", "string")))
@@ -941,7 +898,7 @@ 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-06-01-preview/examples/ComponentContainer/delete.json
*/
/**
* Sample code: Delete Component Container.
@@ -963,7 +920,7 @@ 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-06-01-preview/examples/ComponentContainer/get.json
*/
/**
* Sample code: Get Component Container.
@@ -984,7 +941,7 @@ 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-06-01-preview/examples/ComponentContainer/list.json
*/
/**
* Sample code: List Component Container.
@@ -1003,7 +960,7 @@ public final class ComponentContainersListSamples {
```java
import com.azure.core.management.serializer.SerializerFactory;
import com.azure.core.util.serializer.SerializerEncoding;
-import com.azure.resourcemanager.machinelearning.models.ComponentVersionDetails;
+import com.azure.resourcemanager.machinelearning.models.ComponentVersionProperties;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
@@ -1011,7 +968,7 @@ 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-06-01-preview/examples/ComponentVersion/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Component Version.
@@ -1025,7 +982,7 @@ public final class ComponentVersionsCreateOrUpdateSamples {
.define("string")
.withExistingComponent("test-rg", "my-aml-workspace", "string")
.withProperties(
- new ComponentVersionDetails()
+ new ComponentVersionProperties()
.withDescription("string")
.withProperties(mapOf("string", "string"))
.withTags(mapOf("string", "string"))
@@ -1061,7 +1018,7 @@ 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-06-01-preview/examples/ComponentVersion/delete.json
*/
/**
* Sample code: Delete Component Version.
@@ -1083,7 +1040,7 @@ 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-06-01-preview/examples/ComponentVersion/get.json
*/
/**
* Sample code: Get Component Version.
@@ -1104,7 +1061,7 @@ 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-06-01-preview/examples/ComponentVersion/list.json
*/
/**
* Sample code: List Component Version.
@@ -1132,27 +1089,38 @@ import com.azure.resourcemanager.machinelearning.models.ComputeInstance;
import com.azure.resourcemanager.machinelearning.models.ComputeInstanceAuthorizationType;
import com.azure.resourcemanager.machinelearning.models.ComputeInstanceProperties;
import com.azure.resourcemanager.machinelearning.models.ComputeInstanceSshSettings;
+import com.azure.resourcemanager.machinelearning.models.CustomService;
import com.azure.resourcemanager.machinelearning.models.DataFactory;
+import com.azure.resourcemanager.machinelearning.models.Docker;
+import com.azure.resourcemanager.machinelearning.models.Endpoint;
+import com.azure.resourcemanager.machinelearning.models.EnvironmentVariable;
+import com.azure.resourcemanager.machinelearning.models.EnvironmentVariableType;
+import com.azure.resourcemanager.machinelearning.models.Image;
+import com.azure.resourcemanager.machinelearning.models.ImageType;
import com.azure.resourcemanager.machinelearning.models.InstanceTypeSchema;
import com.azure.resourcemanager.machinelearning.models.InstanceTypeSchemaResources;
import com.azure.resourcemanager.machinelearning.models.Kubernetes;
import com.azure.resourcemanager.machinelearning.models.KubernetesProperties;
import com.azure.resourcemanager.machinelearning.models.OsType;
import com.azure.resourcemanager.machinelearning.models.PersonalComputeInstanceSettings;
+import com.azure.resourcemanager.machinelearning.models.Protocol;
import com.azure.resourcemanager.machinelearning.models.RemoteLoginPortPublicAccess;
import com.azure.resourcemanager.machinelearning.models.ResourceId;
import com.azure.resourcemanager.machinelearning.models.ScaleSettings;
import com.azure.resourcemanager.machinelearning.models.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-06-01-preview/examples/Compute/createOrUpdate/BasicAKSCompute.json
*/
/**
* Sample code: Create an AKS Compute.
@@ -1170,7 +1138,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-06-01-preview/examples/Compute/createOrUpdate/AKSCompute.json
*/
/**
* Sample code: Update an AKS Compute.
@@ -1193,7 +1161,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-06-01-preview/examples/Compute/createOrUpdate/KubernetesCompute.json
*/
/**
* Sample code: Attach a Kubernetes Compute.
@@ -1230,7 +1198,7 @@ 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-06-01-preview/examples/Compute/createOrUpdate/BasicAmlCompute.json
*/
/**
* Sample code: Create a AML Compute.
@@ -1266,7 +1234,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-06-01-preview/examples/Compute/createOrUpdate/ComputeInstance.json
*/
/**
* Sample code: Create an ComputeInstance Compute.
@@ -1289,6 +1257,42 @@ public final class ComputeCreateOrUpdateSamples {
.withApplicationSharingPolicy(ApplicationSharingPolicy.PERSONAL)
.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 +1304,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-06-01-preview/examples/Compute/createOrUpdate/ComputeInstanceMinimal.json
*/
/**
* Sample code: Create an ComputeInstance Compute with minimal inputs.
@@ -1320,7 +1324,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-06-01-preview/examples/Compute/createOrUpdate/AmlCompute.json
*/
/**
* Sample code: Update a AML Compute.
@@ -1347,7 +1351,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-06-01-preview/examples/Compute/createOrUpdate/BasicDataFactoryCompute.json
*/
/**
* Sample code: Create a DataFactory Compute.
@@ -1387,7 +1391,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-06-01-preview/examples/Compute/delete.json
*/
/**
* Sample code: Delete Compute.
@@ -1410,7 +1414,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-06-01-preview/examples/Compute/get/AKSCompute.json
*/
/**
* Sample code: Get a AKS Compute.
@@ -1422,7 +1426,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-06-01-preview/examples/Compute/get/KubernetesCompute.json
*/
/**
* Sample code: Get a Kubernetes Compute.
@@ -1434,7 +1438,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-06-01-preview/examples/Compute/get/ComputeInstance.json
*/
/**
* Sample code: Get an ComputeInstance.
@@ -1446,7 +1450,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-06-01-preview/examples/Compute/get/AmlCompute.json
*/
/**
* Sample code: Get a AML Compute.
@@ -1467,7 +1471,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-06-01-preview/examples/Compute/list.json
*/
/**
* Sample code: Get Computes.
@@ -1488,7 +1492,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-06-01-preview/examples/Compute/listKeys.json
*/
/**
* Sample code: List AKS Compute Keys.
@@ -1509,7 +1513,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-06-01-preview/examples/Compute/listNodes.json
*/
/**
* Sample code: Get compute nodes information for a compute.
@@ -1531,7 +1535,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-06-01-preview/examples/Compute/restart.json
*/
/**
* Sample code: Restart ComputeInstance Compute.
@@ -1553,7 +1557,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-06-01-preview/examples/Compute/start.json
*/
/**
* Sample code: Start ComputeInstance Compute.
@@ -1575,7 +1579,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-06-01-preview/examples/Compute/stop.json
*/
/**
* Sample code: Stop ComputeInstance Compute.
@@ -1601,7 +1605,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-06-01-preview/examples/Compute/patch.json
*/
/**
* Sample code: Update a AmlCompute Compute.
@@ -1626,10 +1630,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-06-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-06-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,7 +1756,7 @@ 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-06-01-preview/examples/DataContainer/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Data Container.
@@ -1651,11 +1770,11 @@ public final class DataContainersCreateOrUpdateSamples {
.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,7 +1799,7 @@ 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-06-01-preview/examples/DataContainer/delete.json
*/
/**
* Sample code: Delete Data Container.
@@ -1701,7 +1820,7 @@ 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-06-01-preview/examples/DataContainer/get.json
*/
/**
* Sample code: Get Data Container.
@@ -1722,7 +1841,7 @@ 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-06-01-preview/examples/DataContainer/list.json
*/
/**
* Sample code: List Data Container.
@@ -1745,7 +1864,7 @@ 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-06-01-preview/examples/DataVersionBase/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Data Version Base.
@@ -1789,7 +1908,7 @@ 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-06-01-preview/examples/DataVersionBase/delete.json
*/
/**
* Sample code: Delete Data Version Base.
@@ -1810,7 +1929,7 @@ 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-06-01-preview/examples/DataVersionBase/get.json
*/
/**
* Sample code: Get Data Version Base.
@@ -1831,7 +1950,7 @@ 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-06-01-preview/examples/DataVersionBase/list.json
*/
/**
* Sample code: List Data Version Base.
@@ -1864,7 +1983,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-06-01-preview/examples/Datastore/AzureDataLakeGen1WServicePrincipal/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate datastore (Azure Data Lake Gen1 w/ ServicePrincipal).
@@ -1894,7 +2013,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-06-01-preview/examples/Datastore/AzureDataLakeGen2WServicePrincipal/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate datastore (Azure Data Lake Gen2 w/ Service Principal).
@@ -1927,7 +2046,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-06-01-preview/examples/Datastore/AzureBlobWAccountKey/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate datastore (AzureBlob w/ AccountKey).
@@ -1956,7 +2075,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-06-01-preview/examples/Datastore/AzureFileWAccountKey/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate datastore (Azure File store w/ AccountKey).
@@ -2005,7 +2124,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-06-01-preview/examples/Datastore/delete.json
*/
/**
* Sample code: Delete datastore.
@@ -2026,7 +2145,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-06-01-preview/examples/Datastore/get.json
*/
/**
* Sample code: Get datastore.
@@ -2048,7 +2167,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-06-01-preview/examples/Datastore/list.json
*/
/**
* Sample code: List datastores.
@@ -2081,7 +2200,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-06-01-preview/examples/Datastore/listSecrets.json
*/
/**
* Sample code: Get datastore secrets.
@@ -2097,14 +2216,14 @@ public final class DatastoresListSecretsSamples {
### EnvironmentContainers_CreateOrUpdate
```java
-import com.azure.resourcemanager.machinelearning.models.EnvironmentContainerDetails;
+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-06-01-preview/examples/EnvironmentContainer/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Environment Container.
@@ -2118,7 +2237,7 @@ public final class EnvironmentContainersCreateOrUpdateSamples {
.define("testEnvironment")
.withExistingWorkspace("testrg123", "testworkspace")
.withProperties(
- new EnvironmentContainerDetails()
+ new EnvironmentContainerProperties()
.withDescription("string")
.withProperties(
mapOf("additionalProp1", "string", "additionalProp2", "string", "additionalProp3", "string"))
@@ -2148,7 +2267,7 @@ 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-06-01-preview/examples/EnvironmentContainer/delete.json
*/
/**
* Sample code: Delete Environment Container.
@@ -2170,7 +2289,7 @@ 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-06-01-preview/examples/EnvironmentContainer/get.json
*/
/**
* Sample code: Get Environment Container.
@@ -2192,7 +2311,7 @@ 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-06-01-preview/examples/EnvironmentContainer/list.json
*/
/**
* Sample code: List Environment Container.
@@ -2210,7 +2329,7 @@ public final class EnvironmentContainersListSamples {
```java
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,7 +2338,7 @@ 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-06-01-preview/examples/EnvironmentVersion/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Environment Version.
@@ -2233,7 +2352,7 @@ public final class EnvironmentVersionsCreateOrUpdateSamples {
.define("string")
.withExistingEnvironment("test-rg", "my-aml-workspace", "string")
.withProperties(
- new EnvironmentVersionDetails()
+ new EnvironmentVersionProperties()
.withDescription("string")
.withProperties(mapOf("string", "string"))
.withTags(mapOf("string", "string"))
@@ -2274,7 +2393,7 @@ 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-06-01-preview/examples/EnvironmentVersion/delete.json
*/
/**
* Sample code: Delete Environment Version.
@@ -2298,7 +2417,7 @@ 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-06-01-preview/examples/EnvironmentVersion/get.json
*/
/**
* Sample code: Get Environment Version.
@@ -2319,7 +2438,7 @@ 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-06-01-preview/examples/EnvironmentVersion/list.json
*/
/**
* Sample code: List Environment Version.
@@ -2343,7 +2462,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-06-01-preview/examples/Job/cancel.json
*/
/**
* Sample code: Cancel Job.
@@ -2351,7 +2470,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);
}
}
```
@@ -2365,14 +2484,13 @@ import com.azure.resourcemanager.machinelearning.models.AmlToken;
import com.azure.resourcemanager.machinelearning.models.AutoMLJob;
import com.azure.resourcemanager.machinelearning.models.CommandJob;
import com.azure.resourcemanager.machinelearning.models.CommandJobLimits;
-import com.azure.resourcemanager.machinelearning.models.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.MLTableJobInput;
@@ -2381,17 +2499,13 @@ 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 +2513,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-06-01-preview/examples/Job/AutoMLJob/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate AutoML Job.
@@ -2422,13 +2536,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 +2554,7 @@ public final class JobsCreateOrUpdateSamples {
.withMode(OutputDeliveryMode.READ_WRITE_MOUNT)
.withUri("string")))
.withResources(
- new ResourceConfiguration()
+ new JobResourceConfiguration()
.withInstanceCount(1)
.withInstanceType("string")
.withProperties(
@@ -2461,23 +2568,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-06-01-preview/examples/Job/SweepJob/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Sweep Job.
@@ -2526,7 +2630,7 @@ public final class JobsCreateOrUpdateSamples {
.withEnvironmentId("string")
.withEnvironmentVariables(mapOf("string", "string"))
.withResources(
- new ResourceConfiguration()
+ new JobResourceConfiguration()
.withInstanceCount(1)
.withInstanceType("string")
.withProperties(
@@ -2542,7 +2646,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-06-01-preview/examples/Job/PipelineJob/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Pipeline Job.
@@ -2587,7 +2691,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-06-01-preview/examples/Job/CommandJob/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Command Job.
@@ -2632,7 +2736,7 @@ public final class JobsCreateOrUpdateSamples {
.withMode(OutputDeliveryMode.READ_WRITE_MOUNT)
.withUri("string")))
.withResources(
- new ResourceConfiguration()
+ new JobResourceConfiguration()
.withInstanceCount(1)
.withInstanceType("string")
.withProperties(
@@ -2668,7 +2772,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-06-01-preview/examples/Job/delete.json
*/
/**
* Sample code: Delete Job.
@@ -2689,7 +2793,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-06-01-preview/examples/Job/CommandJob/get.json
*/
/**
* Sample code: Get Command Job.
@@ -2701,7 +2805,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-06-01-preview/examples/Job/AutoMLJob/get.json
*/
/**
* Sample code: Get AutoML Job.
@@ -2713,7 +2817,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-06-01-preview/examples/Job/SweepJob/get.json
*/
/**
* Sample code: Get Sweep Job.
@@ -2725,7 +2829,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-06-01-preview/examples/Job/PipelineJob/get.json
*/
/**
* Sample code: Get Pipeline Job.
@@ -2746,7 +2850,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-06-01-preview/examples/Job/CommandJob/list.json
*/
/**
* Sample code: List Command Job.
@@ -2758,7 +2862,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-06-01-preview/examples/Job/PipelineJob/list.json
*/
/**
* Sample code: List Pipeline Job.
@@ -2770,7 +2874,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-06-01-preview/examples/Job/SweepJob/list.json
*/
/**
* Sample code: List Sweep Job.
@@ -2782,7 +2886,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-06-01-preview/examples/Job/AutoMLJob/list.json
*/
/**
* Sample code: List AutoML Job.
@@ -2795,17 +2899,231 @@ 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-06-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-06-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-06-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-06-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-06-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-06-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-06-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.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-06-01-preview/examples/ModelContainer/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Model Container.
@@ -2819,7 +3137,7 @@ public final class ModelContainersCreateOrUpdateSamples {
.define("testContainer")
.withExistingWorkspace("testrg123", "workspace123")
.withProperties(
- new ModelContainerDetails()
+ new ModelContainerProperties()
.withDescription("Model container description")
.withTags(mapOf("tag1", "value1", "tag2", "value2")))
.create();
@@ -2846,7 +3164,7 @@ 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-06-01-preview/examples/ModelContainer/delete.json
*/
/**
* Sample code: Delete Model Container.
@@ -2867,7 +3185,7 @@ 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-06-01-preview/examples/ModelContainer/get.json
*/
/**
* Sample code: Get Model Container.
@@ -2888,7 +3206,7 @@ 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-06-01-preview/examples/ModelContainer/list.json
*/
/**
* Sample code: List Model Container.
@@ -2905,15 +3223,14 @@ public final class ModelContainersListSamples {
```java
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-06-01-preview/examples/ModelVersion/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Model Version.
@@ -2927,13 +3244,13 @@ public final class ModelVersionsCreateOrUpdateSamples {
.define("string")
.withExistingModel("test-rg", "my-aml-workspace", "string")
.withProperties(
- new ModelVersionDetails()
+ new ModelVersionProperties()
.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)
+ .withModelType("CustomModel")
.withModelUri("string"))
.create();
}
@@ -2959,7 +3276,7 @@ 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-06-01-preview/examples/ModelVersion/delete.json
*/
/**
* Sample code: Delete Model Version.
@@ -2980,7 +3297,7 @@ 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-06-01-preview/examples/ModelVersion/get.json
*/
/**
* Sample code: Get Model Version.
@@ -3001,7 +3318,7 @@ 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-06-01-preview/examples/ModelVersion/list.json
*/
/**
* Sample code: List Model Version.
@@ -3053,7 +3370,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-06-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Kubernetes Online Deployment.
@@ -3117,7 +3434,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-06-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Managed Online Deployment.
@@ -3199,7 +3516,7 @@ 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-06-01-preview/examples/OnlineDeployment/delete.json
*/
/**
* Sample code: Delete Online Deployment.
@@ -3221,7 +3538,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-06-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/get.json
*/
/**
* Sample code: Get Kubernetes Online Deployment.
@@ -3236,7 +3553,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-06-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/get.json
*/
/**
* Sample code: Get Managed Online Deployment.
@@ -3262,7 +3579,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-06-01-preview/examples/OnlineDeployment/getLogs.json
*/
/**
* Sample code: Get Online Deployment Logs.
@@ -3292,7 +3609,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-06-01-preview/examples/OnlineDeployment/list.json
*/
/**
* Sample code: List Online Deployments.
@@ -3315,7 +3632,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-06-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/listSkus.json
*/
/**
* Sample code: List Managed Online Deployment Skus.
@@ -3330,7 +3647,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-06-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/listSkus.json
*/
/**
* Sample code: List Kubernetes Online Deployment Skus.
@@ -3349,24 +3666,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-06-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/update.json
*/
/**
* Sample code: Update Managed Online Deployment.
@@ -3374,8 +3684,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 +3693,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 +3704,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-06-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/update.json
*/
/**
* Sample code: Update Kubernetes Online Deployment.
@@ -3413,8 +3712,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 +3721,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 +3750,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,7 +3760,7 @@ 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-06-01-preview/examples/OnlineEndpoint/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Online Endpoint.
@@ -3487,7 +3775,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,7 +3818,7 @@ 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-06-01-preview/examples/OnlineEndpoint/delete.json
*/
/**
* Sample code: Delete Online Endpoint.
@@ -3551,7 +3839,7 @@ 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-06-01-preview/examples/OnlineEndpoint/get.json
*/
/**
* Sample code: Get Online Endpoint.
@@ -3572,7 +3860,7 @@ 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-06-01-preview/examples/OnlineEndpoint/getToken.json
*/
/**
* Sample code: GetToken Online Endpoint.
@@ -3596,7 +3884,7 @@ 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-06-01-preview/examples/OnlineEndpoint/list.json
*/
/**
* Sample code: List Online Endpoint.
@@ -3629,7 +3917,7 @@ 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-06-01-preview/examples/OnlineEndpoint/listKeys.json
*/
/**
* Sample code: ListKeys Online Endpoint.
@@ -3653,7 +3941,7 @@ 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-06-01-preview/examples/OnlineEndpoint/regenerateKeys.json
*/
/**
* Sample code: RegenerateKeys Online Endpoint.
@@ -3681,11 +3969,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,7 +3978,7 @@ 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-06-01-preview/examples/OnlineEndpoint/update.json
*/
/**
* Sample code: Update Online Endpoint.
@@ -3702,7 +3987,7 @@ public final class OnlineEndpointsUpdateSamples {
*/
public static void updateOnlineEndpoint(com.azure.resourcemanager.machinelearning.MachineLearningManager manager)
throws IOException {
- OnlineEndpointData resource =
+ OnlineEndpoint resource =
manager
.onlineEndpoints()
.getWithResponse("test-rg", "my-aml-workspace", "testEndpointName", Context.NONE)
@@ -3719,15 +4004,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 +4028,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-06-01-preview/examples/Workspace/operationsList.json
*/
/**
* Sample code: OperationsList.
@@ -3774,7 +4050,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-06-01-preview/examples/PrivateEndpointConnection/createOrUpdate.json
*/
/**
* Sample code: WorkspacePutPrivateEndpointConnection.
@@ -3804,7 +4080,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-06-01-preview/examples/PrivateEndpointConnection/delete.json
*/
/**
* Sample code: WorkspaceDeletePrivateEndpointConnection.
@@ -3828,7 +4104,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-06-01-preview/examples/PrivateEndpointConnection/get.json
*/
/**
* Sample code: WorkspaceGetPrivateEndpointConnection.
@@ -3852,7 +4128,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-06-01-preview/examples/PrivateEndpointConnection/list.json
*/
/**
* Sample code: StorageAccountListPrivateEndpointConnections.
@@ -3874,7 +4150,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-06-01-preview/examples/PrivateLinkResource/list.json
*/
/**
* Sample code: WorkspaceListPrivateLinkResources.
@@ -3896,7 +4172,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-06-01-preview/examples/Quota/list.json
*/
/**
* Sample code: List workspace quotas by VMFamily.
@@ -3922,7 +4198,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-06-01-preview/examples/Quota/update.json
*/
/**
* Sample code: update quotas.
@@ -3955,6 +4231,135 @@ public final class QuotasUpdateSamples {
}
```
+### 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-06-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-06-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-06-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-06-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, Context.NONE);
+ }
+}
+```
+
### Usages_List
```java
@@ -3963,7 +4368,7 @@ 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-02-01-preview/examples/Usage/list.json
+ * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-06-01-preview/examples/Usage/list.json
*/
/**
* Sample code: List Usages.
@@ -3984,7 +4389,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-06-01-preview/examples/VirtualMachineSize/list.json
*/
/**
* Sample code: List VM Sizes.
@@ -4000,10 +4405,13 @@ public final class VirtualMachineSizesListSamples {
### WorkspaceConnections_Create
```java
+import com.azure.resourcemanager.machinelearning.models.ConnectionCategory;
+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-06-01-preview/examples/WorkspaceConnection/create.json
*/
/**
* Sample code: CreateWorkspaceConnection.
@@ -4016,10 +4424,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(ConnectionCategory.CONTAINER_REGISTRY)
+ .withTarget("www.facebook.com"))
.create();
}
}
@@ -4033,7 +4441,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-06-01-preview/examples/WorkspaceConnection/delete.json
*/
/**
* Sample code: DeleteWorkspaceConnection.
@@ -4057,7 +4465,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-06-01-preview/examples/WorkspaceConnection/get.json
*/
/**
* Sample code: GetWorkspaceConnection.
@@ -4079,7 +4487,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-06-01-preview/examples/WorkspaceConnection/list.json
*/
/**
* Sample code: ListWorkspaceConnections.
@@ -4088,7 +4496,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 +4511,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-06-01-preview/examples/WorkspaceFeature/list.json
*/
/**
* Sample code: List Workspace features.
@@ -4133,7 +4543,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-06-01-preview/examples/Workspace/create.json
*/
/**
* Sample code: Create Workspace.
@@ -4212,7 +4622,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-06-01-preview/examples/Workspace/delete.json
*/
/**
* Sample code: Delete Workspace.
@@ -4237,7 +4647,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-06-01-preview/examples/Workspace/diagnose.json
*/
/**
* Sample code: Diagnose Workspace.
@@ -4286,7 +4696,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-06-01-preview/examples/Workspace/get.json
*/
/**
* Sample code: Get Workspace.
@@ -4307,7 +4717,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-06-01-preview/examples/Workspace/listBySubscription.json
*/
/**
* Sample code: Get Workspaces by subscription.
@@ -4329,7 +4739,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-06-01-preview/examples/Workspace/listByResourceGroup.json
*/
/**
* Sample code: Get Workspaces by Resource Group.
@@ -4351,7 +4761,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-06-01-preview/examples/Workspace/listKeys.json
*/
/**
* Sample code: List Workspace Keys.
@@ -4372,7 +4782,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-06-01-preview/examples/Workspace/listNotebookAccessToken.json
*/
/**
* Sample code: List Workspace Keys.
@@ -4393,7 +4803,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-06-01-preview/examples/Notebook/listKeys.json
*/
/**
* Sample code: List Workspace Keys.
@@ -4414,7 +4824,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-06-01-preview/examples/ExternalFQDN/get.json
*/
/**
* Sample code: ListOutboundNetworkDependenciesEndpoints.
@@ -4438,7 +4848,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-06-01-preview/examples/Workspace/listStorageAccountKeys.json
*/
/**
* Sample code: List Workspace Keys.
@@ -4459,7 +4869,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-06-01-preview/examples/Notebook/prepare.json
*/
/**
* Sample code: Prepare Notebook.
@@ -4480,7 +4890,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-06-01-preview/examples/Workspace/resyncKeys.json
*/
/**
* Sample code: Resync Workspace Keys.
@@ -4503,7 +4913,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-06-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 146eb972d8342..a3c9e95489f0f 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-06.
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 763294717f948..51765905c9499 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
@@ -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,7 @@
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.SchedulesImpl;
import com.azure.resourcemanager.machinelearning.implementation.UsagesImpl;
import com.azure.resourcemanager.machinelearning.implementation.VirtualMachineSizesImpl;
import com.azure.resourcemanager.machinelearning.implementation.WorkspaceConnectionsImpl;
@@ -64,6 +66,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 +75,7 @@
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.Schedules;
import com.azure.resourcemanager.machinelearning.models.Usages;
import com.azure.resourcemanager.machinelearning.models.VirtualMachineSizes;
import com.azure.resourcemanager.machinelearning.models.WorkspaceConnections;
@@ -131,6 +135,8 @@ public final class MachineLearningManager {
private Jobs jobs;
+ private LabelingJobs labelingJobs;
+
private ModelContainers modelContainers;
private ModelVersions modelVersions;
@@ -139,6 +145,8 @@ public final class MachineLearningManager {
private OnlineDeployments onlineDeployments;
+ private Schedules schedules;
+
private WorkspaceFeatures workspaceFeatures;
private final AzureMachineLearningWorkspaces clientObject;
@@ -306,7 +314,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 +469,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 +482,7 @@ public WorkspaceConnections workspaceConnections() {
}
/**
- * Gets the resource collection API of BatchEndpoints. It manages BatchEndpointData.
+ * Gets the resource collection API of BatchEndpoints. It manages BatchEndpoint.
*
* @return Resource collection API of BatchEndpoints.
*/
@@ -485,7 +494,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 +506,7 @@ public BatchDeployments batchDeployments() {
}
/**
- * Gets the resource collection API of CodeContainers. It manages CodeContainerData.
+ * Gets the resource collection API of CodeContainers. It manages CodeContainer.
*
* @return Resource collection API of CodeContainers.
*/
@@ -509,7 +518,7 @@ public CodeContainers codeContainers() {
}
/**
- * Gets the resource collection API of CodeVersions. It manages CodeVersionData.
+ * Gets the resource collection API of CodeVersions. It manages CodeVersion.
*
* @return Resource collection API of CodeVersions.
*/
@@ -521,7 +530,7 @@ public CodeVersions codeVersions() {
}
/**
- * Gets the resource collection API of ComponentContainers. It manages ComponentContainerData.
+ * Gets the resource collection API of ComponentContainers. It manages ComponentContainer.
*
* @return Resource collection API of ComponentContainers.
*/
@@ -533,7 +542,7 @@ public ComponentContainers componentContainers() {
}
/**
- * Gets the resource collection API of ComponentVersions. It manages ComponentVersionData.
+ * Gets the resource collection API of ComponentVersions. It manages ComponentVersion.
*
* @return Resource collection API of ComponentVersions.
*/
@@ -545,7 +554,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 +566,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 +578,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 +590,7 @@ public Datastores datastores() {
}
/**
- * Gets the resource collection API of EnvironmentContainers. It manages EnvironmentContainerData.
+ * Gets the resource collection API of EnvironmentContainers. It manages EnvironmentContainer.
*
* @return Resource collection API of EnvironmentContainers.
*/
@@ -593,7 +602,7 @@ public EnvironmentContainers environmentContainers() {
}
/**
- * Gets the resource collection API of EnvironmentVersions. It manages EnvironmentVersionData.
+ * Gets the resource collection API of EnvironmentVersions. It manages EnvironmentVersion.
*
* @return Resource collection API of EnvironmentVersions.
*/
@@ -605,7 +614,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 +626,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. It manages ModelContainer.
*
* @return Resource collection API of ModelContainers.
*/
@@ -629,7 +650,7 @@ public ModelContainers modelContainers() {
}
/**
- * Gets the resource collection API of ModelVersions. It manages ModelVersionData.
+ * Gets the resource collection API of ModelVersions. It manages ModelVersion.
*
* @return Resource collection API of ModelVersions.
*/
@@ -641,7 +662,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 +674,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 +685,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.
*
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/AzureMachineLearningWorkspaces.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/AzureMachineLearningWorkspaces.java
index 431d49bfc7f19..549cd1e274ee0 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/AzureMachineLearningWorkspaces.java
@@ -191,6 +191,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,6 +226,13 @@ 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.
*
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 cfc4d11cfdb4e..547a679cd9186 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 5b61e1422061f..df3d62f874367 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 03d7ba0721bec..84e54dd52dfb2 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 da65902f46c42..6284f9bdcd46d 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 eb2edf8ff6813..2a80c62225570 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 a1f3e0bae9ecb..a3da844db0a62 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 59109ed677d35..38d7965a7ea4e 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 533a6f679bbbb..bcb3faa55ed8c 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 f7aa9b60dbda8..e83b7a4f1a0ad 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 039579d9f50f2..ae4a5f982a28f 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 2585f01d46cdd..8444385bf89ec 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 ee7be12767add..2f4805271c2cb 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 6d280d7c1f6f9..bd950bf0f9ed4 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 0000000000000..40f878da75f98
--- /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 78142802c0e57..28a7cd2b51f63 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 317537e9c8439..0a3bd35fca246 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 46bea196ac72d..149ff167d4323 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 7dfed8a382a26..afa0ac76816fc 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 list(String resourceGroupName, String workspaceName);
/**
* List Online Endpoints.
@@ -55,7 +55,7 @@ public interface OnlineEndpointsClient {
* @return a paginated list of OnlineEndpoint entities as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
+ PagedIterable list(
String resourceGroupName,
String workspaceName,
String name,
@@ -136,7 +136,7 @@ SyncPoller, Void> beginDelete(
* @return online Endpoint.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OnlineEndpointDataInner get(String resourceGroupName, String workspaceName, String endpointName);
+ OnlineEndpointInner get(String resourceGroupName, String workspaceName, String endpointName);
/**
* Get Online Endpoint.
@@ -151,7 +151,7 @@ SyncPoller, Void> beginDelete(
* @return online Endpoint along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
+ Response getWithResponse(
String resourceGroupName, String workspaceName, String endpointName, Context context);
/**
@@ -167,11 +167,11 @@ Response getWithResponse(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OnlineEndpointDataInner> beginUpdate(
+ SyncPoller, OnlineEndpointInner> beginUpdate(
String resourceGroupName,
String workspaceName,
String endpointName,
- PartialOnlineEndpointPartialTrackedResource body);
+ PartialMinimalTrackedResourceWithIdentity body);
/**
* Update Online Endpoint (asynchronous).
@@ -187,11 +187,11 @@ SyncPoller, OnlineEndpointDataInner> beginUp
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OnlineEndpointDataInner> beginUpdate(
+ SyncPoller, OnlineEndpointInner> beginUpdate(
String resourceGroupName,
String workspaceName,
String endpointName,
- PartialOnlineEndpointPartialTrackedResource body,
+ PartialMinimalTrackedResourceWithIdentity body,
Context context);
/**
@@ -207,11 +207,11 @@ SyncPoller, OnlineEndpointDataInner> beginUp
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OnlineEndpointDataInner update(
+ OnlineEndpointInner update(
String resourceGroupName,
String workspaceName,
String endpointName,
- PartialOnlineEndpointPartialTrackedResource body);
+ PartialMinimalTrackedResourceWithIdentity body);
/**
* Update Online Endpoint (asynchronous).
@@ -227,11 +227,11 @@ OnlineEndpointDataInner update(
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OnlineEndpointDataInner update(
+ OnlineEndpointInner update(
String resourceGroupName,
String workspaceName,
String endpointName,
- PartialOnlineEndpointPartialTrackedResource body,
+ PartialMinimalTrackedResourceWithIdentity body,
Context context);
/**
@@ -247,8 +247,8 @@ OnlineEndpointDataInner update(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OnlineEndpointDataInner> beginCreateOrUpdate(
- String resourceGroupName, String workspaceName, String endpointName, OnlineEndpointDataInner body);
+ SyncPoller, OnlineEndpointInner> beginCreateOrUpdate(
+ String resourceGroupName, String workspaceName, String endpointName, OnlineEndpointInner body);
/**
* Create or update Online Endpoint (asynchronous).
@@ -264,12 +264,8 @@ SyncPoller, OnlineEndpointDataInner> beginCr
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OnlineEndpointDataInner> beginCreateOrUpdate(
- String resourceGroupName,
- String workspaceName,
- String endpointName,
- OnlineEndpointDataInner body,
- Context context);
+ SyncPoller, OnlineEndpointInner> beginCreateOrUpdate(
+ String resourceGroupName, String workspaceName, String endpointName, OnlineEndpointInner body, Context context);
/**
* Create or update Online Endpoint (asynchronous).
@@ -284,8 +280,8 @@ SyncPoller, OnlineEndpointDataInner> beginCr
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OnlineEndpointDataInner createOrUpdate(
- String resourceGroupName, String workspaceName, String endpointName, OnlineEndpointDataInner body);
+ OnlineEndpointInner createOrUpdate(
+ String resourceGroupName, String workspaceName, String endpointName, OnlineEndpointInner body);
/**
* Create or update Online Endpoint (asynchronous).
@@ -301,12 +297,8 @@ OnlineEndpointDataInner createOrUpdate(
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OnlineEndpointDataInner createOrUpdate(
- String resourceGroupName,
- String workspaceName,
- String endpointName,
- OnlineEndpointDataInner body,
- Context context);
+ OnlineEndpointInner createOrUpdate(
+ String resourceGroupName, String workspaceName, String endpointName, OnlineEndpointInner body, Context context);
/**
* List EndpointAuthKeys for an Endpoint using Key-based authentication.
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/SchedulesClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/SchedulesClient.java
new file mode 100644
index 0000000000000..9969ad7f77dfe
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/SchedulesClient.java
@@ -0,0 +1,197 @@
+// 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.ScheduleInner;
+
+/** An instance of this class provides access to all the operations defined in SchedulesClient. */
+public interface SchedulesClient {
+ /**
+ * List schedules in specified 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 Schedule entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String workspaceName);
+
+ /**
+ * List schedules in specified 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 context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 Schedule entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String workspaceName, String skip, Context context);
+
+ /**
+ * Delete schedule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Schedule name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, String name);
+
+ /**
+ * Delete schedule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Schedule name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String workspaceName, String name, Context context);
+
+ /**
+ * Delete schedule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Schedule name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String name);
+
+ /**
+ * Delete schedule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Schedule name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String name, Context context);
+
+ /**
+ * Get schedule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Schedule name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return schedule.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ScheduleInner get(String resourceGroupName, String workspaceName, String name);
+
+ /**
+ * Get schedule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Schedule name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return schedule along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String workspaceName, String name, Context context);
+
+ /**
+ * Create or update schedule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Schedule name.
+ * @param body Schedule definition.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException 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, ScheduleInner> beginCreateOrUpdate(
+ String resourceGroupName, String workspaceName, String name, ScheduleInner body);
+
+ /**
+ * Create or update schedule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Schedule name.
+ * @param body Schedule definition.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException 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, ScheduleInner> beginCreateOrUpdate(
+ String resourceGroupName, String workspaceName, String name, ScheduleInner body, Context context);
+
+ /**
+ * Create or update schedule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Schedule name.
+ * @param body Schedule definition.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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)
+ ScheduleInner createOrUpdate(String resourceGroupName, String workspaceName, String name, ScheduleInner body);
+
+ /**
+ * Create or update schedule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name Schedule name.
+ * @param body Schedule definition.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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)
+ ScheduleInner createOrUpdate(
+ String resourceGroupName, String workspaceName, String name, ScheduleInner body, Context context);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/WorkspaceConnectionsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/WorkspaceConnectionsClient.java
index 9f057a3dd81f8..a8fbefe654acc 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/WorkspaceConnectionsClient.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/WorkspaceConnectionsClient.java
@@ -9,79 +9,83 @@
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.WorkspaceConnectionInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.WorkspaceConnectionPropertiesV2BasicResourceInner;
/** An instance of this class provides access to all the operations defined in WorkspaceConnectionsClient. */
public interface WorkspaceConnectionsClient {
/**
- * List all connections under a AML workspace.
+ * The create operation.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param parameters The object for creating or updating a new workspace connection.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return paginated list of Workspace connection objects as paginated response with {@link PagedIterable}.
+ * @return the response.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String workspaceName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WorkspaceConnectionPropertiesV2BasicResourceInner create(
+ String resourceGroupName,
+ String workspaceName,
+ String connectionName,
+ WorkspaceConnectionPropertiesV2BasicResourceInner parameters);
/**
- * List all connections under a AML workspace.
+ * The create operation.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
- * @param target Target of the workspace connection.
- * @param category Category of the workspace connection.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param parameters The object for creating or updating a new workspace connection.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return paginated list of Workspace connection objects as paginated response with {@link PagedIterable}.
+ * @return the response body along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
- String resourceGroupName, String workspaceName, String target, String category, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createWithResponse(
+ String resourceGroupName,
+ String workspaceName,
+ String connectionName,
+ WorkspaceConnectionPropertiesV2BasicResourceInner parameters,
+ Context context);
/**
- * Add a new workspace connection.
+ * The get operation.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param connectionName Friendly name of the workspace connection.
- * @param parameters The object for creating or updating a new workspace connection.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return workspace connection.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WorkspaceConnectionInner create(
- String resourceGroupName, String workspaceName, String connectionName, WorkspaceConnectionInner parameters);
+ WorkspaceConnectionPropertiesV2BasicResourceInner get(
+ String resourceGroupName, String workspaceName, String connectionName);
/**
- * Add a new workspace connection.
+ * The get operation.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param connectionName Friendly name of the workspace connection.
- * @param parameters The object for creating or updating a new workspace connection.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return workspace connection along with {@link Response}.
+ * @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response