diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/CHANGELOG.md b/sdk/machinelearning/azure-resourcemanager-machinelearning/CHANGELOG.md
index 66d924503f0c..a2653e2399f4 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/CHANGELOG.md
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/CHANGELOG.md
@@ -1,14 +1,239 @@
# Release History
-## 1.2.0-beta.1 (Unreleased)
+## 1.0.0-beta.1 (2025-02-11)
-### Features Added
+- 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-2024-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Breaking Changes
-### Bugs Fixed
+#### `models.UserCreatedAcrAccount` was removed
+
+#### `models.UserCreatedStorageAccount` was removed
+
+#### `models.AzureBlobDatastore` was modified
+
+* `isDefault()` was removed
+
+#### `models.SynapseSpark` was modified
+
+* `provisioningErrors()` was removed
+* `provisioningState()` was removed
+* `createdOn()` was removed
+* `isAttachedCompute()` was removed
+* `modifiedOn()` was removed
+
+#### `models.AcrDetails` was modified
+
+* `userCreatedAcrAccount()` was removed
+* `withUserCreatedAcrAccount(models.UserCreatedAcrAccount)` was removed
+
+#### `models.Aks` was modified
+
+* `provisioningErrors()` was removed
+* `modifiedOn()` was removed
+* `provisioningState()` was removed
+* `createdOn()` was removed
+* `isAttachedCompute()` was removed
+
+#### `models.DataLakeAnalytics` was modified
+
+* `provisioningState()` was removed
+* `createdOn()` was removed
+* `isAttachedCompute()` was removed
+* `provisioningErrors()` was removed
+* `modifiedOn()` was removed
+
+#### `models.OneLakeDatastore` was modified
+
+* `isDefault()` was removed
+
+#### `models.ServicePrincipalAuthTypeWorkspaceConnectionProperties` was modified
+
+* `createdByWorkspaceArmId()` was removed
+* `group()` was removed
+
+#### `models.AzureDataLakeGen1Datastore` was modified
+
+* `isDefault()` was removed
+
+#### `models.Kubernetes` was modified
+
+* `modifiedOn()` was removed
+* `isAttachedCompute()` was removed
+* `provisioningState()` was removed
+* `provisioningErrors()` was removed
+* `createdOn()` was removed
+
+#### `models.ManagedOnlineDeployment` was modified
+
+* `provisioningState()` was removed
+
+#### `models.OAuth2AuthTypeWorkspaceConnectionProperties` was modified
+
+* `group()` was removed
+* `createdByWorkspaceArmId()` was removed
+
+#### `models.PipelineJob` was modified
+
+* `status()` was removed
+
+#### `models.StorageAccountDetails` was modified
+
+* `userCreatedStorageAccount()` was removed
+* `withUserCreatedStorageAccount(models.UserCreatedStorageAccount)` was removed
+
+#### `models.VirtualMachine` was modified
+
+* `modifiedOn()` was removed
+* `isAttachedCompute()` was removed
+* `createdOn()` was removed
+* `provisioningState()` was removed
+* `provisioningErrors()` was removed
+
+#### `models.AmlCompute` was modified
+
+* `provisioningErrors()` was removed
+* `createdOn()` was removed
+* `modifiedOn()` was removed
+* `isAttachedCompute()` was removed
+* `provisioningState()` was removed
+
+#### `models.AzureDataLakeGen2Datastore` was modified
+
+* `isDefault()` was removed
+
+#### `models.Databricks` was modified
+
+* `provisioningErrors()` was removed
+* `isAttachedCompute()` was removed
+* `provisioningState()` was removed
+* `createdOn()` was removed
+* `modifiedOn()` was removed
+
+#### `models.ApiKeyAuthWorkspaceConnectionProperties` was modified
+
+* `createdByWorkspaceArmId()` was removed
+* `group()` was removed
+
+#### `models.ComputeInstance` was modified
+
+* `modifiedOn()` was removed
+* `isAttachedCompute()` was removed
+* `provisioningErrors()` was removed
+* `provisioningState()` was removed
+* `createdOn()` was removed
+
+#### `models.WorkspaceConnections` was modified
+
+* `list(java.lang.String,java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was removed
+
+#### `models.NoneAuthTypeWorkspaceConnectionProperties` was modified
+
+* `createdByWorkspaceArmId()` was removed
+* `group()` was removed
+
+#### `models.CustomKeysWorkspaceConnectionProperties` was modified
+
+* `createdByWorkspaceArmId()` was removed
+* `group()` was removed
+
+#### `models.UsernamePasswordAuthTypeWorkspaceConnectionProperties` was modified
+
+* `createdByWorkspaceArmId()` was removed
+* `group()` was removed
+
+#### `models.AccountKeyAuthTypeWorkspaceConnectionProperties` was modified
+
+* `group()` was removed
+* `createdByWorkspaceArmId()` was removed
+
+#### `models.AzureFileDatastore` was modified
+
+* `isDefault()` was removed
+
+#### `models.SparkJob` was modified
+
+* `status()` was removed
+
+#### `models.AccessKeyAuthTypeWorkspaceConnectionProperties` was modified
+
+* `group()` was removed
+* `createdByWorkspaceArmId()` was removed
+
+#### `models.AadAuthTypeWorkspaceConnectionProperties` was modified
+
+* `group()` was removed
+* `createdByWorkspaceArmId()` was removed
+
+#### `models.SasAuthTypeWorkspaceConnectionProperties` was modified
+
+* `group()` was removed
+* `createdByWorkspaceArmId()` was removed
+
+#### `models.CommandJob` was modified
+
+* `status()` was removed
+
+#### `models.ManagedIdentityAuthTypeWorkspaceConnectionProperties` was modified
+
+* `createdByWorkspaceArmId()` was removed
+* `group()` was removed
+
+#### `models.DataFactory` was modified
+
+* `isAttachedCompute()` was removed
+* `provisioningErrors()` was removed
+* `provisioningState()` was removed
+* `createdOn()` was removed
+* `modifiedOn()` was removed
+
+#### `models.SweepJob` was modified
+
+* `status()` was removed
+
+#### `models.AutoMLJob` was modified
+
+* `status()` was removed
+
+#### `models.HDInsight` was modified
+
+* `modifiedOn()` was removed
+* `isAttachedCompute()` was removed
+* `createdOn()` was removed
+* `provisioningErrors()` was removed
+* `provisioningState()` was removed
+
+#### `models.KubernetesOnlineDeployment` was modified
+
+* `provisioningState()` was removed
+
+#### `models.PatAuthTypeWorkspaceConnectionProperties` was modified
+
+* `createdByWorkspaceArmId()` was removed
+* `group()` was removed
+
+### Features Added
+
+* `models.WorkspaceConnectionPropertiesV2BasicResource$Update` was added
+
+* `models.WorkspaceConnectionUpdateParameter` was added
+
+* `models.FirewallSku` was added
+
+* `models.WorkspaceConnectionPropertiesV2BasicResource$UpdateStages` was added
+
+#### `models.WorkspaceConnections` was modified
+
+* `list(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.Boolean,com.azure.core.util.Context)` was added
+
+#### `models.ManagedNetworkSettings` was modified
+
+* `firewallSku()` was added
+
+#### `models.WorkspaceConnectionPropertiesV2BasicResource` was modified
-### Other Changes
+* `resourceGroupName()` was added
+* `update()` was added
## 1.1.0 (2024-08-22)
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/README.md b/sdk/machinelearning/azure-resourcemanager-machinelearning/README.md
index 543481d2fa70..2ed1f564d45a 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-2024-04. 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-2024-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-machinelearning
- 1.1.0
+ 1.2.0-beta.1
```
[//]: # ({x-version-update-end})
@@ -52,7 +52,7 @@ Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment
Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:
```java
-AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
+AzureProfile profile = new AzureProfile(AzureCloud.AZURE_PUBLIC_CLOUD);
TokenCredential credential = new DefaultAzureCredentialBuilder()
.authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
.build();
@@ -60,7 +60,7 @@ MachineLearningManager manager = MachineLearningManager
.authenticate(credential, profile);
```
-The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
+The sample code assumes global Azure. Please change the `AzureCloud.AZURE_PUBLIC_CLOUD` variable if otherwise.
See [Authentication][authenticate] for more options.
@@ -78,39 +78,37 @@ workspace = machineLearningManager.workspaces()
.withSku(new Sku().withName("Basic").withTier(SkuTier.BASIC))
.withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED))
.withFriendlyName(workspaceName)
- .withStorageAccount(
- storageManager.storageAccounts()
- .define(storageName)
- .withRegion(REGION)
- .withExistingResourceGroup(resourceGroupName)
- .withSku(StorageAccountSkuType.STANDARD_LRS)
- .withMinimumTlsVersion(MinimumTlsVersion.TLS1_0)
- .withHnsEnabled(false)
- .withAccessFromAzureServices()
- .withOnlyHttpsTraffic()
- .withBlobStorageAccountKind().withAccessTier(AccessTier.HOT)
- .create()
- .id())
- .withKeyVault(
- keyVaultManager.vaults()
- .define(keyVaultName)
- .withRegion(REGION)
- .withExistingResourceGroup(resourceGroupName)
- .withEmptyAccessPolicy()
- .withSku(SkuName.STANDARD)
- .withDeploymentDisabled()
- .withAccessFromAllNetworks()
- .create()
- .id())
- .withApplicationInsights(
- applicationInsightsManager.components()
- .define(insightName)
- .withRegion(REGION)
- .withExistingResourceGroup(resourceGroupName)
- .withKind("web")
- .withApplicationType(ApplicationType.WEB)
- .create()
- .id())
+ .withStorageAccount(storageManager.storageAccounts()
+ .define(storageName)
+ .withRegion(REGION)
+ .withExistingResourceGroup(resourceGroupName)
+ .withSku(StorageAccountSkuType.STANDARD_LRS)
+ .withMinimumTlsVersion(MinimumTlsVersion.TLS1_0)
+ .withHnsEnabled(false)
+ .withAccessFromAzureServices()
+ .withOnlyHttpsTraffic()
+ .withBlobStorageAccountKind()
+ .withAccessTier(AccessTier.HOT)
+ .create()
+ .id())
+ .withKeyVault(keyVaultManager.vaults()
+ .define(keyVaultName)
+ .withRegion(REGION)
+ .withExistingResourceGroup(resourceGroupName)
+ .withEmptyAccessPolicy()
+ .withSku(SkuName.STANDARD)
+ .withDeploymentDisabled()
+ .withAccessFromAllNetworks()
+ .create()
+ .id())
+ .withApplicationInsights(applicationInsightsManager.components()
+ .define(insightName)
+ .withRegion(REGION)
+ .withExistingResourceGroup(resourceGroupName)
+ .withKind("web")
+ .withApplicationType(ApplicationType.WEB)
+ .create()
+ .id())
.create();
```
[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/machinelearning/azure-resourcemanager-machinelearning/SAMPLE.md)
@@ -143,5 +141,3 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
[coc]: https://opensource.microsoft.com/codeofconduct/
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
-
-
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/SAMPLE.md b/sdk/machinelearning/azure-resourcemanager-machinelearning/SAMPLE.md
index 0ef21ec43a9a..10f7789732b2 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/SAMPLE.md
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/SAMPLE.md
@@ -335,6 +335,7 @@
- [Get](#workspaceconnections_get)
- [List](#workspaceconnections_list)
- [ListSecrets](#workspaceconnections_listsecrets)
+- [Update](#workspaceconnections_update)
## WorkspaceFeatures
@@ -384,7 +385,7 @@ import java.util.Map;
public final class BatchDeploymentsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/BatchDeployment/createOrUpdate.json
*/
/**
@@ -398,19 +399,19 @@ public final class BatchDeploymentsCreateOrUpdateSamples {
.define("testDeploymentName")
.withRegion("string")
.withExistingBatchEndpoint("test-rg", "my-aml-workspace", "testEndpointName")
- .withProperties(new BatchDeploymentProperties().withDescription("string")
- .withProperties(mapOf("string", "string"))
+ .withProperties(new BatchDeploymentProperties()
.withCodeConfiguration(
new CodeConfiguration().withCodeId("fakeTokenPlaceholder").withScoringScript("string"))
+ .withDescription("string")
.withEnvironmentId("string")
.withEnvironmentVariables(mapOf("string", "string"))
+ .withProperties(mapOf("string", "string"))
.withCompute("string")
.withErrorThreshold(1)
- .withRetrySettings(new BatchRetrySettings().withMaxRetries(1).withTimeout(Duration.parse("PT5M")))
- .withMiniBatchSize(1L)
.withLoggingLevel(BatchLoggingLevel.INFO)
- .withModel(new IdAssetReference().withAssetId("string"))
.withMaxConcurrencyPerInstance(1)
+ .withMiniBatchSize(1L)
+ .withModel(new IdAssetReference().withAssetId("string"))
.withOutputAction(BatchOutputAction.SUMMARY_ONLY)
.withOutputFileName("string")
.withResources(new DeploymentResourceConfiguration().withInstanceCount(1)
@@ -418,11 +419,12 @@ public final class BatchDeploymentsCreateOrUpdateSamples {
.withProperties(mapOf("string",
SerializerFactory.createDefaultManagementSerializerAdapter()
.deserialize("{\"cd3c37dc-2876-4ca4-8a54-21bd7619724a\":null}", Object.class,
- SerializerEncoding.JSON)))))
+ SerializerEncoding.JSON))))
+ .withRetrySettings(new BatchRetrySettings().withMaxRetries(1).withTimeout(Duration.parse("PT5M"))))
.withTags(mapOf())
- .withKind("string")
.withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
.withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withKind("string")
.withSku(new Sku().withName("string")
.withTier(SkuTier.FREE)
.withSize("string")
@@ -454,7 +456,7 @@ public final class BatchDeploymentsCreateOrUpdateSamples {
public final class BatchDeploymentsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/BatchDeployment/delete.json
*/
/**
@@ -480,7 +482,7 @@ public final class BatchDeploymentsDeleteSamples {
public final class BatchDeploymentsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/BatchDeployment/get.json
*/
/**
@@ -506,7 +508,7 @@ public final class BatchDeploymentsGetSamples {
public final class BatchDeploymentsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/BatchDeployment/list.json
*/
/**
@@ -537,7 +539,7 @@ import java.util.Map;
public final class BatchDeploymentsUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/BatchDeployment/update.json
*/
/**
@@ -591,7 +593,7 @@ import java.util.Map;
public final class BatchEndpointsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/BatchEndpoint/createOrUpdate.json
*/
/**
@@ -605,14 +607,14 @@ public final class BatchEndpointsCreateOrUpdateSamples {
.define("testEndpointName")
.withRegion("string")
.withExistingWorkspace("test-rg", "my-aml-workspace")
- .withProperties(new BatchEndpointProperties().withDescription("string")
+ .withProperties(new BatchEndpointProperties().withAuthMode(EndpointAuthMode.AMLTOKEN)
+ .withDescription("string")
.withProperties(mapOf("string", "string"))
- .withAuthMode(EndpointAuthMode.AMLTOKEN)
.withDefaults(new BatchEndpointDefaults().withDeploymentName("string")))
.withTags(mapOf())
- .withKind("string")
.withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
.withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withKind("string")
.withSku(new Sku().withName("string")
.withTier(SkuTier.FREE)
.withSize("string")
@@ -644,7 +646,7 @@ public final class BatchEndpointsCreateOrUpdateSamples {
public final class BatchEndpointsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/BatchEndpoint/delete.json
*/
/**
@@ -669,7 +671,7 @@ public final class BatchEndpointsDeleteSamples {
public final class BatchEndpointsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/BatchEndpoint/get.json
*/
/**
@@ -694,7 +696,7 @@ public final class BatchEndpointsGetSamples {
public final class BatchEndpointsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/BatchEndpoint/list.json
*/
/**
@@ -718,7 +720,7 @@ public final class BatchEndpointsListSamples {
public final class BatchEndpointsListKeysSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/BatchEndpoint/listKeys.json
*/
/**
@@ -752,7 +754,7 @@ import java.util.Map;
public final class BatchEndpointsUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/BatchEndpoint/update.json
*/
/**
@@ -801,7 +803,7 @@ import java.util.Map;
public final class CodeContainersCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/CodeContainer/createOrUpdate.json
*/
/**
@@ -842,7 +844,7 @@ public final class CodeContainersCreateOrUpdateSamples {
public final class CodeContainersDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/CodeContainer/delete.json
*/
/**
@@ -867,7 +869,7 @@ public final class CodeContainersDeleteSamples {
public final class CodeContainersGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/CodeContainer/get.json
*/
/**
@@ -892,7 +894,7 @@ public final class CodeContainersGetSamples {
public final class CodeContainersListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/CodeContainer/list.json
*/
/**
@@ -919,7 +921,7 @@ import com.azure.resourcemanager.machinelearning.models.PendingUploadType;
public final class CodeVersionsCreateOrGetStartPendingUploadSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/CodeVersion/createOrGetStartPendingUpload.json
*/
/**
@@ -951,7 +953,7 @@ import java.util.Map;
public final class CodeVersionsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/CodeVersion/createOrUpdate.json
*/
/**
@@ -965,8 +967,8 @@ public final class CodeVersionsCreateOrUpdateSamples {
.define("string")
.withExistingCode("test-rg", "my-aml-workspace", "string")
.withProperties(new CodeVersionProperties().withDescription("string")
- .withTags(mapOf("string", "string"))
.withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
.withIsAnonymous(false)
.withCodeUri("fakeTokenPlaceholder"))
.create();
@@ -995,7 +997,7 @@ public final class CodeVersionsCreateOrUpdateSamples {
public final class CodeVersionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/CodeVersion/delete.json
*/
/**
@@ -1020,7 +1022,7 @@ public final class CodeVersionsDeleteSamples {
public final class CodeVersionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/CodeVersion/get.json
*/
/**
@@ -1045,7 +1047,7 @@ public final class CodeVersionsGetSamples {
public final class CodeVersionsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/CodeVersion/list.json
*/
/**
@@ -1073,7 +1075,7 @@ import com.azure.resourcemanager.machinelearning.models.DestinationAsset;
public final class CodeVersionsPublishSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/CodeVersion/publish.json
*/
/**
@@ -1085,9 +1087,9 @@ public final class CodeVersionsPublishSamples {
publishWorkspaceCodeVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.codeVersions()
.publish("test-rg", "my-aml-workspace", "string", "string",
- new DestinationAsset().withRegistryName("string")
- .withDestinationName("string")
- .withDestinationVersion("string"),
+ new DestinationAsset().withDestinationName("string")
+ .withDestinationVersion("string")
+ .withRegistryName("string"),
com.azure.core.util.Context.NONE);
}
}
@@ -1106,7 +1108,7 @@ import java.util.Map;
public final class ComponentContainersCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ComponentContainer/createOrUpdate.json
*/
/**
@@ -1120,8 +1122,8 @@ public final class ComponentContainersCreateOrUpdateSamples {
.define("string")
.withExistingWorkspace("test-rg", "my-aml-workspace")
.withProperties(new ComponentContainerProperties().withDescription("string")
- .withTags(mapOf("string", "string"))
- .withProperties(mapOf("string", "string")))
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string")))
.create();
}
@@ -1148,7 +1150,7 @@ public final class ComponentContainersCreateOrUpdateSamples {
public final class ComponentContainersDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ComponentContainer/delete.json
*/
/**
@@ -1173,7 +1175,7 @@ public final class ComponentContainersDeleteSamples {
public final class ComponentContainersGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ComponentContainer/get.json
*/
/**
@@ -1199,7 +1201,7 @@ public final class ComponentContainersGetSamples {
public final class ComponentContainersListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ComponentContainer/list.json
*/
/**
@@ -1230,7 +1232,7 @@ import java.util.Map;
public final class ComponentVersionsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ComponentVersion/createOrUpdate.json
*/
/**
@@ -1244,8 +1246,8 @@ public final class ComponentVersionsCreateOrUpdateSamples {
.define("string")
.withExistingComponent("test-rg", "my-aml-workspace", "string")
.withProperties(new ComponentVersionProperties().withDescription("string")
- .withTags(mapOf("string", "string"))
.withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
.withIsAnonymous(false)
.withComponentSpec(SerializerFactory.createDefaultManagementSerializerAdapter()
.deserialize("{\"8ced901b-d826-477d-bfef-329da9672513\":null}", Object.class,
@@ -1276,7 +1278,7 @@ public final class ComponentVersionsCreateOrUpdateSamples {
public final class ComponentVersionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ComponentVersion/delete.json
*/
/**
@@ -1301,7 +1303,7 @@ public final class ComponentVersionsDeleteSamples {
public final class ComponentVersionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ComponentVersion/get.json
*/
/**
@@ -1327,7 +1329,7 @@ public final class ComponentVersionsGetSamples {
public final class ComponentVersionsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ComponentVersion/list.json
*/
/**
@@ -1354,7 +1356,7 @@ import com.azure.resourcemanager.machinelearning.models.DestinationAsset;
public final class ComponentVersionsPublishSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ComponentVersion/publish.json
*/
/**
@@ -1366,9 +1368,9 @@ public final class ComponentVersionsPublishSamples {
publishWorkspaceComponentVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.componentVersions()
.publish("test-rg", "my-aml-workspace", "string", "string",
- new DestinationAsset().withRegistryName("string")
- .withDestinationName("string")
- .withDestinationVersion("string"),
+ new DestinationAsset().withDestinationName("string")
+ .withDestinationVersion("string")
+ .withRegistryName("string"),
com.azure.core.util.Context.NONE);
}
}
@@ -1427,7 +1429,7 @@ import java.util.Map;
public final class ComputeCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Compute/createOrUpdate/BasicAKSCompute.json
*/
/**
@@ -1446,7 +1448,7 @@ public final class ComputeCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Compute/createOrUpdate/AKSCompute.json
*/
/**
@@ -1468,7 +1470,7 @@ public final class ComputeCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Compute/createOrUpdate/KubernetesCompute.json
*/
/**
@@ -1496,7 +1498,7 @@ public final class ComputeCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Compute/createOrUpdate/ComputeInstanceWithSchedules.json
*/
/**
@@ -1530,7 +1532,7 @@ public final class ComputeCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Compute/createOrUpdate/BasicAmlCompute.json
*/
/**
@@ -1559,7 +1561,7 @@ public final class ComputeCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Compute/createOrUpdate/ComputeInstance.json
*/
/**
@@ -1605,7 +1607,7 @@ public final class ComputeCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Compute/createOrUpdate/ComputeInstanceMinimal.json
*/
/**
@@ -1626,7 +1628,7 @@ public final class ComputeCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Compute/createOrUpdate/AmlCompute.json
*/
/**
@@ -1648,7 +1650,7 @@ public final class ComputeCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Compute/createOrUpdate/BasicDataFactoryCompute.json
*/
/**
@@ -1691,7 +1693,7 @@ import com.azure.resourcemanager.machinelearning.models.UnderlyingResourceAction
public final class ComputeDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Compute/delete.json
*/
/**
@@ -1716,7 +1718,7 @@ public final class ComputeDeleteSamples {
public final class ComputeGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Compute/get/AKSCompute.json
*/
/**
@@ -1731,7 +1733,7 @@ public final class ComputeGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Compute/get/KubernetesCompute.json
*/
/**
@@ -1746,7 +1748,7 @@ public final class ComputeGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Compute/get/ComputeInstance.json
*/
/**
@@ -1761,7 +1763,7 @@ public final class ComputeGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Compute/get/AmlCompute.json
*/
/**
@@ -1785,7 +1787,7 @@ public final class ComputeGetSamples {
public final class ComputeListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Compute/list.json
*/
/**
@@ -1808,7 +1810,7 @@ public final class ComputeListSamples {
public final class ComputeListKeysSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Compute/listKeys.json
*/
/**
@@ -1832,7 +1834,7 @@ public final class ComputeListKeysSamples {
public final class ComputeListNodesSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Compute/listNodes.json
*/
/**
@@ -1856,7 +1858,7 @@ public final class ComputeListNodesSamples {
public final class ComputeRestartSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Compute/restart.json
*/
/**
@@ -1880,7 +1882,7 @@ public final class ComputeRestartSamples {
public final class ComputeStartSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Compute/start.json
*/
/**
@@ -1904,7 +1906,7 @@ public final class ComputeStartSamples {
public final class ComputeStopSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Compute/stop.json
*/
/**
@@ -1933,7 +1935,7 @@ import java.time.Duration;
public final class ComputeUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Compute/patch.json
*/
/**
@@ -1969,7 +1971,7 @@ import java.util.Map;
public final class DataContainersCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/DataContainer/createOrUpdate.json
*/
/**
@@ -1983,8 +1985,8 @@ public final class DataContainersCreateOrUpdateSamples {
.define("datacontainer123")
.withExistingWorkspace("testrg123", "workspace123")
.withProperties(new DataContainerProperties().withDescription("string")
- .withTags(mapOf("tag1", "value1", "tag2", "value2"))
.withProperties(mapOf("properties1", "value1", "properties2", "value2"))
+ .withTags(mapOf("tag1", "value1", "tag2", "value2"))
.withDataType(DataType.fromString("UriFile")))
.create();
}
@@ -2012,7 +2014,7 @@ public final class DataContainersCreateOrUpdateSamples {
public final class DataContainersDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/DataContainer/delete.json
*/
/**
@@ -2037,7 +2039,7 @@ public final class DataContainersDeleteSamples {
public final class DataContainersGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/DataContainer/get.json
*/
/**
@@ -2063,7 +2065,7 @@ public final class DataContainersGetSamples {
public final class DataContainersListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/DataContainer/list.json
*/
/**
@@ -2091,7 +2093,7 @@ import java.util.Map;
public final class DataVersionsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/DataVersionBase/createOrUpdate.json
*/
/**
@@ -2105,8 +2107,8 @@ public final class DataVersionsCreateOrUpdateSamples {
.define("string")
.withExistingData("test-rg", "my-aml-workspace", "string")
.withProperties(new UriFileDataVersion().withDescription("string")
- .withTags(mapOf("string", "string"))
.withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
.withIsAnonymous(false)
.withDataUri("string"))
.create();
@@ -2135,7 +2137,7 @@ public final class DataVersionsCreateOrUpdateSamples {
public final class DataVersionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/DataVersionBase/delete.json
*/
/**
@@ -2160,7 +2162,7 @@ public final class DataVersionsDeleteSamples {
public final class DataVersionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/DataVersionBase/get.json
*/
/**
@@ -2186,7 +2188,7 @@ public final class DataVersionsGetSamples {
public final class DataVersionsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/DataVersionBase/list.json
*/
/**
@@ -2214,7 +2216,7 @@ import com.azure.resourcemanager.machinelearning.models.DestinationAsset;
public final class DataVersionsPublishSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/DataVersionBase/publish.json
*/
/**
@@ -2226,9 +2228,9 @@ public final class DataVersionsPublishSamples {
publishWorkspaceDataVersionBase(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.dataVersions()
.publish("test-rg", "my-aml-workspace", "string", "string",
- new DestinationAsset().withRegistryName("string")
- .withDestinationName("string")
- .withDestinationVersion("string"),
+ new DestinationAsset().withDestinationName("string")
+ .withDestinationVersion("string")
+ .withRegistryName("string"),
com.azure.core.util.Context.NONE);
}
}
@@ -2255,7 +2257,7 @@ import java.util.UUID;
public final class DatastoresCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Datastore/AzureDataLakeGen1WServicePrincipal/createOrUpdate.json
*/
/**
@@ -2271,10 +2273,10 @@ public final class DatastoresCreateOrUpdateSamples {
.withProperties(new AzureDataLakeGen1Datastore().withDescription("string")
.withTags(mapOf("string", "string"))
.withCredentials(new ServicePrincipalDatastoreCredentials().withAuthorityUrl("string")
- .withResourceUrl("string")
- .withTenantId(UUID.fromString("00000000-1111-2222-3333-444444444444"))
.withClientId(UUID.fromString("00000000-1111-2222-3333-444444444444"))
- .withSecrets(new ServicePrincipalDatastoreSecrets().withClientSecret("fakeTokenPlaceholder")))
+ .withResourceUrl("string")
+ .withSecrets(new ServicePrincipalDatastoreSecrets().withClientSecret("fakeTokenPlaceholder"))
+ .withTenantId(UUID.fromString("00000000-1111-2222-3333-444444444444")))
.withStoreName("string"))
.withSkipValidation(false)
.create();
@@ -2282,7 +2284,7 @@ public final class DatastoresCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Datastore/AzureDataLakeGen2WServicePrincipal/createOrUpdate.json
*/
/**
@@ -2298,13 +2300,13 @@ public final class DatastoresCreateOrUpdateSamples {
.withProperties(new AzureDataLakeGen2Datastore().withDescription("string")
.withTags(mapOf("string", "string"))
.withCredentials(new ServicePrincipalDatastoreCredentials().withAuthorityUrl("string")
- .withResourceUrl("string")
- .withTenantId(UUID.fromString("00000000-1111-2222-3333-444444444444"))
.withClientId(UUID.fromString("00000000-1111-2222-3333-444444444444"))
- .withSecrets(new ServicePrincipalDatastoreSecrets().withClientSecret("fakeTokenPlaceholder")))
- .withFilesystem("string")
+ .withResourceUrl("string")
+ .withSecrets(new ServicePrincipalDatastoreSecrets().withClientSecret("fakeTokenPlaceholder"))
+ .withTenantId(UUID.fromString("00000000-1111-2222-3333-444444444444")))
.withAccountName("string")
.withEndpoint("string")
+ .withFilesystem("string")
.withProtocol("string"))
.withSkipValidation(false)
.create();
@@ -2312,7 +2314,7 @@ public final class DatastoresCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Datastore/AzureBlobWAccountKey/createOrUpdate.json
*/
/**
@@ -2339,7 +2341,7 @@ public final class DatastoresCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Datastore/AzureFileWAccountKey/createOrUpdate.json
*/
/**
@@ -2357,8 +2359,8 @@ public final class DatastoresCreateOrUpdateSamples {
.withCredentials(new AccountKeyDatastoreCredentials()
.withSecrets(new AccountKeyDatastoreSecrets().withKey("fakeTokenPlaceholder")))
.withAccountName("string")
- .withFileShareName("string")
.withEndpoint("string")
+ .withFileShareName("string")
.withProtocol("string"))
.withSkipValidation(false)
.create();
@@ -2387,7 +2389,7 @@ public final class DatastoresCreateOrUpdateSamples {
public final class DatastoresDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Datastore/delete.json
*/
/**
@@ -2411,7 +2413,7 @@ public final class DatastoresDeleteSamples {
public final class DatastoresGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Datastore/get.json
*/
/**
@@ -2436,7 +2438,7 @@ import java.util.Arrays;
public final class DatastoresListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Datastore/list.json
*/
/**
@@ -2461,7 +2463,7 @@ public final class DatastoresListSamples {
public final class DatastoresListSecretsSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Datastore/listSecrets.json
*/
/**
@@ -2489,7 +2491,7 @@ import java.util.Map;
public final class EnvironmentContainersCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/EnvironmentContainer/createOrUpdate.json
*/
/**
@@ -2503,9 +2505,9 @@ public final class EnvironmentContainersCreateOrUpdateSamples {
.define("testEnvironment")
.withExistingWorkspace("testrg123", "testworkspace")
.withProperties(new EnvironmentContainerProperties().withDescription("string")
- .withTags(mapOf("additionalProp1", "string", "additionalProp2", "string", "additionalProp3", "string"))
.withProperties(
- mapOf("additionalProp1", "string", "additionalProp2", "string", "additionalProp3", "string")))
+ mapOf("additionalProp1", "string", "additionalProp2", "string", "additionalProp3", "string"))
+ .withTags(mapOf("additionalProp1", "string", "additionalProp2", "string", "additionalProp3", "string")))
.create();
}
@@ -2532,7 +2534,7 @@ public final class EnvironmentContainersCreateOrUpdateSamples {
public final class EnvironmentContainersDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/EnvironmentContainer/delete.json
*/
/**
@@ -2557,7 +2559,7 @@ public final class EnvironmentContainersDeleteSamples {
public final class EnvironmentContainersGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/EnvironmentContainer/get.json
*/
/**
@@ -2583,7 +2585,7 @@ public final class EnvironmentContainersGetSamples {
public final class EnvironmentContainersListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/EnvironmentContainer/list.json
*/
/**
@@ -2615,7 +2617,7 @@ import java.util.Map;
public final class EnvironmentVersionsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/EnvironmentVersion/createOrUpdate.json
*/
/**
@@ -2629,14 +2631,14 @@ public final class EnvironmentVersionsCreateOrUpdateSamples {
.define("string")
.withExistingEnvironment("test-rg", "my-aml-workspace", "string")
.withProperties(new EnvironmentVersionProperties().withDescription("string")
- .withTags(mapOf("string", "string"))
.withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
.withIsAnonymous(false)
- .withImage("docker.io/tensorflow/serving:latest")
- .withCondaFile("string")
.withBuild(new BuildContext().withContextUri(
"https://storage-account.blob.core.windows.net/azureml/DockerBuildContext/95ddede6b9b8c4e90472db3acd0a8d28/")
.withDockerfilePath("prod/Dockerfile"))
+ .withCondaFile("string")
+ .withImage("docker.io/tensorflow/serving:latest")
.withInferenceConfig(
new InferenceContainerProperties().withLivenessRoute(new Route().withPath("string").withPort(1))
.withReadinessRoute(new Route().withPath("string").withPort(1))
@@ -2667,7 +2669,7 @@ public final class EnvironmentVersionsCreateOrUpdateSamples {
public final class EnvironmentVersionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/EnvironmentVersion/delete.json
*/
/**
@@ -2692,7 +2694,7 @@ public final class EnvironmentVersionsDeleteSamples {
public final class EnvironmentVersionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/EnvironmentVersion/get.json
*/
/**
@@ -2718,7 +2720,7 @@ public final class EnvironmentVersionsGetSamples {
public final class EnvironmentVersionsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/EnvironmentVersion/list.json
*/
/**
@@ -2745,7 +2747,7 @@ import com.azure.resourcemanager.machinelearning.models.DestinationAsset;
public final class EnvironmentVersionsPublishSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/EnvironmentVersion/publish.json
*/
/**
@@ -2757,9 +2759,9 @@ public final class EnvironmentVersionsPublishSamples {
publishWorkspaceEnvironmentVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.environmentVersions()
.publish("test-rg", "my-aml-workspace", "string", "string",
- new DestinationAsset().withRegistryName("string")
- .withDestinationName("string")
- .withDestinationVersion("string"),
+ new DestinationAsset().withDestinationName("string")
+ .withDestinationVersion("string")
+ .withRegistryName("string"),
com.azure.core.util.Context.NONE);
}
}
@@ -2774,7 +2776,7 @@ public final class EnvironmentVersionsPublishSamples {
public final class FeaturesGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Feature/get.json
*/
/**
@@ -2800,7 +2802,7 @@ public final class FeaturesGetSamples {
public final class FeaturesListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Feature/list.json
*/
/**
@@ -2829,7 +2831,7 @@ import java.util.Map;
public final class FeaturesetContainersCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/FeaturesetContainer/createOrUpdate.json
*/
/**
@@ -2843,8 +2845,8 @@ public final class FeaturesetContainersCreateOrUpdateSamples {
.define("string")
.withExistingWorkspace("test-rg", "my-aml-workspace")
.withProperties(new FeaturesetContainerProperties().withDescription("string")
- .withTags(mapOf("string", "string"))
.withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
.withIsArchived(false))
.create();
}
@@ -2872,7 +2874,7 @@ public final class FeaturesetContainersCreateOrUpdateSamples {
public final class FeaturesetContainersDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/FeaturesetContainer/delete.json
*/
/**
@@ -2897,7 +2899,7 @@ public final class FeaturesetContainersDeleteSamples {
public final class FeaturesetContainersGetEntitySamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/FeaturesetContainer/getEntity.json
*/
/**
@@ -2924,7 +2926,7 @@ import com.azure.resourcemanager.machinelearning.models.ListViewType;
public final class FeaturesetContainersListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/FeaturesetContainer/list.json
*/
/**
@@ -2945,8 +2947,8 @@ public final class FeaturesetContainersListSamples {
```java
import com.azure.resourcemanager.machinelearning.models.DataAvailabilityStatus;
-import com.azure.resourcemanager.machinelearning.models.FeaturesetVersionBackfillRequest;
import com.azure.resourcemanager.machinelearning.models.FeatureWindow;
+import com.azure.resourcemanager.machinelearning.models.FeaturesetVersionBackfillRequest;
import com.azure.resourcemanager.machinelearning.models.MaterializationComputeResource;
import java.time.OffsetDateTime;
import java.util.Arrays;
@@ -2959,7 +2961,7 @@ import java.util.Map;
public final class FeaturesetVersionsBackfillSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/FeaturesetVersion/backfill.json
*/
/**
@@ -2971,16 +2973,17 @@ public final class FeaturesetVersionsBackfillSamples {
backfillWorkspaceFeaturesetVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.featuresetVersions()
.backfill("test-rg", "my-aml-workspace", "string", "string",
- new FeaturesetVersionBackfillRequest().withDisplayName("string")
- .withDescription("string")
- .withFeatureWindow(new FeatureWindow()
- .withFeatureWindowStart(OffsetDateTime.parse("2020-01-01T12:34:56.999+00:51"))
- .withFeatureWindowEnd(OffsetDateTime.parse("2020-01-01T12:34:56.999+00:51")))
+ new FeaturesetVersionBackfillRequest()
.withDataAvailabilityStatus(Arrays.asList(DataAvailabilityStatus.NONE))
+ .withDescription("string")
+ .withDisplayName("string")
+ .withFeatureWindow(
+ new FeatureWindow().withFeatureWindowEnd(OffsetDateTime.parse("2020-01-01T12:34:56.999+00:51"))
+ .withFeatureWindowStart(OffsetDateTime.parse("2020-01-01T12:34:56.999+00:51")))
.withJobId("string")
- .withTags(mapOf("string", "string"))
.withResource(new MaterializationComputeResource().withInstanceType("string"))
- .withSparkConfiguration(mapOf("string", "string")),
+ .withSparkConfiguration(mapOf("string", "string"))
+ .withTags(mapOf("string", "string")),
com.azure.core.util.Context.NONE);
}
@@ -3022,7 +3025,7 @@ import java.util.Map;
public final class FeaturesetVersionsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/FeaturesetVersion/createOrUpdate.json
*/
/**
@@ -3036,28 +3039,29 @@ public final class FeaturesetVersionsCreateOrUpdateSamples {
.define("string")
.withExistingFeatureset("test-rg", "my-aml-workspace", "string")
.withProperties(new FeaturesetVersionProperties().withDescription("string")
- .withTags(mapOf("string", "string"))
.withProperties(mapOf("string", "string"))
- .withIsArchived(false)
+ .withTags(mapOf("string", "string"))
.withIsAnonymous(false)
+ .withIsArchived(false)
+ .withEntities(Arrays.asList("string"))
+ .withMaterializationSettings(new MaterializationSettings()
+ .withNotification(
+ new NotificationSetting().withEmailOn(Arrays.asList(EmailNotificationEnableType.JOB_FAILED))
+ .withEmails(Arrays.asList("string")))
+ .withResource(new MaterializationComputeResource().withInstanceType("string"))
+ .withSchedule(new RecurrenceTrigger().withEndTime("string")
+ .withStartTime("string")
+ .withTimeZone("string")
+ .withFrequency(RecurrenceFrequency.DAY)
+ .withInterval(1)
+ .withSchedule(new RecurrenceSchedule().withHours(Arrays.asList(1))
+ .withMinutes(Arrays.asList(1))
+ .withMonthDays(Arrays.asList(1))
+ .withWeekDays(Arrays.asList(WeekDay.MONDAY))))
+ .withSparkConfiguration(mapOf("string", "string"))
+ .withStoreType(MaterializationStoreType.ONLINE))
.withSpecification(new FeaturesetSpecification().withPath("string"))
- .withMaterializationSettings(
- new MaterializationSettings().withStoreType(MaterializationStoreType.ONLINE)
- .withSchedule(new RecurrenceTrigger().withEndTime("string")
- .withStartTime("string")
- .withTimeZone("string")
- .withFrequency(RecurrenceFrequency.DAY)
- .withInterval(1)
- .withSchedule(new RecurrenceSchedule().withHours(Arrays.asList(1))
- .withMinutes(Arrays.asList(1))
- .withWeekDays(Arrays.asList(WeekDay.MONDAY))
- .withMonthDays(Arrays.asList(1))))
- .withNotification(new NotificationSetting().withEmails(Arrays.asList("string"))
- .withEmailOn(Arrays.asList(EmailNotificationEnableType.JOB_FAILED)))
- .withResource(new MaterializationComputeResource().withInstanceType("string"))
- .withSparkConfiguration(mapOf("string", "string")))
- .withStage("string")
- .withEntities(Arrays.asList("string")))
+ .withStage("string"))
.create();
}
@@ -3084,7 +3088,7 @@ public final class FeaturesetVersionsCreateOrUpdateSamples {
public final class FeaturesetVersionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/FeaturesetVersion/delete.json
*/
/**
@@ -3109,7 +3113,7 @@ public final class FeaturesetVersionsDeleteSamples {
public final class FeaturesetVersionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/FeaturesetVersion/get.json
*/
/**
@@ -3136,7 +3140,7 @@ import com.azure.resourcemanager.machinelearning.models.ListViewType;
public final class FeaturesetVersionsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/FeaturesetVersion/list.json
*/
/**
@@ -3166,7 +3170,7 @@ import java.util.Map;
public final class FeaturestoreEntityContainersCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/FeaturestoreEntityContainer/createOrUpdate.json
*/
/**
@@ -3180,8 +3184,8 @@ public final class FeaturestoreEntityContainersCreateOrUpdateSamples {
.define("string")
.withExistingWorkspace("test-rg", "my-aml-workspace")
.withProperties(new FeaturestoreEntityContainerProperties().withDescription("string")
- .withTags(mapOf("string", "string"))
.withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
.withIsArchived(false))
.create();
}
@@ -3209,7 +3213,7 @@ public final class FeaturestoreEntityContainersCreateOrUpdateSamples {
public final class FeaturestoreEntityContainersDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/FeaturestoreEntityContainer/delete.json
*/
/**
@@ -3234,7 +3238,7 @@ public final class FeaturestoreEntityContainersDeleteSamples {
public final class FeaturestoreEntityContainersGetEntitySamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/FeaturestoreEntityContainer/getEntity.json
*/
/**
@@ -3261,7 +3265,7 @@ import com.azure.resourcemanager.machinelearning.models.ListViewType;
public final class FeaturestoreEntityContainersListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/FeaturestoreEntityContainer/list.json
*/
/**
@@ -3294,7 +3298,7 @@ import java.util.Map;
public final class FeaturestoreEntityVersionsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/FeaturestoreEntityVersion/createOrUpdate.json
*/
/**
@@ -3309,12 +3313,12 @@ public final class FeaturestoreEntityVersionsCreateOrUpdateSamples {
.withExistingFeaturestoreEntity("test-rg", "my-aml-workspace", "string")
.withProperties(
new FeaturestoreEntityVersionProperties().withDescription("string")
- .withTags(mapOf("string", "string"))
.withProperties(mapOf("string", "string"))
- .withIsArchived(false)
+ .withTags(mapOf("string", "string"))
.withIsAnonymous(false)
+ .withIsArchived(false)
.withIndexColumns(Arrays
- .asList(new IndexColumn().withDataType(FeatureDataType.DATETIME).withColumnName("string"))))
+ .asList(new IndexColumn().withColumnName("string").withDataType(FeatureDataType.DATETIME))))
.create();
}
@@ -3341,7 +3345,7 @@ public final class FeaturestoreEntityVersionsCreateOrUpdateSamples {
public final class FeaturestoreEntityVersionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/FeaturestoreEntityVersion/delete.json
*/
/**
@@ -3366,7 +3370,7 @@ public final class FeaturestoreEntityVersionsDeleteSamples {
public final class FeaturestoreEntityVersionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/FeaturestoreEntityVersion/get.json
*/
/**
@@ -3393,7 +3397,7 @@ import com.azure.resourcemanager.machinelearning.models.ListViewType;
public final class FeaturestoreEntityVersionsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/FeaturestoreEntityVersion/list.json
*/
/**
@@ -3419,7 +3423,7 @@ public final class FeaturestoreEntityVersionsListSamples {
public final class JobsCancelSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Job/cancel.json
*/
/**
@@ -3451,8 +3455,8 @@ import com.azure.resourcemanager.machinelearning.models.ImageModelSettingsClassi
import com.azure.resourcemanager.machinelearning.models.JobResourceConfiguration;
import com.azure.resourcemanager.machinelearning.models.JobService;
import com.azure.resourcemanager.machinelearning.models.LiteralJobInput;
-import com.azure.resourcemanager.machinelearning.models.MedianStoppingPolicy;
import com.azure.resourcemanager.machinelearning.models.MLTableJobInput;
+import com.azure.resourcemanager.machinelearning.models.MedianStoppingPolicy;
import com.azure.resourcemanager.machinelearning.models.Mpi;
import com.azure.resourcemanager.machinelearning.models.Objective;
import com.azure.resourcemanager.machinelearning.models.OutputDeliveryMode;
@@ -3474,7 +3478,7 @@ import java.util.Map;
public final class JobsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Job/AutoMLJob/createOrUpdate.json
*/
/**
@@ -3488,42 +3492,42 @@ public final class JobsCreateOrUpdateSamples {
.define("string")
.withExistingWorkspace("test-rg", "my-aml-workspace")
.withProperties(new AutoMLJob().withDescription("string")
- .withTags(mapOf("string", "string"))
.withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withComputeId("string")
.withDisplayName("string")
.withExperimentName("string")
+ .withIdentity(new AmlToken())
+ .withIsArchived(false)
.withServices(mapOf("string",
- new JobService().withJobServiceType("string")
+ new JobService().withEndpoint("string")
+ .withJobServiceType("string")
.withPort(1)
- .withEndpoint("string")
.withProperties(mapOf("string", "string"))))
- .withComputeId("string")
- .withIsArchived(false)
- .withIdentity(new AmlToken())
+ .withEnvironmentId("string")
+ .withEnvironmentVariables(mapOf("string", "string"))
+ .withOutputs(mapOf("string",
+ new UriFileJobOutput().withDescription("string")
+ .withMode(OutputDeliveryMode.READ_WRITE_MOUNT)
+ .withUri("string")))
.withResources(new JobResourceConfiguration().withInstanceCount(1)
.withInstanceType("string")
.withProperties(mapOf("string",
SerializerFactory.createDefaultManagementSerializerAdapter()
.deserialize("{\"9bec0ab0-c62f-4fa9-a97c-7b24bbcc90ad\":null}", Object.class,
SerializerEncoding.JSON))))
- .withEnvironmentId("string")
- .withEnvironmentVariables(mapOf("string", "string"))
- .withTaskDetails(new ImageClassification().withTrainingData(new MLTableJobInput().withUri("string"))
- .withTargetColumnName("string")
+ .withTaskDetails(new ImageClassification().withTargetColumnName("string")
+ .withTrainingData(new MLTableJobInput().withUri("string"))
.withModelSettings(new ImageModelSettingsClassification().withValidationCropSize(2))
.withSearchSpace(Arrays.asList(
new ImageModelDistributionSettingsClassification().withValidationCropSize("choice(2, 360)")))
- .withLimitSettings(new ImageLimitSettings().withMaxTrials(2)))
- .withOutputs(mapOf("string",
- new UriFileJobOutput().withDescription("string")
- .withUri("string")
- .withMode(OutputDeliveryMode.READ_WRITE_MOUNT))))
+ .withLimitSettings(new ImageLimitSettings().withMaxTrials(2))))
.create();
}
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Job/SweepJob/createOrUpdate.json
*/
/**
@@ -3537,29 +3541,29 @@ public final class JobsCreateOrUpdateSamples {
.define("string")
.withExistingWorkspace("test-rg", "my-aml-workspace")
.withProperties(new SweepJob().withDescription("string")
- .withTags(mapOf("string", "string"))
.withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withComputeId("string")
.withDisplayName("string")
.withExperimentName("string")
.withServices(mapOf("string",
- new JobService().withJobServiceType("string")
+ new JobService().withEndpoint("string")
+ .withJobServiceType("string")
.withPort(1)
- .withEndpoint("string")
.withProperties(mapOf("string", "string"))))
- .withComputeId("string")
+ .withEarlyTermination(new MedianStoppingPolicy().withDelayEvaluation(1).withEvaluationInterval(1))
+ .withLimits(new SweepJobLimits().withMaxConcurrentTrials(1)
+ .withMaxTotalTrials(1)
+ .withTrialTimeout(Duration.parse("PT1S")))
+ .withObjective(new Objective().withGoal(Goal.MINIMIZE).withPrimaryMetric("string"))
+ .withSamplingAlgorithm(new GridSamplingAlgorithm())
.withSearchSpace(SerializerFactory.createDefaultManagementSerializerAdapter()
.deserialize("{\"string\":{}}", Object.class, SerializerEncoding.JSON))
- .withSamplingAlgorithm(new GridSamplingAlgorithm())
- .withLimits(new SweepJobLimits().withMaxTotalTrials(1)
- .withMaxConcurrentTrials(1)
- .withTrialTimeout(Duration.parse("PT1S")))
- .withEarlyTermination(new MedianStoppingPolicy().withEvaluationInterval(1).withDelayEvaluation(1))
- .withObjective(new Objective().withPrimaryMetric("string").withGoal(Goal.MINIMIZE))
.withTrial(new TrialComponent().withCodeId("fakeTokenPlaceholder")
.withCommand("string")
+ .withDistribution(new Mpi().withProcessCountPerInstance(1))
.withEnvironmentId("string")
.withEnvironmentVariables(mapOf("string", "string"))
- .withDistribution(new Mpi().withProcessCountPerInstance(1))
.withResources(new JobResourceConfiguration().withInstanceCount(1)
.withInstanceType("string")
.withProperties(mapOf("string",
@@ -3571,7 +3575,7 @@ public final class JobsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Job/PipelineJob/createOrUpdate.json
*/
/**
@@ -3585,29 +3589,29 @@ public final class JobsCreateOrUpdateSamples {
.define("string")
.withExistingWorkspace("test-rg", "my-aml-workspace")
.withProperties(new PipelineJob().withDescription("string")
- .withTags(mapOf("string", "string"))
.withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withComputeId("string")
.withDisplayName("string")
.withExperimentName("string")
.withServices(mapOf("string",
- new JobService().withJobServiceType("string")
+ new JobService().withEndpoint("string")
+ .withJobServiceType("string")
.withPort(1)
- .withEndpoint("string")
.withProperties(mapOf("string", "string"))))
- .withComputeId("string")
- .withSettings(SerializerFactory.createDefaultManagementSerializerAdapter()
- .deserialize("{}", Object.class, SerializerEncoding.JSON))
.withInputs(mapOf("string", new LiteralJobInput().withDescription("string").withValue("string")))
.withOutputs(mapOf("string",
new UriFileJobOutput().withDescription("string")
- .withUri("string")
- .withMode(OutputDeliveryMode.UPLOAD))))
+ .withMode(OutputDeliveryMode.UPLOAD)
+ .withUri("string")))
+ .withSettings(SerializerFactory.createDefaultManagementSerializerAdapter()
+ .deserialize("{}", Object.class, SerializerEncoding.JSON)))
.create();
}
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Job/CommandJob/createOrUpdate.json
*/
/**
@@ -3621,34 +3625,34 @@ public final class JobsCreateOrUpdateSamples {
.define("string")
.withExistingWorkspace("test-rg", "my-aml-workspace")
.withProperties(new CommandJob().withDescription("string")
- .withTags(mapOf("string", "string"))
.withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withComputeId("string")
.withDisplayName("string")
.withExperimentName("string")
+ .withIdentity(new AmlToken())
.withServices(mapOf("string",
- new JobService().withJobServiceType("string")
+ new JobService().withEndpoint("string")
+ .withJobServiceType("string")
.withPort(1)
- .withEndpoint("string")
.withProperties(mapOf("string", "string"))))
- .withComputeId("string")
- .withIdentity(new AmlToken())
- .withResources(new JobResourceConfiguration().withInstanceCount(1)
- .withInstanceType("string")
- .withProperties(mapOf("string",
- SerializerFactory.createDefaultManagementSerializerAdapter()
- .deserialize("{\"e6b6493e-7d5e-4db3-be1e-306ec641327e\":null}", Object.class,
- SerializerEncoding.JSON))))
.withCodeId("fakeTokenPlaceholder")
.withCommand("string")
+ .withDistribution(new TensorFlow().withParameterServerCount(1).withWorkerCount(1))
.withEnvironmentId("string")
+ .withEnvironmentVariables(mapOf("string", "string"))
.withInputs(mapOf("string", new LiteralJobInput().withDescription("string").withValue("string")))
+ .withLimits(new CommandJobLimits().withTimeout(Duration.parse("PT5M")))
.withOutputs(mapOf("string",
new UriFileJobOutput().withDescription("string")
- .withUri("string")
- .withMode(OutputDeliveryMode.READ_WRITE_MOUNT)))
- .withDistribution(new TensorFlow().withWorkerCount(1).withParameterServerCount(1))
- .withLimits(new CommandJobLimits().withTimeout(Duration.parse("PT5M")))
- .withEnvironmentVariables(mapOf("string", "string")))
+ .withMode(OutputDeliveryMode.READ_WRITE_MOUNT)
+ .withUri("string")))
+ .withResources(new JobResourceConfiguration().withInstanceCount(1)
+ .withInstanceType("string")
+ .withProperties(mapOf("string",
+ SerializerFactory.createDefaultManagementSerializerAdapter()
+ .deserialize("{\"e6b6493e-7d5e-4db3-be1e-306ec641327e\":null}", Object.class,
+ SerializerEncoding.JSON)))))
.create();
}
@@ -3675,7 +3679,7 @@ public final class JobsCreateOrUpdateSamples {
public final class JobsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Job/delete.json
*/
/**
@@ -3701,7 +3705,7 @@ public final class JobsDeleteSamples {
public final class JobsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Job/CommandJob/get.json
*/
/**
@@ -3715,7 +3719,7 @@ public final class JobsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Job/AutoMLJob/get.json
*/
/**
@@ -3729,7 +3733,7 @@ public final class JobsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Job/SweepJob/get.json
*/
/**
@@ -3743,7 +3747,7 @@ public final class JobsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Job/PipelineJob/get.json
*/
/**
@@ -3767,7 +3771,7 @@ public final class JobsGetSamples {
public final class JobsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Job/CommandJob/list.json
*/
/**
@@ -3783,7 +3787,7 @@ public final class JobsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Job/PipelineJob/list.json
*/
/**
@@ -3799,7 +3803,7 @@ public final class JobsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Job/SweepJob/list.json
*/
/**
@@ -3815,7 +3819,7 @@ public final class JobsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Job/AutoMLJob/list.json
*/
/**
@@ -3841,7 +3845,7 @@ import com.azure.resourcemanager.machinelearning.models.ManagedNetworkProvisionO
public final class ManagedNetworkProvisionsProvisionManagedNetworkSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/ManagedNetwork/provision.json
*/
/**
@@ -3871,7 +3875,7 @@ import com.azure.resourcemanager.machinelearning.models.RuleStatus;
public final class ManagedNetworkSettingsRuleCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/ManagedNetwork/createOrUpdateRule.json
*/
/**
@@ -3901,7 +3905,7 @@ public final class ManagedNetworkSettingsRuleCreateOrUpdateSamples {
public final class ManagedNetworkSettingsRuleDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/ManagedNetwork/deleteRule.json
*/
/**
@@ -3926,7 +3930,7 @@ public final class ManagedNetworkSettingsRuleDeleteSamples {
public final class ManagedNetworkSettingsRuleGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/ManagedNetwork/getRule.json
*/
/**
@@ -3952,7 +3956,7 @@ public final class ManagedNetworkSettingsRuleGetSamples {
public final class ManagedNetworkSettingsRuleListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/ManagedNetwork/listRule.json
*/
/**
@@ -3978,7 +3982,7 @@ import com.azure.resourcemanager.machinelearning.models.MarketplaceSubscriptionP
public final class MarketplaceSubscriptionsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/MarketplaceSubscription/createOrUpdate.json
*/
/**
@@ -4006,7 +4010,7 @@ public final class MarketplaceSubscriptionsCreateOrUpdateSamples {
public final class MarketplaceSubscriptionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/MarketplaceSubscription/delete.json
*/
/**
@@ -4031,7 +4035,7 @@ public final class MarketplaceSubscriptionsDeleteSamples {
public final class MarketplaceSubscriptionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/MarketplaceSubscription/get.json
*/
/**
@@ -4056,7 +4060,7 @@ public final class MarketplaceSubscriptionsGetSamples {
public final class MarketplaceSubscriptionsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/MarketplaceSubscription/list.json
*/
/**
@@ -4084,7 +4088,7 @@ import java.util.Map;
public final class ModelContainersCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ModelContainer/createOrUpdate.json
*/
/**
@@ -4125,7 +4129,7 @@ public final class ModelContainersCreateOrUpdateSamples {
public final class ModelContainersDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ModelContainer/delete.json
*/
/**
@@ -4150,7 +4154,7 @@ public final class ModelContainersDeleteSamples {
public final class ModelContainersGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ModelContainer/get.json
*/
/**
@@ -4176,7 +4180,7 @@ public final class ModelContainersGetSamples {
public final class ModelContainersListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ModelContainer/list.json
*/
/**
@@ -4205,7 +4209,7 @@ import java.util.Map;
public final class ModelVersionsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ModelVersion/createOrUpdate.json
*/
/**
@@ -4219,8 +4223,8 @@ public final class ModelVersionsCreateOrUpdateSamples {
.define("string")
.withExistingModel("test-rg", "my-aml-workspace", "string")
.withProperties(new ModelVersionProperties().withDescription("string")
- .withTags(mapOf("string", "string"))
.withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
.withIsAnonymous(false)
.withFlavors(mapOf("string", new FlavorData().withData(mapOf("string", "string"))))
.withModelType("CustomModel")
@@ -4251,7 +4255,7 @@ public final class ModelVersionsCreateOrUpdateSamples {
public final class ModelVersionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ModelVersion/delete.json
*/
/**
@@ -4276,7 +4280,7 @@ public final class ModelVersionsDeleteSamples {
public final class ModelVersionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ModelVersion/get.json
*/
/**
@@ -4302,7 +4306,7 @@ public final class ModelVersionsGetSamples {
public final class ModelVersionsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ModelVersion/list.json
*/
/**
@@ -4330,7 +4334,7 @@ import com.azure.resourcemanager.machinelearning.models.DestinationAsset;
public final class ModelVersionsPublishSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ModelVersion/publish.json
*/
/**
@@ -4342,9 +4346,9 @@ public final class ModelVersionsPublishSamples {
publishWorkspaceModelVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.modelVersions()
.publish("test-rg", "my-aml-workspace", "string", "string",
- new DestinationAsset().withRegistryName("string")
- .withDestinationName("string")
- .withDestinationVersion("string"),
+ new DestinationAsset().withDestinationName("string")
+ .withDestinationVersion("string")
+ .withRegistryName("string"),
com.azure.core.util.Context.NONE);
}
}
@@ -4376,7 +4380,7 @@ import java.util.Map;
public final class OnlineDeploymentsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/OnlineDeployment/KubernetesOnlineDeployment/createOrUpdate.json
*/
/**
@@ -4390,34 +4394,35 @@ public final class OnlineDeploymentsCreateOrUpdateSamples {
.define("testDeploymentName")
.withRegion("string")
.withExistingOnlineEndpoint("test-rg", "my-aml-workspace", "testEndpointName")
- .withProperties(new KubernetesOnlineDeployment().withDescription("string")
- .withProperties(mapOf("string", "string"))
+ .withProperties(new KubernetesOnlineDeployment()
.withCodeConfiguration(
new CodeConfiguration().withCodeId("fakeTokenPlaceholder").withScoringScript("string"))
+ .withDescription("string")
.withEnvironmentId("string")
.withEnvironmentVariables(mapOf("string", "string"))
- .withScaleSettings(new DefaultScaleSettings())
- .withRequestSettings(new OnlineRequestSettings().withMaxQueueWait(Duration.parse("PT5M"))
- .withRequestTimeout(Duration.parse("PT5M"))
- .withMaxConcurrentRequestsPerInstance(1))
- .withModelMountPath("string")
+ .withProperties(mapOf("string", "string"))
.withAppInsightsEnabled(false)
+ .withInstanceType("string")
.withLivenessProbe(new ProbeSettings().withFailureThreshold(1)
- .withSuccessThreshold(1)
- .withTimeout(Duration.parse("PT5M"))
+ .withInitialDelay(Duration.parse("PT5M"))
.withPeriod(Duration.parse("PT5M"))
- .withInitialDelay(Duration.parse("PT5M")))
- .withInstanceType("string")
+ .withSuccessThreshold(1)
+ .withTimeout(Duration.parse("PT5M")))
.withModel("string")
+ .withModelMountPath("string")
+ .withRequestSettings(new OnlineRequestSettings().withMaxConcurrentRequestsPerInstance(1)
+ .withMaxQueueWait(Duration.parse("PT5M"))
+ .withRequestTimeout(Duration.parse("PT5M")))
+ .withScaleSettings(new DefaultScaleSettings())
.withContainerResourceRequirements(new ContainerResourceRequirements()
- .withContainerResourceRequests(
- new ContainerResourceSettings().withCpu("\"1\"").withMemory("\"2Gi\"").withGpu("\"1\""))
.withContainerResourceLimits(
- new ContainerResourceSettings().withCpu("\"1\"").withMemory("\"2Gi\"").withGpu("\"1\""))))
+ new ContainerResourceSettings().withCpu("\"1\"").withGpu("\"1\"").withMemory("\"2Gi\""))
+ .withContainerResourceRequests(
+ new ContainerResourceSettings().withCpu("\"1\"").withGpu("\"1\"").withMemory("\"2Gi\""))))
.withTags(mapOf())
- .withKind("string")
.withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
.withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withKind("string")
.withSku(new Sku().withName("string")
.withTier(SkuTier.FREE)
.withSize("string")
@@ -4428,7 +4433,7 @@ public final class OnlineDeploymentsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/OnlineDeployment/ManagedOnlineDeployment/createOrUpdate.json
*/
/**
@@ -4442,34 +4447,35 @@ public final class OnlineDeploymentsCreateOrUpdateSamples {
.define("testDeploymentName")
.withRegion("string")
.withExistingOnlineEndpoint("test-rg", "my-aml-workspace", "testEndpointName")
- .withProperties(new ManagedOnlineDeployment().withDescription("string")
- .withProperties(mapOf("string", "string"))
+ .withProperties(new ManagedOnlineDeployment()
.withCodeConfiguration(
new CodeConfiguration().withCodeId("fakeTokenPlaceholder").withScoringScript("string"))
+ .withDescription("string")
.withEnvironmentId("string")
.withEnvironmentVariables(mapOf("string", "string"))
- .withScaleSettings(new DefaultScaleSettings())
- .withRequestSettings(new OnlineRequestSettings().withMaxQueueWait(Duration.parse("PT5M"))
- .withRequestTimeout(Duration.parse("PT5M"))
- .withMaxConcurrentRequestsPerInstance(1))
- .withModelMountPath("string")
+ .withProperties(mapOf("string", "string"))
.withAppInsightsEnabled(false)
+ .withInstanceType("string")
.withLivenessProbe(new ProbeSettings().withFailureThreshold(1)
- .withSuccessThreshold(1)
- .withTimeout(Duration.parse("PT5M"))
+ .withInitialDelay(Duration.parse("PT5M"))
.withPeriod(Duration.parse("PT5M"))
- .withInitialDelay(Duration.parse("PT5M")))
- .withReadinessProbe(new ProbeSettings().withFailureThreshold(30)
.withSuccessThreshold(1)
- .withTimeout(Duration.parse("PT2S"))
+ .withTimeout(Duration.parse("PT5M")))
+ .withModel("string")
+ .withModelMountPath("string")
+ .withReadinessProbe(new ProbeSettings().withFailureThreshold(30)
+ .withInitialDelay(Duration.parse("PT1S"))
.withPeriod(Duration.parse("PT10S"))
- .withInitialDelay(Duration.parse("PT1S")))
- .withInstanceType("string")
- .withModel("string"))
+ .withSuccessThreshold(1)
+ .withTimeout(Duration.parse("PT2S")))
+ .withRequestSettings(new OnlineRequestSettings().withMaxConcurrentRequestsPerInstance(1)
+ .withMaxQueueWait(Duration.parse("PT5M"))
+ .withRequestTimeout(Duration.parse("PT5M")))
+ .withScaleSettings(new DefaultScaleSettings()))
.withTags(mapOf())
- .withKind("string")
.withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
.withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withKind("string")
.withSku(new Sku().withName("string")
.withTier(SkuTier.FREE)
.withSize("string")
@@ -4501,7 +4507,7 @@ public final class OnlineDeploymentsCreateOrUpdateSamples {
public final class OnlineDeploymentsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/OnlineDeployment/delete.json
*/
/**
@@ -4526,7 +4532,7 @@ public final class OnlineDeploymentsDeleteSamples {
public final class OnlineDeploymentsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/OnlineDeployment/KubernetesOnlineDeployment/get.json
*/
/**
@@ -4543,7 +4549,7 @@ public final class OnlineDeploymentsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/OnlineDeployment/ManagedOnlineDeployment/get.json
*/
/**
@@ -4572,7 +4578,7 @@ import com.azure.resourcemanager.machinelearning.models.DeploymentLogsRequest;
public final class OnlineDeploymentsGetLogsSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/OnlineDeployment/getLogs.json
*/
/**
@@ -4599,7 +4605,7 @@ public final class OnlineDeploymentsGetLogsSamples {
public final class OnlineDeploymentsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/OnlineDeployment/list.json
*/
/**
@@ -4624,7 +4630,7 @@ public final class OnlineDeploymentsListSamples {
public final class OnlineDeploymentsListSkusSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/OnlineDeployment/ManagedOnlineDeployment/listSkus.json
*/
/**
@@ -4641,7 +4647,7 @@ public final class OnlineDeploymentsListSkusSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/OnlineDeployment/KubernetesOnlineDeployment/listSkus.json
*/
/**
@@ -4673,7 +4679,7 @@ import java.util.Map;
public final class OnlineDeploymentsUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/OnlineDeployment/ManagedOnlineDeployment/update.json
*/
/**
@@ -4689,17 +4695,17 @@ public final class OnlineDeploymentsUpdateSamples {
.getValue();
resource.update()
.withTags(mapOf())
- .withSku(new PartialSku().withName("string")
- .withTier(SkuTier.FREE)
- .withSize("string")
+ .withSku(new PartialSku().withCapacity(1)
.withFamily("string")
- .withCapacity(1))
+ .withName("string")
+ .withSize("string")
+ .withTier(SkuTier.FREE))
.apply();
}
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/OnlineDeployment/KubernetesOnlineDeployment/update.json
*/
/**
@@ -4715,11 +4721,11 @@ public final class OnlineDeploymentsUpdateSamples {
.getValue();
resource.update()
.withTags(mapOf())
- .withSku(new PartialSku().withName("string")
- .withTier(SkuTier.FREE)
- .withSize("string")
+ .withSku(new PartialSku().withCapacity(1)
.withFamily("string")
- .withCapacity(1))
+ .withName("string")
+ .withSize("string")
+ .withTier(SkuTier.FREE))
.apply();
}
@@ -4756,7 +4762,7 @@ import java.util.Map;
public final class OnlineEndpointsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/OnlineEndpoint/createOrUpdate.json
*/
/**
@@ -4770,15 +4776,15 @@ public final class OnlineEndpointsCreateOrUpdateSamples {
.define("testEndpointName")
.withRegion("string")
.withExistingWorkspace("test-rg", "my-aml-workspace")
- .withProperties(new OnlineEndpointProperties().withDescription("string")
+ .withProperties(new OnlineEndpointProperties().withAuthMode(EndpointAuthMode.AMLTOKEN)
+ .withDescription("string")
.withProperties(mapOf("string", "string"))
- .withAuthMode(EndpointAuthMode.AMLTOKEN)
.withCompute("string")
.withTraffic(mapOf("string", 1)))
.withTags(mapOf())
- .withKind("string")
.withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
.withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withKind("string")
.withSku(new Sku().withName("string")
.withTier(SkuTier.FREE)
.withSize("string")
@@ -4810,7 +4816,7 @@ public final class OnlineEndpointsCreateOrUpdateSamples {
public final class OnlineEndpointsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/OnlineEndpoint/delete.json
*/
/**
@@ -4835,7 +4841,7 @@ public final class OnlineEndpointsDeleteSamples {
public final class OnlineEndpointsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/OnlineEndpoint/get.json
*/
/**
@@ -4860,7 +4866,7 @@ public final class OnlineEndpointsGetSamples {
public final class OnlineEndpointsGetTokenSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/OnlineEndpoint/getToken.json
*/
/**
@@ -4888,7 +4894,7 @@ import com.azure.resourcemanager.machinelearning.models.OrderString;
public final class OnlineEndpointsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/OnlineEndpoint/list.json
*/
/**
@@ -4914,7 +4920,7 @@ public final class OnlineEndpointsListSamples {
public final class OnlineEndpointsListKeysSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/OnlineEndpoint/listKeys.json
*/
/**
@@ -4942,7 +4948,7 @@ import com.azure.resourcemanager.machinelearning.models.RegenerateEndpointKeysRe
public final class OnlineEndpointsRegenerateKeysSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/OnlineEndpoint/regenerateKeys.json
*/
/**
@@ -4978,7 +4984,7 @@ import java.util.Map;
public final class OnlineEndpointsUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/OnlineEndpoint/update.json
*/
/**
@@ -5023,7 +5029,7 @@ public final class OnlineEndpointsUpdateSamples {
public final class OperationsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/operationsList.json
*/
/**
@@ -5049,7 +5055,7 @@ import com.azure.resourcemanager.machinelearning.models.PrivateLinkServiceConnec
public final class PrivateEndpointConnectionsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/PrivateEndpointConnection/createOrUpdate.json
*/
/**
@@ -5079,7 +5085,7 @@ public final class PrivateEndpointConnectionsCreateOrUpdateSamples {
public final class PrivateEndpointConnectionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/PrivateEndpointConnection/delete.json
*/
/**
@@ -5105,7 +5111,7 @@ public final class PrivateEndpointConnectionsDeleteSamples {
public final class PrivateEndpointConnectionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/PrivateEndpointConnection/get.json
*/
/**
@@ -5131,7 +5137,7 @@ public final class PrivateEndpointConnectionsGetSamples {
public final class PrivateEndpointConnectionsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/PrivateEndpointConnection/list.json
*/
/**
@@ -5155,7 +5161,7 @@ public final class PrivateEndpointConnectionsListSamples {
public final class PrivateLinkResourcesListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/PrivateLinkResource/list.json
*/
/**
@@ -5179,7 +5185,7 @@ public final class PrivateLinkResourcesListSamples {
public final class QuotasListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Quota/list.json
*/
/**
@@ -5208,7 +5214,7 @@ import java.util.Arrays;
public final class QuotasUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Quota/update.json
*/
/**
@@ -5252,8 +5258,6 @@ import com.azure.resourcemanager.machinelearning.models.StorageAccountDetails;
import com.azure.resourcemanager.machinelearning.models.SystemCreatedAcrAccount;
import com.azure.resourcemanager.machinelearning.models.SystemCreatedStorageAccount;
import com.azure.resourcemanager.machinelearning.models.UserAssignedIdentity;
-import com.azure.resourcemanager.machinelearning.models.UserCreatedAcrAccount;
-import com.azure.resourcemanager.machinelearning.models.UserCreatedStorageAccount;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
@@ -5264,8 +5268,8 @@ import java.util.Map;
public final class RegistriesCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registries/createOrUpdate-SystemCreated.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
+ * examples/Registries/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Registry with system created accounts.
@@ -5317,55 +5321,6 @@ public final class RegistriesCreateOrUpdateSamples {
.create();
}
- /*
- * x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registries/createOrUpdate-UserCreated.json
- */
- /**
- * Sample code: CreateOrUpdate Registry with user created accounts.
- *
- * @param manager Entry point to MachineLearningManager.
- */
- public static void createOrUpdateRegistryWithUserCreatedAccounts(
- com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.registries()
- .define("string")
- .withRegion("string")
- .withExistingResourceGroup("test-rg")
- .withTags(mapOf())
- .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.NONE)
- .withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
- .withKind("string")
- .withSku(new Sku().withName("string")
- .withTier(SkuTier.FREE)
- .withSize("string")
- .withFamily("string")
- .withCapacity(1))
- .withDiscoveryUrl("string")
- .withIntellectualPropertyPublisher("string")
- .withManagedResourceGroup(new ArmResourceId().withResourceId("string"))
- .withMlFlowRegistryUri("string")
- .withRegistryPrivateEndpointConnections(
- Arrays.asList(new RegistryPrivateEndpointConnection().withId("string")
- .withLocation("string")
- .withGroupIds(Arrays.asList("string"))
- .withPrivateEndpoint(new PrivateEndpointResource().withSubnetArmId("string"))
- .withRegistryPrivateLinkServiceConnectionState(
- new RegistryPrivateLinkServiceConnectionState().withActionsRequired("string")
- .withDescription("string")
- .withStatus(EndpointServiceConnectionStatus.APPROVED))
- .withProvisioningState("string")))
- .withPublicNetworkAccess("string")
- .withRegionDetails(Arrays.asList(new RegistryRegionArmDetails()
- .withAcrDetails(Arrays.asList(new AcrDetails().withUserCreatedAcrAccount(
- new UserCreatedAcrAccount().withArmResourceId(new ArmResourceId().withResourceId("string")))))
- .withLocation("string")
- .withStorageAccountDetails(Arrays.asList(new StorageAccountDetails().withUserCreatedStorageAccount(
- new UserCreatedStorageAccount().withArmResourceId(new ArmResourceId().withResourceId("string")))))))
- .create();
- }
-
// Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
@@ -5389,7 +5344,7 @@ public final class RegistriesCreateOrUpdateSamples {
public final class RegistriesDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registries/delete.json
*/
/**
@@ -5412,23 +5367,8 @@ public final class RegistriesDeleteSamples {
public final class RegistriesGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registries/get-UserCreated.json
- */
- /**
- * Sample code: Get Registry with user created accounts.
- *
- * @param manager Entry point to MachineLearningManager.
- */
- public static void
- getRegistryWithUserCreatedAccounts(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.registries().getByResourceGroupWithResponse("test-rg", "string", com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registries/get-SystemCreated.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
+ * examples/Registries/get.json
*/
/**
* Sample code: Get Registry with system created accounts.
@@ -5451,7 +5391,7 @@ public final class RegistriesGetByResourceGroupSamples {
public final class RegistriesListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registries/listBySubscription.json
*/
/**
@@ -5475,23 +5415,8 @@ public final class RegistriesListSamples {
public final class RegistriesListByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registries/list-UserCreated.json
- */
- /**
- * Sample code: List registries with user created accounts.
- *
- * @param manager Entry point to MachineLearningManager.
- */
- public static void listRegistriesWithUserCreatedAccounts(
- com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.registries().listByResourceGroup("test-rg", com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registries/list-SystemCreated.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
+ * examples/Registries/list.json
*/
/**
* Sample code: List registries with system created accounts.
@@ -5524,8 +5449,6 @@ import com.azure.resourcemanager.machinelearning.models.StorageAccountDetails;
import com.azure.resourcemanager.machinelearning.models.SystemCreatedAcrAccount;
import com.azure.resourcemanager.machinelearning.models.SystemCreatedStorageAccount;
import com.azure.resourcemanager.machinelearning.models.UserAssignedIdentity;
-import com.azure.resourcemanager.machinelearning.models.UserCreatedAcrAccount;
-import com.azure.resourcemanager.machinelearning.models.UserCreatedStorageAccount;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
@@ -5536,7 +5459,7 @@ import java.util.Map;
public final class RegistriesRemoveRegionsSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registries/removeRegions.json
*/
/**
@@ -5577,19 +5500,15 @@ public final class RegistriesRemoveRegionsSamples {
.withAcrDetails(Arrays.asList(new AcrDetails()
.withSystemCreatedAcrAccount(new SystemCreatedAcrAccount().withAcrAccountName("string")
.withAcrAccountSku("string")
- .withArmResourceId(new ArmResourceId().withResourceId("string")))
- .withUserCreatedAcrAccount(new UserCreatedAcrAccount()
.withArmResourceId(new ArmResourceId().withResourceId("string")))))
.withLocation("string")
- .withStorageAccountDetails(Arrays.asList(new StorageAccountDetails()
- .withSystemCreatedStorageAccount(
+ .withStorageAccountDetails(
+ Arrays.asList(new StorageAccountDetails().withSystemCreatedStorageAccount(
new SystemCreatedStorageAccount().withAllowBlobPublicAccess(false)
.withArmResourceId(new ArmResourceId().withResourceId("string"))
.withStorageAccountHnsEnabled(false)
.withStorageAccountName("string")
- .withStorageAccountType("string"))
- .withUserCreatedStorageAccount(new UserCreatedStorageAccount()
- .withArmResourceId(new ArmResourceId().withResourceId("string"))))))),
+ .withStorageAccountType("string")))))),
com.azure.core.util.Context.NONE);
}
@@ -5625,35 +5544,8 @@ import java.util.Map;
public final class RegistriesUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registries/update-UserCreated.json
- */
- /**
- * Sample code: Update Registry with user created accounts.
- *
- * @param manager Entry point to MachineLearningManager.
- */
- public static void updateRegistryWithUserCreatedAccounts(
- com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- Registry resource = manager.registries()
- .getByResourceGroupWithResponse("test-rg", "string", com.azure.core.util.Context.NONE)
- .getValue();
- resource.update()
- .withTags(mapOf())
- .withIdentity(new RegistryPartialManagedServiceIdentity().withType(ManagedServiceIdentityType.USER_ASSIGNED)
- .withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
- .withSku(new PartialSku().withName("string")
- .withTier(SkuTier.BASIC)
- .withSize("string")
- .withFamily("string")
- .withCapacity(1))
- .apply();
- }
-
- /*
- * x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registries/update-SystemCreated.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
+ * examples/Registries/update.json
*/
/**
* Sample code: Update Registry with system created accounts.
@@ -5670,11 +5562,11 @@ public final class RegistriesUpdateSamples {
.withIdentity(
new RegistryPartialManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
.withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
- .withSku(new PartialSku().withName("string")
- .withTier(SkuTier.BASIC)
- .withSize("string")
+ .withSku(new PartialSku().withCapacity(1)
.withFamily("string")
- .withCapacity(1))
+ .withName("string")
+ .withSize("string")
+ .withTier(SkuTier.BASIC))
.apply();
}
@@ -5706,7 +5598,7 @@ import java.util.Map;
public final class RegistryCodeContainersCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/CodeContainer/createOrUpdate.json
*/
/**
@@ -5746,7 +5638,7 @@ public final class RegistryCodeContainersCreateOrUpdateSamples {
public final class RegistryCodeContainersDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/CodeContainer/delete.json
*/
/**
@@ -5771,7 +5663,7 @@ public final class RegistryCodeContainersDeleteSamples {
public final class RegistryCodeContainersGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/CodeContainer/get.json
*/
/**
@@ -5796,7 +5688,7 @@ public final class RegistryCodeContainersGetSamples {
public final class RegistryCodeContainersListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/CodeContainer/list.json
*/
/**
@@ -5823,7 +5715,7 @@ import com.azure.resourcemanager.machinelearning.models.PendingUploadType;
public final class RegistryCodeVersionsCreateOrGetStartPendingUploadSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/CodeVersion/createOrGetStartPendingUpload.json
*/
/**
@@ -5856,7 +5748,7 @@ import java.util.Map;
public final class RegistryCodeVersionsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/CodeVersion/createOrUpdate.json
*/
/**
@@ -5869,8 +5761,8 @@ public final class RegistryCodeVersionsCreateOrUpdateSamples {
manager.registryCodeVersions()
.createOrUpdate("test-rg", "my-aml-registry", "string", "string",
new CodeVersionInner().withProperties(new CodeVersionProperties().withDescription("string")
- .withTags(mapOf("string", "string"))
.withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
.withIsAnonymous(false)
.withCodeUri("fakeTokenPlaceholder")),
com.azure.core.util.Context.NONE);
@@ -5899,7 +5791,7 @@ public final class RegistryCodeVersionsCreateOrUpdateSamples {
public final class RegistryCodeVersionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/CodeVersion/delete.json
*/
/**
@@ -5924,7 +5816,7 @@ public final class RegistryCodeVersionsDeleteSamples {
public final class RegistryCodeVersionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/CodeVersion/get.json
*/
/**
@@ -5949,7 +5841,7 @@ public final class RegistryCodeVersionsGetSamples {
public final class RegistryCodeVersionsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/CodeVersion/list.json
*/
/**
@@ -5979,7 +5871,7 @@ import java.util.Map;
public final class RegistryComponentContainersCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/ComponentContainer/createOrUpdate.json
*/
/**
@@ -5993,8 +5885,8 @@ public final class RegistryComponentContainersCreateOrUpdateSamples {
.createOrUpdate("test-rg", "my-aml-registry", "string",
new ComponentContainerInner()
.withProperties(new ComponentContainerProperties().withDescription("string")
- .withTags(mapOf("string", "string"))
- .withProperties(mapOf("string", "string"))),
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))),
com.azure.core.util.Context.NONE);
}
@@ -6021,7 +5913,7 @@ public final class RegistryComponentContainersCreateOrUpdateSamples {
public final class RegistryComponentContainersDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/ComponentContainer/delete.json
*/
/**
@@ -6046,7 +5938,7 @@ public final class RegistryComponentContainersDeleteSamples {
public final class RegistryComponentContainersGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/ComponentContainer/get.json
*/
/**
@@ -6071,7 +5963,7 @@ public final class RegistryComponentContainersGetSamples {
public final class RegistryComponentContainersListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/ComponentContainer/list.json
*/
/**
@@ -6104,7 +5996,7 @@ import java.util.Map;
public final class RegistryComponentVersionsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/ComponentVersion/createOrUpdate.json
*/
/**
@@ -6117,8 +6009,8 @@ public final class RegistryComponentVersionsCreateOrUpdateSamples {
manager.registryComponentVersions()
.createOrUpdate("test-rg", "my-aml-registry", "string", "string",
new ComponentVersionInner().withProperties(new ComponentVersionProperties().withDescription("string")
- .withTags(mapOf("string", "string"))
.withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
.withIsAnonymous(false)
.withComponentSpec(SerializerFactory.createDefaultManagementSerializerAdapter()
.deserialize("{\"8ced901b-d826-477d-bfef-329da9672513\":null}", Object.class,
@@ -6149,7 +6041,7 @@ public final class RegistryComponentVersionsCreateOrUpdateSamples {
public final class RegistryComponentVersionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/ComponentVersion/delete.json
*/
/**
@@ -6174,7 +6066,7 @@ public final class RegistryComponentVersionsDeleteSamples {
public final class RegistryComponentVersionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/ComponentVersion/get.json
*/
/**
@@ -6199,7 +6091,7 @@ public final class RegistryComponentVersionsGetSamples {
public final class RegistryComponentVersionsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/ComponentVersion/list.json
*/
/**
@@ -6230,7 +6122,7 @@ import java.util.Map;
public final class RegistryDataContainersCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/DataContainer/createOrUpdate.json
*/
/**
@@ -6243,8 +6135,8 @@ public final class RegistryDataContainersCreateOrUpdateSamples {
manager.registryDataContainers()
.createOrUpdate("test-rg", "registryName", "string",
new DataContainerInner().withProperties(new DataContainerProperties().withDescription("string")
- .withTags(mapOf("string", "string"))
.withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
.withIsArchived(false)
.withDataType(DataType.URI_FOLDER)),
com.azure.core.util.Context.NONE);
@@ -6273,7 +6165,7 @@ public final class RegistryDataContainersCreateOrUpdateSamples {
public final class RegistryDataContainersDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/DataContainer/delete.json
*/
/**
@@ -6297,7 +6189,7 @@ public final class RegistryDataContainersDeleteSamples {
public final class RegistryDataContainersGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/DataContainer/get.json
*/
/**
@@ -6324,7 +6216,7 @@ import com.azure.resourcemanager.machinelearning.models.ListViewType;
public final class RegistryDataContainersListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/DataContainer/registryList.json
*/
/**
@@ -6351,7 +6243,7 @@ import com.azure.resourcemanager.machinelearning.models.GetBlobReferenceSasReque
public final class RegistryDataReferencesGetBlobReferenceSasSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/DataReference/getBlobReferenceSAS.json
*/
/**
@@ -6382,7 +6274,7 @@ import com.azure.resourcemanager.machinelearning.models.PendingUploadType;
public final class RegistryDataVersionsCreateOrGetStartPendingUploadSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/DataVersionBase/createOrGetStartPendingUpload.json
*/
/**
@@ -6416,7 +6308,7 @@ import java.util.Map;
public final class RegistryDataVersionsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/DataVersionBase/createOrUpdate.json
*/
/**
@@ -6429,10 +6321,10 @@ public final class RegistryDataVersionsCreateOrUpdateSamples {
manager.registryDataVersions()
.createOrUpdate("test-rg", "registryName", "string", "string",
new DataVersionBaseInner().withProperties(new MLTableData().withDescription("string")
- .withTags(mapOf("string", "string"))
.withProperties(mapOf("string", "string"))
- .withIsArchived(false)
+ .withTags(mapOf("string", "string"))
.withIsAnonymous(false)
+ .withIsArchived(false)
.withDataUri("string")
.withReferencedUris(Arrays.asList("string"))),
com.azure.core.util.Context.NONE);
@@ -6461,7 +6353,7 @@ public final class RegistryDataVersionsCreateOrUpdateSamples {
public final class RegistryDataVersionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/DataVersionBase/delete.json
*/
/**
@@ -6486,7 +6378,7 @@ public final class RegistryDataVersionsDeleteSamples {
public final class RegistryDataVersionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/DataVersionBase/get.json
*/
/**
@@ -6513,7 +6405,7 @@ import com.azure.resourcemanager.machinelearning.models.ListViewType;
public final class RegistryDataVersionsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/DataVersionBase/registryList.json
*/
/**
@@ -6544,7 +6436,7 @@ import java.util.Map;
public final class RegistryEnvironmentContainersCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/EnvironmentContainer/createOrUpdate.json
*/
/**
@@ -6558,9 +6450,9 @@ public final class RegistryEnvironmentContainersCreateOrUpdateSamples {
.createOrUpdate("testrg123", "testregistry", "testEnvironment",
new EnvironmentContainerInner().withProperties(new EnvironmentContainerProperties()
.withDescription("string")
- .withTags(
- mapOf("additionalProp1", "string", "additionalProp2", "string", "additionalProp3", "string"))
.withProperties(
+ mapOf("additionalProp1", "string", "additionalProp2", "string", "additionalProp3", "string"))
+ .withTags(
mapOf("additionalProp1", "string", "additionalProp2", "string", "additionalProp3", "string"))),
com.azure.core.util.Context.NONE);
}
@@ -6588,7 +6480,7 @@ public final class RegistryEnvironmentContainersCreateOrUpdateSamples {
public final class RegistryEnvironmentContainersDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/EnvironmentContainer/delete.json
*/
/**
@@ -6613,7 +6505,7 @@ public final class RegistryEnvironmentContainersDeleteSamples {
public final class RegistryEnvironmentContainersGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/EnvironmentContainer/get.json
*/
/**
@@ -6639,7 +6531,7 @@ public final class RegistryEnvironmentContainersGetSamples {
public final class RegistryEnvironmentContainersListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/EnvironmentContainer/list.json
*/
/**
@@ -6672,7 +6564,7 @@ import java.util.Map;
public final class RegistryEnvironmentVersionsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/EnvironmentVersion/createOrUpdate.json
*/
/**
@@ -6686,14 +6578,14 @@ public final class RegistryEnvironmentVersionsCreateOrUpdateSamples {
.createOrUpdate("test-rg", "my-aml-registry", "string", "string",
new EnvironmentVersionInner().withProperties(new EnvironmentVersionProperties()
.withDescription("string")
- .withTags(mapOf("string", "string"))
.withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
.withIsAnonymous(false)
- .withImage("docker.io/tensorflow/serving:latest")
- .withCondaFile("string")
.withBuild(new BuildContext().withContextUri(
"https://storage-account.blob.core.windows.net/azureml/DockerBuildContext/95ddede6b9b8c4e90472db3acd0a8d28/")
.withDockerfilePath("prod/Dockerfile"))
+ .withCondaFile("string")
+ .withImage("docker.io/tensorflow/serving:latest")
.withInferenceConfig(
new InferenceContainerProperties().withLivenessRoute(new Route().withPath("string").withPort(1))
.withReadinessRoute(new Route().withPath("string").withPort(1))
@@ -6724,7 +6616,7 @@ public final class RegistryEnvironmentVersionsCreateOrUpdateSamples {
public final class RegistryEnvironmentVersionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/EnvironmentVersion/delete.json
*/
/**
@@ -6749,7 +6641,7 @@ public final class RegistryEnvironmentVersionsDeleteSamples {
public final class RegistryEnvironmentVersionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/EnvironmentVersion/get.json
*/
/**
@@ -6775,7 +6667,7 @@ public final class RegistryEnvironmentVersionsGetSamples {
public final class RegistryEnvironmentVersionsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/EnvironmentVersion/list.json
*/
/**
@@ -6805,7 +6697,7 @@ import java.util.Map;
public final class RegistryModelContainersCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/ModelContainer/createOrUpdate.json
*/
/**
@@ -6846,7 +6738,7 @@ public final class RegistryModelContainersCreateOrUpdateSamples {
public final class RegistryModelContainersDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/ModelContainer/delete.json
*/
/**
@@ -6871,7 +6763,7 @@ public final class RegistryModelContainersDeleteSamples {
public final class RegistryModelContainersGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/ModelContainer/get.json
*/
/**
@@ -6897,7 +6789,7 @@ public final class RegistryModelContainersGetSamples {
public final class RegistryModelContainersListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/ModelContainer/list.json
*/
/**
@@ -6925,7 +6817,7 @@ import com.azure.resourcemanager.machinelearning.models.PendingUploadType;
public final class RegistryModelVersionsCreateOrGetStartPendingUploadSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/ModelVersion/createOrGetStartPendingUpload.json
*/
/**
@@ -6959,7 +6851,7 @@ import java.util.Map;
public final class RegistryModelVersionsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/ModelVersion/createOrUpdate.json
*/
/**
@@ -6972,8 +6864,8 @@ public final class RegistryModelVersionsCreateOrUpdateSamples {
manager.registryModelVersions()
.createOrUpdate("test-rg", "my-aml-registry", "string", "string",
new ModelVersionInner().withProperties(new ModelVersionProperties().withDescription("string")
- .withTags(mapOf("string", "string"))
.withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
.withIsAnonymous(false)
.withFlavors(mapOf("string", new FlavorData().withData(mapOf("string", "string"))))
.withModelType("CustomModel")
@@ -7004,7 +6896,7 @@ public final class RegistryModelVersionsCreateOrUpdateSamples {
public final class RegistryModelVersionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/ModelVersion/delete.json
*/
/**
@@ -7029,7 +6921,7 @@ public final class RegistryModelVersionsDeleteSamples {
public final class RegistryModelVersionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/ModelVersion/get.json
*/
/**
@@ -7055,7 +6947,7 @@ public final class RegistryModelVersionsGetSamples {
public final class RegistryModelVersionsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/ModelVersion/list.json
*/
/**
@@ -7090,7 +6982,7 @@ import java.util.Map;
public final class SchedulesCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Schedule/createOrUpdate.json
*/
/**
@@ -7104,18 +6996,18 @@ public final class SchedulesCreateOrUpdateSamples {
.define("string")
.withExistingWorkspace("test-rg", "my-aml-workspace")
.withProperties(new ScheduleProperties().withDescription("string")
- .withTags(mapOf("string", "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"))
- .withAction(new EndpointScheduleAction()
- .withEndpointInvocationDefinition(SerializerFactory.createDefaultManagementSerializerAdapter()
- .deserialize("{\"9965593e-526f-4b89-bb36-761138cf2794\":null}", Object.class,
- SerializerEncoding.JSON))))
+ .withExpression("string")))
.create();
}
@@ -7142,7 +7034,7 @@ public final class SchedulesCreateOrUpdateSamples {
public final class SchedulesDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Schedule/delete.json
*/
/**
@@ -7165,7 +7057,7 @@ public final class SchedulesDeleteSamples {
public final class SchedulesGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Schedule/get.json
*/
/**
@@ -7189,7 +7081,7 @@ public final class SchedulesGetSamples {
public final class SchedulesListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Schedule/list.json
*/
/**
@@ -7225,7 +7117,7 @@ import java.util.Map;
public final class ServerlessEndpointsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ServerlessEndpoint/createOrUpdate.json
*/
/**
@@ -7239,14 +7131,13 @@ public final class ServerlessEndpointsCreateOrUpdateSamples {
.define("string")
.withRegion("string")
.withExistingWorkspace("test-rg", "my-aml-workspace")
- .withProperties(
- new ServerlessEndpointProperties().withModelSettings(new ModelSettings().withModelId("string"))
- .withAuthMode(ServerlessInferenceEndpointAuthMode.KEY)
- .withContentSafety(new ContentSafety().withContentSafetyStatus(ContentSafetyStatus.ENABLED)))
+ .withProperties(new ServerlessEndpointProperties().withAuthMode(ServerlessInferenceEndpointAuthMode.KEY)
+ .withContentSafety(new ContentSafety().withContentSafetyStatus(ContentSafetyStatus.ENABLED))
+ .withModelSettings(new ModelSettings().withModelId("string")))
.withTags(mapOf())
- .withKind("string")
.withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
.withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withKind("string")
.withSku(new Sku().withName("string")
.withTier(SkuTier.STANDARD)
.withSize("string")
@@ -7278,7 +7169,7 @@ public final class ServerlessEndpointsCreateOrUpdateSamples {
public final class ServerlessEndpointsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ServerlessEndpoint/delete.json
*/
/**
@@ -7302,7 +7193,7 @@ public final class ServerlessEndpointsDeleteSamples {
public final class ServerlessEndpointsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ServerlessEndpoint/get.json
*/
/**
@@ -7327,7 +7218,7 @@ public final class ServerlessEndpointsGetSamples {
public final class ServerlessEndpointsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ServerlessEndpoint/list.json
*/
/**
@@ -7351,7 +7242,7 @@ public final class ServerlessEndpointsListSamples {
public final class ServerlessEndpointsListKeysSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ServerlessEndpoint/listKeys.json
*/
/**
@@ -7379,7 +7270,7 @@ import com.azure.resourcemanager.machinelearning.models.RegenerateEndpointKeysRe
public final class ServerlessEndpointsRegenerateKeysSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ServerlessEndpoint/regenerateKeys.json
*/
/**
@@ -7417,7 +7308,7 @@ import java.util.Map;
public final class ServerlessEndpointsUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ServerlessEndpoint/update.json
*/
/**
@@ -7432,15 +7323,15 @@ public final class ServerlessEndpointsUpdateSamples {
.getValue();
resource.update()
.withTags(mapOf())
- .withSku(new PartialSku().withName("string")
- .withTier(SkuTier.PREMIUM)
- .withSize("string")
- .withFamily("string")
- .withCapacity(1))
.withIdentity(new PartialManagedServiceIdentity().withType(ManagedServiceIdentityType.NONE)
.withUserAssignedIdentities(mapOf("string",
SerializerFactory.createDefaultManagementSerializerAdapter()
.deserialize("{}", Object.class, SerializerEncoding.JSON))))
+ .withSku(new PartialSku().withCapacity(1)
+ .withFamily("string")
+ .withName("string")
+ .withSize("string")
+ .withTier(SkuTier.PREMIUM))
.apply();
}
@@ -7467,7 +7358,7 @@ public final class ServerlessEndpointsUpdateSamples {
public final class UsagesListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Usage/list.json
*/
/**
@@ -7490,7 +7381,7 @@ public final class UsagesListSamples {
public final class VirtualMachineSizesListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/VirtualMachineSize/list.json
*/
/**
@@ -7516,7 +7407,7 @@ import com.azure.resourcemanager.machinelearning.models.NoneAuthTypeWorkspaceCon
public final class WorkspaceConnectionsCreateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/WorkspaceConnection/create.json
*/
/**
@@ -7546,7 +7437,7 @@ public final class WorkspaceConnectionsCreateSamples {
public final class WorkspaceConnectionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/WorkspaceConnection/delete.json
*/
/**
@@ -7571,7 +7462,7 @@ public final class WorkspaceConnectionsDeleteSamples {
public final class WorkspaceConnectionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/WorkspaceConnection/get.json
*/
/**
@@ -7596,7 +7487,7 @@ public final class WorkspaceConnectionsGetSamples {
public final class WorkspaceConnectionsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/WorkspaceConnection/list.json
*/
/**
@@ -7607,7 +7498,7 @@ public final class WorkspaceConnectionsListSamples {
public static void
listWorkspaceConnections(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.workspaceConnections()
- .list("resourceGroup-1", "workspace-1", "www.facebook.com", "ContainerRegistry",
+ .list("resourceGroup-1", "workspace-1", "www.facebook.com", "ContainerRegistry", null,
com.azure.core.util.Context.NONE);
}
}
@@ -7622,7 +7513,7 @@ public final class WorkspaceConnectionsListSamples {
public final class WorkspaceConnectionsListSecretsSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/WorkspaceConnection/listSecrets.json
*/
/**
@@ -7638,6 +7529,61 @@ public final class WorkspaceConnectionsListSecretsSamples {
}
```
+### WorkspaceConnections_Update
+
+```java
+import com.azure.resourcemanager.machinelearning.models.AccessKeyAuthTypeWorkspaceConnectionProperties;
+import com.azure.resourcemanager.machinelearning.models.ConnectionCategory;
+import com.azure.resourcemanager.machinelearning.models.WorkspaceConnectionAccessKey;
+import com.azure.resourcemanager.machinelearning.models.WorkspaceConnectionPropertiesV2BasicResource;
+import java.time.OffsetDateTime;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for WorkspaceConnections Update.
+ */
+public final class WorkspaceConnectionsUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
+ * examples/WorkspaceConnection/update.json
+ */
+ /**
+ * Sample code: UpdateWorkspaceConnection.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void
+ updateWorkspaceConnection(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ WorkspaceConnectionPropertiesV2BasicResource resource = manager.workspaceConnections()
+ .getWithResponse("test-rg", "workspace-1", "connection-1", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update()
+ .withProperties(
+ new AccessKeyAuthTypeWorkspaceConnectionProperties().withCategory(ConnectionCategory.ADLSGEN2)
+ .withExpiryTime(OffsetDateTime.parse("2020-01-01T00:00:00Z"))
+ .withTarget("some_string")
+ .withMetadata(mapOf())
+ .withCredentials(new WorkspaceConnectionAccessKey().withAccessKeyId("fakeTokenPlaceholder")
+ .withSecretAccessKey("fakeTokenPlaceholder")))
+ .apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
### WorkspaceFeatures_List
```java
@@ -7647,7 +7593,7 @@ public final class WorkspaceConnectionsListSecretsSamples {
public final class WorkspaceFeaturesListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/WorkspaceFeature/list.json
*/
/**
@@ -7683,7 +7629,7 @@ import java.util.Map;
public final class WorkspacesCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/create.json
*/
/**
@@ -7750,7 +7696,7 @@ public final class WorkspacesCreateOrUpdateSamples {
public final class WorkspacesDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/delete.json
*/
/**
@@ -7778,7 +7724,7 @@ import java.util.Map;
public final class WorkspacesDiagnoseSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/diagnose.json
*/
/**
@@ -7824,7 +7770,7 @@ public final class WorkspacesDiagnoseSamples {
public final class WorkspacesGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/get.json
*/
/**
@@ -7848,7 +7794,7 @@ public final class WorkspacesGetByResourceGroupSamples {
public final class WorkspacesListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/listBySubscription.json
*/
/**
@@ -7872,7 +7818,7 @@ public final class WorkspacesListSamples {
public final class WorkspacesListByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/listByResourceGroup.json
*/
/**
@@ -7896,7 +7842,7 @@ public final class WorkspacesListByResourceGroupSamples {
public final class WorkspacesListKeysSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/listKeys.json
*/
/**
@@ -7919,7 +7865,7 @@ public final class WorkspacesListKeysSamples {
public final class WorkspacesListNotebookAccessTokenSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/listNotebookAccessToken.json
*/
/**
@@ -7943,7 +7889,7 @@ public final class WorkspacesListNotebookAccessTokenSamples {
public final class WorkspacesListNotebookKeysSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Notebook/listKeys.json
*/
/**
@@ -7967,7 +7913,7 @@ public final class WorkspacesListNotebookKeysSamples {
public final class WorkspacesListOutboundNetworkDependenciesEndpointsSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/ExternalFQDN/get.json
*/
/**
@@ -7993,7 +7939,7 @@ public final class WorkspacesListOutboundNetworkDependenciesEndpointsSamples {
public final class WorkspacesListStorageAccountKeysSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/listStorageAccountKeys.json
*/
/**
@@ -8017,7 +7963,7 @@ public final class WorkspacesListStorageAccountKeysSamples {
public final class WorkspacesPrepareNotebookSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Notebook/prepare.json
*/
/**
@@ -8040,7 +7986,7 @@ public final class WorkspacesPrepareNotebookSamples {
public final class WorkspacesResyncKeysSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/resyncKeys.json
*/
/**
@@ -8066,7 +8012,7 @@ import com.azure.resourcemanager.machinelearning.models.Workspace;
public final class WorkspacesUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/update.json
*/
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/pom.xml b/sdk/machinelearning/azure-resourcemanager-machinelearning/pom.xml
index 8a46e7e287bd..ea8b8ffb6336 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/pom.xml
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/pom.xml
@@ -18,7 +18,7 @@
jar
Microsoft Azure SDK for Machine Learning Management
- This package contains Microsoft Azure SDK for Machine Learning Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. These APIs allow end users to operate on Azure Machine Learning Workspace resources. Package tag package-2024-04.
+ 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-2024-10.
https://github.com/Azure/azure-sdk-for-java
@@ -46,13 +46,9 @@
0
0
true
+ false
-
- com.azure
- azure-json
- 1.4.0
-
com.azure
azure-core
@@ -63,6 +59,11 @@
azure-core-management
1.16.0
+
+ com.azure
+ azure-json
+ 1.4.0
+
com.azure
azure-core-test
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 bb31e555c22f..3d7cc8aeb656 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
@@ -11,15 +11,15 @@
import com.azure.core.http.HttpPipelinePosition;
import com.azure.core.http.policy.AddDatePolicy;
import com.azure.core.http.policy.AddHeadersFromContextPolicy;
-import com.azure.core.http.policy.HttpLoggingPolicy;
+import com.azure.core.http.policy.BearerTokenAuthenticationPolicy;
import com.azure.core.http.policy.HttpLogOptions;
+import com.azure.core.http.policy.HttpLoggingPolicy;
import com.azure.core.http.policy.HttpPipelinePolicy;
import com.azure.core.http.policy.HttpPolicyProviders;
import com.azure.core.http.policy.RequestIdPolicy;
import com.azure.core.http.policy.RetryOptions;
import com.azure.core.http.policy.RetryPolicy;
import com.azure.core.http.policy.UserAgentPolicy;
-import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy;
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
@@ -33,13 +33,13 @@
import com.azure.resourcemanager.machinelearning.implementation.ComponentVersionsImpl;
import com.azure.resourcemanager.machinelearning.implementation.ComputesImpl;
import com.azure.resourcemanager.machinelearning.implementation.DataContainersImpl;
-import com.azure.resourcemanager.machinelearning.implementation.DatastoresImpl;
import com.azure.resourcemanager.machinelearning.implementation.DataVersionsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.DatastoresImpl;
import com.azure.resourcemanager.machinelearning.implementation.EnvironmentContainersImpl;
import com.azure.resourcemanager.machinelearning.implementation.EnvironmentVersionsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.FeaturesImpl;
import com.azure.resourcemanager.machinelearning.implementation.FeaturesetContainersImpl;
import com.azure.resourcemanager.machinelearning.implementation.FeaturesetVersionsImpl;
-import com.azure.resourcemanager.machinelearning.implementation.FeaturesImpl;
import com.azure.resourcemanager.machinelearning.implementation.FeaturestoreEntityContainersImpl;
import com.azure.resourcemanager.machinelearning.implementation.FeaturestoreEntityVersionsImpl;
import com.azure.resourcemanager.machinelearning.implementation.JobsImpl;
@@ -81,8 +81,8 @@
import com.azure.resourcemanager.machinelearning.models.ComponentVersions;
import com.azure.resourcemanager.machinelearning.models.Computes;
import com.azure.resourcemanager.machinelearning.models.DataContainers;
-import com.azure.resourcemanager.machinelearning.models.Datastores;
import com.azure.resourcemanager.machinelearning.models.DataVersions;
+import com.azure.resourcemanager.machinelearning.models.Datastores;
import com.azure.resourcemanager.machinelearning.models.EnvironmentContainers;
import com.azure.resourcemanager.machinelearning.models.EnvironmentVersions;
import com.azure.resourcemanager.machinelearning.models.Features;
@@ -133,10 +133,6 @@
* These APIs allow end users to operate on Azure Machine Learning Workspace resources.
*/
public final class MachineLearningManager {
- private Operations operations;
-
- private Workspaces workspaces;
-
private Usages usages;
private VirtualMachineSizes virtualMachineSizes;
@@ -145,16 +141,6 @@ public final class MachineLearningManager {
private Computes computes;
- private PrivateEndpointConnections privateEndpointConnections;
-
- private PrivateLinkResources privateLinkResources;
-
- private WorkspaceConnections workspaceConnections;
-
- private ManagedNetworkSettingsRules managedNetworkSettingsRules;
-
- private ManagedNetworkProvisions managedNetworkProvisions;
-
private RegistryCodeContainers registryCodeContainers;
private RegistryCodeVersions registryCodeVersions;
@@ -229,6 +215,20 @@ public final class MachineLearningManager {
private WorkspaceFeatures workspaceFeatures;
+ private Operations operations;
+
+ private Workspaces workspaces;
+
+ private PrivateEndpointConnections privateEndpointConnections;
+
+ private PrivateLinkResources privateLinkResources;
+
+ private WorkspaceConnections workspaceConnections;
+
+ private ManagedNetworkSettingsRules managedNetworkSettingsRules;
+
+ private ManagedNetworkProvisions managedNetworkProvisions;
+
private final AzureMachineLearningWorkspaces clientObject;
private MachineLearningManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -393,7 +393,7 @@ public MachineLearningManager authenticate(TokenCredential credential, AzureProf
.append("-")
.append("com.azure.resourcemanager.machinelearning")
.append("/")
- .append("1.1.0");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
@@ -426,7 +426,7 @@ public MachineLearningManager authenticate(TokenCredential credential, AzureProf
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
- policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
+ policies.add(new BearerTokenAuthenticationPolicy(credential, scopes.toArray(new String[0])));
policies.addAll(this.policies.stream()
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
.collect(Collectors.toList()));
@@ -439,30 +439,6 @@ public MachineLearningManager authenticate(TokenCredential credential, AzureProf
}
}
- /**
- * Gets the resource collection API of Operations.
- *
- * @return Resource collection API of Operations.
- */
- public Operations operations() {
- if (this.operations == null) {
- this.operations = new OperationsImpl(clientObject.getOperations(), this);
- }
- return operations;
- }
-
- /**
- * Gets the resource collection API of Workspaces. It manages Workspace.
- *
- * @return Resource collection API of Workspaces.
- */
- public Workspaces workspaces() {
- if (this.workspaces == null) {
- this.workspaces = new WorkspacesImpl(clientObject.getWorkspaces(), this);
- }
- return workspaces;
- }
-
/**
* Gets the resource collection API of Usages.
*
@@ -511,70 +487,6 @@ public Computes computes() {
return computes;
}
- /**
- * Gets the resource collection API of PrivateEndpointConnections. It manages PrivateEndpointConnection.
- *
- * @return Resource collection API of PrivateEndpointConnections.
- */
- public PrivateEndpointConnections privateEndpointConnections() {
- if (this.privateEndpointConnections == null) {
- this.privateEndpointConnections
- = new PrivateEndpointConnectionsImpl(clientObject.getPrivateEndpointConnections(), this);
- }
- return privateEndpointConnections;
- }
-
- /**
- * Gets the resource collection API of PrivateLinkResources.
- *
- * @return Resource collection API of PrivateLinkResources.
- */
- public PrivateLinkResources privateLinkResources() {
- if (this.privateLinkResources == null) {
- this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this);
- }
- return privateLinkResources;
- }
-
- /**
- * Gets the resource collection API of WorkspaceConnections. It manages
- * WorkspaceConnectionPropertiesV2BasicResource.
- *
- * @return Resource collection API of WorkspaceConnections.
- */
- public WorkspaceConnections workspaceConnections() {
- if (this.workspaceConnections == null) {
- this.workspaceConnections = new WorkspaceConnectionsImpl(clientObject.getWorkspaceConnections(), this);
- }
- return workspaceConnections;
- }
-
- /**
- * Gets the resource collection API of ManagedNetworkSettingsRules. It manages OutboundRuleBasicResource.
- *
- * @return Resource collection API of ManagedNetworkSettingsRules.
- */
- public ManagedNetworkSettingsRules managedNetworkSettingsRules() {
- if (this.managedNetworkSettingsRules == null) {
- this.managedNetworkSettingsRules
- = new ManagedNetworkSettingsRulesImpl(clientObject.getManagedNetworkSettingsRules(), this);
- }
- return managedNetworkSettingsRules;
- }
-
- /**
- * Gets the resource collection API of ManagedNetworkProvisions.
- *
- * @return Resource collection API of ManagedNetworkProvisions.
- */
- public ManagedNetworkProvisions managedNetworkProvisions() {
- if (this.managedNetworkProvisions == null) {
- this.managedNetworkProvisions
- = new ManagedNetworkProvisionsImpl(clientObject.getManagedNetworkProvisions(), this);
- }
- return managedNetworkProvisions;
- }
-
/**
* Gets the resource collection API of RegistryCodeContainers.
*
@@ -1030,6 +942,94 @@ public WorkspaceFeatures workspaceFeatures() {
return workspaceFeatures;
}
+ /**
+ * Gets the resource collection API of Operations.
+ *
+ * @return Resource collection API of Operations.
+ */
+ public Operations operations() {
+ if (this.operations == null) {
+ this.operations = new OperationsImpl(clientObject.getOperations(), this);
+ }
+ return operations;
+ }
+
+ /**
+ * Gets the resource collection API of Workspaces. It manages Workspace.
+ *
+ * @return Resource collection API of Workspaces.
+ */
+ public Workspaces workspaces() {
+ if (this.workspaces == null) {
+ this.workspaces = new WorkspacesImpl(clientObject.getWorkspaces(), this);
+ }
+ return workspaces;
+ }
+
+ /**
+ * Gets the resource collection API of PrivateEndpointConnections. It manages PrivateEndpointConnection.
+ *
+ * @return Resource collection API of PrivateEndpointConnections.
+ */
+ public PrivateEndpointConnections privateEndpointConnections() {
+ if (this.privateEndpointConnections == null) {
+ this.privateEndpointConnections
+ = new PrivateEndpointConnectionsImpl(clientObject.getPrivateEndpointConnections(), this);
+ }
+ return privateEndpointConnections;
+ }
+
+ /**
+ * Gets the resource collection API of PrivateLinkResources.
+ *
+ * @return Resource collection API of PrivateLinkResources.
+ */
+ public PrivateLinkResources privateLinkResources() {
+ if (this.privateLinkResources == null) {
+ this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this);
+ }
+ return privateLinkResources;
+ }
+
+ /**
+ * Gets the resource collection API of WorkspaceConnections. It manages
+ * WorkspaceConnectionPropertiesV2BasicResource.
+ *
+ * @return Resource collection API of WorkspaceConnections.
+ */
+ public WorkspaceConnections workspaceConnections() {
+ if (this.workspaceConnections == null) {
+ this.workspaceConnections = new WorkspaceConnectionsImpl(clientObject.getWorkspaceConnections(), this);
+ }
+ return workspaceConnections;
+ }
+
+ /**
+ * Gets the resource collection API of ManagedNetworkSettingsRules. It manages OutboundRuleBasicResource.
+ *
+ * @return Resource collection API of ManagedNetworkSettingsRules.
+ */
+ public ManagedNetworkSettingsRules managedNetworkSettingsRules() {
+ if (this.managedNetworkSettingsRules == null) {
+ this.managedNetworkSettingsRules
+ = new ManagedNetworkSettingsRulesImpl(clientObject.getManagedNetworkSettingsRules(), this);
+ }
+ return managedNetworkSettingsRules;
+ }
+
+ /**
+ * Gets the resource collection API of ManagedNetworkProvisions.
+ *
+ * @return Resource collection API of ManagedNetworkProvisions.
+ */
+ public ManagedNetworkProvisions managedNetworkProvisions() {
+ if (this.managedNetworkProvisions == null) {
+ this.managedNetworkProvisions
+ = new ManagedNetworkProvisionsImpl(clientObject.getManagedNetworkProvisions(), this);
+ }
+ return managedNetworkProvisions;
+ }
+
/**
* Gets wrapped service client AzureMachineLearningWorkspaces providing direct access to the underlying
* auto-generated API implementation, based on Azure REST API.
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 f9ec50f298e5..230cd6c178ad 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
@@ -46,20 +46,6 @@ public interface AzureMachineLearningWorkspaces {
*/
Duration getDefaultPollInterval();
- /**
- * Gets the OperationsClient object to access its operations.
- *
- * @return the OperationsClient object.
- */
- OperationsClient getOperations();
-
- /**
- * Gets the WorkspacesClient object to access its operations.
- *
- * @return the WorkspacesClient object.
- */
- WorkspacesClient getWorkspaces();
-
/**
* Gets the UsagesClient object to access its operations.
*
@@ -88,41 +74,6 @@ public interface AzureMachineLearningWorkspaces {
*/
ComputesClient getComputes();
- /**
- * Gets the PrivateEndpointConnectionsClient object to access its operations.
- *
- * @return the PrivateEndpointConnectionsClient object.
- */
- PrivateEndpointConnectionsClient getPrivateEndpointConnections();
-
- /**
- * Gets the PrivateLinkResourcesClient object to access its operations.
- *
- * @return the PrivateLinkResourcesClient object.
- */
- PrivateLinkResourcesClient getPrivateLinkResources();
-
- /**
- * Gets the WorkspaceConnectionsClient object to access its operations.
- *
- * @return the WorkspaceConnectionsClient object.
- */
- WorkspaceConnectionsClient getWorkspaceConnections();
-
- /**
- * Gets the ManagedNetworkSettingsRulesClient object to access its operations.
- *
- * @return the ManagedNetworkSettingsRulesClient object.
- */
- ManagedNetworkSettingsRulesClient getManagedNetworkSettingsRules();
-
- /**
- * Gets the ManagedNetworkProvisionsClient object to access its operations.
- *
- * @return the ManagedNetworkProvisionsClient object.
- */
- ManagedNetworkProvisionsClient getManagedNetworkProvisions();
-
/**
* Gets the RegistryCodeContainersClient object to access its operations.
*
@@ -381,4 +332,53 @@ public interface AzureMachineLearningWorkspaces {
* @return the WorkspaceFeaturesClient object.
*/
WorkspaceFeaturesClient getWorkspaceFeatures();
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
+
+ /**
+ * Gets the WorkspacesClient object to access its operations.
+ *
+ * @return the WorkspacesClient object.
+ */
+ WorkspacesClient getWorkspaces();
+
+ /**
+ * Gets the PrivateEndpointConnectionsClient object to access its operations.
+ *
+ * @return the PrivateEndpointConnectionsClient object.
+ */
+ PrivateEndpointConnectionsClient getPrivateEndpointConnections();
+
+ /**
+ * Gets the PrivateLinkResourcesClient object to access its operations.
+ *
+ * @return the PrivateLinkResourcesClient object.
+ */
+ PrivateLinkResourcesClient getPrivateLinkResources();
+
+ /**
+ * Gets the WorkspaceConnectionsClient object to access its operations.
+ *
+ * @return the WorkspaceConnectionsClient object.
+ */
+ WorkspaceConnectionsClient getWorkspaceConnections();
+
+ /**
+ * Gets the ManagedNetworkSettingsRulesClient object to access its operations.
+ *
+ * @return the ManagedNetworkSettingsRulesClient object.
+ */
+ ManagedNetworkSettingsRulesClient getManagedNetworkSettingsRules();
+
+ /**
+ * Gets the ManagedNetworkProvisionsClient object to access its operations.
+ *
+ * @return the ManagedNetworkProvisionsClient object.
+ */
+ ManagedNetworkProvisionsClient getManagedNetworkProvisions();
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/WorkspaceConnectionsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/WorkspaceConnectionsClient.java
index eee87969a4a3..23067a91b5e2 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
@@ -10,6 +10,7 @@
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.machinelearning.fluent.models.WorkspaceConnectionPropertiesV2BasicResourceInner;
+import com.azure.resourcemanager.machinelearning.models.WorkspaceConnectionUpdateParameter;
/**
* An instance of this class provides access to all the operations defined in WorkspaceConnectionsClient.
@@ -109,6 +110,38 @@ Response deleteWithResponse(String resourceGroupName, String workspaceName
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String workspaceName, String connectionName);
+ /**
+ * Update machine learning workspaces connections under the specified workspace.
+ *
+ * @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 body Parameters for workspace connection update.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(String resourceGroupName,
+ String workspaceName, String connectionName, WorkspaceConnectionUpdateParameter body, Context context);
+
+ /**
+ * Update machine learning workspaces connections under the specified workspace.
+ *
+ * @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.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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)
+ WorkspaceConnectionPropertiesV2BasicResourceInner update(String resourceGroupName, String workspaceName,
+ String connectionName);
+
/**
* The list operation.
*
@@ -130,6 +163,8 @@ PagedIterable list(String res
* @param workspaceName Name of Azure Machine Learning workspace.
* @param target Target of the workspace connection.
* @param category Category of the workspace connection.
+ * @param includeAll query parameter that indicates if get connection call should return both connections and
+ * datastores.
* @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.
@@ -138,7 +173,7 @@ PagedIterable list(String res
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName,
- String workspaceName, String target, String category, Context context);
+ String workspaceName, String target, String category, Boolean includeAll, Context context);
/**
* List all the secrets of a machine learning workspaces connections.
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/BatchDeploymentInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/BatchDeploymentInner.java
index d4ddade922d3..8cbcab8e3234 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/BatchDeploymentInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/BatchDeploymentInner.java
@@ -23,9 +23,9 @@
@Fluent
public final class BatchDeploymentInner extends Resource {
/*
- * [Required] Additional attributes of the entity.
+ * Managed service identity (system assigned and/or user assigned identities)
*/
- private BatchDeploymentProperties properties;
+ private ManagedServiceIdentity identity;
/*
* Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type.
@@ -33,9 +33,9 @@ public final class BatchDeploymentInner extends Resource {
private String kind;
/*
- * Managed service identity (system assigned and/or user assigned identities)
+ * [Required] Additional attributes of the entity.
*/
- private ManagedServiceIdentity identity;
+ private BatchDeploymentProperties properties;
/*
* Sku details required for ARM contract for Autoscaling.
@@ -48,9 +48,9 @@ public final class BatchDeploymentInner extends Resource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -58,9 +58,9 @@ public final class BatchDeploymentInner extends Resource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of BatchDeploymentInner class.
@@ -69,22 +69,22 @@ public BatchDeploymentInner() {
}
/**
- * Get the properties property: [Required] Additional attributes of the entity.
+ * Get the identity property: Managed service identity (system assigned and/or user assigned identities).
*
- * @return the properties value.
+ * @return the identity value.
*/
- public BatchDeploymentProperties properties() {
- return this.properties;
+ public ManagedServiceIdentity identity() {
+ return this.identity;
}
/**
- * Set the properties property: [Required] Additional attributes of the entity.
+ * Set the identity property: Managed service identity (system assigned and/or user assigned identities).
*
- * @param properties the properties value to set.
+ * @param identity the identity value to set.
* @return the BatchDeploymentInner object itself.
*/
- public BatchDeploymentInner withProperties(BatchDeploymentProperties properties) {
- this.properties = properties;
+ public BatchDeploymentInner withIdentity(ManagedServiceIdentity identity) {
+ this.identity = identity;
return this;
}
@@ -111,22 +111,22 @@ public BatchDeploymentInner withKind(String kind) {
}
/**
- * Get the identity property: Managed service identity (system assigned and/or user assigned identities).
+ * Get the properties property: [Required] Additional attributes of the entity.
*
- * @return the identity value.
+ * @return the properties value.
*/
- public ManagedServiceIdentity identity() {
- return this.identity;
+ public BatchDeploymentProperties properties() {
+ return this.properties;
}
/**
- * Set the identity property: Managed service identity (system assigned and/or user assigned identities).
+ * Set the properties property: [Required] Additional attributes of the entity.
*
- * @param identity the identity value to set.
+ * @param properties the properties value to set.
* @return the BatchDeploymentInner object itself.
*/
- public BatchDeploymentInner withIdentity(ManagedServiceIdentity identity) {
- this.identity = identity;
+ public BatchDeploymentInner withProperties(BatchDeploymentProperties properties) {
+ this.properties = properties;
return this;
}
@@ -160,13 +160,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -180,13 +180,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
@@ -213,6 +213,9 @@ public BatchDeploymentInner withTags(Map tags) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (identity() != null) {
+ identity().validate();
+ }
if (properties() == null) {
throw LOGGER.atError()
.log(
@@ -220,9 +223,6 @@ public void validate() {
} else {
properties().validate();
}
- if (identity() != null) {
- identity().validate();
- }
if (sku() != null) {
sku().validate();
}
@@ -239,8 +239,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStringField("location", location());
jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeJsonField("properties", this.properties);
- jsonWriter.writeStringField("kind", this.kind);
jsonWriter.writeJsonField("identity", this.identity);
+ jsonWriter.writeStringField("kind", this.kind);
jsonWriter.writeJsonField("sku", this.sku);
return jsonWriter.writeEndObject();
}
@@ -274,10 +274,10 @@ public static BatchDeploymentInner fromJson(JsonReader jsonReader) throws IOExce
deserializedBatchDeploymentInner.withTags(tags);
} else if ("properties".equals(fieldName)) {
deserializedBatchDeploymentInner.properties = BatchDeploymentProperties.fromJson(reader);
- } else if ("kind".equals(fieldName)) {
- deserializedBatchDeploymentInner.kind = reader.getString();
} else if ("identity".equals(fieldName)) {
deserializedBatchDeploymentInner.identity = ManagedServiceIdentity.fromJson(reader);
+ } else if ("kind".equals(fieldName)) {
+ deserializedBatchDeploymentInner.kind = reader.getString();
} else if ("sku".equals(fieldName)) {
deserializedBatchDeploymentInner.sku = Sku.fromJson(reader);
} else if ("systemData".equals(fieldName)) {
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/BatchEndpointInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/BatchEndpointInner.java
index a4494b6eabf1..0c9302a7bade 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/BatchEndpointInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/BatchEndpointInner.java
@@ -23,9 +23,9 @@
@Fluent
public final class BatchEndpointInner extends Resource {
/*
- * [Required] Additional attributes of the entity.
+ * Managed service identity (system assigned and/or user assigned identities)
*/
- private BatchEndpointProperties properties;
+ private ManagedServiceIdentity identity;
/*
* Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type.
@@ -33,9 +33,9 @@ public final class BatchEndpointInner extends Resource {
private String kind;
/*
- * Managed service identity (system assigned and/or user assigned identities)
+ * [Required] Additional attributes of the entity.
*/
- private ManagedServiceIdentity identity;
+ private BatchEndpointProperties properties;
/*
* Sku details required for ARM contract for Autoscaling.
@@ -48,9 +48,9 @@ public final class BatchEndpointInner extends Resource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -58,9 +58,9 @@ public final class BatchEndpointInner extends Resource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of BatchEndpointInner class.
@@ -69,22 +69,22 @@ public BatchEndpointInner() {
}
/**
- * Get the properties property: [Required] Additional attributes of the entity.
+ * Get the identity property: Managed service identity (system assigned and/or user assigned identities).
*
- * @return the properties value.
+ * @return the identity value.
*/
- public BatchEndpointProperties properties() {
- return this.properties;
+ public ManagedServiceIdentity identity() {
+ return this.identity;
}
/**
- * Set the properties property: [Required] Additional attributes of the entity.
+ * Set the identity property: Managed service identity (system assigned and/or user assigned identities).
*
- * @param properties the properties value to set.
+ * @param identity the identity value to set.
* @return the BatchEndpointInner object itself.
*/
- public BatchEndpointInner withProperties(BatchEndpointProperties properties) {
- this.properties = properties;
+ public BatchEndpointInner withIdentity(ManagedServiceIdentity identity) {
+ this.identity = identity;
return this;
}
@@ -111,22 +111,22 @@ public BatchEndpointInner withKind(String kind) {
}
/**
- * Get the identity property: Managed service identity (system assigned and/or user assigned identities).
+ * Get the properties property: [Required] Additional attributes of the entity.
*
- * @return the identity value.
+ * @return the properties value.
*/
- public ManagedServiceIdentity identity() {
- return this.identity;
+ public BatchEndpointProperties properties() {
+ return this.properties;
}
/**
- * Set the identity property: Managed service identity (system assigned and/or user assigned identities).
+ * Set the properties property: [Required] Additional attributes of the entity.
*
- * @param identity the identity value to set.
+ * @param properties the properties value to set.
* @return the BatchEndpointInner object itself.
*/
- public BatchEndpointInner withIdentity(ManagedServiceIdentity identity) {
- this.identity = identity;
+ public BatchEndpointInner withProperties(BatchEndpointProperties properties) {
+ this.properties = properties;
return this;
}
@@ -160,13 +160,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -180,13 +180,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
@@ -213,15 +213,15 @@ public BatchEndpointInner withTags(Map tags) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (identity() != null) {
+ identity().validate();
+ }
if (properties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException("Missing required property properties in model BatchEndpointInner"));
} else {
properties().validate();
}
- if (identity() != null) {
- identity().validate();
- }
if (sku() != null) {
sku().validate();
}
@@ -238,8 +238,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStringField("location", location());
jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeJsonField("properties", this.properties);
- jsonWriter.writeStringField("kind", this.kind);
jsonWriter.writeJsonField("identity", this.identity);
+ jsonWriter.writeStringField("kind", this.kind);
jsonWriter.writeJsonField("sku", this.sku);
return jsonWriter.writeEndObject();
}
@@ -273,10 +273,10 @@ public static BatchEndpointInner fromJson(JsonReader jsonReader) throws IOExcept
deserializedBatchEndpointInner.withTags(tags);
} else if ("properties".equals(fieldName)) {
deserializedBatchEndpointInner.properties = BatchEndpointProperties.fromJson(reader);
- } else if ("kind".equals(fieldName)) {
- deserializedBatchEndpointInner.kind = reader.getString();
} else if ("identity".equals(fieldName)) {
deserializedBatchEndpointInner.identity = ManagedServiceIdentity.fromJson(reader);
+ } else if ("kind".equals(fieldName)) {
+ deserializedBatchEndpointInner.kind = reader.getString();
} else if ("sku".equals(fieldName)) {
deserializedBatchEndpointInner.sku = Sku.fromJson(reader);
} else if ("systemData".equals(fieldName)) {
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/CodeContainerInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/CodeContainerInner.java
index 81ef24936822..12bbde6bffc0 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/CodeContainerInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/CodeContainerInner.java
@@ -30,9 +30,9 @@ public final class CodeContainerInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +40,9 @@ public final class CodeContainerInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of CodeContainerInner class.
@@ -80,13 +80,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -100,13 +100,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/CodeVersionInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/CodeVersionInner.java
index 5b0d8710edc0..5fa02c3298de 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/CodeVersionInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/CodeVersionInner.java
@@ -30,9 +30,9 @@ public final class CodeVersionInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +40,9 @@ public final class CodeVersionInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of CodeVersionInner class.
@@ -80,13 +80,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -100,13 +100,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ComponentContainerInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ComponentContainerInner.java
index 0168e82327e5..d0a7dcde8d1b 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ComponentContainerInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ComponentContainerInner.java
@@ -30,9 +30,9 @@ public final class ComponentContainerInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +40,9 @@ public final class ComponentContainerInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of ComponentContainerInner class.
@@ -80,13 +80,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -100,13 +100,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ComponentVersionInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ComponentVersionInner.java
index fbe9071c6c41..722a1fa21252 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ComponentVersionInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ComponentVersionInner.java
@@ -30,9 +30,9 @@ public final class ComponentVersionInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +40,9 @@ public final class ComponentVersionInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of ComponentVersionInner class.
@@ -80,13 +80,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -100,13 +100,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ComputeResourceInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ComputeResourceInner.java
index 9885a5d752a7..2807faa73e37 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ComputeResourceInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ComputeResourceInner.java
@@ -52,9 +52,9 @@ public final class ComputeResourceInner extends ProxyResource {
private Compute properties;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -62,9 +62,9 @@ public final class ComputeResourceInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of ComputeResourceInner class.
@@ -182,13 +182,13 @@ public ComputeResourceInner withProperties(Compute properties) {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -202,13 +202,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/DataContainerInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/DataContainerInner.java
index b20e49abe512..5513a8897d49 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/DataContainerInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/DataContainerInner.java
@@ -30,9 +30,9 @@ public final class DataContainerInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +40,9 @@ public final class DataContainerInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of DataContainerInner class.
@@ -80,13 +80,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -100,13 +100,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/DataVersionBaseInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/DataVersionBaseInner.java
index 90443894107e..4d2e169cd82f 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/DataVersionBaseInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/DataVersionBaseInner.java
@@ -30,9 +30,9 @@ public final class DataVersionBaseInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +40,9 @@ public final class DataVersionBaseInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of DataVersionBaseInner class.
@@ -80,13 +80,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -100,13 +100,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/DatastoreInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/DatastoreInner.java
index 90773283eb3a..d7ffc1dc86a9 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/DatastoreInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/DatastoreInner.java
@@ -30,9 +30,9 @@ public final class DatastoreInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +40,9 @@ public final class DatastoreInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of DatastoreInner class.
@@ -80,13 +80,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -100,13 +100,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/EndpointAuthTokenInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/EndpointAuthTokenInner.java
index ae60a3319a7b..f427b864474c 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/EndpointAuthTokenInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/EndpointAuthTokenInner.java
@@ -21,11 +21,6 @@ public final class EndpointAuthTokenInner implements JsonSerializable {
+ /*
+ * [Required] The authentication method for invoking the endpoint (data plane operation). Use 'Key' for key-based
+ * authentication. Use 'AMLToken' for Azure Machine Learning token-based authentication. Use 'AADToken' for
+ * Microsoft Entra token-based authentication.
+ */
+ private EndpointAuthMode authMode;
+
/*
* Description of the inference endpoint.
*/
private String description;
+ /*
+ * EndpointAuthKeys to set initially on an Endpoint.
+ * This property will always be returned as null. AuthKey values must be retrieved using the ListKeys API.
+ */
+ private EndpointAuthKeysInner keys;
+
/*
* Property dictionary. Properties can be added, but not removed or altered.
*/
@@ -39,22 +52,34 @@ public class EndpointPropertiesBaseInner implements JsonSerializable writer.writeString(element));
jsonWriter.writeJsonField("keys", this.keys);
+ jsonWriter.writeMapField("properties", this.properties, (writer, element) -> writer.writeString(element));
return jsonWriter.writeEndObject();
}
@@ -232,6 +235,8 @@ public static EndpointPropertiesBaseInner fromJson(JsonReader jsonReader) throws
deserializedEndpointPropertiesBaseInner.authMode = EndpointAuthMode.fromString(reader.getString());
} else if ("description".equals(fieldName)) {
deserializedEndpointPropertiesBaseInner.description = reader.getString();
+ } else if ("keys".equals(fieldName)) {
+ deserializedEndpointPropertiesBaseInner.keys = EndpointAuthKeysInner.fromJson(reader);
} else if ("properties".equals(fieldName)) {
Map properties = reader.readMap(reader1 -> reader1.getString());
deserializedEndpointPropertiesBaseInner.properties = properties;
@@ -239,8 +244,6 @@ public static EndpointPropertiesBaseInner fromJson(JsonReader jsonReader) throws
deserializedEndpointPropertiesBaseInner.scoringUri = reader.getString();
} else if ("swaggerUri".equals(fieldName)) {
deserializedEndpointPropertiesBaseInner.swaggerUri = reader.getString();
- } else if ("keys".equals(fieldName)) {
- deserializedEndpointPropertiesBaseInner.keys = EndpointAuthKeysInner.fromJson(reader);
} else {
reader.skipChildren();
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/EnvironmentContainerInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/EnvironmentContainerInner.java
index 988eef2ab7d4..95f4949b8eb4 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/EnvironmentContainerInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/EnvironmentContainerInner.java
@@ -30,9 +30,9 @@ public final class EnvironmentContainerInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +40,9 @@ public final class EnvironmentContainerInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of EnvironmentContainerInner class.
@@ -80,13 +80,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -100,13 +100,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/EnvironmentVersionInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/EnvironmentVersionInner.java
index 479e58bf0248..9930261eaf79 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/EnvironmentVersionInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/EnvironmentVersionInner.java
@@ -30,9 +30,9 @@ public final class EnvironmentVersionInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +40,9 @@ public final class EnvironmentVersionInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of EnvironmentVersionInner class.
@@ -80,13 +80,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -100,13 +100,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeatureInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeatureInner.java
index 5fab82ad54b0..98288041faf7 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeatureInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeatureInner.java
@@ -30,9 +30,9 @@ public final class FeatureInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +40,9 @@ public final class FeatureInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of FeatureInner class.
@@ -80,13 +80,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -100,13 +100,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturesetContainerInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturesetContainerInner.java
index 75e459199aec..d14b4b449b49 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturesetContainerInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturesetContainerInner.java
@@ -30,9 +30,9 @@ public final class FeaturesetContainerInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +40,9 @@ public final class FeaturesetContainerInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of FeaturesetContainerInner class.
@@ -80,13 +80,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -100,13 +100,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturesetVersionInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturesetVersionInner.java
index 68b3d08df57c..07c47ad78a96 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturesetVersionInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturesetVersionInner.java
@@ -30,9 +30,9 @@ public final class FeaturesetVersionInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +40,9 @@ public final class FeaturesetVersionInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of FeaturesetVersionInner class.
@@ -80,13 +80,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -100,13 +100,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturestoreEntityContainerInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturestoreEntityContainerInner.java
index 3cff75870f94..2d15f31c3ec0 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturestoreEntityContainerInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturestoreEntityContainerInner.java
@@ -30,9 +30,9 @@ public final class FeaturestoreEntityContainerInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +40,9 @@ public final class FeaturestoreEntityContainerInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of FeaturestoreEntityContainerInner class.
@@ -80,13 +80,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -100,13 +100,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturestoreEntityVersionInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturestoreEntityVersionInner.java
index 1c8eee3d76d3..c379bbb30421 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturestoreEntityVersionInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturestoreEntityVersionInner.java
@@ -30,9 +30,9 @@ public final class FeaturestoreEntityVersionInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +40,9 @@ public final class FeaturestoreEntityVersionInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of FeaturestoreEntityVersionInner class.
@@ -80,13 +80,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -100,13 +100,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/JobBaseInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/JobBaseInner.java
index f9f23857c3dc..485d192d54ba 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/JobBaseInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/JobBaseInner.java
@@ -30,9 +30,9 @@ public final class JobBaseInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +40,9 @@ public final class JobBaseInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of JobBaseInner class.
@@ -80,13 +80,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -100,13 +100,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ManagedNetworkSettingsInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ManagedNetworkSettingsInner.java
index 288819df29d0..6626fcb2fd68 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ManagedNetworkSettingsInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ManagedNetworkSettingsInner.java
@@ -9,6 +9,7 @@
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.machinelearning.models.FirewallSku;
import com.azure.resourcemanager.machinelearning.models.IsolationMode;
import com.azure.resourcemanager.machinelearning.models.OutboundRule;
import java.io.IOException;
@@ -39,6 +40,11 @@ public final class ManagedNetworkSettingsInner implements JsonSerializable writer.writeJson(element));
jsonWriter.writeJsonField("status", this.status);
+ jsonWriter.writeStringField("firewallSku", this.firewallSku == null ? null : this.firewallSku.toString());
return jsonWriter.writeEndObject();
}
@@ -170,6 +197,8 @@ public static ManagedNetworkSettingsInner fromJson(JsonReader jsonReader) throws
} else if ("status".equals(fieldName)) {
deserializedManagedNetworkSettingsInner.status
= ManagedNetworkProvisionStatusInner.fromJson(reader);
+ } else if ("firewallSku".equals(fieldName)) {
+ deserializedManagedNetworkSettingsInner.firewallSku = FirewallSku.fromString(reader.getString());
} else {
reader.skipChildren();
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/MarketplaceSubscriptionInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/MarketplaceSubscriptionInner.java
index 600c30acbe36..937bb9c43091 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/MarketplaceSubscriptionInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/MarketplaceSubscriptionInner.java
@@ -30,9 +30,9 @@ public final class MarketplaceSubscriptionInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +40,9 @@ public final class MarketplaceSubscriptionInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of MarketplaceSubscriptionInner class.
@@ -80,13 +80,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -100,13 +100,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ModelContainerInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ModelContainerInner.java
index 1bd535de9b53..640375582d7a 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ModelContainerInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ModelContainerInner.java
@@ -30,9 +30,9 @@ public final class ModelContainerInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +40,9 @@ public final class ModelContainerInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of ModelContainerInner class.
@@ -80,13 +80,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -100,13 +100,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ModelVersionInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ModelVersionInner.java
index 7f2f08e98758..9c354de263cc 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ModelVersionInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ModelVersionInner.java
@@ -30,9 +30,9 @@ public final class ModelVersionInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +40,9 @@ public final class ModelVersionInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of ModelVersionInner class.
@@ -80,13 +80,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -100,13 +100,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/OnlineDeploymentInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/OnlineDeploymentInner.java
index f65e2d1dc6ff..cc7d87a5abba 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/OnlineDeploymentInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/OnlineDeploymentInner.java
@@ -23,9 +23,9 @@
@Fluent
public final class OnlineDeploymentInner extends Resource {
/*
- * [Required] Additional attributes of the entity.
+ * Managed service identity (system assigned and/or user assigned identities)
*/
- private OnlineDeploymentProperties properties;
+ private ManagedServiceIdentity identity;
/*
* Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type.
@@ -33,9 +33,9 @@ public final class OnlineDeploymentInner extends Resource {
private String kind;
/*
- * Managed service identity (system assigned and/or user assigned identities)
+ * [Required] Additional attributes of the entity.
*/
- private ManagedServiceIdentity identity;
+ private OnlineDeploymentProperties properties;
/*
* Sku details required for ARM contract for Autoscaling.
@@ -48,9 +48,9 @@ public final class OnlineDeploymentInner extends Resource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -58,9 +58,9 @@ public final class OnlineDeploymentInner extends Resource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of OnlineDeploymentInner class.
@@ -69,22 +69,22 @@ public OnlineDeploymentInner() {
}
/**
- * Get the properties property: [Required] Additional attributes of the entity.
+ * Get the identity property: Managed service identity (system assigned and/or user assigned identities).
*
- * @return the properties value.
+ * @return the identity value.
*/
- public OnlineDeploymentProperties properties() {
- return this.properties;
+ public ManagedServiceIdentity identity() {
+ return this.identity;
}
/**
- * Set the properties property: [Required] Additional attributes of the entity.
+ * Set the identity property: Managed service identity (system assigned and/or user assigned identities).
*
- * @param properties the properties value to set.
+ * @param identity the identity value to set.
* @return the OnlineDeploymentInner object itself.
*/
- public OnlineDeploymentInner withProperties(OnlineDeploymentProperties properties) {
- this.properties = properties;
+ public OnlineDeploymentInner withIdentity(ManagedServiceIdentity identity) {
+ this.identity = identity;
return this;
}
@@ -111,22 +111,22 @@ public OnlineDeploymentInner withKind(String kind) {
}
/**
- * Get the identity property: Managed service identity (system assigned and/or user assigned identities).
+ * Get the properties property: [Required] Additional attributes of the entity.
*
- * @return the identity value.
+ * @return the properties value.
*/
- public ManagedServiceIdentity identity() {
- return this.identity;
+ public OnlineDeploymentProperties properties() {
+ return this.properties;
}
/**
- * Set the identity property: Managed service identity (system assigned and/or user assigned identities).
+ * Set the properties property: [Required] Additional attributes of the entity.
*
- * @param identity the identity value to set.
+ * @param properties the properties value to set.
* @return the OnlineDeploymentInner object itself.
*/
- public OnlineDeploymentInner withIdentity(ManagedServiceIdentity identity) {
- this.identity = identity;
+ public OnlineDeploymentInner withProperties(OnlineDeploymentProperties properties) {
+ this.properties = properties;
return this;
}
@@ -160,13 +160,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -180,13 +180,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
@@ -213,6 +213,9 @@ public OnlineDeploymentInner withTags(Map tags) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (identity() != null) {
+ identity().validate();
+ }
if (properties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -220,9 +223,6 @@ public void validate() {
} else {
properties().validate();
}
- if (identity() != null) {
- identity().validate();
- }
if (sku() != null) {
sku().validate();
}
@@ -239,8 +239,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStringField("location", location());
jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeJsonField("properties", this.properties);
- jsonWriter.writeStringField("kind", this.kind);
jsonWriter.writeJsonField("identity", this.identity);
+ jsonWriter.writeStringField("kind", this.kind);
jsonWriter.writeJsonField("sku", this.sku);
return jsonWriter.writeEndObject();
}
@@ -274,10 +274,10 @@ public static OnlineDeploymentInner fromJson(JsonReader jsonReader) throws IOExc
deserializedOnlineDeploymentInner.withTags(tags);
} else if ("properties".equals(fieldName)) {
deserializedOnlineDeploymentInner.properties = OnlineDeploymentProperties.fromJson(reader);
- } else if ("kind".equals(fieldName)) {
- deserializedOnlineDeploymentInner.kind = reader.getString();
} else if ("identity".equals(fieldName)) {
deserializedOnlineDeploymentInner.identity = ManagedServiceIdentity.fromJson(reader);
+ } else if ("kind".equals(fieldName)) {
+ deserializedOnlineDeploymentInner.kind = reader.getString();
} else if ("sku".equals(fieldName)) {
deserializedOnlineDeploymentInner.sku = Sku.fromJson(reader);
} else if ("systemData".equals(fieldName)) {
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/OnlineEndpointInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/OnlineEndpointInner.java
index 7170897d2235..99fcf54205e2 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/OnlineEndpointInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/OnlineEndpointInner.java
@@ -23,9 +23,9 @@
@Fluent
public final class OnlineEndpointInner extends Resource {
/*
- * [Required] Additional attributes of the entity.
+ * Managed service identity (system assigned and/or user assigned identities)
*/
- private OnlineEndpointProperties properties;
+ private ManagedServiceIdentity identity;
/*
* Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type.
@@ -33,9 +33,9 @@ public final class OnlineEndpointInner extends Resource {
private String kind;
/*
- * Managed service identity (system assigned and/or user assigned identities)
+ * [Required] Additional attributes of the entity.
*/
- private ManagedServiceIdentity identity;
+ private OnlineEndpointProperties properties;
/*
* Sku details required for ARM contract for Autoscaling.
@@ -48,9 +48,9 @@ public final class OnlineEndpointInner extends Resource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -58,9 +58,9 @@ public final class OnlineEndpointInner extends Resource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of OnlineEndpointInner class.
@@ -69,22 +69,22 @@ public OnlineEndpointInner() {
}
/**
- * Get the properties property: [Required] Additional attributes of the entity.
+ * Get the identity property: Managed service identity (system assigned and/or user assigned identities).
*
- * @return the properties value.
+ * @return the identity value.
*/
- public OnlineEndpointProperties properties() {
- return this.properties;
+ public ManagedServiceIdentity identity() {
+ return this.identity;
}
/**
- * Set the properties property: [Required] Additional attributes of the entity.
+ * Set the identity property: Managed service identity (system assigned and/or user assigned identities).
*
- * @param properties the properties value to set.
+ * @param identity the identity value to set.
* @return the OnlineEndpointInner object itself.
*/
- public OnlineEndpointInner withProperties(OnlineEndpointProperties properties) {
- this.properties = properties;
+ public OnlineEndpointInner withIdentity(ManagedServiceIdentity identity) {
+ this.identity = identity;
return this;
}
@@ -111,22 +111,22 @@ public OnlineEndpointInner withKind(String kind) {
}
/**
- * Get the identity property: Managed service identity (system assigned and/or user assigned identities).
+ * Get the properties property: [Required] Additional attributes of the entity.
*
- * @return the identity value.
+ * @return the properties value.
*/
- public ManagedServiceIdentity identity() {
- return this.identity;
+ public OnlineEndpointProperties properties() {
+ return this.properties;
}
/**
- * Set the identity property: Managed service identity (system assigned and/or user assigned identities).
+ * Set the properties property: [Required] Additional attributes of the entity.
*
- * @param identity the identity value to set.
+ * @param properties the properties value to set.
* @return the OnlineEndpointInner object itself.
*/
- public OnlineEndpointInner withIdentity(ManagedServiceIdentity identity) {
- this.identity = identity;
+ public OnlineEndpointInner withProperties(OnlineEndpointProperties properties) {
+ this.properties = properties;
return this;
}
@@ -160,13 +160,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -180,13 +180,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
@@ -213,15 +213,15 @@ public OnlineEndpointInner withTags(Map tags) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (identity() != null) {
+ identity().validate();
+ }
if (properties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException("Missing required property properties in model OnlineEndpointInner"));
} else {
properties().validate();
}
- if (identity() != null) {
- identity().validate();
- }
if (sku() != null) {
sku().validate();
}
@@ -238,8 +238,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStringField("location", location());
jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeJsonField("properties", this.properties);
- jsonWriter.writeStringField("kind", this.kind);
jsonWriter.writeJsonField("identity", this.identity);
+ jsonWriter.writeStringField("kind", this.kind);
jsonWriter.writeJsonField("sku", this.sku);
return jsonWriter.writeEndObject();
}
@@ -273,10 +273,10 @@ public static OnlineEndpointInner fromJson(JsonReader jsonReader) throws IOExcep
deserializedOnlineEndpointInner.withTags(tags);
} else if ("properties".equals(fieldName)) {
deserializedOnlineEndpointInner.properties = OnlineEndpointProperties.fromJson(reader);
- } else if ("kind".equals(fieldName)) {
- deserializedOnlineEndpointInner.kind = reader.getString();
} else if ("identity".equals(fieldName)) {
deserializedOnlineEndpointInner.identity = ManagedServiceIdentity.fromJson(reader);
+ } else if ("kind".equals(fieldName)) {
+ deserializedOnlineEndpointInner.kind = reader.getString();
} else if ("sku".equals(fieldName)) {
deserializedOnlineEndpointInner.sku = Sku.fromJson(reader);
} else if ("systemData".equals(fieldName)) {
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/OutboundRuleBasicResourceInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/OutboundRuleBasicResourceInner.java
index 6795602d33bb..2174991fe1b6 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/OutboundRuleBasicResourceInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/OutboundRuleBasicResourceInner.java
@@ -30,9 +30,9 @@ public final class OutboundRuleBasicResourceInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +40,9 @@ public final class OutboundRuleBasicResourceInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of OutboundRuleBasicResourceInner class.
@@ -80,13 +80,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -100,13 +100,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/PrivateEndpointConnectionInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/PrivateEndpointConnectionInner.java
index a18d97bb627a..fe62059fd0ae 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/PrivateEndpointConnectionInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/PrivateEndpointConnectionInner.java
@@ -54,9 +54,9 @@ public final class PrivateEndpointConnectionInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -64,9 +64,9 @@ public final class PrivateEndpointConnectionInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of PrivateEndpointConnectionInner class.
@@ -173,13 +173,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -193,13 +193,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/RegistryInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/RegistryInner.java
index 446a0a7f6dcf..243d369cce08 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/RegistryInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/RegistryInner.java
@@ -51,9 +51,9 @@ public final class RegistryInner extends Resource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -61,9 +61,9 @@ public final class RegistryInner extends Resource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of RegistryInner class.
@@ -152,13 +152,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -172,13 +172,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ScheduleInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ScheduleInner.java
index 0073aa67f710..dc7fc065a559 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ScheduleInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ScheduleInner.java
@@ -30,9 +30,9 @@ public final class ScheduleInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +40,9 @@ public final class ScheduleInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of ScheduleInner class.
@@ -80,13 +80,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -100,13 +100,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ServerlessEndpointInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ServerlessEndpointInner.java
index 9c5eba632085..f3e6844c059c 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ServerlessEndpointInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ServerlessEndpointInner.java
@@ -23,9 +23,9 @@
@Fluent
public final class ServerlessEndpointInner extends Resource {
/*
- * [Required] Additional attributes of the entity.
+ * Managed service identity (system assigned and/or user assigned identities)
*/
- private ServerlessEndpointProperties properties;
+ private ManagedServiceIdentity identity;
/*
* Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type.
@@ -33,9 +33,9 @@ public final class ServerlessEndpointInner extends Resource {
private String kind;
/*
- * Managed service identity (system assigned and/or user assigned identities)
+ * [Required] Additional attributes of the entity.
*/
- private ManagedServiceIdentity identity;
+ private ServerlessEndpointProperties properties;
/*
* Sku details required for ARM contract for Autoscaling.
@@ -48,9 +48,9 @@ public final class ServerlessEndpointInner extends Resource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -58,9 +58,9 @@ public final class ServerlessEndpointInner extends Resource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of ServerlessEndpointInner class.
@@ -69,22 +69,22 @@ public ServerlessEndpointInner() {
}
/**
- * Get the properties property: [Required] Additional attributes of the entity.
+ * Get the identity property: Managed service identity (system assigned and/or user assigned identities).
*
- * @return the properties value.
+ * @return the identity value.
*/
- public ServerlessEndpointProperties properties() {
- return this.properties;
+ public ManagedServiceIdentity identity() {
+ return this.identity;
}
/**
- * Set the properties property: [Required] Additional attributes of the entity.
+ * Set the identity property: Managed service identity (system assigned and/or user assigned identities).
*
- * @param properties the properties value to set.
+ * @param identity the identity value to set.
* @return the ServerlessEndpointInner object itself.
*/
- public ServerlessEndpointInner withProperties(ServerlessEndpointProperties properties) {
- this.properties = properties;
+ public ServerlessEndpointInner withIdentity(ManagedServiceIdentity identity) {
+ this.identity = identity;
return this;
}
@@ -111,22 +111,22 @@ public ServerlessEndpointInner withKind(String kind) {
}
/**
- * Get the identity property: Managed service identity (system assigned and/or user assigned identities).
+ * Get the properties property: [Required] Additional attributes of the entity.
*
- * @return the identity value.
+ * @return the properties value.
*/
- public ManagedServiceIdentity identity() {
- return this.identity;
+ public ServerlessEndpointProperties properties() {
+ return this.properties;
}
/**
- * Set the identity property: Managed service identity (system assigned and/or user assigned identities).
+ * Set the properties property: [Required] Additional attributes of the entity.
*
- * @param identity the identity value to set.
+ * @param properties the properties value to set.
* @return the ServerlessEndpointInner object itself.
*/
- public ServerlessEndpointInner withIdentity(ManagedServiceIdentity identity) {
- this.identity = identity;
+ public ServerlessEndpointInner withProperties(ServerlessEndpointProperties properties) {
+ this.properties = properties;
return this;
}
@@ -160,13 +160,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -180,13 +180,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
@@ -213,6 +213,9 @@ public ServerlessEndpointInner withTags(Map tags) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (identity() != null) {
+ identity().validate();
+ }
if (properties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -220,9 +223,6 @@ public void validate() {
} else {
properties().validate();
}
- if (identity() != null) {
- identity().validate();
- }
if (sku() != null) {
sku().validate();
}
@@ -239,8 +239,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStringField("location", location());
jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeJsonField("properties", this.properties);
- jsonWriter.writeStringField("kind", this.kind);
jsonWriter.writeJsonField("identity", this.identity);
+ jsonWriter.writeStringField("kind", this.kind);
jsonWriter.writeJsonField("sku", this.sku);
return jsonWriter.writeEndObject();
}
@@ -274,10 +274,10 @@ public static ServerlessEndpointInner fromJson(JsonReader jsonReader) throws IOE
deserializedServerlessEndpointInner.withTags(tags);
} else if ("properties".equals(fieldName)) {
deserializedServerlessEndpointInner.properties = ServerlessEndpointProperties.fromJson(reader);
- } else if ("kind".equals(fieldName)) {
- deserializedServerlessEndpointInner.kind = reader.getString();
} else if ("identity".equals(fieldName)) {
deserializedServerlessEndpointInner.identity = ManagedServiceIdentity.fromJson(reader);
+ } else if ("kind".equals(fieldName)) {
+ deserializedServerlessEndpointInner.kind = reader.getString();
} else if ("sku".equals(fieldName)) {
deserializedServerlessEndpointInner.sku = Sku.fromJson(reader);
} else if ("systemData".equals(fieldName)) {
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/SkuResourceInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/SkuResourceInner.java
index e3de72408417..39e15b7bc7c7 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/SkuResourceInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/SkuResourceInner.java
@@ -18,6 +18,11 @@
*/
@Fluent
public final class SkuResourceInner implements JsonSerializable {
+ /*
+ * Gets or sets the Sku Capacity.
+ */
+ private SkuCapacity capacity;
+
/*
* The resource type name.
*/
@@ -28,17 +33,32 @@ public final class SkuResourceInner implements JsonSerializable tags() {
}
}
- public BatchDeploymentProperties properties() {
- return this.innerModel().properties();
+ public ManagedServiceIdentity identity() {
+ return this.innerModel().identity();
}
public String kind() {
return this.innerModel().kind();
}
- public ManagedServiceIdentity identity() {
- return this.innerModel().identity();
+ public BatchDeploymentProperties properties() {
+ return this.innerModel().properties();
}
public Sku sku() {
@@ -196,13 +196,13 @@ public BatchDeploymentImpl withTags(Map tags) {
}
}
- public BatchDeploymentImpl withKind(String kind) {
- this.innerModel().withKind(kind);
+ public BatchDeploymentImpl withIdentity(ManagedServiceIdentity identity) {
+ this.innerModel().withIdentity(identity);
return this;
}
- public BatchDeploymentImpl withIdentity(ManagedServiceIdentity identity) {
- this.innerModel().withIdentity(identity);
+ public BatchDeploymentImpl withKind(String kind) {
+ this.innerModel().withKind(kind);
return this;
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/BatchEndpointImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/BatchEndpointImpl.java
index f9067b4de92c..5f0f014d02c3 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/BatchEndpointImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/BatchEndpointImpl.java
@@ -49,16 +49,16 @@ public Map tags() {
}
}
- public BatchEndpointProperties properties() {
- return this.innerModel().properties();
+ public ManagedServiceIdentity identity() {
+ return this.innerModel().identity();
}
public String kind() {
return this.innerModel().kind();
}
- public ManagedServiceIdentity identity() {
- return this.innerModel().identity();
+ public BatchEndpointProperties properties() {
+ return this.innerModel().properties();
}
public Sku sku() {
@@ -201,13 +201,13 @@ public BatchEndpointImpl withTags(Map tags) {
}
}
- public BatchEndpointImpl withKind(String kind) {
- this.innerModel().withKind(kind);
+ public BatchEndpointImpl withIdentity(ManagedServiceIdentity identity) {
+ this.innerModel().withIdentity(identity);
return this;
}
- public BatchEndpointImpl withIdentity(ManagedServiceIdentity identity) {
- this.innerModel().withIdentity(identity);
+ public BatchEndpointImpl withKind(String kind) {
+ this.innerModel().withKind(kind);
return this;
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComputesImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComputesImpl.java
index ceab9a7511a8..f617455b8bf4 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComputesImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComputesImpl.java
@@ -14,8 +14,8 @@
import com.azure.resourcemanager.machinelearning.fluent.models.ComputeSecretsInner;
import com.azure.resourcemanager.machinelearning.models.AmlComputeNodeInformation;
import com.azure.resourcemanager.machinelearning.models.ComputeResource;
-import com.azure.resourcemanager.machinelearning.models.Computes;
import com.azure.resourcemanager.machinelearning.models.ComputeSecrets;
+import com.azure.resourcemanager.machinelearning.models.Computes;
import com.azure.resourcemanager.machinelearning.models.UnderlyingResourceAction;
public final class ComputesImpl implements Computes {
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DatastoresImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DatastoresImpl.java
index fa7812fdde1c..95f18bb20de1 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DatastoresImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DatastoresImpl.java
@@ -13,8 +13,8 @@
import com.azure.resourcemanager.machinelearning.fluent.models.DatastoreInner;
import com.azure.resourcemanager.machinelearning.fluent.models.DatastoreSecretsInner;
import com.azure.resourcemanager.machinelearning.models.Datastore;
-import com.azure.resourcemanager.machinelearning.models.Datastores;
import com.azure.resourcemanager.machinelearning.models.DatastoreSecrets;
+import com.azure.resourcemanager.machinelearning.models.Datastores;
import java.util.List;
public final class DatastoresImpl implements Datastores {
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EndpointAuthTokenImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EndpointAuthTokenImpl.java
index 9746d7e9d794..c3b96d3617e5 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EndpointAuthTokenImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EndpointAuthTokenImpl.java
@@ -22,10 +22,6 @@ public String accessToken() {
return this.innerModel().accessToken();
}
- public String tokenType() {
- return this.innerModel().tokenType();
- }
-
public Long expiryTimeUtc() {
return this.innerModel().expiryTimeUtc();
}
@@ -34,6 +30,10 @@ public Long refreshAfterTimeUtc() {
return this.innerModel().refreshAfterTimeUtc();
}
+ public String tokenType() {
+ return this.innerModel().tokenType();
+ }
+
public EndpointAuthTokenInner innerModel() {
return this.innerObject;
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EndpointPropertiesBaseImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EndpointPropertiesBaseImpl.java
index a9770051f489..6ed2d488ad9a 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EndpointPropertiesBaseImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EndpointPropertiesBaseImpl.java
@@ -23,10 +23,23 @@ public final class EndpointPropertiesBaseImpl implements EndpointPropertiesBase
this.serviceManager = serviceManager;
}
+ public EndpointAuthMode authMode() {
+ return this.innerModel().authMode();
+ }
+
public String description() {
return this.innerModel().description();
}
+ public EndpointAuthKeys keys() {
+ EndpointAuthKeysInner inner = this.innerModel().keys();
+ if (inner != null) {
+ return new EndpointAuthKeysImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
public Map properties() {
Map inner = this.innerModel().properties();
if (inner != null) {
@@ -44,19 +57,6 @@ public String swaggerUri() {
return this.innerModel().swaggerUri();
}
- public EndpointAuthMode authMode() {
- return this.innerModel().authMode();
- }
-
- public EndpointAuthKeys keys() {
- EndpointAuthKeysInner inner = this.innerModel().keys();
- if (inner != null) {
- return new EndpointAuthKeysImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
public EndpointPropertiesBaseInner innerModel() {
return this.innerObject;
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ManagedNetworkProvisionsImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ManagedNetworkProvisionsImpl.java
index f4cf1d1ea9aa..eb0d0a15e575 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ManagedNetworkProvisionsImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ManagedNetworkProvisionsImpl.java
@@ -9,8 +9,8 @@
import com.azure.resourcemanager.machinelearning.fluent.ManagedNetworkProvisionsClient;
import com.azure.resourcemanager.machinelearning.fluent.models.ManagedNetworkProvisionStatusInner;
import com.azure.resourcemanager.machinelearning.models.ManagedNetworkProvisionOptions;
-import com.azure.resourcemanager.machinelearning.models.ManagedNetworkProvisions;
import com.azure.resourcemanager.machinelearning.models.ManagedNetworkProvisionStatus;
+import com.azure.resourcemanager.machinelearning.models.ManagedNetworkProvisions;
public final class ManagedNetworkProvisionsImpl implements ManagedNetworkProvisions {
private static final ClientLogger LOGGER = new ClientLogger(ManagedNetworkProvisionsImpl.class);
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ManagedNetworkSettingsImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ManagedNetworkSettingsImpl.java
index 5f961f321633..861c91b22326 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ManagedNetworkSettingsImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ManagedNetworkSettingsImpl.java
@@ -6,6 +6,7 @@
import com.azure.resourcemanager.machinelearning.fluent.models.ManagedNetworkProvisionStatusInner;
import com.azure.resourcemanager.machinelearning.fluent.models.ManagedNetworkSettingsInner;
+import com.azure.resourcemanager.machinelearning.models.FirewallSku;
import com.azure.resourcemanager.machinelearning.models.IsolationMode;
import com.azure.resourcemanager.machinelearning.models.ManagedNetworkProvisionStatus;
import com.azure.resourcemanager.machinelearning.models.ManagedNetworkSettings;
@@ -50,6 +51,10 @@ public ManagedNetworkProvisionStatus status() {
}
}
+ public FirewallSku firewallSku() {
+ return this.innerModel().firewallSku();
+ }
+
public ManagedNetworkSettingsInner innerModel() {
return this.innerObject;
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/OnlineDeploymentImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/OnlineDeploymentImpl.java
index 1219e37c4d82..cac2d85bd3ab 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/OnlineDeploymentImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/OnlineDeploymentImpl.java
@@ -51,16 +51,16 @@ public Map tags() {
}
}
- public OnlineDeploymentProperties properties() {
- return this.innerModel().properties();
+ public ManagedServiceIdentity identity() {
+ return this.innerModel().identity();
}
public String kind() {
return this.innerModel().kind();
}
- public ManagedServiceIdentity identity() {
- return this.innerModel().identity();
+ public OnlineDeploymentProperties properties() {
+ return this.innerModel().properties();
}
public Sku sku() {
@@ -210,13 +210,13 @@ public OnlineDeploymentImpl withTags(Map tags) {
}
}
- public OnlineDeploymentImpl withKind(String kind) {
- this.innerModel().withKind(kind);
+ public OnlineDeploymentImpl withIdentity(ManagedServiceIdentity identity) {
+ this.innerModel().withIdentity(identity);
return this;
}
- public OnlineDeploymentImpl withIdentity(ManagedServiceIdentity identity) {
- this.innerModel().withIdentity(identity);
+ public OnlineDeploymentImpl withKind(String kind) {
+ this.innerModel().withKind(kind);
return this;
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/OnlineEndpointImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/OnlineEndpointImpl.java
index 26821fa97776..deca2eaaba4b 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/OnlineEndpointImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/OnlineEndpointImpl.java
@@ -51,16 +51,16 @@ public Map tags() {
}
}
- public OnlineEndpointProperties properties() {
- return this.innerModel().properties();
+ public ManagedServiceIdentity identity() {
+ return this.innerModel().identity();
}
public String kind() {
return this.innerModel().kind();
}
- public ManagedServiceIdentity identity() {
- return this.innerModel().identity();
+ public OnlineEndpointProperties properties() {
+ return this.innerModel().properties();
}
public Sku sku() {
@@ -220,13 +220,13 @@ public OnlineEndpointImpl withTags(Map tags) {
}
}
- public OnlineEndpointImpl withKind(String kind) {
- this.innerModel().withKind(kind);
+ public OnlineEndpointImpl withIdentity(ManagedServiceIdentity identity) {
+ this.innerModel().withIdentity(identity);
return this;
}
- public OnlineEndpointImpl withIdentity(ManagedServiceIdentity identity) {
- this.innerModel().withIdentity(identity);
+ public OnlineEndpointImpl withKind(String kind) {
+ this.innerModel().withKind(kind);
return this;
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/QuotasImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/QuotasImpl.java
index e3278e22e6ec..c9cde5b0fe6a 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/QuotasImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/QuotasImpl.java
@@ -12,8 +12,8 @@
import com.azure.resourcemanager.machinelearning.fluent.QuotasClient;
import com.azure.resourcemanager.machinelearning.fluent.models.ResourceQuotaInner;
import com.azure.resourcemanager.machinelearning.fluent.models.UpdateWorkspaceQuotasResultInner;
-import com.azure.resourcemanager.machinelearning.models.Quotas;
import com.azure.resourcemanager.machinelearning.models.QuotaUpdateParameters;
+import com.azure.resourcemanager.machinelearning.models.Quotas;
import com.azure.resourcemanager.machinelearning.models.ResourceQuota;
import com.azure.resourcemanager.machinelearning.models.UpdateWorkspaceQuotasResult;
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ServerlessEndpointImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ServerlessEndpointImpl.java
index 0bd10a98774f..04d5d4e91b6f 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ServerlessEndpointImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ServerlessEndpointImpl.java
@@ -52,16 +52,16 @@ public Map tags() {
}
}
- public ServerlessEndpointProperties properties() {
- return this.innerModel().properties();
+ public ManagedServiceIdentity identity() {
+ return this.innerModel().identity();
}
public String kind() {
return this.innerModel().kind();
}
- public ManagedServiceIdentity identity() {
- return this.innerModel().identity();
+ public ServerlessEndpointProperties properties() {
+ return this.innerModel().properties();
}
public Sku sku() {
@@ -214,13 +214,13 @@ public ServerlessEndpointImpl withTags(Map tags) {
}
}
- public ServerlessEndpointImpl withKind(String kind) {
- this.innerModel().withKind(kind);
+ public ServerlessEndpointImpl withIdentity(ManagedServiceIdentity identity) {
+ this.innerModel().withIdentity(identity);
return this;
}
- public ServerlessEndpointImpl withIdentity(ManagedServiceIdentity identity) {
- this.innerModel().withIdentity(identity);
+ public ServerlessEndpointImpl withKind(String kind) {
+ this.innerModel().withKind(kind);
return this;
}
@@ -229,13 +229,13 @@ public ServerlessEndpointImpl withSku(Sku sku) {
return this;
}
- public ServerlessEndpointImpl withSku(PartialSku sku) {
- this.updateBody.withSku(sku);
+ public ServerlessEndpointImpl withIdentity(PartialManagedServiceIdentity identity) {
+ this.updateBody.withIdentity(identity);
return this;
}
- public ServerlessEndpointImpl withIdentity(PartialManagedServiceIdentity identity) {
- this.updateBody.withIdentity(identity);
+ public ServerlessEndpointImpl withSku(PartialSku sku) {
+ this.updateBody.withSku(sku);
return this;
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/SkuResourceImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/SkuResourceImpl.java
index 7d3e193ce5f7..87e01997be48 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/SkuResourceImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/SkuResourceImpl.java
@@ -20,6 +20,10 @@ public final class SkuResourceImpl implements SkuResource {
this.serviceManager = serviceManager;
}
+ public SkuCapacity capacity() {
+ return this.innerModel().capacity();
+ }
+
public String resourceType() {
return this.innerModel().resourceType();
}
@@ -28,10 +32,6 @@ public SkuSetting sku() {
return this.innerModel().sku();
}
- public SkuCapacity capacity() {
- return this.innerModel().capacity();
- }
-
public SkuResourceInner innerModel() {
return this.innerObject;
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/WorkspaceConnectionPropertiesV2BasicResourceImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/WorkspaceConnectionPropertiesV2BasicResourceImpl.java
index 8dbbeb5c5452..49c25497a59a 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/WorkspaceConnectionPropertiesV2BasicResourceImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/WorkspaceConnectionPropertiesV2BasicResourceImpl.java
@@ -10,19 +10,15 @@
import com.azure.resourcemanager.machinelearning.fluent.models.WorkspaceConnectionPropertiesV2BasicResourceInner;
import com.azure.resourcemanager.machinelearning.models.WorkspaceConnectionPropertiesV2;
import com.azure.resourcemanager.machinelearning.models.WorkspaceConnectionPropertiesV2BasicResource;
+import com.azure.resourcemanager.machinelearning.models.WorkspaceConnectionUpdateParameter;
public final class WorkspaceConnectionPropertiesV2BasicResourceImpl
- implements WorkspaceConnectionPropertiesV2BasicResource, WorkspaceConnectionPropertiesV2BasicResource.Definition {
+ implements WorkspaceConnectionPropertiesV2BasicResource, WorkspaceConnectionPropertiesV2BasicResource.Definition,
+ WorkspaceConnectionPropertiesV2BasicResource.Update {
private WorkspaceConnectionPropertiesV2BasicResourceInner innerObject;
private final com.azure.resourcemanager.machinelearning.MachineLearningManager serviceManager;
- WorkspaceConnectionPropertiesV2BasicResourceImpl(WorkspaceConnectionPropertiesV2BasicResourceInner innerObject,
- com.azure.resourcemanager.machinelearning.MachineLearningManager serviceManager) {
- this.innerObject = innerObject;
- this.serviceManager = serviceManager;
- }
-
public String id() {
return this.innerModel().id();
}
@@ -43,6 +39,10 @@ public SystemData systemData() {
return this.innerModel().systemData();
}
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
public WorkspaceConnectionPropertiesV2BasicResourceInner innerModel() {
return this.innerObject;
}
@@ -57,6 +57,8 @@ private com.azure.resourcemanager.machinelearning.MachineLearningManager manager
private String connectionName;
+ private WorkspaceConnectionUpdateParameter updateBody;
+
public WorkspaceConnectionPropertiesV2BasicResourceImpl withExistingWorkspace(String resourceGroupName,
String workspaceName) {
this.resourceGroupName = resourceGroupName;
@@ -87,6 +89,36 @@ public WorkspaceConnectionPropertiesV2BasicResource create(Context context) {
this.connectionName = name;
}
+ public WorkspaceConnectionPropertiesV2BasicResourceImpl update() {
+ this.updateBody = new WorkspaceConnectionUpdateParameter();
+ return this;
+ }
+
+ public WorkspaceConnectionPropertiesV2BasicResource apply() {
+ this.innerObject = serviceManager.serviceClient()
+ .getWorkspaceConnections()
+ .updateWithResponse(resourceGroupName, workspaceName, connectionName, updateBody, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public WorkspaceConnectionPropertiesV2BasicResource apply(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getWorkspaceConnections()
+ .updateWithResponse(resourceGroupName, workspaceName, connectionName, updateBody, context)
+ .getValue();
+ return this;
+ }
+
+ WorkspaceConnectionPropertiesV2BasicResourceImpl(WorkspaceConnectionPropertiesV2BasicResourceInner innerObject,
+ com.azure.resourcemanager.machinelearning.MachineLearningManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces");
+ this.connectionName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "connections");
+ }
+
public WorkspaceConnectionPropertiesV2BasicResource refresh() {
this.innerObject = serviceManager.serviceClient()
.getWorkspaceConnections()
@@ -113,7 +145,16 @@ public WorkspaceConnectionPropertiesV2BasicResource listSecrets() {
}
public WorkspaceConnectionPropertiesV2BasicResourceImpl withProperties(WorkspaceConnectionPropertiesV2 properties) {
- this.innerModel().withProperties(properties);
- return this;
+ if (isInCreateMode()) {
+ this.innerModel().withProperties(properties);
+ return this;
+ } else {
+ this.updateBody.withProperties(properties);
+ return this;
+ }
+ }
+
+ private boolean isInCreateMode() {
+ return this.innerModel().id() == null;
}
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/WorkspaceConnectionsClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/WorkspaceConnectionsClientImpl.java
index 62ef51558d03..6054cf64d428 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/WorkspaceConnectionsClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/WorkspaceConnectionsClientImpl.java
@@ -12,6 +12,7 @@
import com.azure.core.annotation.Headers;
import com.azure.core.annotation.Host;
import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
import com.azure.core.annotation.PathParam;
import com.azure.core.annotation.Post;
import com.azure.core.annotation.Put;
@@ -32,6 +33,7 @@
import com.azure.resourcemanager.machinelearning.fluent.WorkspaceConnectionsClient;
import com.azure.resourcemanager.machinelearning.fluent.models.WorkspaceConnectionPropertiesV2BasicResourceInner;
import com.azure.resourcemanager.machinelearning.models.WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult;
+import com.azure.resourcemanager.machinelearning.models.WorkspaceConnectionUpdateParameter;
import reactor.core.publisher.Mono;
/**
@@ -97,6 +99,17 @@ Mono> delete(@HostParam("$host") String endpoint,
@PathParam("connectionName") String connectionName, @QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept, Context context);
+ @Headers({ "Content-Type: application/json" })
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> update(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName,
+ @PathParam("connectionName") String connectionName, @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") WorkspaceConnectionUpdateParameter body,
+ @HeaderParam("Accept") String accept, Context context);
+
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections")
@ExpectedResponses({ 200 })
@@ -105,7 +118,8 @@ Mono> l
@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName,
@QueryParam("target") String target, @QueryParam("category") String category,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+ @QueryParam("api-version") String apiVersion, @QueryParam("includeAll") Boolean includeAll,
+ @HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}/listsecrets")
@@ -536,6 +550,150 @@ public void delete(String resourceGroupName, String workspaceName, String connec
deleteWithResponse(resourceGroupName, workspaceName, connectionName, Context.NONE);
}
+ /**
+ * Update machine learning workspaces connections under the specified workspace.
+ *
+ * @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 body Parameters for workspace connection update.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> updateWithResponseAsync(
+ String resourceGroupName, String workspaceName, String connectionName,
+ WorkspaceConnectionUpdateParameter body) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (workspaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null."));
+ }
+ if (connectionName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null."));
+ }
+ if (body != null) {
+ body.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ resourceGroupName, workspaceName, connectionName, this.client.getApiVersion(), body, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Update machine learning workspaces connections under the specified workspace.
+ *
+ * @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 body Parameters for workspace connection update.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> updateWithResponseAsync(
+ String resourceGroupName, String workspaceName, String connectionName, WorkspaceConnectionUpdateParameter body,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (workspaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null."));
+ }
+ if (connectionName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null."));
+ }
+ if (body != null) {
+ body.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ workspaceName, connectionName, this.client.getApiVersion(), body, accept, context);
+ }
+
+ /**
+ * Update machine learning workspaces connections under the specified workspace.
+ *
+ * @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.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(String resourceGroupName,
+ String workspaceName, String connectionName) {
+ final WorkspaceConnectionUpdateParameter body = null;
+ return updateWithResponseAsync(resourceGroupName, workspaceName, connectionName, body)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Update machine learning workspaces connections under the specified workspace.
+ *
+ * @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 body Parameters for workspace connection update.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response updateWithResponse(String resourceGroupName,
+ String workspaceName, String connectionName, WorkspaceConnectionUpdateParameter body, Context context) {
+ return updateWithResponseAsync(resourceGroupName, workspaceName, connectionName, body, context).block();
+ }
+
+ /**
+ * Update machine learning workspaces connections under the specified workspace.
+ *
+ * @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.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public WorkspaceConnectionPropertiesV2BasicResourceInner update(String resourceGroupName, String workspaceName,
+ String connectionName) {
+ final WorkspaceConnectionUpdateParameter body = null;
+ return updateWithResponse(resourceGroupName, workspaceName, connectionName, body, Context.NONE).getValue();
+ }
+
/**
* The list operation.
*
@@ -543,14 +701,16 @@ public void delete(String resourceGroupName, String workspaceName, String connec
* @param workspaceName Name of Azure Machine Learning workspace.
* @param target Target of the workspace connection.
* @param category Category of the workspace connection.
+ * @param includeAll query parameter that indicates if get connection call should return both connections and
+ * datastores.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>
- listSinglePageAsync(String resourceGroupName, String workspaceName, String target, String category) {
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String workspaceName, String target, String category, Boolean includeAll) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -568,8 +728,9 @@ public void delete(String resourceGroupName, String workspaceName, String connec
}
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, workspaceName, target, category, this.client.getApiVersion(), accept, context))
+ .withContext(
+ context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ workspaceName, target, category, this.client.getApiVersion(), includeAll, accept, context))
.>map(
res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().value(), res.getValue().nextLink(), null))
@@ -583,6 +744,8 @@ public void delete(String resourceGroupName, String workspaceName, String connec
* @param workspaceName Name of Azure Machine Learning workspace.
* @param target Target of the workspace connection.
* @param category Category of the workspace connection.
+ * @param includeAll query parameter that indicates if get connection call should return both connections and
+ * datastores.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -591,7 +754,8 @@ public void delete(String resourceGroupName, String workspaceName, String connec
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(
- String resourceGroupName, String workspaceName, String target, String category, Context context) {
+ String resourceGroupName, String workspaceName, String target, String category, Boolean includeAll,
+ Context context) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -611,7 +775,7 @@ private Mono> l
context = this.client.mergeContext(context);
return service
.list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, target,
- category, this.client.getApiVersion(), accept, context)
+ category, this.client.getApiVersion(), includeAll, accept, context)
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().value(), res.getValue().nextLink(), null));
}
@@ -623,6 +787,8 @@ private Mono> l
* @param workspaceName Name of Azure Machine Learning workspace.
* @param target Target of the workspace connection.
* @param category Category of the workspace connection.
+ * @param includeAll query parameter that indicates if get connection call should return both connections and
+ * datastores.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -630,8 +796,9 @@ private Mono> l
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(String resourceGroupName,
- String workspaceName, String target, String category) {
- return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName, target, category),
+ String workspaceName, String target, String category, Boolean includeAll) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, workspaceName, target, category, includeAll),
nextLink -> listNextSinglePageAsync(nextLink));
}
@@ -650,7 +817,9 @@ private PagedFlux listAsync(S
String workspaceName) {
final String target = null;
final String category = null;
- return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName, target, category),
+ final Boolean includeAll = null;
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, workspaceName, target, category, includeAll),
nextLink -> listNextSinglePageAsync(nextLink));
}
@@ -661,6 +830,8 @@ private PagedFlux listAsync(S
* @param workspaceName Name of Azure Machine Learning workspace.
* @param target Target of the workspace connection.
* @param category Category of the workspace connection.
+ * @param includeAll query parameter that indicates if get connection call should return both connections and
+ * datastores.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -669,8 +840,9 @@ private PagedFlux listAsync(S
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(String resourceGroupName,
- String workspaceName, String target, String category, Context context) {
- return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName, target, category, context),
+ String workspaceName, String target, String category, Boolean includeAll, Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, workspaceName, target, category, includeAll, context),
nextLink -> listNextSinglePageAsync(nextLink, context));
}
@@ -689,7 +861,8 @@ public PagedIterable list(Str
String workspaceName) {
final String target = null;
final String category = null;
- return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, target, category));
+ final Boolean includeAll = null;
+ return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, target, category, includeAll));
}
/**
@@ -699,6 +872,8 @@ public PagedIterable list(Str
* @param workspaceName Name of Azure Machine Learning workspace.
* @param target Target of the workspace connection.
* @param category Category of the workspace connection.
+ * @param includeAll query parameter that indicates if get connection call should return both connections and
+ * datastores.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -707,8 +882,8 @@ public PagedIterable list(Str
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(String resourceGroupName,
- String workspaceName, String target, String category, Context context) {
- return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, target, category, context));
+ String workspaceName, String target, String category, Boolean includeAll, Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, target, category, includeAll, context));
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/WorkspaceConnectionsImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/WorkspaceConnectionsImpl.java
index 58050994047b..912b1498cf1e 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/WorkspaceConnectionsImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/WorkspaceConnectionsImpl.java
@@ -68,9 +68,9 @@ public PagedIterable list(String r
}
public PagedIterable list(String resourceGroupName,
- String workspaceName, String target, String category, Context context) {
+ String workspaceName, String target, String category, Boolean includeAll, Context context) {
PagedIterable inner
- = this.serviceClient().list(resourceGroupName, workspaceName, target, category, context);
+ = this.serviceClient().list(resourceGroupName, workspaceName, target, category, includeAll, context);
return ResourceManagerUtils.mapPage(inner,
inner1 -> new WorkspaceConnectionPropertiesV2BasicResourceImpl(inner1, this.manager()));
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AadAuthTypeWorkspaceConnectionProperties.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AadAuthTypeWorkspaceConnectionProperties.java
index b9a569dc66e5..9a57cc5fe3dc 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AadAuthTypeWorkspaceConnectionProperties.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AadAuthTypeWorkspaceConnectionProperties.java
@@ -25,16 +25,6 @@ public final class AadAuthTypeWorkspaceConnectionProperties extends WorkspaceCon
*/
private ConnectionAuthType authType = ConnectionAuthType.AAD;
- /*
- * The createdByWorkspaceArmId property.
- */
- private String createdByWorkspaceArmId;
-
- /*
- * Group based on connection category
- */
- private ConnectionGroup group;
-
/**
* Creates an instance of AadAuthTypeWorkspaceConnectionProperties class.
*/
@@ -51,26 +41,6 @@ public ConnectionAuthType authType() {
return this.authType;
}
- /**
- * Get the createdByWorkspaceArmId property: The createdByWorkspaceArmId property.
- *
- * @return the createdByWorkspaceArmId value.
- */
- @Override
- public String createdByWorkspaceArmId() {
- return this.createdByWorkspaceArmId;
- }
-
- /**
- * Get the group property: Group based on connection category.
- *
- * @return the group value.
- */
- @Override
- public ConnectionGroup group() {
- return this.group;
- }
-
/**
* {@inheritDoc}
*/
@@ -150,7 +120,6 @@ public AadAuthTypeWorkspaceConnectionProperties withValueFormat(ValueFormat valu
*/
@Override
public void validate() {
- super.validate();
}
/**
@@ -193,13 +162,14 @@ public static AadAuthTypeWorkspaceConnectionProperties fromJson(JsonReader jsonR
deserializedAadAuthTypeWorkspaceConnectionProperties
.withCategory(ConnectionCategory.fromString(reader.getString()));
} else if ("createdByWorkspaceArmId".equals(fieldName)) {
- deserializedAadAuthTypeWorkspaceConnectionProperties.createdByWorkspaceArmId = reader.getString();
+ deserializedAadAuthTypeWorkspaceConnectionProperties
+ .withCreatedByWorkspaceArmId(reader.getString());
} else if ("expiryTime".equals(fieldName)) {
deserializedAadAuthTypeWorkspaceConnectionProperties.withExpiryTime(reader
.getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())));
} else if ("group".equals(fieldName)) {
- deserializedAadAuthTypeWorkspaceConnectionProperties.group
- = ConnectionGroup.fromString(reader.getString());
+ deserializedAadAuthTypeWorkspaceConnectionProperties
+ .withGroup(ConnectionGroup.fromString(reader.getString()));
} else if ("isSharedToAll".equals(fieldName)) {
deserializedAadAuthTypeWorkspaceConnectionProperties
.withIsSharedToAll(reader.getNullable(JsonReader::getBoolean));
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AccessKeyAuthTypeWorkspaceConnectionProperties.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AccessKeyAuthTypeWorkspaceConnectionProperties.java
index 7e2fcbcf6ffb..286ad14ba770 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AccessKeyAuthTypeWorkspaceConnectionProperties.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AccessKeyAuthTypeWorkspaceConnectionProperties.java
@@ -30,16 +30,6 @@ public final class AccessKeyAuthTypeWorkspaceConnectionProperties extends Worksp
*/
private WorkspaceConnectionAccessKey credentials;
- /*
- * The createdByWorkspaceArmId property.
- */
- private String createdByWorkspaceArmId;
-
- /*
- * Group based on connection category
- */
- private ConnectionGroup group;
-
/**
* Creates an instance of AccessKeyAuthTypeWorkspaceConnectionProperties class.
*/
@@ -76,26 +66,6 @@ public AccessKeyAuthTypeWorkspaceConnectionProperties withCredentials(WorkspaceC
return this;
}
- /**
- * Get the createdByWorkspaceArmId property: The createdByWorkspaceArmId property.
- *
- * @return the createdByWorkspaceArmId value.
- */
- @Override
- public String createdByWorkspaceArmId() {
- return this.createdByWorkspaceArmId;
- }
-
- /**
- * Get the group property: Group based on connection category.
- *
- * @return the group value.
- */
- @Override
- public ConnectionGroup group() {
- return this.group;
- }
-
/**
* {@inheritDoc}
*/
@@ -175,7 +145,6 @@ public AccessKeyAuthTypeWorkspaceConnectionProperties withValueFormat(ValueForma
*/
@Override
public void validate() {
- super.validate();
if (credentials() != null) {
credentials().validate();
}
@@ -222,14 +191,14 @@ public static AccessKeyAuthTypeWorkspaceConnectionProperties fromJson(JsonReader
deserializedAccessKeyAuthTypeWorkspaceConnectionProperties
.withCategory(ConnectionCategory.fromString(reader.getString()));
} else if ("createdByWorkspaceArmId".equals(fieldName)) {
- deserializedAccessKeyAuthTypeWorkspaceConnectionProperties.createdByWorkspaceArmId
- = reader.getString();
+ deserializedAccessKeyAuthTypeWorkspaceConnectionProperties
+ .withCreatedByWorkspaceArmId(reader.getString());
} else if ("expiryTime".equals(fieldName)) {
deserializedAccessKeyAuthTypeWorkspaceConnectionProperties.withExpiryTime(reader
.getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())));
} else if ("group".equals(fieldName)) {
- deserializedAccessKeyAuthTypeWorkspaceConnectionProperties.group
- = ConnectionGroup.fromString(reader.getString());
+ deserializedAccessKeyAuthTypeWorkspaceConnectionProperties
+ .withGroup(ConnectionGroup.fromString(reader.getString()));
} else if ("isSharedToAll".equals(fieldName)) {
deserializedAccessKeyAuthTypeWorkspaceConnectionProperties
.withIsSharedToAll(reader.getNullable(JsonReader::getBoolean));
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AccountKeyAuthTypeWorkspaceConnectionProperties.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AccountKeyAuthTypeWorkspaceConnectionProperties.java
index 47bc7db396dd..93073c3b4848 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AccountKeyAuthTypeWorkspaceConnectionProperties.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AccountKeyAuthTypeWorkspaceConnectionProperties.java
@@ -30,16 +30,6 @@ public final class AccountKeyAuthTypeWorkspaceConnectionProperties extends Works
*/
private WorkspaceConnectionAccountKey credentials;
- /*
- * The createdByWorkspaceArmId property.
- */
- private String createdByWorkspaceArmId;
-
- /*
- * Group based on connection category
- */
- private ConnectionGroup group;
-
/**
* Creates an instance of AccountKeyAuthTypeWorkspaceConnectionProperties class.
*/
@@ -76,26 +66,6 @@ public AccountKeyAuthTypeWorkspaceConnectionProperties withCredentials(Workspace
return this;
}
- /**
- * Get the createdByWorkspaceArmId property: The createdByWorkspaceArmId property.
- *
- * @return the createdByWorkspaceArmId value.
- */
- @Override
- public String createdByWorkspaceArmId() {
- return this.createdByWorkspaceArmId;
- }
-
- /**
- * Get the group property: Group based on connection category.
- *
- * @return the group value.
- */
- @Override
- public ConnectionGroup group() {
- return this.group;
- }
-
/**
* {@inheritDoc}
*/
@@ -175,7 +145,6 @@ public AccountKeyAuthTypeWorkspaceConnectionProperties withValueFormat(ValueForm
*/
@Override
public void validate() {
- super.validate();
if (credentials() != null) {
credentials().validate();
}
@@ -222,14 +191,14 @@ public static AccountKeyAuthTypeWorkspaceConnectionProperties fromJson(JsonReade
deserializedAccountKeyAuthTypeWorkspaceConnectionProperties
.withCategory(ConnectionCategory.fromString(reader.getString()));
} else if ("createdByWorkspaceArmId".equals(fieldName)) {
- deserializedAccountKeyAuthTypeWorkspaceConnectionProperties.createdByWorkspaceArmId
- = reader.getString();
+ deserializedAccountKeyAuthTypeWorkspaceConnectionProperties
+ .withCreatedByWorkspaceArmId(reader.getString());
} else if ("expiryTime".equals(fieldName)) {
deserializedAccountKeyAuthTypeWorkspaceConnectionProperties.withExpiryTime(reader
.getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())));
} else if ("group".equals(fieldName)) {
- deserializedAccountKeyAuthTypeWorkspaceConnectionProperties.group
- = ConnectionGroup.fromString(reader.getString());
+ deserializedAccountKeyAuthTypeWorkspaceConnectionProperties
+ .withGroup(ConnectionGroup.fromString(reader.getString()));
} else if ("isSharedToAll".equals(fieldName)) {
deserializedAccountKeyAuthTypeWorkspaceConnectionProperties
.withIsSharedToAll(reader.getNullable(JsonReader::getBoolean));
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AccountKeyDatastoreCredentials.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AccountKeyDatastoreCredentials.java
index 765b496c3b61..49ad2b2f603f 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AccountKeyDatastoreCredentials.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AccountKeyDatastoreCredentials.java
@@ -69,7 +69,6 @@ public AccountKeyDatastoreCredentials withSecrets(AccountKeyDatastoreSecrets sec
*/
@Override
public void validate() {
- super.validate();
if (secrets() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AccountKeyDatastoreSecrets.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AccountKeyDatastoreSecrets.java
index f1920d696664..75844e5c3aae 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AccountKeyDatastoreSecrets.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AccountKeyDatastoreSecrets.java
@@ -69,7 +69,6 @@ public AccountKeyDatastoreSecrets withKey(String key) {
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AcrDetails.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AcrDetails.java
index 548ec82202f6..7e0f3161f62c 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AcrDetails.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AcrDetails.java
@@ -21,11 +21,6 @@ public final class AcrDetails implements JsonSerializable {
*/
private SystemCreatedAcrAccount systemCreatedAcrAccount;
- /*
- * Details of user created ACR account to be used for the Registry
- */
- private UserCreatedAcrAccount userCreatedAcrAccount;
-
/**
* Creates an instance of AcrDetails class.
*/
@@ -52,26 +47,6 @@ public AcrDetails withSystemCreatedAcrAccount(SystemCreatedAcrAccount systemCrea
return this;
}
- /**
- * Get the userCreatedAcrAccount property: Details of user created ACR account to be used for the Registry.
- *
- * @return the userCreatedAcrAccount value.
- */
- public UserCreatedAcrAccount userCreatedAcrAccount() {
- return this.userCreatedAcrAccount;
- }
-
- /**
- * Set the userCreatedAcrAccount property: Details of user created ACR account to be used for the Registry.
- *
- * @param userCreatedAcrAccount the userCreatedAcrAccount value to set.
- * @return the AcrDetails object itself.
- */
- public AcrDetails withUserCreatedAcrAccount(UserCreatedAcrAccount userCreatedAcrAccount) {
- this.userCreatedAcrAccount = userCreatedAcrAccount;
- return this;
- }
-
/**
* Validates the instance.
*
@@ -81,9 +56,6 @@ public void validate() {
if (systemCreatedAcrAccount() != null) {
systemCreatedAcrAccount().validate();
}
- if (userCreatedAcrAccount() != null) {
- userCreatedAcrAccount().validate();
- }
}
/**
@@ -93,7 +65,6 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeJsonField("systemCreatedAcrAccount", this.systemCreatedAcrAccount);
- jsonWriter.writeJsonField("userCreatedAcrAccount", this.userCreatedAcrAccount);
return jsonWriter.writeEndObject();
}
@@ -114,8 +85,6 @@ public static AcrDetails fromJson(JsonReader jsonReader) throws IOException {
if ("systemCreatedAcrAccount".equals(fieldName)) {
deserializedAcrDetails.systemCreatedAcrAccount = SystemCreatedAcrAccount.fromJson(reader);
- } else if ("userCreatedAcrAccount".equals(fieldName)) {
- deserializedAcrDetails.userCreatedAcrAccount = UserCreatedAcrAccount.fromJson(reader);
} else {
reader.skipChildren();
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/Aks.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/Aks.java
index 76d48c600bfe..ca1467eb6c07 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/Aks.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/Aks.java
@@ -11,7 +11,6 @@
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
import java.io.IOException;
-import java.time.OffsetDateTime;
import java.util.List;
/**
@@ -29,32 +28,6 @@ public final class Aks extends Compute {
*/
private AksSchemaProperties properties;
- /*
- * The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed.
- */
- private ProvisioningState provisioningState;
-
- /*
- * The time at which the compute was created.
- */
- private OffsetDateTime createdOn;
-
- /*
- * The time at which the compute was last modified.
- */
- private OffsetDateTime modifiedOn;
-
- /*
- * Errors during provisioning
- */
- private List provisioningErrors;
-
- /*
- * Indicating whether the compute was provisioned by user and brought from outside if true, or machine learning
- * service provisioned it if false.
- */
- private Boolean isAttachedCompute;
-
/**
* Creates an instance of Aks class.
*/
@@ -91,58 +64,6 @@ public Aks withProperties(AksSchemaProperties properties) {
return this;
}
- /**
- * Get the provisioningState property: The provision state of the cluster. Valid values are Unknown, Updating,
- * Provisioning, Succeeded, and Failed.
- *
- * @return the provisioningState value.
- */
- @Override
- public ProvisioningState provisioningState() {
- return this.provisioningState;
- }
-
- /**
- * Get the createdOn property: The time at which the compute was created.
- *
- * @return the createdOn value.
- */
- @Override
- public OffsetDateTime createdOn() {
- return this.createdOn;
- }
-
- /**
- * Get the modifiedOn property: The time at which the compute was last modified.
- *
- * @return the modifiedOn value.
- */
- @Override
- public OffsetDateTime modifiedOn() {
- return this.modifiedOn;
- }
-
- /**
- * Get the provisioningErrors property: Errors during provisioning.
- *
- * @return the provisioningErrors value.
- */
- @Override
- public List provisioningErrors() {
- return this.provisioningErrors;
- }
-
- /**
- * Get the isAttachedCompute property: Indicating whether the compute was provisioned by user and brought from
- * outside if true, or machine learning service provisioned it if false.
- *
- * @return the isAttachedCompute value.
- */
- @Override
- public Boolean isAttachedCompute() {
- return this.isAttachedCompute;
- }
-
/**
* {@inheritDoc}
*/
@@ -186,7 +107,6 @@ public Aks withDisableLocalAuth(Boolean disableLocalAuth) {
*/
@Override
public void validate() {
- super.validate();
if (properties() != null) {
properties().validate();
}
@@ -225,23 +145,23 @@ public static Aks fromJson(JsonReader jsonReader) throws IOException {
if ("computeLocation".equals(fieldName)) {
deserializedAks.withComputeLocation(reader.getString());
} else if ("provisioningState".equals(fieldName)) {
- deserializedAks.provisioningState = ProvisioningState.fromString(reader.getString());
+ deserializedAks.withProvisioningState(ProvisioningState.fromString(reader.getString()));
} else if ("description".equals(fieldName)) {
deserializedAks.withDescription(reader.getString());
} else if ("createdOn".equals(fieldName)) {
- deserializedAks.createdOn = reader
- .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ deserializedAks.withCreatedOn(reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())));
} else if ("modifiedOn".equals(fieldName)) {
- deserializedAks.modifiedOn = reader
- .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ deserializedAks.withModifiedOn(reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())));
} else if ("resourceId".equals(fieldName)) {
deserializedAks.withResourceId(reader.getString());
} else if ("provisioningErrors".equals(fieldName)) {
List provisioningErrors
= reader.readArray(reader1 -> ManagementError.fromJson(reader1));
- deserializedAks.provisioningErrors = provisioningErrors;
+ deserializedAks.withProvisioningErrors(provisioningErrors);
} else if ("isAttachedCompute".equals(fieldName)) {
- deserializedAks.isAttachedCompute = reader.getNullable(JsonReader::getBoolean);
+ deserializedAks.withIsAttachedCompute(reader.getNullable(JsonReader::getBoolean));
} else if ("disableLocalAuth".equals(fieldName)) {
deserializedAks.withDisableLocalAuth(reader.getNullable(JsonReader::getBoolean));
} else if ("computeType".equals(fieldName)) {
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AksComputeSecrets.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AksComputeSecrets.java
index 8a4bda318ec9..2942a7c4c192 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AksComputeSecrets.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AksComputeSecrets.java
@@ -123,7 +123,6 @@ public AksComputeSecrets withImagePullSecretName(String imagePullSecretName) {
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AllFeatures.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AllFeatures.java
index 89e05a4ea432..125d03053a7f 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AllFeatures.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AllFeatures.java
@@ -44,7 +44,6 @@ public MonitoringFeatureFilterType filterType() {
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AllNodes.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AllNodes.java
index 2b729b4a09b0..578362e9a616 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AllNodes.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AllNodes.java
@@ -43,7 +43,6 @@ public NodesValueType nodesValueType() {
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AmlCompute.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AmlCompute.java
index 25b3ad2c53f7..b8e5d0b70f02 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AmlCompute.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AmlCompute.java
@@ -11,7 +11,6 @@
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
import java.io.IOException;
-import java.time.OffsetDateTime;
import java.util.List;
/**
@@ -29,32 +28,6 @@ public final class AmlCompute extends Compute {
*/
private AmlComputeProperties properties;
- /*
- * The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed.
- */
- private ProvisioningState provisioningState;
-
- /*
- * The time at which the compute was created.
- */
- private OffsetDateTime createdOn;
-
- /*
- * The time at which the compute was last modified.
- */
- private OffsetDateTime modifiedOn;
-
- /*
- * Errors during provisioning
- */
- private List provisioningErrors;
-
- /*
- * Indicating whether the compute was provisioned by user and brought from outside if true, or machine learning
- * service provisioned it if false.
- */
- private Boolean isAttachedCompute;
-
/**
* Creates an instance of AmlCompute class.
*/
@@ -91,58 +64,6 @@ public AmlCompute withProperties(AmlComputeProperties properties) {
return this;
}
- /**
- * Get the provisioningState property: The provision state of the cluster. Valid values are Unknown, Updating,
- * Provisioning, Succeeded, and Failed.
- *
- * @return the provisioningState value.
- */
- @Override
- public ProvisioningState provisioningState() {
- return this.provisioningState;
- }
-
- /**
- * Get the createdOn property: The time at which the compute was created.
- *
- * @return the createdOn value.
- */
- @Override
- public OffsetDateTime createdOn() {
- return this.createdOn;
- }
-
- /**
- * Get the modifiedOn property: The time at which the compute was last modified.
- *
- * @return the modifiedOn value.
- */
- @Override
- public OffsetDateTime modifiedOn() {
- return this.modifiedOn;
- }
-
- /**
- * Get the provisioningErrors property: Errors during provisioning.
- *
- * @return the provisioningErrors value.
- */
- @Override
- public List provisioningErrors() {
- return this.provisioningErrors;
- }
-
- /**
- * Get the isAttachedCompute property: Indicating whether the compute was provisioned by user and brought from
- * outside if true, or machine learning service provisioned it if false.
- *
- * @return the isAttachedCompute value.
- */
- @Override
- public Boolean isAttachedCompute() {
- return this.isAttachedCompute;
- }
-
/**
* {@inheritDoc}
*/
@@ -186,7 +107,6 @@ public AmlCompute withDisableLocalAuth(Boolean disableLocalAuth) {
*/
@Override
public void validate() {
- super.validate();
if (properties() != null) {
properties().validate();
}
@@ -225,23 +145,23 @@ public static AmlCompute fromJson(JsonReader jsonReader) throws IOException {
if ("computeLocation".equals(fieldName)) {
deserializedAmlCompute.withComputeLocation(reader.getString());
} else if ("provisioningState".equals(fieldName)) {
- deserializedAmlCompute.provisioningState = ProvisioningState.fromString(reader.getString());
+ deserializedAmlCompute.withProvisioningState(ProvisioningState.fromString(reader.getString()));
} else if ("description".equals(fieldName)) {
deserializedAmlCompute.withDescription(reader.getString());
} else if ("createdOn".equals(fieldName)) {
- deserializedAmlCompute.createdOn = reader
- .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ deserializedAmlCompute.withCreatedOn(reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())));
} else if ("modifiedOn".equals(fieldName)) {
- deserializedAmlCompute.modifiedOn = reader
- .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ deserializedAmlCompute.withModifiedOn(reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())));
} else if ("resourceId".equals(fieldName)) {
deserializedAmlCompute.withResourceId(reader.getString());
} else if ("provisioningErrors".equals(fieldName)) {
List provisioningErrors
= reader.readArray(reader1 -> ManagementError.fromJson(reader1));
- deserializedAmlCompute.provisioningErrors = provisioningErrors;
+ deserializedAmlCompute.withProvisioningErrors(provisioningErrors);
} else if ("isAttachedCompute".equals(fieldName)) {
- deserializedAmlCompute.isAttachedCompute = reader.getNullable(JsonReader::getBoolean);
+ deserializedAmlCompute.withIsAttachedCompute(reader.getNullable(JsonReader::getBoolean));
} else if ("disableLocalAuth".equals(fieldName)) {
deserializedAmlCompute.withDisableLocalAuth(reader.getNullable(JsonReader::getBoolean));
} else if ("computeType".equals(fieldName)) {
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AmlToken.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AmlToken.java
index daa2130aeb64..3b6557ad83a6 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AmlToken.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AmlToken.java
@@ -43,7 +43,6 @@ public IdentityConfigurationType identityType() {
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AmlTokenComputeIdentity.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AmlTokenComputeIdentity.java
index 4e321bb69e32..3af8f4865620 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AmlTokenComputeIdentity.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AmlTokenComputeIdentity.java
@@ -44,7 +44,6 @@ public MonitorComputeIdentityType computeIdentityType() {
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AnonymousAccessCredential.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AnonymousAccessCredential.java
index 062a8ec3b179..aeb23cda987e 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AnonymousAccessCredential.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AnonymousAccessCredential.java
@@ -43,7 +43,6 @@ public DataReferenceCredentialType credentialType() {
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/ApiKeyAuthWorkspaceConnectionProperties.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/ApiKeyAuthWorkspaceConnectionProperties.java
index cab43ca41a15..f52a43a42189 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/ApiKeyAuthWorkspaceConnectionProperties.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/ApiKeyAuthWorkspaceConnectionProperties.java
@@ -49,16 +49,6 @@ public final class ApiKeyAuthWorkspaceConnectionProperties extends WorkspaceConn
*/
private WorkspaceConnectionApiKey credentials;
- /*
- * The createdByWorkspaceArmId property.
- */
- private String createdByWorkspaceArmId;
-
- /*
- * Group based on connection category
- */
- private ConnectionGroup group;
-
/**
* Creates an instance of ApiKeyAuthWorkspaceConnectionProperties class.
*/
@@ -95,26 +85,6 @@ public ApiKeyAuthWorkspaceConnectionProperties withCredentials(WorkspaceConnecti
return this;
}
- /**
- * Get the createdByWorkspaceArmId property: The createdByWorkspaceArmId property.
- *
- * @return the createdByWorkspaceArmId value.
- */
- @Override
- public String createdByWorkspaceArmId() {
- return this.createdByWorkspaceArmId;
- }
-
- /**
- * Get the group property: Group based on connection category.
- *
- * @return the group value.
- */
- @Override
- public ConnectionGroup group() {
- return this.group;
- }
-
/**
* {@inheritDoc}
*/
@@ -194,7 +164,6 @@ public ApiKeyAuthWorkspaceConnectionProperties withValueFormat(ValueFormat value
*/
@Override
public void validate() {
- super.validate();
if (credentials() != null) {
credentials().validate();
}
@@ -241,13 +210,13 @@ public static ApiKeyAuthWorkspaceConnectionProperties fromJson(JsonReader jsonRe
deserializedApiKeyAuthWorkspaceConnectionProperties
.withCategory(ConnectionCategory.fromString(reader.getString()));
} else if ("createdByWorkspaceArmId".equals(fieldName)) {
- deserializedApiKeyAuthWorkspaceConnectionProperties.createdByWorkspaceArmId = reader.getString();
+ deserializedApiKeyAuthWorkspaceConnectionProperties.withCreatedByWorkspaceArmId(reader.getString());
} else if ("expiryTime".equals(fieldName)) {
deserializedApiKeyAuthWorkspaceConnectionProperties.withExpiryTime(reader
.getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())));
} else if ("group".equals(fieldName)) {
- deserializedApiKeyAuthWorkspaceConnectionProperties.group
- = ConnectionGroup.fromString(reader.getString());
+ deserializedApiKeyAuthWorkspaceConnectionProperties
+ .withGroup(ConnectionGroup.fromString(reader.getString()));
} else if ("isSharedToAll".equals(fieldName)) {
deserializedApiKeyAuthWorkspaceConnectionProperties
.withIsSharedToAll(reader.getNullable(JsonReader::getBoolean));
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AssetBase.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AssetBase.java
index 40f0a0158c4f..f31fc7ccc85f 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AssetBase.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AssetBase.java
@@ -17,14 +17,14 @@
@Fluent
public class AssetBase extends ResourceBase {
/*
- * Is the asset archived?
+ * If the name version are system generated (anonymous registration).
*/
- private Boolean isArchived;
+ private Boolean isAnonymous;
/*
- * If the name version are system generated (anonymous registration).
+ * Is the asset archived?
*/
- private Boolean isAnonymous;
+ private Boolean isArchived;
/**
* Creates an instance of AssetBase class.
@@ -33,42 +33,42 @@ public AssetBase() {
}
/**
- * Get the isArchived property: Is the asset archived?.
+ * Get the isAnonymous property: If the name version are system generated (anonymous registration).
*
- * @return the isArchived value.
+ * @return the isAnonymous value.
*/
- public Boolean isArchived() {
- return this.isArchived;
+ public Boolean isAnonymous() {
+ return this.isAnonymous;
}
/**
- * Set the isArchived property: Is the asset archived?.
+ * Set the isAnonymous property: If the name version are system generated (anonymous registration).
*
- * @param isArchived the isArchived value to set.
+ * @param isAnonymous the isAnonymous value to set.
* @return the AssetBase object itself.
*/
- public AssetBase withIsArchived(Boolean isArchived) {
- this.isArchived = isArchived;
+ public AssetBase withIsAnonymous(Boolean isAnonymous) {
+ this.isAnonymous = isAnonymous;
return this;
}
/**
- * Get the isAnonymous property: If the name version are system generated (anonymous registration).
+ * Get the isArchived property: Is the asset archived?.
*
- * @return the isAnonymous value.
+ * @return the isArchived value.
*/
- public Boolean isAnonymous() {
- return this.isAnonymous;
+ public Boolean isArchived() {
+ return this.isArchived;
}
/**
- * Set the isAnonymous property: If the name version are system generated (anonymous registration).
+ * Set the isArchived property: Is the asset archived?.
*
- * @param isAnonymous the isAnonymous value to set.
+ * @param isArchived the isArchived value to set.
* @return the AssetBase object itself.
*/
- public AssetBase withIsAnonymous(Boolean isAnonymous) {
- this.isAnonymous = isAnonymous;
+ public AssetBase withIsArchived(Boolean isArchived) {
+ this.isArchived = isArchived;
return this;
}
@@ -85,8 +85,8 @@ public AssetBase withDescription(String description) {
* {@inheritDoc}
*/
@Override
- public AssetBase withTags(Map tags) {
- super.withTags(tags);
+ public AssetBase withProperties(Map properties) {
+ super.withProperties(properties);
return this;
}
@@ -94,8 +94,8 @@ public AssetBase withTags(Map tags) {
* {@inheritDoc}
*/
@Override
- public AssetBase withProperties(Map properties) {
- super.withProperties(properties);
+ public AssetBase withTags(Map tags) {
+ super.withTags(tags);
return this;
}
@@ -106,7 +106,6 @@ public AssetBase withProperties(Map properties) {
*/
@Override
public void validate() {
- super.validate();
}
/**
@@ -116,10 +115,10 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeStringField("description", description());
- jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeMapField("properties", properties(), (writer, element) -> writer.writeString(element));
- jsonWriter.writeBooleanField("isArchived", this.isArchived);
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeBooleanField("isAnonymous", this.isAnonymous);
+ jsonWriter.writeBooleanField("isArchived", this.isArchived);
return jsonWriter.writeEndObject();
}
@@ -140,16 +139,16 @@ public static AssetBase fromJson(JsonReader jsonReader) throws IOException {
if ("description".equals(fieldName)) {
deserializedAssetBase.withDescription(reader.getString());
- } else if ("tags".equals(fieldName)) {
- Map tags = reader.readMap(reader1 -> reader1.getString());
- deserializedAssetBase.withTags(tags);
} else if ("properties".equals(fieldName)) {
Map properties = reader.readMap(reader1 -> reader1.getString());
deserializedAssetBase.withProperties(properties);
- } else if ("isArchived".equals(fieldName)) {
- deserializedAssetBase.isArchived = reader.getNullable(JsonReader::getBoolean);
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedAssetBase.withTags(tags);
} else if ("isAnonymous".equals(fieldName)) {
deserializedAssetBase.isAnonymous = reader.getNullable(JsonReader::getBoolean);
+ } else if ("isArchived".equals(fieldName)) {
+ deserializedAssetBase.isArchived = reader.getNullable(JsonReader::getBoolean);
} else {
reader.skipChildren();
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AssetContainer.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AssetContainer.java
index 3361874f3160..94b723682559 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AssetContainer.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AssetContainer.java
@@ -110,8 +110,8 @@ public AssetContainer withDescription(String description) {
* {@inheritDoc}
*/
@Override
- public AssetContainer withTags(Map tags) {
- super.withTags(tags);
+ public AssetContainer withProperties(Map properties) {
+ super.withProperties(properties);
return this;
}
@@ -119,8 +119,8 @@ public AssetContainer withTags(Map tags) {
* {@inheritDoc}
*/
@Override
- public AssetContainer withProperties(Map properties) {
- super.withProperties(properties);
+ public AssetContainer withTags(Map tags) {
+ super.withTags(tags);
return this;
}
@@ -131,7 +131,6 @@ public AssetContainer withProperties(Map properties) {
*/
@Override
public void validate() {
- super.validate();
}
/**
@@ -141,8 +140,8 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeStringField("description", description());
- jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeMapField("properties", properties(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeBooleanField("isArchived", this.isArchived);
return jsonWriter.writeEndObject();
}
@@ -164,12 +163,12 @@ public static AssetContainer fromJson(JsonReader jsonReader) throws IOException
if ("description".equals(fieldName)) {
deserializedAssetContainer.withDescription(reader.getString());
- } else if ("tags".equals(fieldName)) {
- Map tags = reader.readMap(reader1 -> reader1.getString());
- deserializedAssetContainer.withTags(tags);
} else if ("properties".equals(fieldName)) {
Map properties = reader.readMap(reader1 -> reader1.getString());
deserializedAssetContainer.withProperties(properties);
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedAssetContainer.withTags(tags);
} else if ("isArchived".equals(fieldName)) {
deserializedAssetContainer.isArchived = reader.getNullable(JsonReader::getBoolean);
} else if ("latestVersion".equals(fieldName)) {
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AssetJobInput.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AssetJobInput.java
index 3f22adaf3d73..fd821b884c26 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AssetJobInput.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AssetJobInput.java
@@ -18,14 +18,14 @@
@Fluent
public class AssetJobInput implements JsonSerializable {
/*
- * [Required] Input Asset URI.
+ * Input Asset Delivery Mode.
*/
- private String uri;
+ private InputDeliveryMode mode;
/*
- * Input Asset Delivery Mode.
+ * [Required] Input Asset URI.
*/
- private InputDeliveryMode mode;
+ private String uri;
/**
* Creates an instance of AssetJobInput class.
@@ -34,42 +34,42 @@ public AssetJobInput() {
}
/**
- * Get the uri property: [Required] Input Asset URI.
+ * Get the mode property: Input Asset Delivery Mode.
*
- * @return the uri value.
+ * @return the mode value.
*/
- public String uri() {
- return this.uri;
+ public InputDeliveryMode mode() {
+ return this.mode;
}
/**
- * Set the uri property: [Required] Input Asset URI.
+ * Set the mode property: Input Asset Delivery Mode.
*
- * @param uri the uri value to set.
+ * @param mode the mode value to set.
* @return the AssetJobInput object itself.
*/
- public AssetJobInput withUri(String uri) {
- this.uri = uri;
+ public AssetJobInput withMode(InputDeliveryMode mode) {
+ this.mode = mode;
return this;
}
/**
- * Get the mode property: Input Asset Delivery Mode.
+ * Get the uri property: [Required] Input Asset URI.
*
- * @return the mode value.
+ * @return the uri value.
*/
- public InputDeliveryMode mode() {
- return this.mode;
+ public String uri() {
+ return this.uri;
}
/**
- * Set the mode property: Input Asset Delivery Mode.
+ * Set the uri property: [Required] Input Asset URI.
*
- * @param mode the mode value to set.
+ * @param uri the uri value to set.
* @return the AssetJobInput object itself.
*/
- public AssetJobInput withMode(InputDeliveryMode mode) {
- this.mode = mode;
+ public AssetJobInput withUri(String uri) {
+ this.uri = uri;
return this;
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AssetJobOutput.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AssetJobOutput.java
index 777d853f2ca6..44c5179d9f4c 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AssetJobOutput.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AssetJobOutput.java
@@ -17,14 +17,14 @@
@Fluent
public class AssetJobOutput implements JsonSerializable {
/*
- * Output Asset URI.
+ * Output Asset Delivery Mode.
*/
- private String uri;
+ private OutputDeliveryMode mode;
/*
- * Output Asset Delivery Mode.
+ * Output Asset URI.
*/
- private OutputDeliveryMode mode;
+ private String uri;
/**
* Creates an instance of AssetJobOutput class.
@@ -33,42 +33,42 @@ public AssetJobOutput() {
}
/**
- * Get the uri property: Output Asset URI.
+ * Get the mode property: Output Asset Delivery Mode.
*
- * @return the uri value.
+ * @return the mode value.
*/
- public String uri() {
- return this.uri;
+ public OutputDeliveryMode mode() {
+ return this.mode;
}
/**
- * Set the uri property: Output Asset URI.
+ * Set the mode property: Output Asset Delivery Mode.
*
- * @param uri the uri value to set.
+ * @param mode the mode value to set.
* @return the AssetJobOutput object itself.
*/
- public AssetJobOutput withUri(String uri) {
- this.uri = uri;
+ public AssetJobOutput withMode(OutputDeliveryMode mode) {
+ this.mode = mode;
return this;
}
/**
- * Get the mode property: Output Asset Delivery Mode.
+ * Get the uri property: Output Asset URI.
*
- * @return the mode value.
+ * @return the uri value.
*/
- public OutputDeliveryMode mode() {
- return this.mode;
+ public String uri() {
+ return this.uri;
}
/**
- * Set the mode property: Output Asset Delivery Mode.
+ * Set the uri property: Output Asset URI.
*
- * @param mode the mode value to set.
+ * @param uri the uri value to set.
* @return the AssetJobOutput object itself.
*/
- public AssetJobOutput withMode(OutputDeliveryMode mode) {
- this.mode = mode;
+ public AssetJobOutput withUri(String uri) {
+ this.uri = uri;
return this;
}
@@ -86,8 +86,8 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeStringField("uri", this.uri);
jsonWriter.writeStringField("mode", this.mode == null ? null : this.mode.toString());
+ jsonWriter.writeStringField("uri", this.uri);
return jsonWriter.writeEndObject();
}
@@ -106,10 +106,10 @@ public static AssetJobOutput fromJson(JsonReader jsonReader) throws IOException
String fieldName = reader.getFieldName();
reader.nextToken();
- if ("uri".equals(fieldName)) {
- deserializedAssetJobOutput.uri = reader.getString();
- } else if ("mode".equals(fieldName)) {
+ if ("mode".equals(fieldName)) {
deserializedAssetJobOutput.mode = OutputDeliveryMode.fromString(reader.getString());
+ } else if ("uri".equals(fieldName)) {
+ deserializedAssetJobOutput.uri = reader.getString();
} else {
reader.skipChildren();
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoForecastHorizon.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoForecastHorizon.java
index 3a85d223e13d..be28893ee9b0 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoForecastHorizon.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoForecastHorizon.java
@@ -43,7 +43,6 @@ public ForecastHorizonMode mode() {
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoMLJob.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoMLJob.java
index f616e2956874..3aa298355623 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoMLJob.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoMLJob.java
@@ -24,11 +24,6 @@ public final class AutoMLJob extends JobBaseProperties {
*/
private JobType jobType = JobType.AUTO_ML;
- /*
- * Compute Resource configuration for the job.
- */
- private JobResourceConfiguration resources;
-
/*
* The ARM resource ID of the Environment specification for the job.
* This is optional value to provide, if not provided, AutoML will default this to Production AutoML curated
@@ -41,11 +36,6 @@ public final class AutoMLJob extends JobBaseProperties {
*/
private Map environmentVariables;
- /*
- * [Required] This represents scenario which can be one of Tables/NLP/Image
- */
- private AutoMLVertical taskDetails;
-
/*
* Mapping of output data bindings used in the job.
*/
@@ -57,9 +47,14 @@ public final class AutoMLJob extends JobBaseProperties {
private QueueSettings queueSettings;
/*
- * Status of the job.
+ * Compute Resource configuration for the job.
+ */
+ private JobResourceConfiguration resources;
+
+ /*
+ * [Required] This represents scenario which can be one of Tables/NLP/Image
*/
- private JobStatus status;
+ private AutoMLVertical taskDetails;
/**
* Creates an instance of AutoMLJob class.
@@ -77,26 +72,6 @@ public JobType jobType() {
return this.jobType;
}
- /**
- * Get the resources property: Compute Resource configuration for the job.
- *
- * @return the resources value.
- */
- public JobResourceConfiguration resources() {
- return this.resources;
- }
-
- /**
- * Set the resources property: Compute Resource configuration for the job.
- *
- * @param resources the resources value to set.
- * @return the AutoMLJob object itself.
- */
- public AutoMLJob withResources(JobResourceConfiguration resources) {
- this.resources = resources;
- return this;
- }
-
/**
* Get the environmentId property: The ARM resource ID of the Environment specification for the job.
* This is optional value to provide, if not provided, AutoML will default this to Production AutoML curated
@@ -141,26 +116,6 @@ public AutoMLJob withEnvironmentVariables(Map environmentVariabl
return this;
}
- /**
- * Get the taskDetails property: [Required] This represents scenario which can be one of Tables/NLP/Image.
- *
- * @return the taskDetails value.
- */
- public AutoMLVertical taskDetails() {
- return this.taskDetails;
- }
-
- /**
- * Set the taskDetails property: [Required] This represents scenario which can be one of Tables/NLP/Image.
- *
- * @param taskDetails the taskDetails value to set.
- * @return the AutoMLJob object itself.
- */
- public AutoMLJob withTaskDetails(AutoMLVertical taskDetails) {
- this.taskDetails = taskDetails;
- return this;
- }
-
/**
* Get the outputs property: Mapping of output data bindings used in the job.
*
@@ -202,30 +157,42 @@ public AutoMLJob withQueueSettings(QueueSettings queueSettings) {
}
/**
- * Get the status property: Status of the job.
+ * Get the resources property: Compute Resource configuration for the job.
*
- * @return the status value.
+ * @return the resources value.
*/
- @Override
- public JobStatus status() {
- return this.status;
+ public JobResourceConfiguration resources() {
+ return this.resources;
}
/**
- * {@inheritDoc}
+ * Set the resources property: Compute Resource configuration for the job.
+ *
+ * @param resources the resources value to set.
+ * @return the AutoMLJob object itself.
*/
- @Override
- public AutoMLJob withDisplayName(String displayName) {
- super.withDisplayName(displayName);
+ public AutoMLJob withResources(JobResourceConfiguration resources) {
+ this.resources = resources;
return this;
}
/**
- * {@inheritDoc}
+ * Get the taskDetails property: [Required] This represents scenario which can be one of Tables/NLP/Image.
+ *
+ * @return the taskDetails value.
*/
- @Override
- public AutoMLJob withExperimentName(String experimentName) {
- super.withExperimentName(experimentName);
+ public AutoMLVertical taskDetails() {
+ return this.taskDetails;
+ }
+
+ /**
+ * Set the taskDetails property: [Required] This represents scenario which can be one of Tables/NLP/Image.
+ *
+ * @param taskDetails the taskDetails value to set.
+ * @return the AutoMLJob object itself.
+ */
+ public AutoMLJob withTaskDetails(AutoMLVertical taskDetails) {
+ this.taskDetails = taskDetails;
return this;
}
@@ -233,8 +200,8 @@ public AutoMLJob withExperimentName(String experimentName) {
* {@inheritDoc}
*/
@Override
- public AutoMLJob withServices(Map services) {
- super.withServices(services);
+ public AutoMLJob withComponentId(String componentId) {
+ super.withComponentId(componentId);
return this;
}
@@ -251,8 +218,17 @@ public AutoMLJob withComputeId(String computeId) {
* {@inheritDoc}
*/
@Override
- public AutoMLJob withIsArchived(Boolean isArchived) {
- super.withIsArchived(isArchived);
+ public AutoMLJob withDisplayName(String displayName) {
+ super.withDisplayName(displayName);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public AutoMLJob withExperimentName(String experimentName) {
+ super.withExperimentName(experimentName);
return this;
}
@@ -269,8 +245,8 @@ public AutoMLJob withIdentity(IdentityConfiguration identity) {
* {@inheritDoc}
*/
@Override
- public AutoMLJob withComponentId(String componentId) {
- super.withComponentId(componentId);
+ public AutoMLJob withIsArchived(Boolean isArchived) {
+ super.withIsArchived(isArchived);
return this;
}
@@ -287,8 +263,8 @@ public AutoMLJob withNotificationSetting(NotificationSetting notificationSetting
* {@inheritDoc}
*/
@Override
- public AutoMLJob withDescription(String description) {
- super.withDescription(description);
+ public AutoMLJob withServices(Map services) {
+ super.withServices(services);
return this;
}
@@ -296,8 +272,8 @@ public AutoMLJob withDescription(String description) {
* {@inheritDoc}
*/
@Override
- public AutoMLJob withTags(Map tags) {
- super.withTags(tags);
+ public AutoMLJob withDescription(String description) {
+ super.withDescription(description);
return this;
}
@@ -310,6 +286,15 @@ public AutoMLJob withProperties(Map properties) {
return this;
}
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public AutoMLJob withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
/**
* Validates the instance.
*
@@ -317,7 +302,16 @@ public AutoMLJob withProperties(Map properties) {
*/
@Override
public void validate() {
- super.validate();
+ if (outputs() != null) {
+ outputs().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
+ if (queueSettings() != null) {
+ queueSettings().validate();
+ }
if (resources() != null) {
resources().validate();
}
@@ -327,16 +321,19 @@ public void validate() {
} else {
taskDetails().validate();
}
- if (outputs() != null) {
- outputs().values().forEach(e -> {
+ if (identity() != null) {
+ identity().validate();
+ }
+ if (notificationSetting() != null) {
+ notificationSetting().validate();
+ }
+ if (services() != null) {
+ services().values().forEach(e -> {
if (e != null) {
e.validate();
}
});
}
- if (queueSettings() != null) {
- queueSettings().validate();
- }
}
private static final ClientLogger LOGGER = new ClientLogger(AutoMLJob.class);
@@ -348,24 +345,24 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeStringField("description", description());
- jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeMapField("properties", properties(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeStringField("componentId", componentId());
+ jsonWriter.writeStringField("computeId", computeId());
jsonWriter.writeStringField("displayName", displayName());
jsonWriter.writeStringField("experimentName", experimentName());
- jsonWriter.writeMapField("services", services(), (writer, element) -> writer.writeJson(element));
- jsonWriter.writeStringField("computeId", computeId());
- jsonWriter.writeBooleanField("isArchived", isArchived());
jsonWriter.writeJsonField("identity", identity());
- jsonWriter.writeStringField("componentId", componentId());
+ jsonWriter.writeBooleanField("isArchived", isArchived());
jsonWriter.writeJsonField("notificationSetting", notificationSetting());
+ jsonWriter.writeMapField("services", services(), (writer, element) -> writer.writeJson(element));
jsonWriter.writeJsonField("taskDetails", this.taskDetails);
jsonWriter.writeStringField("jobType", this.jobType == null ? null : this.jobType.toString());
- jsonWriter.writeJsonField("resources", this.resources);
jsonWriter.writeStringField("environmentId", this.environmentId);
jsonWriter.writeMapField("environmentVariables", this.environmentVariables,
(writer, element) -> writer.writeString(element));
jsonWriter.writeMapField("outputs", this.outputs, (writer, element) -> writer.writeJson(element));
jsonWriter.writeJsonField("queueSettings", this.queueSettings);
+ jsonWriter.writeJsonField("resources", this.resources);
return jsonWriter.writeEndObject();
}
@@ -387,37 +384,35 @@ public static AutoMLJob fromJson(JsonReader jsonReader) throws IOException {
if ("description".equals(fieldName)) {
deserializedAutoMLJob.withDescription(reader.getString());
- } else if ("tags".equals(fieldName)) {
- Map tags = reader.readMap(reader1 -> reader1.getString());
- deserializedAutoMLJob.withTags(tags);
} else if ("properties".equals(fieldName)) {
Map properties = reader.readMap(reader1 -> reader1.getString());
deserializedAutoMLJob.withProperties(properties);
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedAutoMLJob.withTags(tags);
+ } else if ("componentId".equals(fieldName)) {
+ deserializedAutoMLJob.withComponentId(reader.getString());
+ } else if ("computeId".equals(fieldName)) {
+ deserializedAutoMLJob.withComputeId(reader.getString());
} else if ("displayName".equals(fieldName)) {
deserializedAutoMLJob.withDisplayName(reader.getString());
- } else if ("status".equals(fieldName)) {
- deserializedAutoMLJob.status = JobStatus.fromString(reader.getString());
} else if ("experimentName".equals(fieldName)) {
deserializedAutoMLJob.withExperimentName(reader.getString());
- } else if ("services".equals(fieldName)) {
- Map services = reader.readMap(reader1 -> JobService.fromJson(reader1));
- deserializedAutoMLJob.withServices(services);
- } else if ("computeId".equals(fieldName)) {
- deserializedAutoMLJob.withComputeId(reader.getString());
- } else if ("isArchived".equals(fieldName)) {
- deserializedAutoMLJob.withIsArchived(reader.getNullable(JsonReader::getBoolean));
} else if ("identity".equals(fieldName)) {
deserializedAutoMLJob.withIdentity(IdentityConfiguration.fromJson(reader));
- } else if ("componentId".equals(fieldName)) {
- deserializedAutoMLJob.withComponentId(reader.getString());
+ } else if ("isArchived".equals(fieldName)) {
+ deserializedAutoMLJob.withIsArchived(reader.getNullable(JsonReader::getBoolean));
} else if ("notificationSetting".equals(fieldName)) {
deserializedAutoMLJob.withNotificationSetting(NotificationSetting.fromJson(reader));
+ } else if ("services".equals(fieldName)) {
+ Map services = reader.readMap(reader1 -> JobService.fromJson(reader1));
+ deserializedAutoMLJob.withServices(services);
+ } else if ("status".equals(fieldName)) {
+ deserializedAutoMLJob.withStatus(JobStatus.fromString(reader.getString()));
} else if ("taskDetails".equals(fieldName)) {
deserializedAutoMLJob.taskDetails = AutoMLVertical.fromJson(reader);
} else if ("jobType".equals(fieldName)) {
deserializedAutoMLJob.jobType = JobType.fromString(reader.getString());
- } else if ("resources".equals(fieldName)) {
- deserializedAutoMLJob.resources = JobResourceConfiguration.fromJson(reader);
} else if ("environmentId".equals(fieldName)) {
deserializedAutoMLJob.environmentId = reader.getString();
} else if ("environmentVariables".equals(fieldName)) {
@@ -428,6 +423,8 @@ public static AutoMLJob fromJson(JsonReader jsonReader) throws IOException {
deserializedAutoMLJob.outputs = outputs;
} else if ("queueSettings".equals(fieldName)) {
deserializedAutoMLJob.queueSettings = QueueSettings.fromJson(reader);
+ } else if ("resources".equals(fieldName)) {
+ deserializedAutoMLJob.resources = JobResourceConfiguration.fromJson(reader);
} else {
reader.skipChildren();
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoMLVertical.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoMLVertical.java
index 322da20d956b..02ac07f9cec8 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoMLVertical.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoMLVertical.java
@@ -28,17 +28,17 @@ public class AutoMLVertical implements JsonSerializable {
*/
private LogVerbosity logVerbosity;
- /*
- * [Required] Training data input.
- */
- private MLTableJobInput trainingData;
-
/*
* Target column name: This is prediction values column.
* Also known as label column name in context of classification tasks.
*/
private String targetColumnName;
+ /*
+ * [Required] Training data input.
+ */
+ private MLTableJobInput trainingData;
+
/**
* Creates an instance of AutoMLVertical class.
*/
@@ -75,44 +75,44 @@ public AutoMLVertical withLogVerbosity(LogVerbosity logVerbosity) {
}
/**
- * Get the trainingData property: [Required] Training data input.
+ * Get the targetColumnName property: Target column name: This is prediction values column.
+ * Also known as label column name in context of classification tasks.
*
- * @return the trainingData value.
+ * @return the targetColumnName value.
*/
- public MLTableJobInput trainingData() {
- return this.trainingData;
+ public String targetColumnName() {
+ return this.targetColumnName;
}
/**
- * Set the trainingData property: [Required] Training data input.
+ * Set the targetColumnName property: Target column name: This is prediction values column.
+ * Also known as label column name in context of classification tasks.
*
- * @param trainingData the trainingData value to set.
+ * @param targetColumnName the targetColumnName value to set.
* @return the AutoMLVertical object itself.
*/
- public AutoMLVertical withTrainingData(MLTableJobInput trainingData) {
- this.trainingData = trainingData;
+ public AutoMLVertical withTargetColumnName(String targetColumnName) {
+ this.targetColumnName = targetColumnName;
return this;
}
/**
- * Get the targetColumnName property: Target column name: This is prediction values column.
- * Also known as label column name in context of classification tasks.
+ * Get the trainingData property: [Required] Training data input.
*
- * @return the targetColumnName value.
+ * @return the trainingData value.
*/
- public String targetColumnName() {
- return this.targetColumnName;
+ public MLTableJobInput trainingData() {
+ return this.trainingData;
}
/**
- * Set the targetColumnName property: Target column name: This is prediction values column.
- * Also known as label column name in context of classification tasks.
+ * Set the trainingData property: [Required] Training data input.
*
- * @param targetColumnName the targetColumnName value to set.
+ * @param trainingData the trainingData value to set.
* @return the AutoMLVertical object itself.
*/
- public AutoMLVertical withTargetColumnName(String targetColumnName) {
- this.targetColumnName = targetColumnName;
+ public AutoMLVertical withTrainingData(MLTableJobInput trainingData) {
+ this.trainingData = trainingData;
return this;
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoNCrossValidations.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoNCrossValidations.java
index ee0332610783..911d558f9839 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoNCrossValidations.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoNCrossValidations.java
@@ -43,7 +43,6 @@ public NCrossValidationsMode mode() {
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoSeasonality.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoSeasonality.java
index 4964bfdf4740..1de6a2697e7c 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoSeasonality.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoSeasonality.java
@@ -43,7 +43,6 @@ public SeasonalityMode mode() {
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoTargetLags.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoTargetLags.java
index db38b2851e9c..40f57b861f49 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoTargetLags.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoTargetLags.java
@@ -43,7 +43,6 @@ public TargetLagsMode mode() {
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoTargetRollingWindowSize.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoTargetRollingWindowSize.java
index e323336c4253..9ae206b7c914 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoTargetRollingWindowSize.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoTargetRollingWindowSize.java
@@ -43,7 +43,6 @@ public TargetRollingWindowSizeMode mode() {
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureBlobDatastore.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureBlobDatastore.java
index 472b1f8d525d..36a982d35c03 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureBlobDatastore.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureBlobDatastore.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.machinelearning.models;
import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
@@ -46,20 +47,15 @@ public final class AzureBlobDatastore extends DatastoreProperties {
*/
private ServiceDataAccessAuthIdentity serviceDataAccessAuthIdentity;
- /*
- * Azure Subscription Id
- */
- private String subscriptionId;
-
/*
* Azure Resource Group name
*/
private String resourceGroup;
/*
- * Readonly property to indicate if datastore is the workspace default datastore
+ * Azure Subscription Id
*/
- private Boolean isDefault;
+ private String subscriptionId;
/**
* Creates an instance of AzureBlobDatastore class.
@@ -180,26 +176,6 @@ public ServiceDataAccessAuthIdentity serviceDataAccessAuthIdentity() {
return this;
}
- /**
- * Get the subscriptionId property: Azure Subscription Id.
- *
- * @return the subscriptionId value.
- */
- public String subscriptionId() {
- return this.subscriptionId;
- }
-
- /**
- * Set the subscriptionId property: Azure Subscription Id.
- *
- * @param subscriptionId the subscriptionId value to set.
- * @return the AzureBlobDatastore object itself.
- */
- public AzureBlobDatastore withSubscriptionId(String subscriptionId) {
- this.subscriptionId = subscriptionId;
- return this;
- }
-
/**
* Get the resourceGroup property: Azure Resource Group name.
*
@@ -221,13 +197,23 @@ public AzureBlobDatastore withResourceGroup(String resourceGroup) {
}
/**
- * Get the isDefault property: Readonly property to indicate if datastore is the workspace default datastore.
+ * Get the subscriptionId property: Azure Subscription Id.
*
- * @return the isDefault value.
+ * @return the subscriptionId value.
*/
- @Override
- public Boolean isDefault() {
- return this.isDefault;
+ public String subscriptionId() {
+ return this.subscriptionId;
+ }
+
+ /**
+ * Set the subscriptionId property: Azure Subscription Id.
+ *
+ * @param subscriptionId the subscriptionId value to set.
+ * @return the AzureBlobDatastore object itself.
+ */
+ public AzureBlobDatastore withSubscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
+ return this;
}
/**
@@ -252,8 +238,8 @@ public AzureBlobDatastore withDescription(String description) {
* {@inheritDoc}
*/
@Override
- public AzureBlobDatastore withTags(Map tags) {
- super.withTags(tags);
+ public AzureBlobDatastore withProperties(Map properties) {
+ super.withProperties(properties);
return this;
}
@@ -261,8 +247,8 @@ public AzureBlobDatastore withTags(Map tags) {
* {@inheritDoc}
*/
@Override
- public AzureBlobDatastore withProperties(Map properties) {
- super.withProperties(properties);
+ public AzureBlobDatastore withTags(Map tags) {
+ super.withTags(tags);
return this;
}
@@ -273,9 +259,16 @@ public AzureBlobDatastore withProperties(Map properties) {
*/
@Override
public void validate() {
- super.validate();
+ if (credentials() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property credentials in model AzureBlobDatastore"));
+ } else {
+ credentials().validate();
+ }
}
+ private static final ClientLogger LOGGER = new ClientLogger(AzureBlobDatastore.class);
+
/**
* {@inheritDoc}
*/
@@ -284,8 +277,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeJsonField("credentials", credentials());
jsonWriter.writeStringField("description", description());
- jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeMapField("properties", properties(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeStringField("datastoreType", this.datastoreType == null ? null : this.datastoreType.toString());
jsonWriter.writeStringField("accountName", this.accountName);
jsonWriter.writeStringField("containerName", this.containerName);
@@ -293,8 +286,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStringField("protocol", this.protocol);
jsonWriter.writeStringField("serviceDataAccessAuthIdentity",
this.serviceDataAccessAuthIdentity == null ? null : this.serviceDataAccessAuthIdentity.toString());
- jsonWriter.writeStringField("subscriptionId", this.subscriptionId);
jsonWriter.writeStringField("resourceGroup", this.resourceGroup);
+ jsonWriter.writeStringField("subscriptionId", this.subscriptionId);
return jsonWriter.writeEndObject();
}
@@ -318,14 +311,14 @@ public static AzureBlobDatastore fromJson(JsonReader jsonReader) throws IOExcept
deserializedAzureBlobDatastore.withCredentials(DatastoreCredentials.fromJson(reader));
} else if ("description".equals(fieldName)) {
deserializedAzureBlobDatastore.withDescription(reader.getString());
- } else if ("tags".equals(fieldName)) {
- Map tags = reader.readMap(reader1 -> reader1.getString());
- deserializedAzureBlobDatastore.withTags(tags);
} else if ("properties".equals(fieldName)) {
Map properties = reader.readMap(reader1 -> reader1.getString());
deserializedAzureBlobDatastore.withProperties(properties);
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedAzureBlobDatastore.withTags(tags);
} else if ("isDefault".equals(fieldName)) {
- deserializedAzureBlobDatastore.isDefault = reader.getNullable(JsonReader::getBoolean);
+ deserializedAzureBlobDatastore.withIsDefault(reader.getNullable(JsonReader::getBoolean));
} else if ("datastoreType".equals(fieldName)) {
deserializedAzureBlobDatastore.datastoreType = DatastoreType.fromString(reader.getString());
} else if ("accountName".equals(fieldName)) {
@@ -339,10 +332,10 @@ public static AzureBlobDatastore fromJson(JsonReader jsonReader) throws IOExcept
} else if ("serviceDataAccessAuthIdentity".equals(fieldName)) {
deserializedAzureBlobDatastore.serviceDataAccessAuthIdentity
= ServiceDataAccessAuthIdentity.fromString(reader.getString());
- } else if ("subscriptionId".equals(fieldName)) {
- deserializedAzureBlobDatastore.subscriptionId = reader.getString();
} else if ("resourceGroup".equals(fieldName)) {
deserializedAzureBlobDatastore.resourceGroup = reader.getString();
+ } else if ("subscriptionId".equals(fieldName)) {
+ deserializedAzureBlobDatastore.subscriptionId = reader.getString();
} else {
reader.skipChildren();
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureDataLakeGen1Datastore.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureDataLakeGen1Datastore.java
index 1c46952a1c49..ef6edd68b90f 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureDataLakeGen1Datastore.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureDataLakeGen1Datastore.java
@@ -22,20 +22,15 @@ public final class AzureDataLakeGen1Datastore extends DatastoreProperties {
*/
private DatastoreType datastoreType = DatastoreType.AZURE_DATA_LAKE_GEN1;
- /*
- * [Required] Azure Data Lake store name.
- */
- private String storeName;
-
/*
* Indicates which identity to use to authenticate service data access to customer's storage.
*/
private ServiceDataAccessAuthIdentity serviceDataAccessAuthIdentity;
/*
- * Azure Subscription Id
+ * [Required] Azure Data Lake store name.
*/
- private String subscriptionId;
+ private String storeName;
/*
* Azure Resource Group name
@@ -43,9 +38,9 @@ public final class AzureDataLakeGen1Datastore extends DatastoreProperties {
private String resourceGroup;
/*
- * Readonly property to indicate if datastore is the workspace default datastore
+ * Azure Subscription Id
*/
- private Boolean isDefault;
+ private String subscriptionId;
/**
* Creates an instance of AzureDataLakeGen1Datastore class.
@@ -63,26 +58,6 @@ public DatastoreType datastoreType() {
return this.datastoreType;
}
- /**
- * Get the storeName property: [Required] Azure Data Lake store name.
- *
- * @return the storeName value.
- */
- public String storeName() {
- return this.storeName;
- }
-
- /**
- * Set the storeName property: [Required] Azure Data Lake store name.
- *
- * @param storeName the storeName value to set.
- * @return the AzureDataLakeGen1Datastore object itself.
- */
- public AzureDataLakeGen1Datastore withStoreName(String storeName) {
- this.storeName = storeName;
- return this;
- }
-
/**
* Get the serviceDataAccessAuthIdentity property: Indicates which identity to use to authenticate service data
* access to customer's storage.
@@ -107,22 +82,22 @@ public ServiceDataAccessAuthIdentity serviceDataAccessAuthIdentity() {
}
/**
- * Get the subscriptionId property: Azure Subscription Id.
+ * Get the storeName property: [Required] Azure Data Lake store name.
*
- * @return the subscriptionId value.
+ * @return the storeName value.
*/
- public String subscriptionId() {
- return this.subscriptionId;
+ public String storeName() {
+ return this.storeName;
}
/**
- * Set the subscriptionId property: Azure Subscription Id.
+ * Set the storeName property: [Required] Azure Data Lake store name.
*
- * @param subscriptionId the subscriptionId value to set.
+ * @param storeName the storeName value to set.
* @return the AzureDataLakeGen1Datastore object itself.
*/
- public AzureDataLakeGen1Datastore withSubscriptionId(String subscriptionId) {
- this.subscriptionId = subscriptionId;
+ public AzureDataLakeGen1Datastore withStoreName(String storeName) {
+ this.storeName = storeName;
return this;
}
@@ -147,13 +122,23 @@ public AzureDataLakeGen1Datastore withResourceGroup(String resourceGroup) {
}
/**
- * Get the isDefault property: Readonly property to indicate if datastore is the workspace default datastore.
+ * Get the subscriptionId property: Azure Subscription Id.
*
- * @return the isDefault value.
+ * @return the subscriptionId value.
*/
- @Override
- public Boolean isDefault() {
- return this.isDefault;
+ public String subscriptionId() {
+ return this.subscriptionId;
+ }
+
+ /**
+ * Set the subscriptionId property: Azure Subscription Id.
+ *
+ * @param subscriptionId the subscriptionId value to set.
+ * @return the AzureDataLakeGen1Datastore object itself.
+ */
+ public AzureDataLakeGen1Datastore withSubscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
+ return this;
}
/**
@@ -178,8 +163,8 @@ public AzureDataLakeGen1Datastore withDescription(String description) {
* {@inheritDoc}
*/
@Override
- public AzureDataLakeGen1Datastore withTags(Map tags) {
- super.withTags(tags);
+ public AzureDataLakeGen1Datastore withProperties(Map properties) {
+ super.withProperties(properties);
return this;
}
@@ -187,8 +172,8 @@ public AzureDataLakeGen1Datastore withTags(Map tags) {
* {@inheritDoc}
*/
@Override
- public AzureDataLakeGen1Datastore withProperties(Map properties) {
- super.withProperties(properties);
+ public AzureDataLakeGen1Datastore withTags(Map tags) {
+ super.withTags(tags);
return this;
}
@@ -199,12 +184,18 @@ public AzureDataLakeGen1Datastore withProperties(Map properties)
*/
@Override
public void validate() {
- super.validate();
if (storeName() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
"Missing required property storeName in model AzureDataLakeGen1Datastore"));
}
+ if (credentials() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property credentials in model AzureDataLakeGen1Datastore"));
+ } else {
+ credentials().validate();
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AzureDataLakeGen1Datastore.class);
@@ -217,14 +208,14 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeJsonField("credentials", credentials());
jsonWriter.writeStringField("description", description());
- jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeMapField("properties", properties(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeStringField("storeName", this.storeName);
jsonWriter.writeStringField("datastoreType", this.datastoreType == null ? null : this.datastoreType.toString());
jsonWriter.writeStringField("serviceDataAccessAuthIdentity",
this.serviceDataAccessAuthIdentity == null ? null : this.serviceDataAccessAuthIdentity.toString());
- jsonWriter.writeStringField("subscriptionId", this.subscriptionId);
jsonWriter.writeStringField("resourceGroup", this.resourceGroup);
+ jsonWriter.writeStringField("subscriptionId", this.subscriptionId);
return jsonWriter.writeEndObject();
}
@@ -248,14 +239,14 @@ public static AzureDataLakeGen1Datastore fromJson(JsonReader jsonReader) throws
deserializedAzureDataLakeGen1Datastore.withCredentials(DatastoreCredentials.fromJson(reader));
} else if ("description".equals(fieldName)) {
deserializedAzureDataLakeGen1Datastore.withDescription(reader.getString());
- } else if ("tags".equals(fieldName)) {
- Map tags = reader.readMap(reader1 -> reader1.getString());
- deserializedAzureDataLakeGen1Datastore.withTags(tags);
} else if ("properties".equals(fieldName)) {
Map properties = reader.readMap(reader1 -> reader1.getString());
deserializedAzureDataLakeGen1Datastore.withProperties(properties);
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedAzureDataLakeGen1Datastore.withTags(tags);
} else if ("isDefault".equals(fieldName)) {
- deserializedAzureDataLakeGen1Datastore.isDefault = reader.getNullable(JsonReader::getBoolean);
+ deserializedAzureDataLakeGen1Datastore.withIsDefault(reader.getNullable(JsonReader::getBoolean));
} else if ("storeName".equals(fieldName)) {
deserializedAzureDataLakeGen1Datastore.storeName = reader.getString();
} else if ("datastoreType".equals(fieldName)) {
@@ -263,10 +254,10 @@ public static AzureDataLakeGen1Datastore fromJson(JsonReader jsonReader) throws
} else if ("serviceDataAccessAuthIdentity".equals(fieldName)) {
deserializedAzureDataLakeGen1Datastore.serviceDataAccessAuthIdentity
= ServiceDataAccessAuthIdentity.fromString(reader.getString());
- } else if ("subscriptionId".equals(fieldName)) {
- deserializedAzureDataLakeGen1Datastore.subscriptionId = reader.getString();
} else if ("resourceGroup".equals(fieldName)) {
deserializedAzureDataLakeGen1Datastore.resourceGroup = reader.getString();
+ } else if ("subscriptionId".equals(fieldName)) {
+ deserializedAzureDataLakeGen1Datastore.subscriptionId = reader.getString();
} else {
reader.skipChildren();
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureDataLakeGen2Datastore.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureDataLakeGen2Datastore.java
index cdf22c3f8a1c..995be213e8d9 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureDataLakeGen2Datastore.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureDataLakeGen2Datastore.java
@@ -22,11 +22,6 @@ public final class AzureDataLakeGen2Datastore extends DatastoreProperties {
*/
private DatastoreType datastoreType = DatastoreType.AZURE_DATA_LAKE_GEN2;
- /*
- * [Required] The name of the Data Lake Gen2 filesystem.
- */
- private String filesystem;
-
/*
* [Required] Storage account name.
*/
@@ -37,6 +32,11 @@ public final class AzureDataLakeGen2Datastore extends DatastoreProperties {
*/
private String endpoint;
+ /*
+ * [Required] The name of the Data Lake Gen2 filesystem.
+ */
+ private String filesystem;
+
/*
* Protocol used to communicate with the storage account.
*/
@@ -47,20 +47,15 @@ public final class AzureDataLakeGen2Datastore extends DatastoreProperties {
*/
private ServiceDataAccessAuthIdentity serviceDataAccessAuthIdentity;
- /*
- * Azure Subscription Id
- */
- private String subscriptionId;
-
/*
* Azure Resource Group name
*/
private String resourceGroup;
/*
- * Readonly property to indicate if datastore is the workspace default datastore
+ * Azure Subscription Id
*/
- private Boolean isDefault;
+ private String subscriptionId;
/**
* Creates an instance of AzureDataLakeGen2Datastore class.
@@ -78,26 +73,6 @@ public DatastoreType datastoreType() {
return this.datastoreType;
}
- /**
- * Get the filesystem property: [Required] The name of the Data Lake Gen2 filesystem.
- *
- * @return the filesystem value.
- */
- public String filesystem() {
- return this.filesystem;
- }
-
- /**
- * Set the filesystem property: [Required] The name of the Data Lake Gen2 filesystem.
- *
- * @param filesystem the filesystem value to set.
- * @return the AzureDataLakeGen2Datastore object itself.
- */
- public AzureDataLakeGen2Datastore withFilesystem(String filesystem) {
- this.filesystem = filesystem;
- return this;
- }
-
/**
* Get the accountName property: [Required] Storage account name.
*
@@ -138,6 +113,26 @@ public AzureDataLakeGen2Datastore withEndpoint(String endpoint) {
return this;
}
+ /**
+ * Get the filesystem property: [Required] The name of the Data Lake Gen2 filesystem.
+ *
+ * @return the filesystem value.
+ */
+ public String filesystem() {
+ return this.filesystem;
+ }
+
+ /**
+ * Set the filesystem property: [Required] The name of the Data Lake Gen2 filesystem.
+ *
+ * @param filesystem the filesystem value to set.
+ * @return the AzureDataLakeGen2Datastore object itself.
+ */
+ public AzureDataLakeGen2Datastore withFilesystem(String filesystem) {
+ this.filesystem = filesystem;
+ return this;
+ }
+
/**
* Get the protocol property: Protocol used to communicate with the storage account.
*
@@ -181,26 +176,6 @@ public ServiceDataAccessAuthIdentity serviceDataAccessAuthIdentity() {
return this;
}
- /**
- * Get the subscriptionId property: Azure Subscription Id.
- *
- * @return the subscriptionId value.
- */
- public String subscriptionId() {
- return this.subscriptionId;
- }
-
- /**
- * Set the subscriptionId property: Azure Subscription Id.
- *
- * @param subscriptionId the subscriptionId value to set.
- * @return the AzureDataLakeGen2Datastore object itself.
- */
- public AzureDataLakeGen2Datastore withSubscriptionId(String subscriptionId) {
- this.subscriptionId = subscriptionId;
- return this;
- }
-
/**
* Get the resourceGroup property: Azure Resource Group name.
*
@@ -222,13 +197,23 @@ public AzureDataLakeGen2Datastore withResourceGroup(String resourceGroup) {
}
/**
- * Get the isDefault property: Readonly property to indicate if datastore is the workspace default datastore.
+ * Get the subscriptionId property: Azure Subscription Id.
*
- * @return the isDefault value.
+ * @return the subscriptionId value.
*/
- @Override
- public Boolean isDefault() {
- return this.isDefault;
+ public String subscriptionId() {
+ return this.subscriptionId;
+ }
+
+ /**
+ * Set the subscriptionId property: Azure Subscription Id.
+ *
+ * @param subscriptionId the subscriptionId value to set.
+ * @return the AzureDataLakeGen2Datastore object itself.
+ */
+ public AzureDataLakeGen2Datastore withSubscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
+ return this;
}
/**
@@ -253,8 +238,8 @@ public AzureDataLakeGen2Datastore withDescription(String description) {
* {@inheritDoc}
*/
@Override
- public AzureDataLakeGen2Datastore withTags(Map tags) {
- super.withTags(tags);
+ public AzureDataLakeGen2Datastore withProperties(Map properties) {
+ super.withProperties(properties);
return this;
}
@@ -262,8 +247,8 @@ public AzureDataLakeGen2Datastore withTags(Map tags) {
* {@inheritDoc}
*/
@Override
- public AzureDataLakeGen2Datastore withProperties(Map properties) {
- super.withProperties(properties);
+ public AzureDataLakeGen2Datastore withTags(Map tags) {
+ super.withTags(tags);
return this;
}
@@ -274,16 +259,22 @@ public AzureDataLakeGen2Datastore withProperties(Map properties)
*/
@Override
public void validate() {
- super.validate();
+ if (accountName() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property accountName in model AzureDataLakeGen2Datastore"));
+ }
if (filesystem() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
"Missing required property filesystem in model AzureDataLakeGen2Datastore"));
}
- if (accountName() == null) {
+ if (credentials() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
- "Missing required property accountName in model AzureDataLakeGen2Datastore"));
+ "Missing required property credentials in model AzureDataLakeGen2Datastore"));
+ } else {
+ credentials().validate();
}
}
@@ -297,17 +288,17 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeJsonField("credentials", credentials());
jsonWriter.writeStringField("description", description());
- jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeMapField("properties", properties(), (writer, element) -> writer.writeString(element));
- jsonWriter.writeStringField("filesystem", this.filesystem);
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeStringField("accountName", this.accountName);
+ jsonWriter.writeStringField("filesystem", this.filesystem);
jsonWriter.writeStringField("datastoreType", this.datastoreType == null ? null : this.datastoreType.toString());
jsonWriter.writeStringField("endpoint", this.endpoint);
jsonWriter.writeStringField("protocol", this.protocol);
jsonWriter.writeStringField("serviceDataAccessAuthIdentity",
this.serviceDataAccessAuthIdentity == null ? null : this.serviceDataAccessAuthIdentity.toString());
- jsonWriter.writeStringField("subscriptionId", this.subscriptionId);
jsonWriter.writeStringField("resourceGroup", this.resourceGroup);
+ jsonWriter.writeStringField("subscriptionId", this.subscriptionId);
return jsonWriter.writeEndObject();
}
@@ -331,18 +322,18 @@ public static AzureDataLakeGen2Datastore fromJson(JsonReader jsonReader) throws
deserializedAzureDataLakeGen2Datastore.withCredentials(DatastoreCredentials.fromJson(reader));
} else if ("description".equals(fieldName)) {
deserializedAzureDataLakeGen2Datastore.withDescription(reader.getString());
- } else if ("tags".equals(fieldName)) {
- Map tags = reader.readMap(reader1 -> reader1.getString());
- deserializedAzureDataLakeGen2Datastore.withTags(tags);
} else if ("properties".equals(fieldName)) {
Map properties = reader.readMap(reader1 -> reader1.getString());
deserializedAzureDataLakeGen2Datastore.withProperties(properties);
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedAzureDataLakeGen2Datastore.withTags(tags);
} else if ("isDefault".equals(fieldName)) {
- deserializedAzureDataLakeGen2Datastore.isDefault = reader.getNullable(JsonReader::getBoolean);
- } else if ("filesystem".equals(fieldName)) {
- deserializedAzureDataLakeGen2Datastore.filesystem = reader.getString();
+ deserializedAzureDataLakeGen2Datastore.withIsDefault(reader.getNullable(JsonReader::getBoolean));
} else if ("accountName".equals(fieldName)) {
deserializedAzureDataLakeGen2Datastore.accountName = reader.getString();
+ } else if ("filesystem".equals(fieldName)) {
+ deserializedAzureDataLakeGen2Datastore.filesystem = reader.getString();
} else if ("datastoreType".equals(fieldName)) {
deserializedAzureDataLakeGen2Datastore.datastoreType = DatastoreType.fromString(reader.getString());
} else if ("endpoint".equals(fieldName)) {
@@ -352,10 +343,10 @@ public static AzureDataLakeGen2Datastore fromJson(JsonReader jsonReader) throws
} else if ("serviceDataAccessAuthIdentity".equals(fieldName)) {
deserializedAzureDataLakeGen2Datastore.serviceDataAccessAuthIdentity
= ServiceDataAccessAuthIdentity.fromString(reader.getString());
- } else if ("subscriptionId".equals(fieldName)) {
- deserializedAzureDataLakeGen2Datastore.subscriptionId = reader.getString();
} else if ("resourceGroup".equals(fieldName)) {
deserializedAzureDataLakeGen2Datastore.resourceGroup = reader.getString();
+ } else if ("subscriptionId".equals(fieldName)) {
+ deserializedAzureDataLakeGen2Datastore.subscriptionId = reader.getString();
} else {
reader.skipChildren();
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureDatastore.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureDatastore.java
index f358e4ee4c35..88a1b30f4847 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureDatastore.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureDatastore.java
@@ -17,14 +17,14 @@
@Fluent
public class AzureDatastore implements JsonSerializable {
/*
- * Azure Subscription Id
+ * Azure Resource Group name
*/
- private String subscriptionId;
+ private String resourceGroup;
/*
- * Azure Resource Group name
+ * Azure Subscription Id
*/
- private String resourceGroup;
+ private String subscriptionId;
/**
* Creates an instance of AzureDatastore class.
@@ -33,42 +33,42 @@ public AzureDatastore() {
}
/**
- * Get the subscriptionId property: Azure Subscription Id.
+ * Get the resourceGroup property: Azure Resource Group name.
*
- * @return the subscriptionId value.
+ * @return the resourceGroup value.
*/
- public String subscriptionId() {
- return this.subscriptionId;
+ public String resourceGroup() {
+ return this.resourceGroup;
}
/**
- * Set the subscriptionId property: Azure Subscription Id.
+ * Set the resourceGroup property: Azure Resource Group name.
*
- * @param subscriptionId the subscriptionId value to set.
+ * @param resourceGroup the resourceGroup value to set.
* @return the AzureDatastore object itself.
*/
- public AzureDatastore withSubscriptionId(String subscriptionId) {
- this.subscriptionId = subscriptionId;
+ public AzureDatastore withResourceGroup(String resourceGroup) {
+ this.resourceGroup = resourceGroup;
return this;
}
/**
- * Get the resourceGroup property: Azure Resource Group name.
+ * Get the subscriptionId property: Azure Subscription Id.
*
- * @return the resourceGroup value.
+ * @return the subscriptionId value.
*/
- public String resourceGroup() {
- return this.resourceGroup;
+ public String subscriptionId() {
+ return this.subscriptionId;
}
/**
- * Set the resourceGroup property: Azure Resource Group name.
+ * Set the subscriptionId property: Azure Subscription Id.
*
- * @param resourceGroup the resourceGroup value to set.
+ * @param subscriptionId the subscriptionId value to set.
* @return the AzureDatastore object itself.
*/
- public AzureDatastore withResourceGroup(String resourceGroup) {
- this.resourceGroup = resourceGroup;
+ public AzureDatastore withSubscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
return this;
}
@@ -86,8 +86,8 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeStringField("subscriptionId", this.subscriptionId);
jsonWriter.writeStringField("resourceGroup", this.resourceGroup);
+ jsonWriter.writeStringField("subscriptionId", this.subscriptionId);
return jsonWriter.writeEndObject();
}
@@ -106,10 +106,10 @@ public static AzureDatastore fromJson(JsonReader jsonReader) throws IOException
String fieldName = reader.getFieldName();
reader.nextToken();
- if ("subscriptionId".equals(fieldName)) {
- deserializedAzureDatastore.subscriptionId = reader.getString();
- } else if ("resourceGroup".equals(fieldName)) {
+ if ("resourceGroup".equals(fieldName)) {
deserializedAzureDatastore.resourceGroup = reader.getString();
+ } else if ("subscriptionId".equals(fieldName)) {
+ deserializedAzureDatastore.subscriptionId = reader.getString();
} else {
reader.skipChildren();
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureDevOpsWebhook.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureDevOpsWebhook.java
index d9c92e528d79..ddb3aff211fe 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureDevOpsWebhook.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureDevOpsWebhook.java
@@ -52,7 +52,6 @@ public AzureDevOpsWebhook withEventType(String eventType) {
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureFileDatastore.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureFileDatastore.java
index 6896cf837ca5..a80f02edd888 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureFileDatastore.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureFileDatastore.java
@@ -28,14 +28,14 @@ public final class AzureFileDatastore extends DatastoreProperties {
private String accountName;
/*
- * [Required] The name of the Azure file share that the datastore points to.
+ * Azure cloud endpoint for the storage account.
*/
- private String fileShareName;
+ private String endpoint;
/*
- * Azure cloud endpoint for the storage account.
+ * [Required] The name of the Azure file share that the datastore points to.
*/
- private String endpoint;
+ private String fileShareName;
/*
* Protocol used to communicate with the storage account.
@@ -47,20 +47,15 @@ public final class AzureFileDatastore extends DatastoreProperties {
*/
private ServiceDataAccessAuthIdentity serviceDataAccessAuthIdentity;
- /*
- * Azure Subscription Id
- */
- private String subscriptionId;
-
/*
* Azure Resource Group name
*/
private String resourceGroup;
/*
- * Readonly property to indicate if datastore is the workspace default datastore
+ * Azure Subscription Id
*/
- private Boolean isDefault;
+ private String subscriptionId;
/**
* Creates an instance of AzureFileDatastore class.
@@ -99,42 +94,42 @@ public AzureFileDatastore withAccountName(String accountName) {
}
/**
- * Get the fileShareName property: [Required] The name of the Azure file share that the datastore points to.
+ * Get the endpoint property: Azure cloud endpoint for the storage account.
*
- * @return the fileShareName value.
+ * @return the endpoint value.
*/
- public String fileShareName() {
- return this.fileShareName;
+ public String endpoint() {
+ return this.endpoint;
}
/**
- * Set the fileShareName property: [Required] The name of the Azure file share that the datastore points to.
+ * Set the endpoint property: Azure cloud endpoint for the storage account.
*
- * @param fileShareName the fileShareName value to set.
+ * @param endpoint the endpoint value to set.
* @return the AzureFileDatastore object itself.
*/
- public AzureFileDatastore withFileShareName(String fileShareName) {
- this.fileShareName = fileShareName;
+ public AzureFileDatastore withEndpoint(String endpoint) {
+ this.endpoint = endpoint;
return this;
}
/**
- * Get the endpoint property: Azure cloud endpoint for the storage account.
+ * Get the fileShareName property: [Required] The name of the Azure file share that the datastore points to.
*
- * @return the endpoint value.
+ * @return the fileShareName value.
*/
- public String endpoint() {
- return this.endpoint;
+ public String fileShareName() {
+ return this.fileShareName;
}
/**
- * Set the endpoint property: Azure cloud endpoint for the storage account.
+ * Set the fileShareName property: [Required] The name of the Azure file share that the datastore points to.
*
- * @param endpoint the endpoint value to set.
+ * @param fileShareName the fileShareName value to set.
* @return the AzureFileDatastore object itself.
*/
- public AzureFileDatastore withEndpoint(String endpoint) {
- this.endpoint = endpoint;
+ public AzureFileDatastore withFileShareName(String fileShareName) {
+ this.fileShareName = fileShareName;
return this;
}
@@ -181,26 +176,6 @@ public ServiceDataAccessAuthIdentity serviceDataAccessAuthIdentity() {
return this;
}
- /**
- * Get the subscriptionId property: Azure Subscription Id.
- *
- * @return the subscriptionId value.
- */
- public String subscriptionId() {
- return this.subscriptionId;
- }
-
- /**
- * Set the subscriptionId property: Azure Subscription Id.
- *
- * @param subscriptionId the subscriptionId value to set.
- * @return the AzureFileDatastore object itself.
- */
- public AzureFileDatastore withSubscriptionId(String subscriptionId) {
- this.subscriptionId = subscriptionId;
- return this;
- }
-
/**
* Get the resourceGroup property: Azure Resource Group name.
*
@@ -222,13 +197,23 @@ public AzureFileDatastore withResourceGroup(String resourceGroup) {
}
/**
- * Get the isDefault property: Readonly property to indicate if datastore is the workspace default datastore.
+ * Get the subscriptionId property: Azure Subscription Id.
*
- * @return the isDefault value.
+ * @return the subscriptionId value.
*/
- @Override
- public Boolean isDefault() {
- return this.isDefault;
+ public String subscriptionId() {
+ return this.subscriptionId;
+ }
+
+ /**
+ * Set the subscriptionId property: Azure Subscription Id.
+ *
+ * @param subscriptionId the subscriptionId value to set.
+ * @return the AzureFileDatastore object itself.
+ */
+ public AzureFileDatastore withSubscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
+ return this;
}
/**
@@ -253,8 +238,8 @@ public AzureFileDatastore withDescription(String description) {
* {@inheritDoc}
*/
@Override
- public AzureFileDatastore withTags(Map tags) {
- super.withTags(tags);
+ public AzureFileDatastore withProperties(Map properties) {
+ super.withProperties(properties);
return this;
}
@@ -262,8 +247,8 @@ public AzureFileDatastore withTags(Map tags) {
* {@inheritDoc}
*/
@Override
- public AzureFileDatastore withProperties(Map properties) {
- super.withProperties(properties);
+ public AzureFileDatastore withTags(Map tags) {
+ super.withTags(tags);
return this;
}
@@ -274,7 +259,6 @@ public AzureFileDatastore withProperties(Map properties) {
*/
@Override
public void validate() {
- super.validate();
if (accountName() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException("Missing required property accountName in model AzureFileDatastore"));
@@ -284,6 +268,12 @@ public void validate() {
.log(new IllegalArgumentException(
"Missing required property fileShareName in model AzureFileDatastore"));
}
+ if (credentials() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property credentials in model AzureFileDatastore"));
+ } else {
+ credentials().validate();
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AzureFileDatastore.class);
@@ -296,8 +286,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeJsonField("credentials", credentials());
jsonWriter.writeStringField("description", description());
- jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeMapField("properties", properties(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeStringField("accountName", this.accountName);
jsonWriter.writeStringField("fileShareName", this.fileShareName);
jsonWriter.writeStringField("datastoreType", this.datastoreType == null ? null : this.datastoreType.toString());
@@ -305,8 +295,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStringField("protocol", this.protocol);
jsonWriter.writeStringField("serviceDataAccessAuthIdentity",
this.serviceDataAccessAuthIdentity == null ? null : this.serviceDataAccessAuthIdentity.toString());
- jsonWriter.writeStringField("subscriptionId", this.subscriptionId);
jsonWriter.writeStringField("resourceGroup", this.resourceGroup);
+ jsonWriter.writeStringField("subscriptionId", this.subscriptionId);
return jsonWriter.writeEndObject();
}
@@ -330,14 +320,14 @@ public static AzureFileDatastore fromJson(JsonReader jsonReader) throws IOExcept
deserializedAzureFileDatastore.withCredentials(DatastoreCredentials.fromJson(reader));
} else if ("description".equals(fieldName)) {
deserializedAzureFileDatastore.withDescription(reader.getString());
- } else if ("tags".equals(fieldName)) {
- Map tags = reader.readMap(reader1 -> reader1.getString());
- deserializedAzureFileDatastore.withTags(tags);
} else if ("properties".equals(fieldName)) {
Map properties = reader.readMap(reader1 -> reader1.getString());
deserializedAzureFileDatastore.withProperties(properties);
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedAzureFileDatastore.withTags(tags);
} else if ("isDefault".equals(fieldName)) {
- deserializedAzureFileDatastore.isDefault = reader.getNullable(JsonReader::getBoolean);
+ deserializedAzureFileDatastore.withIsDefault(reader.getNullable(JsonReader::getBoolean));
} else if ("accountName".equals(fieldName)) {
deserializedAzureFileDatastore.accountName = reader.getString();
} else if ("fileShareName".equals(fieldName)) {
@@ -351,10 +341,10 @@ public static AzureFileDatastore fromJson(JsonReader jsonReader) throws IOExcept
} else if ("serviceDataAccessAuthIdentity".equals(fieldName)) {
deserializedAzureFileDatastore.serviceDataAccessAuthIdentity
= ServiceDataAccessAuthIdentity.fromString(reader.getString());
- } else if ("subscriptionId".equals(fieldName)) {
- deserializedAzureFileDatastore.subscriptionId = reader.getString();
} else if ("resourceGroup".equals(fieldName)) {
deserializedAzureFileDatastore.resourceGroup = reader.getString();
+ } else if ("subscriptionId".equals(fieldName)) {
+ deserializedAzureFileDatastore.subscriptionId = reader.getString();
} else {
reader.skipChildren();
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BanditPolicy.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BanditPolicy.java
index a1a49af990d9..1a2a99524175 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BanditPolicy.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BanditPolicy.java
@@ -21,14 +21,14 @@ public final class BanditPolicy extends EarlyTerminationPolicy {
private EarlyTerminationPolicyType policyType = EarlyTerminationPolicyType.BANDIT;
/*
- * Ratio of the allowed distance from the best performing run.
+ * Absolute distance allowed from the best performing run.
*/
- private Float slackFactor;
+ private Float slackAmount;
/*
- * Absolute distance allowed from the best performing run.
+ * Ratio of the allowed distance from the best performing run.
*/
- private Float slackAmount;
+ private Float slackFactor;
/**
* Creates an instance of BanditPolicy class.
@@ -47,42 +47,42 @@ public EarlyTerminationPolicyType policyType() {
}
/**
- * Get the slackFactor property: Ratio of the allowed distance from the best performing run.
+ * Get the slackAmount property: Absolute distance allowed from the best performing run.
*
- * @return the slackFactor value.
+ * @return the slackAmount value.
*/
- public Float slackFactor() {
- return this.slackFactor;
+ public Float slackAmount() {
+ return this.slackAmount;
}
/**
- * Set the slackFactor property: Ratio of the allowed distance from the best performing run.
+ * Set the slackAmount property: Absolute distance allowed from the best performing run.
*
- * @param slackFactor the slackFactor value to set.
+ * @param slackAmount the slackAmount value to set.
* @return the BanditPolicy object itself.
*/
- public BanditPolicy withSlackFactor(Float slackFactor) {
- this.slackFactor = slackFactor;
+ public BanditPolicy withSlackAmount(Float slackAmount) {
+ this.slackAmount = slackAmount;
return this;
}
/**
- * Get the slackAmount property: Absolute distance allowed from the best performing run.
+ * Get the slackFactor property: Ratio of the allowed distance from the best performing run.
*
- * @return the slackAmount value.
+ * @return the slackFactor value.
*/
- public Float slackAmount() {
- return this.slackAmount;
+ public Float slackFactor() {
+ return this.slackFactor;
}
/**
- * Set the slackAmount property: Absolute distance allowed from the best performing run.
+ * Set the slackFactor property: Ratio of the allowed distance from the best performing run.
*
- * @param slackAmount the slackAmount value to set.
+ * @param slackFactor the slackFactor value to set.
* @return the BanditPolicy object itself.
*/
- public BanditPolicy withSlackAmount(Float slackAmount) {
- this.slackAmount = slackAmount;
+ public BanditPolicy withSlackFactor(Float slackFactor) {
+ this.slackFactor = slackFactor;
return this;
}
@@ -90,8 +90,8 @@ public BanditPolicy withSlackAmount(Float slackAmount) {
* {@inheritDoc}
*/
@Override
- public BanditPolicy withEvaluationInterval(Integer evaluationInterval) {
- super.withEvaluationInterval(evaluationInterval);
+ public BanditPolicy withDelayEvaluation(Integer delayEvaluation) {
+ super.withDelayEvaluation(delayEvaluation);
return this;
}
@@ -99,8 +99,8 @@ public BanditPolicy withEvaluationInterval(Integer evaluationInterval) {
* {@inheritDoc}
*/
@Override
- public BanditPolicy withDelayEvaluation(Integer delayEvaluation) {
- super.withDelayEvaluation(delayEvaluation);
+ public BanditPolicy withEvaluationInterval(Integer evaluationInterval) {
+ super.withEvaluationInterval(evaluationInterval);
return this;
}
@@ -111,7 +111,6 @@ public BanditPolicy withDelayEvaluation(Integer delayEvaluation) {
*/
@Override
public void validate() {
- super.validate();
}
/**
@@ -120,11 +119,11 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeNumberField("evaluationInterval", evaluationInterval());
jsonWriter.writeNumberField("delayEvaluation", delayEvaluation());
+ jsonWriter.writeNumberField("evaluationInterval", evaluationInterval());
jsonWriter.writeStringField("policyType", this.policyType == null ? null : this.policyType.toString());
- jsonWriter.writeNumberField("slackFactor", this.slackFactor);
jsonWriter.writeNumberField("slackAmount", this.slackAmount);
+ jsonWriter.writeNumberField("slackFactor", this.slackFactor);
return jsonWriter.writeEndObject();
}
@@ -143,16 +142,16 @@ public static BanditPolicy fromJson(JsonReader jsonReader) throws IOException {
String fieldName = reader.getFieldName();
reader.nextToken();
- if ("evaluationInterval".equals(fieldName)) {
- deserializedBanditPolicy.withEvaluationInterval(reader.getNullable(JsonReader::getInt));
- } else if ("delayEvaluation".equals(fieldName)) {
+ if ("delayEvaluation".equals(fieldName)) {
deserializedBanditPolicy.withDelayEvaluation(reader.getNullable(JsonReader::getInt));
+ } else if ("evaluationInterval".equals(fieldName)) {
+ deserializedBanditPolicy.withEvaluationInterval(reader.getNullable(JsonReader::getInt));
} else if ("policyType".equals(fieldName)) {
deserializedBanditPolicy.policyType = EarlyTerminationPolicyType.fromString(reader.getString());
- } else if ("slackFactor".equals(fieldName)) {
- deserializedBanditPolicy.slackFactor = reader.getNullable(JsonReader::getFloat);
} else if ("slackAmount".equals(fieldName)) {
deserializedBanditPolicy.slackAmount = reader.getNullable(JsonReader::getFloat);
+ } else if ("slackFactor".equals(fieldName)) {
+ deserializedBanditPolicy.slackFactor = reader.getNullable(JsonReader::getFloat);
} else {
reader.skipChildren();
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchDeployment.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchDeployment.java
index b79d166cd256..8f626dc515f4 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchDeployment.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchDeployment.java
@@ -50,11 +50,11 @@ public interface BatchDeployment {
Map tags();
/**
- * Gets the properties property: [Required] Additional attributes of the entity.
+ * Gets the identity property: Managed service identity (system assigned and/or user assigned identities).
*
- * @return the properties value.
+ * @return the identity value.
*/
- BatchDeploymentProperties properties();
+ ManagedServiceIdentity identity();
/**
* Gets the kind property: Metadata used by portal/tooling/etc to render different UX experiences for resources of
@@ -65,11 +65,11 @@ public interface BatchDeployment {
String kind();
/**
- * Gets the identity property: Managed service identity (system assigned and/or user assigned identities).
+ * Gets the properties property: [Required] Additional attributes of the entity.
*
- * @return the identity value.
+ * @return the properties value.
*/
- ManagedServiceIdentity identity();
+ BatchDeploymentProperties properties();
/**
* Gets the sku property: Sku details required for ARM contract for Autoscaling.
@@ -184,8 +184,8 @@ interface WithProperties {
* The stage of the BatchDeployment definition which contains all the minimum required properties for the
* resource to be created, but also allows for any other optional properties to be specified.
*/
- interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithKind,
- DefinitionStages.WithIdentity, DefinitionStages.WithSku {
+ interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithIdentity,
+ DefinitionStages.WithKind, DefinitionStages.WithSku {
/**
* Executes the create request.
*
@@ -216,32 +216,32 @@ interface WithTags {
}
/**
- * The stage of the BatchDeployment definition allowing to specify kind.
+ * The stage of the BatchDeployment definition allowing to specify identity.
*/
- interface WithKind {
+ interface WithIdentity {
/**
- * Specifies the kind property: Metadata used by portal/tooling/etc to render different UX experiences for
- * resources of the same type..
+ * Specifies the identity property: Managed service identity (system assigned and/or user assigned
+ * identities).
*
- * @param kind Metadata used by portal/tooling/etc to render different UX experiences for resources of the
- * same type.
+ * @param identity Managed service identity (system assigned and/or user assigned identities).
* @return the next definition stage.
*/
- WithCreate withKind(String kind);
+ WithCreate withIdentity(ManagedServiceIdentity identity);
}
/**
- * The stage of the BatchDeployment definition allowing to specify identity.
+ * The stage of the BatchDeployment definition allowing to specify kind.
*/
- interface WithIdentity {
+ interface WithKind {
/**
- * Specifies the identity property: Managed service identity (system assigned and/or user assigned
- * identities).
+ * Specifies the kind property: Metadata used by portal/tooling/etc to render different UX experiences for
+ * resources of the same type..
*
- * @param identity Managed service identity (system assigned and/or user assigned identities).
+ * @param kind Metadata used by portal/tooling/etc to render different UX experiences for resources of the
+ * same type.
* @return the next definition stage.
*/
- WithCreate withIdentity(ManagedServiceIdentity identity);
+ WithCreate withKind(String kind);
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchDeploymentProperties.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchDeploymentProperties.java
index c42c99f95b9c..37b6e2da3191 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchDeploymentProperties.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchDeploymentProperties.java
@@ -36,10 +36,14 @@ public final class BatchDeploymentProperties extends EndpointDeploymentPropertie
private Integer errorThreshold;
/*
- * Retry Settings for the batch inference operation.
- * If not provided, will default to the defaults defined in BatchRetrySettings.
+ * Logging level for batch inference operation.
*/
- private BatchRetrySettings retrySettings;
+ private BatchLoggingLevel loggingLevel;
+
+ /*
+ * Indicates maximum number of parallelism per instance.
+ */
+ private Integer maxConcurrencyPerInstance;
/*
* Size of the mini-batch passed to each batch invocation.
@@ -48,21 +52,11 @@ public final class BatchDeploymentProperties extends EndpointDeploymentPropertie
*/
private Long miniBatchSize;
- /*
- * Logging level for batch inference operation.
- */
- private BatchLoggingLevel loggingLevel;
-
/*
* Reference to the model asset for the endpoint deployment.
*/
private AssetReferenceBase model;
- /*
- * Indicates maximum number of parallelism per instance.
- */
- private Integer maxConcurrencyPerInstance;
-
/*
* Indicates how the output will be organized.
*/
@@ -73,6 +67,11 @@ public final class BatchDeploymentProperties extends EndpointDeploymentPropertie
*/
private String outputFileName;
+ /*
+ * Provisioning state for the endpoint deployment.
+ */
+ private DeploymentProvisioningState provisioningState;
+
/*
* Indicates compute configuration for the job.
* If not provided, will default to the defaults defined in ResourceConfiguration.
@@ -80,9 +79,10 @@ public final class BatchDeploymentProperties extends EndpointDeploymentPropertie
private DeploymentResourceConfiguration resources;
/*
- * Provisioning state for the endpoint deployment.
+ * Retry Settings for the batch inference operation.
+ * If not provided, will default to the defaults defined in BatchRetrySettings.
*/
- private DeploymentProvisioningState provisioningState;
+ private BatchRetrySettings retrySettings;
/**
* Creates an instance of BatchDeploymentProperties class.
@@ -159,68 +159,66 @@ public BatchDeploymentProperties withErrorThreshold(Integer errorThreshold) {
}
/**
- * Get the retrySettings property: Retry Settings for the batch inference operation.
- * If not provided, will default to the defaults defined in BatchRetrySettings.
+ * Get the loggingLevel property: Logging level for batch inference operation.
*
- * @return the retrySettings value.
+ * @return the loggingLevel value.
*/
- public BatchRetrySettings retrySettings() {
- return this.retrySettings;
+ public BatchLoggingLevel loggingLevel() {
+ return this.loggingLevel;
}
/**
- * Set the retrySettings property: Retry Settings for the batch inference operation.
- * If not provided, will default to the defaults defined in BatchRetrySettings.
+ * Set the loggingLevel property: Logging level for batch inference operation.
*
- * @param retrySettings the retrySettings value to set.
+ * @param loggingLevel the loggingLevel value to set.
* @return the BatchDeploymentProperties object itself.
*/
- public BatchDeploymentProperties withRetrySettings(BatchRetrySettings retrySettings) {
- this.retrySettings = retrySettings;
+ public BatchDeploymentProperties withLoggingLevel(BatchLoggingLevel loggingLevel) {
+ this.loggingLevel = loggingLevel;
return this;
}
/**
- * Get the miniBatchSize property: Size of the mini-batch passed to each batch invocation.
- * For FileDataset, this is the number of files per mini-batch.
- * For TabularDataset, this is the size of the records in bytes, per mini-batch.
+ * Get the maxConcurrencyPerInstance property: Indicates maximum number of parallelism per instance.
*
- * @return the miniBatchSize value.
+ * @return the maxConcurrencyPerInstance value.
*/
- public Long miniBatchSize() {
- return this.miniBatchSize;
+ public Integer maxConcurrencyPerInstance() {
+ return this.maxConcurrencyPerInstance;
}
/**
- * Set the miniBatchSize property: Size of the mini-batch passed to each batch invocation.
- * For FileDataset, this is the number of files per mini-batch.
- * For TabularDataset, this is the size of the records in bytes, per mini-batch.
+ * Set the maxConcurrencyPerInstance property: Indicates maximum number of parallelism per instance.
*
- * @param miniBatchSize the miniBatchSize value to set.
+ * @param maxConcurrencyPerInstance the maxConcurrencyPerInstance value to set.
* @return the BatchDeploymentProperties object itself.
*/
- public BatchDeploymentProperties withMiniBatchSize(Long miniBatchSize) {
- this.miniBatchSize = miniBatchSize;
+ public BatchDeploymentProperties withMaxConcurrencyPerInstance(Integer maxConcurrencyPerInstance) {
+ this.maxConcurrencyPerInstance = maxConcurrencyPerInstance;
return this;
}
/**
- * Get the loggingLevel property: Logging level for batch inference operation.
+ * Get the miniBatchSize property: Size of the mini-batch passed to each batch invocation.
+ * For FileDataset, this is the number of files per mini-batch.
+ * For TabularDataset, this is the size of the records in bytes, per mini-batch.
*
- * @return the loggingLevel value.
+ * @return the miniBatchSize value.
*/
- public BatchLoggingLevel loggingLevel() {
- return this.loggingLevel;
+ public Long miniBatchSize() {
+ return this.miniBatchSize;
}
/**
- * Set the loggingLevel property: Logging level for batch inference operation.
+ * Set the miniBatchSize property: Size of the mini-batch passed to each batch invocation.
+ * For FileDataset, this is the number of files per mini-batch.
+ * For TabularDataset, this is the size of the records in bytes, per mini-batch.
*
- * @param loggingLevel the loggingLevel value to set.
+ * @param miniBatchSize the miniBatchSize value to set.
* @return the BatchDeploymentProperties object itself.
*/
- public BatchDeploymentProperties withLoggingLevel(BatchLoggingLevel loggingLevel) {
- this.loggingLevel = loggingLevel;
+ public BatchDeploymentProperties withMiniBatchSize(Long miniBatchSize) {
+ this.miniBatchSize = miniBatchSize;
return this;
}
@@ -244,26 +242,6 @@ public BatchDeploymentProperties withModel(AssetReferenceBase model) {
return this;
}
- /**
- * Get the maxConcurrencyPerInstance property: Indicates maximum number of parallelism per instance.
- *
- * @return the maxConcurrencyPerInstance value.
- */
- public Integer maxConcurrencyPerInstance() {
- return this.maxConcurrencyPerInstance;
- }
-
- /**
- * Set the maxConcurrencyPerInstance property: Indicates maximum number of parallelism per instance.
- *
- * @param maxConcurrencyPerInstance the maxConcurrencyPerInstance value to set.
- * @return the BatchDeploymentProperties object itself.
- */
- public BatchDeploymentProperties withMaxConcurrencyPerInstance(Integer maxConcurrencyPerInstance) {
- this.maxConcurrencyPerInstance = maxConcurrencyPerInstance;
- return this;
- }
-
/**
* Get the outputAction property: Indicates how the output will be organized.
*
@@ -304,6 +282,15 @@ public BatchDeploymentProperties withOutputFileName(String outputFileName) {
return this;
}
+ /**
+ * Get the provisioningState property: Provisioning state for the endpoint deployment.
+ *
+ * @return the provisioningState value.
+ */
+ public DeploymentProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
/**
* Get the resources property: Indicates compute configuration for the job.
* If not provided, will default to the defaults defined in ResourceConfiguration.
@@ -327,20 +314,24 @@ public BatchDeploymentProperties withResources(DeploymentResourceConfiguration r
}
/**
- * Get the provisioningState property: Provisioning state for the endpoint deployment.
+ * Get the retrySettings property: Retry Settings for the batch inference operation.
+ * If not provided, will default to the defaults defined in BatchRetrySettings.
*
- * @return the provisioningState value.
+ * @return the retrySettings value.
*/
- public DeploymentProvisioningState provisioningState() {
- return this.provisioningState;
+ public BatchRetrySettings retrySettings() {
+ return this.retrySettings;
}
/**
- * {@inheritDoc}
+ * Set the retrySettings property: Retry Settings for the batch inference operation.
+ * If not provided, will default to the defaults defined in BatchRetrySettings.
+ *
+ * @param retrySettings the retrySettings value to set.
+ * @return the BatchDeploymentProperties object itself.
*/
- @Override
- public BatchDeploymentProperties withDescription(String description) {
- super.withDescription(description);
+ public BatchDeploymentProperties withRetrySettings(BatchRetrySettings retrySettings) {
+ this.retrySettings = retrySettings;
return this;
}
@@ -348,8 +339,8 @@ public BatchDeploymentProperties withDescription(String description) {
* {@inheritDoc}
*/
@Override
- public BatchDeploymentProperties withProperties(Map properties) {
- super.withProperties(properties);
+ public BatchDeploymentProperties withCodeConfiguration(CodeConfiguration codeConfiguration) {
+ super.withCodeConfiguration(codeConfiguration);
return this;
}
@@ -357,8 +348,8 @@ public BatchDeploymentProperties withProperties(Map properties)
* {@inheritDoc}
*/
@Override
- public BatchDeploymentProperties withCodeConfiguration(CodeConfiguration codeConfiguration) {
- super.withCodeConfiguration(codeConfiguration);
+ public BatchDeploymentProperties withDescription(String description) {
+ super.withDescription(description);
return this;
}
@@ -380,6 +371,15 @@ public BatchDeploymentProperties withEnvironmentVariables(Map en
return this;
}
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public BatchDeploymentProperties withProperties(Map properties) {
+ super.withProperties(properties);
+ return this;
+ }
+
/**
* Validates the instance.
*
@@ -387,19 +387,21 @@ public BatchDeploymentProperties withEnvironmentVariables(Map en
*/
@Override
public void validate() {
- super.validate();
if (deploymentConfiguration() != null) {
deploymentConfiguration().validate();
}
- if (retrySettings() != null) {
- retrySettings().validate();
- }
if (model() != null) {
model().validate();
}
if (resources() != null) {
resources().validate();
}
+ if (retrySettings() != null) {
+ retrySettings().validate();
+ }
+ if (codeConfiguration() != null) {
+ codeConfiguration().validate();
+ }
}
/**
@@ -408,23 +410,23 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeStringField("description", description());
- jsonWriter.writeMapField("properties", properties(), (writer, element) -> writer.writeString(element));
jsonWriter.writeJsonField("codeConfiguration", codeConfiguration());
+ jsonWriter.writeStringField("description", description());
jsonWriter.writeStringField("environmentId", environmentId());
jsonWriter.writeMapField("environmentVariables", environmentVariables(),
(writer, element) -> writer.writeString(element));
+ jsonWriter.writeMapField("properties", properties(), (writer, element) -> writer.writeString(element));
jsonWriter.writeStringField("compute", this.compute);
jsonWriter.writeJsonField("deploymentConfiguration", this.deploymentConfiguration);
jsonWriter.writeNumberField("errorThreshold", this.errorThreshold);
- jsonWriter.writeJsonField("retrySettings", this.retrySettings);
- jsonWriter.writeNumberField("miniBatchSize", this.miniBatchSize);
jsonWriter.writeStringField("loggingLevel", this.loggingLevel == null ? null : this.loggingLevel.toString());
- jsonWriter.writeJsonField("model", this.model);
jsonWriter.writeNumberField("maxConcurrencyPerInstance", this.maxConcurrencyPerInstance);
+ jsonWriter.writeNumberField("miniBatchSize", this.miniBatchSize);
+ jsonWriter.writeJsonField("model", this.model);
jsonWriter.writeStringField("outputAction", this.outputAction == null ? null : this.outputAction.toString());
jsonWriter.writeStringField("outputFileName", this.outputFileName);
jsonWriter.writeJsonField("resources", this.resources);
+ jsonWriter.writeJsonField("retrySettings", this.retrySettings);
return jsonWriter.writeEndObject();
}
@@ -443,18 +445,18 @@ public static BatchDeploymentProperties fromJson(JsonReader jsonReader) throws I
String fieldName = reader.getFieldName();
reader.nextToken();
- if ("description".equals(fieldName)) {
- deserializedBatchDeploymentProperties.withDescription(reader.getString());
- } else if ("properties".equals(fieldName)) {
- Map properties = reader.readMap(reader1 -> reader1.getString());
- deserializedBatchDeploymentProperties.withProperties(properties);
- } else if ("codeConfiguration".equals(fieldName)) {
+ if ("codeConfiguration".equals(fieldName)) {
deserializedBatchDeploymentProperties.withCodeConfiguration(CodeConfiguration.fromJson(reader));
+ } else if ("description".equals(fieldName)) {
+ deserializedBatchDeploymentProperties.withDescription(reader.getString());
} else if ("environmentId".equals(fieldName)) {
deserializedBatchDeploymentProperties.withEnvironmentId(reader.getString());
} else if ("environmentVariables".equals(fieldName)) {
Map environmentVariables = reader.readMap(reader1 -> reader1.getString());
deserializedBatchDeploymentProperties.withEnvironmentVariables(environmentVariables);
+ } else if ("properties".equals(fieldName)) {
+ Map properties = reader.readMap(reader1 -> reader1.getString());
+ deserializedBatchDeploymentProperties.withProperties(properties);
} else if ("compute".equals(fieldName)) {
deserializedBatchDeploymentProperties.compute = reader.getString();
} else if ("deploymentConfiguration".equals(fieldName)) {
@@ -462,28 +464,28 @@ public static BatchDeploymentProperties fromJson(JsonReader jsonReader) throws I
= BatchDeploymentConfiguration.fromJson(reader);
} else if ("errorThreshold".equals(fieldName)) {
deserializedBatchDeploymentProperties.errorThreshold = reader.getNullable(JsonReader::getInt);
- } else if ("retrySettings".equals(fieldName)) {
- deserializedBatchDeploymentProperties.retrySettings = BatchRetrySettings.fromJson(reader);
- } else if ("miniBatchSize".equals(fieldName)) {
- deserializedBatchDeploymentProperties.miniBatchSize = reader.getNullable(JsonReader::getLong);
} else if ("loggingLevel".equals(fieldName)) {
deserializedBatchDeploymentProperties.loggingLevel
= BatchLoggingLevel.fromString(reader.getString());
- } else if ("model".equals(fieldName)) {
- deserializedBatchDeploymentProperties.model = AssetReferenceBase.fromJson(reader);
} else if ("maxConcurrencyPerInstance".equals(fieldName)) {
deserializedBatchDeploymentProperties.maxConcurrencyPerInstance
= reader.getNullable(JsonReader::getInt);
+ } else if ("miniBatchSize".equals(fieldName)) {
+ deserializedBatchDeploymentProperties.miniBatchSize = reader.getNullable(JsonReader::getLong);
+ } else if ("model".equals(fieldName)) {
+ deserializedBatchDeploymentProperties.model = AssetReferenceBase.fromJson(reader);
} else if ("outputAction".equals(fieldName)) {
deserializedBatchDeploymentProperties.outputAction
= BatchOutputAction.fromString(reader.getString());
} else if ("outputFileName".equals(fieldName)) {
deserializedBatchDeploymentProperties.outputFileName = reader.getString();
- } else if ("resources".equals(fieldName)) {
- deserializedBatchDeploymentProperties.resources = DeploymentResourceConfiguration.fromJson(reader);
} else if ("provisioningState".equals(fieldName)) {
deserializedBatchDeploymentProperties.provisioningState
= DeploymentProvisioningState.fromString(reader.getString());
+ } else if ("resources".equals(fieldName)) {
+ deserializedBatchDeploymentProperties.resources = DeploymentResourceConfiguration.fromJson(reader);
+ } else if ("retrySettings".equals(fieldName)) {
+ deserializedBatchDeploymentProperties.retrySettings = BatchRetrySettings.fromJson(reader);
} else {
reader.skipChildren();
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchDeploymentTrackedResourceArmPaginatedResult.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchDeploymentTrackedResourceArmPaginatedResult.java
index e51a5f0a5748..717749f54885 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchDeploymentTrackedResourceArmPaginatedResult.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchDeploymentTrackedResourceArmPaginatedResult.java
@@ -20,14 +20,14 @@
public final class BatchDeploymentTrackedResourceArmPaginatedResult
implements JsonSerializable {
/*
- * An array of objects of type BatchDeployment.
+ * The link to the next page of BatchDeployment objects. If null, there are no additional pages.
*/
- private List value;
+ private String nextLink;
/*
- * The link to the next page of BatchDeployment objects. If null, there are no additional pages.
+ * An array of objects of type BatchDeployment.
*/
- private String nextLink;
+ private List value;
/**
* Creates an instance of BatchDeploymentTrackedResourceArmPaginatedResult class.
@@ -36,44 +36,44 @@ public BatchDeploymentTrackedResourceArmPaginatedResult() {
}
/**
- * Get the value property: An array of objects of type BatchDeployment.
+ * Get the nextLink property: The link to the next page of BatchDeployment objects. If null, there are no additional
+ * pages.
*
- * @return the value value.
+ * @return the nextLink value.
*/
- public List value() {
- return this.value;
+ public String nextLink() {
+ return this.nextLink;
}
/**
- * Set the value property: An array of objects of type BatchDeployment.
+ * Set the nextLink property: The link to the next page of BatchDeployment objects. If null, there are no additional
+ * pages.
*
- * @param value the value value to set.
+ * @param nextLink the nextLink value to set.
* @return the BatchDeploymentTrackedResourceArmPaginatedResult object itself.
*/
- public BatchDeploymentTrackedResourceArmPaginatedResult withValue(List value) {
- this.value = value;
+ public BatchDeploymentTrackedResourceArmPaginatedResult withNextLink(String nextLink) {
+ this.nextLink = nextLink;
return this;
}
/**
- * Get the nextLink property: The link to the next page of BatchDeployment objects. If null, there are no additional
- * pages.
+ * Get the value property: An array of objects of type BatchDeployment.
*
- * @return the nextLink value.
+ * @return the value value.
*/
- public String nextLink() {
- return this.nextLink;
+ public List value() {
+ return this.value;
}
/**
- * Set the nextLink property: The link to the next page of BatchDeployment objects. If null, there are no additional
- * pages.
+ * Set the value property: An array of objects of type BatchDeployment.
*
- * @param nextLink the nextLink value to set.
+ * @param value the value value to set.
* @return the BatchDeploymentTrackedResourceArmPaginatedResult object itself.
*/
- public BatchDeploymentTrackedResourceArmPaginatedResult withNextLink(String nextLink) {
- this.nextLink = nextLink;
+ public BatchDeploymentTrackedResourceArmPaginatedResult withValue(List value) {
+ this.value = value;
return this;
}
@@ -94,8 +94,8 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element));
jsonWriter.writeStringField("nextLink", this.nextLink);
+ jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element));
return jsonWriter.writeEndObject();
}
@@ -115,12 +115,12 @@ public static BatchDeploymentTrackedResourceArmPaginatedResult fromJson(JsonRead
String fieldName = reader.getFieldName();
reader.nextToken();
- if ("value".equals(fieldName)) {
+ if ("nextLink".equals(fieldName)) {
+ deserializedBatchDeploymentTrackedResourceArmPaginatedResult.nextLink = reader.getString();
+ } else if ("value".equals(fieldName)) {
List value
= reader.readArray(reader1 -> BatchDeploymentInner.fromJson(reader1));
deserializedBatchDeploymentTrackedResourceArmPaginatedResult.value = value;
- } else if ("nextLink".equals(fieldName)) {
- deserializedBatchDeploymentTrackedResourceArmPaginatedResult.nextLink = reader.getString();
} else {
reader.skipChildren();
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchEndpoint.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchEndpoint.java
index 33ce2fff6eaa..27ec5bc30610 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchEndpoint.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchEndpoint.java
@@ -51,11 +51,11 @@ public interface BatchEndpoint {
Map tags();
/**
- * Gets the properties property: [Required] Additional attributes of the entity.
+ * Gets the identity property: Managed service identity (system assigned and/or user assigned identities).
*
- * @return the properties value.
+ * @return the identity value.
*/
- BatchEndpointProperties properties();
+ ManagedServiceIdentity identity();
/**
* Gets the kind property: Metadata used by portal/tooling/etc to render different UX experiences for resources of
@@ -66,11 +66,11 @@ public interface BatchEndpoint {
String kind();
/**
- * Gets the identity property: Managed service identity (system assigned and/or user assigned identities).
+ * Gets the properties property: [Required] Additional attributes of the entity.
*
- * @return the identity value.
+ * @return the properties value.
*/
- ManagedServiceIdentity identity();
+ BatchEndpointProperties properties();
/**
* Gets the sku property: Sku details required for ARM contract for Autoscaling.
@@ -183,8 +183,8 @@ interface WithProperties {
* The stage of the BatchEndpoint definition which contains all the minimum required properties for the resource
* to be created, but also allows for any other optional properties to be specified.
*/
- interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithKind,
- DefinitionStages.WithIdentity, DefinitionStages.WithSku {
+ interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithIdentity,
+ DefinitionStages.WithKind, DefinitionStages.WithSku {
/**
* Executes the create request.
*
@@ -215,32 +215,32 @@ interface WithTags {
}
/**
- * The stage of the BatchEndpoint definition allowing to specify kind.
+ * The stage of the BatchEndpoint definition allowing to specify identity.
*/
- interface WithKind {
+ interface WithIdentity {
/**
- * Specifies the kind property: Metadata used by portal/tooling/etc to render different UX experiences for
- * resources of the same type..
+ * Specifies the identity property: Managed service identity (system assigned and/or user assigned
+ * identities).
*
- * @param kind Metadata used by portal/tooling/etc to render different UX experiences for resources of the
- * same type.
+ * @param identity Managed service identity (system assigned and/or user assigned identities).
* @return the next definition stage.
*/
- WithCreate withKind(String kind);
+ WithCreate withIdentity(ManagedServiceIdentity identity);
}
/**
- * The stage of the BatchEndpoint definition allowing to specify identity.
+ * The stage of the BatchEndpoint definition allowing to specify kind.
*/
- interface WithIdentity {
+ interface WithKind {
/**
- * Specifies the identity property: Managed service identity (system assigned and/or user assigned
- * identities).
+ * Specifies the kind property: Metadata used by portal/tooling/etc to render different UX experiences for
+ * resources of the same type..
*
- * @param identity Managed service identity (system assigned and/or user assigned identities).
+ * @param kind Metadata used by portal/tooling/etc to render different UX experiences for resources of the
+ * same type.
* @return the next definition stage.
*/
- WithCreate withIdentity(ManagedServiceIdentity identity);
+ WithCreate withKind(String kind);
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchEndpointProperties.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchEndpointProperties.java
index db17ddd4397b..f2e4611869a7 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchEndpointProperties.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchEndpointProperties.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.machinelearning.models;
import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
@@ -29,14 +30,14 @@ public final class BatchEndpointProperties extends EndpointPropertiesBaseInner {
private EndpointProvisioningState provisioningState;
/*
- * Endpoint URI.
+ * Endpoint Swagger URI.
*/
- private String scoringUri;
+ private String swaggerUri;
/*
- * Endpoint Swagger URI.
+ * Endpoint URI.
*/
- private String swaggerUri;
+ private String scoringUri;
/**
* Creates an instance of BatchEndpointProperties class.
@@ -74,31 +75,31 @@ public EndpointProvisioningState provisioningState() {
}
/**
- * Get the scoringUri property: Endpoint URI.
+ * Get the swaggerUri property: Endpoint Swagger URI.
*
- * @return the scoringUri value.
+ * @return the swaggerUri value.
*/
@Override
- public String scoringUri() {
- return this.scoringUri;
+ public String swaggerUri() {
+ return this.swaggerUri;
}
/**
- * Get the swaggerUri property: Endpoint Swagger URI.
+ * Get the scoringUri property: Endpoint URI.
*
- * @return the swaggerUri value.
+ * @return the scoringUri value.
*/
@Override
- public String swaggerUri() {
- return this.swaggerUri;
+ public String scoringUri() {
+ return this.scoringUri;
}
/**
* {@inheritDoc}
*/
@Override
- public BatchEndpointProperties withDescription(String description) {
- super.withDescription(description);
+ public BatchEndpointProperties withAuthMode(EndpointAuthMode authMode) {
+ super.withAuthMode(authMode);
return this;
}
@@ -106,8 +107,8 @@ public BatchEndpointProperties withDescription(String description) {
* {@inheritDoc}
*/
@Override
- public BatchEndpointProperties withProperties(Map properties) {
- super.withProperties(properties);
+ public BatchEndpointProperties withDescription(String description) {
+ super.withDescription(description);
return this;
}
@@ -115,8 +116,8 @@ public BatchEndpointProperties withProperties(Map properties) {
* {@inheritDoc}
*/
@Override
- public BatchEndpointProperties withAuthMode(EndpointAuthMode authMode) {
- super.withAuthMode(authMode);
+ public BatchEndpointProperties withKeys(EndpointAuthKeysInner keys) {
+ super.withKeys(keys);
return this;
}
@@ -124,8 +125,8 @@ public BatchEndpointProperties withAuthMode(EndpointAuthMode authMode) {
* {@inheritDoc}
*/
@Override
- public BatchEndpointProperties withKeys(EndpointAuthKeysInner keys) {
- super.withKeys(keys);
+ public BatchEndpointProperties withProperties(Map properties) {
+ super.withProperties(properties);
return this;
}
@@ -136,12 +137,21 @@ public BatchEndpointProperties withKeys(EndpointAuthKeysInner keys) {
*/
@Override
public void validate() {
- super.validate();
if (defaults() != null) {
defaults().validate();
}
+ if (authMode() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property authMode in model BatchEndpointProperties"));
+ }
+ if (keys() != null) {
+ keys().validate();
+ }
}
+ private static final ClientLogger LOGGER = new ClientLogger(BatchEndpointProperties.class);
+
/**
* {@inheritDoc}
*/
@@ -150,8 +160,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeStringField("authMode", authMode() == null ? null : authMode().toString());
jsonWriter.writeStringField("description", description());
- jsonWriter.writeMapField("properties", properties(), (writer, element) -> writer.writeString(element));
jsonWriter.writeJsonField("keys", keys());
+ jsonWriter.writeMapField("properties", properties(), (writer, element) -> writer.writeString(element));
jsonWriter.writeJsonField("defaults", this.defaults);
return jsonWriter.writeEndObject();
}
@@ -176,6 +186,8 @@ public static BatchEndpointProperties fromJson(JsonReader jsonReader) throws IOE
deserializedBatchEndpointProperties.withAuthMode(EndpointAuthMode.fromString(reader.getString()));
} else if ("description".equals(fieldName)) {
deserializedBatchEndpointProperties.withDescription(reader.getString());
+ } else if ("keys".equals(fieldName)) {
+ deserializedBatchEndpointProperties.withKeys(EndpointAuthKeysInner.fromJson(reader));
} else if ("properties".equals(fieldName)) {
Map properties = reader.readMap(reader1 -> reader1.getString());
deserializedBatchEndpointProperties.withProperties(properties);
@@ -183,8 +195,6 @@ public static BatchEndpointProperties fromJson(JsonReader jsonReader) throws IOE
deserializedBatchEndpointProperties.scoringUri = reader.getString();
} else if ("swaggerUri".equals(fieldName)) {
deserializedBatchEndpointProperties.swaggerUri = reader.getString();
- } else if ("keys".equals(fieldName)) {
- deserializedBatchEndpointProperties.withKeys(EndpointAuthKeysInner.fromJson(reader));
} else if ("defaults".equals(fieldName)) {
deserializedBatchEndpointProperties.defaults = BatchEndpointDefaults.fromJson(reader);
} else if ("provisioningState".equals(fieldName)) {
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchEndpointTrackedResourceArmPaginatedResult.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchEndpointTrackedResourceArmPaginatedResult.java
index 14d9c1bc8b60..14ad65c6b321 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchEndpointTrackedResourceArmPaginatedResult.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchEndpointTrackedResourceArmPaginatedResult.java
@@ -20,14 +20,14 @@
public final class BatchEndpointTrackedResourceArmPaginatedResult
implements JsonSerializable {
/*
- * An array of objects of type BatchEndpoint.
+ * The link to the next page of BatchEndpoint objects. If null, there are no additional pages.
*/
- private List value;
+ private String nextLink;
/*
- * The link to the next page of BatchEndpoint objects. If null, there are no additional pages.
+ * An array of objects of type BatchEndpoint.
*/
- private String nextLink;
+ private List value;
/**
* Creates an instance of BatchEndpointTrackedResourceArmPaginatedResult class.
@@ -36,44 +36,44 @@ public BatchEndpointTrackedResourceArmPaginatedResult() {
}
/**
- * Get the value property: An array of objects of type BatchEndpoint.
+ * Get the nextLink property: The link to the next page of BatchEndpoint objects. If null, there are no additional
+ * pages.
*
- * @return the value value.
+ * @return the nextLink value.
*/
- public List value() {
- return this.value;
+ public String nextLink() {
+ return this.nextLink;
}
/**
- * Set the value property: An array of objects of type BatchEndpoint.
+ * Set the nextLink property: The link to the next page of BatchEndpoint objects. If null, there are no additional
+ * pages.
*
- * @param value the value value to set.
+ * @param nextLink the nextLink value to set.
* @return the BatchEndpointTrackedResourceArmPaginatedResult object itself.
*/
- public BatchEndpointTrackedResourceArmPaginatedResult withValue(List value) {
- this.value = value;
+ public BatchEndpointTrackedResourceArmPaginatedResult withNextLink(String nextLink) {
+ this.nextLink = nextLink;
return this;
}
/**
- * Get the nextLink property: The link to the next page of BatchEndpoint objects. If null, there are no additional
- * pages.
+ * Get the value property: An array of objects of type BatchEndpoint.
*
- * @return the nextLink value.
+ * @return the value value.
*/
- public String nextLink() {
- return this.nextLink;
+ public List value() {
+ return this.value;
}
/**
- * Set the nextLink property: The link to the next page of BatchEndpoint objects. If null, there are no additional
- * pages.
+ * Set the value property: An array of objects of type BatchEndpoint.
*
- * @param nextLink the nextLink value to set.
+ * @param value the value value to set.
* @return the BatchEndpointTrackedResourceArmPaginatedResult object itself.
*/
- public BatchEndpointTrackedResourceArmPaginatedResult withNextLink(String nextLink) {
- this.nextLink = nextLink;
+ public BatchEndpointTrackedResourceArmPaginatedResult withValue(List value) {
+ this.value = value;
return this;
}
@@ -94,8 +94,8 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element));
jsonWriter.writeStringField("nextLink", this.nextLink);
+ jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element));
return jsonWriter.writeEndObject();
}
@@ -115,11 +115,11 @@ public static BatchEndpointTrackedResourceArmPaginatedResult fromJson(JsonReader
String fieldName = reader.getFieldName();
reader.nextToken();
- if ("value".equals(fieldName)) {
+ if ("nextLink".equals(fieldName)) {
+ deserializedBatchEndpointTrackedResourceArmPaginatedResult.nextLink = reader.getString();
+ } else if ("value".equals(fieldName)) {
List value = reader.readArray(reader1 -> BatchEndpointInner.fromJson(reader1));
deserializedBatchEndpointTrackedResourceArmPaginatedResult.value = value;
- } else if ("nextLink".equals(fieldName)) {
- deserializedBatchEndpointTrackedResourceArmPaginatedResult.nextLink = reader.getString();
} else {
reader.skipChildren();
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchPipelineComponentDeploymentConfiguration.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchPipelineComponentDeploymentConfiguration.java
index 0f9049644ad9..9976f187fd4b 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchPipelineComponentDeploymentConfiguration.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchPipelineComponentDeploymentConfiguration.java
@@ -145,7 +145,6 @@ public BatchPipelineComponentDeploymentConfiguration withTags(Map UUID.fromString(nonNullReader.getString()));
- } else if ("clientId".equals(fieldName)) {
+ if ("clientId".equals(fieldName)) {
deserializedCertificateDatastoreCredentials.clientId
= reader.getNullable(nonNullReader -> UUID.fromString(nonNullReader.getString()));
- } else if ("thumbprint".equals(fieldName)) {
- deserializedCertificateDatastoreCredentials.thumbprint = reader.getString();
} else if ("secrets".equals(fieldName)) {
deserializedCertificateDatastoreCredentials.secrets = CertificateDatastoreSecrets.fromJson(reader);
+ } else if ("tenantId".equals(fieldName)) {
+ deserializedCertificateDatastoreCredentials.tenantId
+ = reader.getNullable(nonNullReader -> UUID.fromString(nonNullReader.getString()));
+ } else if ("thumbprint".equals(fieldName)) {
+ deserializedCertificateDatastoreCredentials.thumbprint = reader.getString();
} else if ("credentialsType".equals(fieldName)) {
deserializedCertificateDatastoreCredentials.credentialsType
= CredentialsType.fromString(reader.getString());
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/CertificateDatastoreSecrets.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/CertificateDatastoreSecrets.java
index 5f47f4efcf8e..42d3866dad53 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/CertificateDatastoreSecrets.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/CertificateDatastoreSecrets.java
@@ -69,7 +69,6 @@ public CertificateDatastoreSecrets withCertificate(String certificate) {
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/Classification.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/Classification.java
index 9584d5fac312..88ebbf1b6b4a 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/Classification.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/Classification.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.machinelearning.models;
import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
@@ -21,6 +22,11 @@ public final class Classification extends AutoMLVertical {
*/
private TaskType taskType = TaskType.CLASSIFICATION;
+ /*
+ * Positive label for binary metrics calculation.
+ */
+ private String positiveLabel;
+
/*
* Primary metric for the task.
*/
@@ -32,9 +38,14 @@ public final class Classification extends AutoMLVertical {
private ClassificationTrainingSettings trainingSettings;
/*
- * Positive label for binary metrics calculation.
+ * Columns to use for CVSplit data.
*/
- private String positiveLabel;
+ private List cvSplitColumnNames;
+
+ /*
+ * Featurization inputs needed for AutoML job.
+ */
+ private TableVerticalFeaturizationSettings featurizationSettings;
/*
* Execution constraints for AutoMLJob.
@@ -48,26 +59,22 @@ public final class Classification extends AutoMLVertical {
private NCrossValidations nCrossValidations;
/*
- * Columns to use for CVSplit data.
+ * Test data input.
*/
- private List cvSplitColumnNames;
+ private MLTableJobInput testData;
/*
- * The name of the sample weight column. Automated ML supports a weighted column as an input, causing rows in the
- * data to be weighted up or down.
+ * The fraction of test dataset that needs to be set aside for validation purpose.
+ * Values between (0.0 , 1.0)
+ * Applied when validation dataset is not provided.
*/
- private String weightColumnName;
+ private Double testDataSize;
/*
* Validation data inputs.
*/
private MLTableJobInput validationData;
- /*
- * Test data input.
- */
- private MLTableJobInput testData;
-
/*
* The fraction of training dataset that needs to be set aside for validation purpose.
* Values between (0.0 , 1.0)
@@ -76,16 +83,10 @@ public final class Classification extends AutoMLVertical {
private Double validationDataSize;
/*
- * The fraction of test dataset that needs to be set aside for validation purpose.
- * Values between (0.0 , 1.0)
- * Applied when validation dataset is not provided.
- */
- private Double testDataSize;
-
- /*
- * Featurization inputs needed for AutoML job.
+ * The name of the sample weight column. Automated ML supports a weighted column as an input, causing rows in the
+ * data to be weighted up or down.
*/
- private TableVerticalFeaturizationSettings featurizationSettings;
+ private String weightColumnName;
/**
* Creates an instance of Classification class.
@@ -103,6 +104,26 @@ public TaskType taskType() {
return this.taskType;
}
+ /**
+ * Get the positiveLabel property: Positive label for binary metrics calculation.
+ *
+ * @return the positiveLabel value.
+ */
+ public String positiveLabel() {
+ return this.positiveLabel;
+ }
+
+ /**
+ * Set the positiveLabel property: Positive label for binary metrics calculation.
+ *
+ * @param positiveLabel the positiveLabel value to set.
+ * @return the Classification object itself.
+ */
+ public Classification withPositiveLabel(String positiveLabel) {
+ this.positiveLabel = positiveLabel;
+ return this;
+ }
+
/**
* Get the primaryMetric property: Primary metric for the task.
*
@@ -144,22 +165,42 @@ public Classification withTrainingSettings(ClassificationTrainingSettings traini
}
/**
- * Get the positiveLabel property: Positive label for binary metrics calculation.
+ * Get the cvSplitColumnNames property: Columns to use for CVSplit data.
*
- * @return the positiveLabel value.
+ * @return the cvSplitColumnNames value.
*/
- public String positiveLabel() {
- return this.positiveLabel;
+ public List cvSplitColumnNames() {
+ return this.cvSplitColumnNames;
}
/**
- * Set the positiveLabel property: Positive label for binary metrics calculation.
+ * Set the cvSplitColumnNames property: Columns to use for CVSplit data.
*
- * @param positiveLabel the positiveLabel value to set.
+ * @param cvSplitColumnNames the cvSplitColumnNames value to set.
* @return the Classification object itself.
*/
- public Classification withPositiveLabel(String positiveLabel) {
- this.positiveLabel = positiveLabel;
+ public Classification withCvSplitColumnNames(List cvSplitColumnNames) {
+ this.cvSplitColumnNames = cvSplitColumnNames;
+ return this;
+ }
+
+ /**
+ * Get the featurizationSettings property: Featurization inputs needed for AutoML job.
+ *
+ * @return the featurizationSettings value.
+ */
+ public TableVerticalFeaturizationSettings featurizationSettings() {
+ return this.featurizationSettings;
+ }
+
+ /**
+ * Set the featurizationSettings property: Featurization inputs needed for AutoML job.
+ *
+ * @param featurizationSettings the featurizationSettings value to set.
+ * @return the Classification object itself.
+ */
+ public Classification withFeaturizationSettings(TableVerticalFeaturizationSettings featurizationSettings) {
+ this.featurizationSettings = featurizationSettings;
return this;
}
@@ -206,44 +247,46 @@ public Classification withNCrossValidations(NCrossValidations nCrossValidations)
}
/**
- * Get the cvSplitColumnNames property: Columns to use for CVSplit data.
+ * Get the testData property: Test data input.
*
- * @return the cvSplitColumnNames value.
+ * @return the testData value.
*/
- public List cvSplitColumnNames() {
- return this.cvSplitColumnNames;
+ public MLTableJobInput testData() {
+ return this.testData;
}
/**
- * Set the cvSplitColumnNames property: Columns to use for CVSplit data.
+ * Set the testData property: Test data input.
*
- * @param cvSplitColumnNames the cvSplitColumnNames value to set.
+ * @param testData the testData value to set.
* @return the Classification object itself.
*/
- public Classification withCvSplitColumnNames(List cvSplitColumnNames) {
- this.cvSplitColumnNames = cvSplitColumnNames;
+ public Classification withTestData(MLTableJobInput testData) {
+ this.testData = testData;
return this;
}
/**
- * Get the weightColumnName property: The name of the sample weight column. Automated ML supports a weighted column
- * as an input, causing rows in the data to be weighted up or down.
+ * Get the testDataSize property: The fraction of test dataset that needs to be set aside for validation purpose.
+ * Values between (0.0 , 1.0)
+ * Applied when validation dataset is not provided.
*
- * @return the weightColumnName value.
+ * @return the testDataSize value.
*/
- public String weightColumnName() {
- return this.weightColumnName;
+ public Double testDataSize() {
+ return this.testDataSize;
}
/**
- * Set the weightColumnName property: The name of the sample weight column. Automated ML supports a weighted column
- * as an input, causing rows in the data to be weighted up or down.
+ * Set the testDataSize property: The fraction of test dataset that needs to be set aside for validation purpose.
+ * Values between (0.0 , 1.0)
+ * Applied when validation dataset is not provided.
*
- * @param weightColumnName the weightColumnName value to set.
+ * @param testDataSize the testDataSize value to set.
* @return the Classification object itself.
*/
- public Classification withWeightColumnName(String weightColumnName) {
- this.weightColumnName = weightColumnName;
+ public Classification withTestDataSize(Double testDataSize) {
+ this.testDataSize = testDataSize;
return this;
}
@@ -267,26 +310,6 @@ public Classification withValidationData(MLTableJobInput validationData) {
return this;
}
- /**
- * Get the testData property: Test data input.
- *
- * @return the testData value.
- */
- public MLTableJobInput testData() {
- return this.testData;
- }
-
- /**
- * Set the testData property: Test data input.
- *
- * @param testData the testData value to set.
- * @return the Classification object itself.
- */
- public Classification withTestData(MLTableJobInput testData) {
- this.testData = testData;
- return this;
- }
-
/**
* Get the validationDataSize property: The fraction of training dataset that needs to be set aside for validation
* purpose.
@@ -314,46 +337,24 @@ public Classification withValidationDataSize(Double validationDataSize) {
}
/**
- * Get the testDataSize property: The fraction of test dataset that needs to be set aside for validation purpose.
- * Values between (0.0 , 1.0)
- * Applied when validation dataset is not provided.
- *
- * @return the testDataSize value.
- */
- public Double testDataSize() {
- return this.testDataSize;
- }
-
- /**
- * Set the testDataSize property: The fraction of test dataset that needs to be set aside for validation purpose.
- * Values between (0.0 , 1.0)
- * Applied when validation dataset is not provided.
- *
- * @param testDataSize the testDataSize value to set.
- * @return the Classification object itself.
- */
- public Classification withTestDataSize(Double testDataSize) {
- this.testDataSize = testDataSize;
- return this;
- }
-
- /**
- * Get the featurizationSettings property: Featurization inputs needed for AutoML job.
+ * Get the weightColumnName property: The name of the sample weight column. Automated ML supports a weighted column
+ * as an input, causing rows in the data to be weighted up or down.
*
- * @return the featurizationSettings value.
+ * @return the weightColumnName value.
*/
- public TableVerticalFeaturizationSettings featurizationSettings() {
- return this.featurizationSettings;
+ public String weightColumnName() {
+ return this.weightColumnName;
}
/**
- * Set the featurizationSettings property: Featurization inputs needed for AutoML job.
+ * Set the weightColumnName property: The name of the sample weight column. Automated ML supports a weighted column
+ * as an input, causing rows in the data to be weighted up or down.
*
- * @param featurizationSettings the featurizationSettings value to set.
+ * @param weightColumnName the weightColumnName value to set.
* @return the Classification object itself.
*/
- public Classification withFeaturizationSettings(TableVerticalFeaturizationSettings featurizationSettings) {
- this.featurizationSettings = featurizationSettings;
+ public Classification withWeightColumnName(String weightColumnName) {
+ this.weightColumnName = weightColumnName;
return this;
}
@@ -370,8 +371,8 @@ public Classification withLogVerbosity(LogVerbosity logVerbosity) {
* {@inheritDoc}
*/
@Override
- public Classification withTrainingData(MLTableJobInput trainingData) {
- super.withTrainingData(trainingData);
+ public Classification withTargetColumnName(String targetColumnName) {
+ super.withTargetColumnName(targetColumnName);
return this;
}
@@ -379,8 +380,8 @@ public Classification withTrainingData(MLTableJobInput trainingData) {
* {@inheritDoc}
*/
@Override
- public Classification withTargetColumnName(String targetColumnName) {
- super.withTargetColumnName(targetColumnName);
+ public Classification withTrainingData(MLTableJobInput trainingData) {
+ super.withTrainingData(trainingData);
return this;
}
@@ -391,27 +392,34 @@ public Classification withTargetColumnName(String targetColumnName) {
*/
@Override
public void validate() {
- super.validate();
if (trainingSettings() != null) {
trainingSettings().validate();
}
+ if (featurizationSettings() != null) {
+ featurizationSettings().validate();
+ }
if (limitSettings() != null) {
limitSettings().validate();
}
if (nCrossValidations() != null) {
nCrossValidations().validate();
}
- if (validationData() != null) {
- validationData().validate();
- }
if (testData() != null) {
testData().validate();
}
- if (featurizationSettings() != null) {
- featurizationSettings().validate();
+ if (validationData() != null) {
+ validationData().validate();
+ }
+ if (trainingData() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property trainingData in model Classification"));
+ } else {
+ trainingData().validate();
}
}
+ private static final ClientLogger LOGGER = new ClientLogger(Classification.class);
+
/**
* {@inheritDoc}
*/
@@ -422,19 +430,19 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStringField("logVerbosity", logVerbosity() == null ? null : logVerbosity().toString());
jsonWriter.writeStringField("targetColumnName", targetColumnName());
jsonWriter.writeStringField("taskType", this.taskType == null ? null : this.taskType.toString());
+ jsonWriter.writeStringField("positiveLabel", this.positiveLabel);
jsonWriter.writeStringField("primaryMetric", this.primaryMetric == null ? null : this.primaryMetric.toString());
jsonWriter.writeJsonField("trainingSettings", this.trainingSettings);
- jsonWriter.writeStringField("positiveLabel", this.positiveLabel);
- jsonWriter.writeJsonField("limitSettings", this.limitSettings);
- jsonWriter.writeJsonField("nCrossValidations", this.nCrossValidations);
jsonWriter.writeArrayField("cvSplitColumnNames", this.cvSplitColumnNames,
(writer, element) -> writer.writeString(element));
- jsonWriter.writeStringField("weightColumnName", this.weightColumnName);
- jsonWriter.writeJsonField("validationData", this.validationData);
+ jsonWriter.writeJsonField("featurizationSettings", this.featurizationSettings);
+ jsonWriter.writeJsonField("limitSettings", this.limitSettings);
+ jsonWriter.writeJsonField("nCrossValidations", this.nCrossValidations);
jsonWriter.writeJsonField("testData", this.testData);
- jsonWriter.writeNumberField("validationDataSize", this.validationDataSize);
jsonWriter.writeNumberField("testDataSize", this.testDataSize);
- jsonWriter.writeJsonField("featurizationSettings", this.featurizationSettings);
+ jsonWriter.writeJsonField("validationData", this.validationData);
+ jsonWriter.writeNumberField("validationDataSize", this.validationDataSize);
+ jsonWriter.writeStringField("weightColumnName", this.weightColumnName);
return jsonWriter.writeEndObject();
}
@@ -462,33 +470,33 @@ public static Classification fromJson(JsonReader jsonReader) throws IOException
deserializedClassification.withTargetColumnName(reader.getString());
} else if ("taskType".equals(fieldName)) {
deserializedClassification.taskType = TaskType.fromString(reader.getString());
+ } else if ("positiveLabel".equals(fieldName)) {
+ deserializedClassification.positiveLabel = reader.getString();
} else if ("primaryMetric".equals(fieldName)) {
deserializedClassification.primaryMetric
= ClassificationPrimaryMetrics.fromString(reader.getString());
} else if ("trainingSettings".equals(fieldName)) {
deserializedClassification.trainingSettings = ClassificationTrainingSettings.fromJson(reader);
- } else if ("positiveLabel".equals(fieldName)) {
- deserializedClassification.positiveLabel = reader.getString();
+ } else if ("cvSplitColumnNames".equals(fieldName)) {
+ List cvSplitColumnNames = reader.readArray(reader1 -> reader1.getString());
+ deserializedClassification.cvSplitColumnNames = cvSplitColumnNames;
+ } else if ("featurizationSettings".equals(fieldName)) {
+ deserializedClassification.featurizationSettings
+ = TableVerticalFeaturizationSettings.fromJson(reader);
} else if ("limitSettings".equals(fieldName)) {
deserializedClassification.limitSettings = TableVerticalLimitSettings.fromJson(reader);
} else if ("nCrossValidations".equals(fieldName)) {
deserializedClassification.nCrossValidations = NCrossValidations.fromJson(reader);
- } else if ("cvSplitColumnNames".equals(fieldName)) {
- List cvSplitColumnNames = reader.readArray(reader1 -> reader1.getString());
- deserializedClassification.cvSplitColumnNames = cvSplitColumnNames;
- } else if ("weightColumnName".equals(fieldName)) {
- deserializedClassification.weightColumnName = reader.getString();
- } else if ("validationData".equals(fieldName)) {
- deserializedClassification.validationData = MLTableJobInput.fromJson(reader);
} else if ("testData".equals(fieldName)) {
deserializedClassification.testData = MLTableJobInput.fromJson(reader);
- } else if ("validationDataSize".equals(fieldName)) {
- deserializedClassification.validationDataSize = reader.getNullable(JsonReader::getDouble);
} else if ("testDataSize".equals(fieldName)) {
deserializedClassification.testDataSize = reader.getNullable(JsonReader::getDouble);
- } else if ("featurizationSettings".equals(fieldName)) {
- deserializedClassification.featurizationSettings
- = TableVerticalFeaturizationSettings.fromJson(reader);
+ } else if ("validationData".equals(fieldName)) {
+ deserializedClassification.validationData = MLTableJobInput.fromJson(reader);
+ } else if ("validationDataSize".equals(fieldName)) {
+ deserializedClassification.validationDataSize = reader.getNullable(JsonReader::getDouble);
+ } else if ("weightColumnName".equals(fieldName)) {
+ deserializedClassification.weightColumnName = reader.getString();
} else {
reader.skipChildren();
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/ClassificationTrainingSettings.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/ClassificationTrainingSettings.java
index 3006428bbd8e..c63a8ee853d1 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/ClassificationTrainingSettings.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/ClassificationTrainingSettings.java
@@ -80,8 +80,8 @@ public List blockedTrainingAlgorithms() {
* {@inheritDoc}
*/
@Override
- public ClassificationTrainingSettings withEnableOnnxCompatibleModels(Boolean enableOnnxCompatibleModels) {
- super.withEnableOnnxCompatibleModels(enableOnnxCompatibleModels);
+ public ClassificationTrainingSettings withEnableDnnTraining(Boolean enableDnnTraining) {
+ super.withEnableDnnTraining(enableDnnTraining);
return this;
}
@@ -89,8 +89,8 @@ public ClassificationTrainingSettings withEnableOnnxCompatibleModels(Boolean ena
* {@inheritDoc}
*/
@Override
- public ClassificationTrainingSettings withStackEnsembleSettings(StackEnsembleSettings stackEnsembleSettings) {
- super.withStackEnsembleSettings(stackEnsembleSettings);
+ public ClassificationTrainingSettings withEnableModelExplainability(Boolean enableModelExplainability) {
+ super.withEnableModelExplainability(enableModelExplainability);
return this;
}
@@ -98,8 +98,8 @@ public ClassificationTrainingSettings withStackEnsembleSettings(StackEnsembleSet
* {@inheritDoc}
*/
@Override
- public ClassificationTrainingSettings withEnableStackEnsemble(Boolean enableStackEnsemble) {
- super.withEnableStackEnsemble(enableStackEnsemble);
+ public ClassificationTrainingSettings withEnableOnnxCompatibleModels(Boolean enableOnnxCompatibleModels) {
+ super.withEnableOnnxCompatibleModels(enableOnnxCompatibleModels);
return this;
}
@@ -107,8 +107,8 @@ public ClassificationTrainingSettings withEnableStackEnsemble(Boolean enableStac
* {@inheritDoc}
*/
@Override
- public ClassificationTrainingSettings withEnableVoteEnsemble(Boolean enableVoteEnsemble) {
- super.withEnableVoteEnsemble(enableVoteEnsemble);
+ public ClassificationTrainingSettings withEnableStackEnsemble(Boolean enableStackEnsemble) {
+ super.withEnableStackEnsemble(enableStackEnsemble);
return this;
}
@@ -116,8 +116,8 @@ public ClassificationTrainingSettings withEnableVoteEnsemble(Boolean enableVoteE
* {@inheritDoc}
*/
@Override
- public ClassificationTrainingSettings withEnsembleModelDownloadTimeout(Duration ensembleModelDownloadTimeout) {
- super.withEnsembleModelDownloadTimeout(ensembleModelDownloadTimeout);
+ public ClassificationTrainingSettings withEnableVoteEnsemble(Boolean enableVoteEnsemble) {
+ super.withEnableVoteEnsemble(enableVoteEnsemble);
return this;
}
@@ -125,8 +125,8 @@ public ClassificationTrainingSettings withEnsembleModelDownloadTimeout(Duration
* {@inheritDoc}
*/
@Override
- public ClassificationTrainingSettings withEnableModelExplainability(Boolean enableModelExplainability) {
- super.withEnableModelExplainability(enableModelExplainability);
+ public ClassificationTrainingSettings withEnsembleModelDownloadTimeout(Duration ensembleModelDownloadTimeout) {
+ super.withEnsembleModelDownloadTimeout(ensembleModelDownloadTimeout);
return this;
}
@@ -134,8 +134,8 @@ public ClassificationTrainingSettings withEnableModelExplainability(Boolean enab
* {@inheritDoc}
*/
@Override
- public ClassificationTrainingSettings withEnableDnnTraining(Boolean enableDnnTraining) {
- super.withEnableDnnTraining(enableDnnTraining);
+ public ClassificationTrainingSettings withStackEnsembleSettings(StackEnsembleSettings stackEnsembleSettings) {
+ super.withStackEnsembleSettings(stackEnsembleSettings);
return this;
}
@@ -146,7 +146,9 @@ public ClassificationTrainingSettings withEnableDnnTraining(Boolean enableDnnTra
*/
@Override
public void validate() {
- super.validate();
+ if (stackEnsembleSettings() != null) {
+ stackEnsembleSettings().validate();
+ }
}
/**
@@ -155,14 +157,14 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
+ jsonWriter.writeBooleanField("enableDnnTraining", enableDnnTraining());
+ jsonWriter.writeBooleanField("enableModelExplainability", enableModelExplainability());
jsonWriter.writeBooleanField("enableOnnxCompatibleModels", enableOnnxCompatibleModels());
- jsonWriter.writeJsonField("stackEnsembleSettings", stackEnsembleSettings());
jsonWriter.writeBooleanField("enableStackEnsemble", enableStackEnsemble());
jsonWriter.writeBooleanField("enableVoteEnsemble", enableVoteEnsemble());
jsonWriter.writeStringField("ensembleModelDownloadTimeout",
CoreUtils.durationToStringWithDays(ensembleModelDownloadTimeout()));
- jsonWriter.writeBooleanField("enableModelExplainability", enableModelExplainability());
- jsonWriter.writeBooleanField("enableDnnTraining", enableDnnTraining());
+ jsonWriter.writeJsonField("stackEnsembleSettings", stackEnsembleSettings());
jsonWriter.writeArrayField("allowedTrainingAlgorithms", this.allowedTrainingAlgorithms,
(writer, element) -> writer.writeString(element == null ? null : element.toString()));
jsonWriter.writeArrayField("blockedTrainingAlgorithms", this.blockedTrainingAlgorithms,
@@ -186,12 +188,15 @@ public static ClassificationTrainingSettings fromJson(JsonReader jsonReader) thr
String fieldName = reader.getFieldName();
reader.nextToken();
- if ("enableOnnxCompatibleModels".equals(fieldName)) {
+ if ("enableDnnTraining".equals(fieldName)) {
deserializedClassificationTrainingSettings
- .withEnableOnnxCompatibleModels(reader.getNullable(JsonReader::getBoolean));
- } else if ("stackEnsembleSettings".equals(fieldName)) {
+ .withEnableDnnTraining(reader.getNullable(JsonReader::getBoolean));
+ } else if ("enableModelExplainability".equals(fieldName)) {
deserializedClassificationTrainingSettings
- .withStackEnsembleSettings(StackEnsembleSettings.fromJson(reader));
+ .withEnableModelExplainability(reader.getNullable(JsonReader::getBoolean));
+ } else if ("enableOnnxCompatibleModels".equals(fieldName)) {
+ deserializedClassificationTrainingSettings
+ .withEnableOnnxCompatibleModels(reader.getNullable(JsonReader::getBoolean));
} else if ("enableStackEnsemble".equals(fieldName)) {
deserializedClassificationTrainingSettings
.withEnableStackEnsemble(reader.getNullable(JsonReader::getBoolean));
@@ -201,12 +206,9 @@ public static ClassificationTrainingSettings fromJson(JsonReader jsonReader) thr
} else if ("ensembleModelDownloadTimeout".equals(fieldName)) {
deserializedClassificationTrainingSettings.withEnsembleModelDownloadTimeout(
reader.getNullable(nonNullReader -> Duration.parse(nonNullReader.getString())));
- } else if ("enableModelExplainability".equals(fieldName)) {
- deserializedClassificationTrainingSettings
- .withEnableModelExplainability(reader.getNullable(JsonReader::getBoolean));
- } else if ("enableDnnTraining".equals(fieldName)) {
+ } else if ("stackEnsembleSettings".equals(fieldName)) {
deserializedClassificationTrainingSettings
- .withEnableDnnTraining(reader.getNullable(JsonReader::getBoolean));
+ .withStackEnsembleSettings(StackEnsembleSettings.fromJson(reader));
} else if ("allowedTrainingAlgorithms".equals(fieldName)) {
List allowedTrainingAlgorithms
= reader.readArray(reader1 -> ClassificationModels.fromString(reader1.getString()));
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/CodeContainerProperties.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/CodeContainerProperties.java
index 6257379a5b61..4e84fe2072f4 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/CodeContainerProperties.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/CodeContainerProperties.java
@@ -22,14 +22,14 @@ public final class CodeContainerProperties extends AssetContainer {
private AssetProvisioningState provisioningState;
/*
- * The latest version inside this container.
+ * The next auto incremental version
*/
- private String latestVersion;
+ private String nextVersion;
/*
- * The next auto incremental version
+ * The latest version inside this container.
*/
- private String nextVersion;
+ private String latestVersion;
/**
* Creates an instance of CodeContainerProperties class.
@@ -47,23 +47,23 @@ public AssetProvisioningState provisioningState() {
}
/**
- * Get the latestVersion property: The latest version inside this container.
+ * Get the nextVersion property: The next auto incremental version.
*
- * @return the latestVersion value.
+ * @return the nextVersion value.
*/
@Override
- public String latestVersion() {
- return this.latestVersion;
+ public String nextVersion() {
+ return this.nextVersion;
}
/**
- * Get the nextVersion property: The next auto incremental version.
+ * Get the latestVersion property: The latest version inside this container.
*
- * @return the nextVersion value.
+ * @return the latestVersion value.
*/
@Override
- public String nextVersion() {
- return this.nextVersion;
+ public String latestVersion() {
+ return this.latestVersion;
}
/**
@@ -88,8 +88,8 @@ public CodeContainerProperties withDescription(String description) {
* {@inheritDoc}
*/
@Override
- public CodeContainerProperties withTags(Map tags) {
- super.withTags(tags);
+ public CodeContainerProperties withProperties(Map properties) {
+ super.withProperties(properties);
return this;
}
@@ -97,8 +97,8 @@ public CodeContainerProperties withTags(Map tags) {
* {@inheritDoc}
*/
@Override
- public CodeContainerProperties withProperties(Map properties) {
- super.withProperties(properties);
+ public CodeContainerProperties withTags(Map tags) {
+ super.withTags(tags);
return this;
}
@@ -109,7 +109,6 @@ public CodeContainerProperties withProperties(Map properties) {
*/
@Override
public void validate() {
- super.validate();
}
/**
@@ -119,8 +118,8 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeStringField("description", description());
- jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeMapField("properties", properties(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeBooleanField("isArchived", isArchived());
return jsonWriter.writeEndObject();
}
@@ -142,12 +141,12 @@ public static CodeContainerProperties fromJson(JsonReader jsonReader) throws IOE
if ("description".equals(fieldName)) {
deserializedCodeContainerProperties.withDescription(reader.getString());
- } else if ("tags".equals(fieldName)) {
- Map tags = reader.readMap(reader1 -> reader1.getString());
- deserializedCodeContainerProperties.withTags(tags);
} else if ("properties".equals(fieldName)) {
Map properties = reader.readMap(reader1 -> reader1.getString());
deserializedCodeContainerProperties.withProperties(properties);
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedCodeContainerProperties.withTags(tags);
} else if ("isArchived".equals(fieldName)) {
deserializedCodeContainerProperties.withIsArchived(reader.getNullable(JsonReader::getBoolean));
} else if ("latestVersion".equals(fieldName)) {
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/CodeContainerResourceArmPaginatedResult.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/CodeContainerResourceArmPaginatedResult.java
index fa6d0216426d..6e1111d80ad5 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/CodeContainerResourceArmPaginatedResult.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/CodeContainerResourceArmPaginatedResult.java
@@ -20,14 +20,14 @@
public final class CodeContainerResourceArmPaginatedResult
implements JsonSerializable {
/*
- * An array of objects of type CodeContainer.
+ * The link to the next page of CodeContainer objects. If null, there are no additional pages.
*/
- private List value;
+ private String nextLink;
/*
- * The link to the next page of CodeContainer objects. If null, there are no additional pages.
+ * An array of objects of type CodeContainer.
*/
- private String nextLink;
+ private List value;
/**
* Creates an instance of CodeContainerResourceArmPaginatedResult class.
@@ -36,44 +36,44 @@ public CodeContainerResourceArmPaginatedResult() {
}
/**
- * Get the value property: An array of objects of type CodeContainer.
+ * Get the nextLink property: The link to the next page of CodeContainer objects. If null, there are no additional
+ * pages.
*
- * @return the value value.
+ * @return the nextLink value.
*/
- public List value() {
- return this.value;
+ public String nextLink() {
+ return this.nextLink;
}
/**
- * Set the value property: An array of objects of type CodeContainer.
+ * Set the nextLink property: The link to the next page of CodeContainer objects. If null, there are no additional
+ * pages.
*
- * @param value the value value to set.
+ * @param nextLink the nextLink value to set.
* @return the CodeContainerResourceArmPaginatedResult object itself.
*/
- public CodeContainerResourceArmPaginatedResult withValue(List value) {
- this.value = value;
+ public CodeContainerResourceArmPaginatedResult withNextLink(String nextLink) {
+ this.nextLink = nextLink;
return this;
}
/**
- * Get the nextLink property: The link to the next page of CodeContainer objects. If null, there are no additional
- * pages.
+ * Get the value property: An array of objects of type CodeContainer.
*
- * @return the nextLink value.
+ * @return the value value.
*/
- public String nextLink() {
- return this.nextLink;
+ public List value() {
+ return this.value;
}
/**
- * Set the nextLink property: The link to the next page of CodeContainer objects. If null, there are no additional
- * pages.
+ * Set the value property: An array of objects of type CodeContainer.
*
- * @param nextLink the nextLink value to set.
+ * @param value the value value to set.
* @return the CodeContainerResourceArmPaginatedResult object itself.
*/
- public CodeContainerResourceArmPaginatedResult withNextLink(String nextLink) {
- this.nextLink = nextLink;
+ public CodeContainerResourceArmPaginatedResult withValue(List value) {
+ this.value = value;
return this;
}
@@ -94,8 +94,8 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element));
jsonWriter.writeStringField("nextLink", this.nextLink);
+ jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element));
return jsonWriter.writeEndObject();
}
@@ -115,11 +115,11 @@ public static CodeContainerResourceArmPaginatedResult fromJson(JsonReader jsonRe
String fieldName = reader.getFieldName();
reader.nextToken();
- if ("value".equals(fieldName)) {
+ if ("nextLink".equals(fieldName)) {
+ deserializedCodeContainerResourceArmPaginatedResult.nextLink = reader.getString();
+ } else if ("value".equals(fieldName)) {
List value = reader.readArray(reader1 -> CodeContainerInner.fromJson(reader1));
deserializedCodeContainerResourceArmPaginatedResult.value = value;
- } else if ("nextLink".equals(fieldName)) {
- deserializedCodeContainerResourceArmPaginatedResult.nextLink = reader.getString();
} else {
reader.skipChildren();
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/CodeVersionProperties.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/CodeVersionProperties.java
index cca06a1869e4..e0f039b763ed 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/CodeVersionProperties.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/CodeVersionProperties.java
@@ -65,8 +65,8 @@ public AssetProvisioningState provisioningState() {
* {@inheritDoc}
*/
@Override
- public CodeVersionProperties withIsArchived(Boolean isArchived) {
- super.withIsArchived(isArchived);
+ public CodeVersionProperties withIsAnonymous(Boolean isAnonymous) {
+ super.withIsAnonymous(isAnonymous);
return this;
}
@@ -74,8 +74,8 @@ public CodeVersionProperties withIsArchived(Boolean isArchived) {
* {@inheritDoc}
*/
@Override
- public CodeVersionProperties withIsAnonymous(Boolean isAnonymous) {
- super.withIsAnonymous(isAnonymous);
+ public CodeVersionProperties withIsArchived(Boolean isArchived) {
+ super.withIsArchived(isArchived);
return this;
}
@@ -92,8 +92,8 @@ public CodeVersionProperties withDescription(String description) {
* {@inheritDoc}
*/
@Override
- public CodeVersionProperties withTags(Map tags) {
- super.withTags(tags);
+ public CodeVersionProperties withProperties(Map properties) {
+ super.withProperties(properties);
return this;
}
@@ -101,8 +101,8 @@ public CodeVersionProperties withTags(Map tags) {
* {@inheritDoc}
*/
@Override
- public CodeVersionProperties withProperties(Map properties) {
- super.withProperties(properties);
+ public CodeVersionProperties withTags(Map tags) {
+ super.withTags(tags);
return this;
}
@@ -113,7 +113,6 @@ public CodeVersionProperties withProperties(Map properties) {
*/
@Override
public void validate() {
- super.validate();
}
/**
@@ -123,10 +122,10 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeStringField("description", description());
- jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeMapField("properties", properties(), (writer, element) -> writer.writeString(element));
- jsonWriter.writeBooleanField("isArchived", isArchived());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeBooleanField("isAnonymous", isAnonymous());
+ jsonWriter.writeBooleanField("isArchived", isArchived());
jsonWriter.writeStringField("codeUri", this.codeUri);
return jsonWriter.writeEndObject();
}
@@ -148,16 +147,16 @@ public static CodeVersionProperties fromJson(JsonReader jsonReader) throws IOExc
if ("description".equals(fieldName)) {
deserializedCodeVersionProperties.withDescription(reader.getString());
- } else if ("tags".equals(fieldName)) {
- Map tags = reader.readMap(reader1 -> reader1.getString());
- deserializedCodeVersionProperties.withTags(tags);
} else if ("properties".equals(fieldName)) {
Map properties = reader.readMap(reader1 -> reader1.getString());
deserializedCodeVersionProperties.withProperties(properties);
- } else if ("isArchived".equals(fieldName)) {
- deserializedCodeVersionProperties.withIsArchived(reader.getNullable(JsonReader::getBoolean));
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedCodeVersionProperties.withTags(tags);
} else if ("isAnonymous".equals(fieldName)) {
deserializedCodeVersionProperties.withIsAnonymous(reader.getNullable(JsonReader::getBoolean));
+ } else if ("isArchived".equals(fieldName)) {
+ deserializedCodeVersionProperties.withIsArchived(reader.getNullable(JsonReader::getBoolean));
} else if ("codeUri".equals(fieldName)) {
deserializedCodeVersionProperties.codeUri = reader.getString();
} else if ("provisioningState".equals(fieldName)) {
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/CodeVersionResourceArmPaginatedResult.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/CodeVersionResourceArmPaginatedResult.java
index a45cfdbbf5dd..e6db3b58ba05 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/CodeVersionResourceArmPaginatedResult.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/CodeVersionResourceArmPaginatedResult.java
@@ -20,14 +20,14 @@
public final class CodeVersionResourceArmPaginatedResult
implements JsonSerializable {
/*
- * An array of objects of type CodeVersion.
+ * The link to the next page of CodeVersion objects. If null, there are no additional pages.
*/
- private List value;
+ private String nextLink;
/*
- * The link to the next page of CodeVersion objects. If null, there are no additional pages.
+ * An array of objects of type CodeVersion.
*/
- private String nextLink;
+ private List value;
/**
* Creates an instance of CodeVersionResourceArmPaginatedResult class.
@@ -36,44 +36,44 @@ public CodeVersionResourceArmPaginatedResult() {
}
/**
- * Get the value property: An array of objects of type CodeVersion.
+ * Get the nextLink property: The link to the next page of CodeVersion objects. If null, there are no additional
+ * pages.
*
- * @return the value value.
+ * @return the nextLink value.
*/
- public List value() {
- return this.value;
+ public String nextLink() {
+ return this.nextLink;
}
/**
- * Set the value property: An array of objects of type CodeVersion.
+ * Set the nextLink property: The link to the next page of CodeVersion objects. If null, there are no additional
+ * pages.
*
- * @param value the value value to set.
+ * @param nextLink the nextLink value to set.
* @return the CodeVersionResourceArmPaginatedResult object itself.
*/
- public CodeVersionResourceArmPaginatedResult withValue(List value) {
- this.value = value;
+ public CodeVersionResourceArmPaginatedResult withNextLink(String nextLink) {
+ this.nextLink = nextLink;
return this;
}
/**
- * Get the nextLink property: The link to the next page of CodeVersion objects. If null, there are no additional
- * pages.
+ * Get the value property: An array of objects of type CodeVersion.
*
- * @return the nextLink value.
+ * @return the value value.
*/
- public String nextLink() {
- return this.nextLink;
+ public List value() {
+ return this.value;
}
/**
- * Set the nextLink property: The link to the next page of CodeVersion objects. If null, there are no additional
- * pages.
+ * Set the value property: An array of objects of type CodeVersion.
*
- * @param nextLink the nextLink value to set.
+ * @param value the value value to set.
* @return the CodeVersionResourceArmPaginatedResult object itself.
*/
- public CodeVersionResourceArmPaginatedResult withNextLink(String nextLink) {
- this.nextLink = nextLink;
+ public CodeVersionResourceArmPaginatedResult withValue(List value) {
+ this.value = value;
return this;
}
@@ -94,8 +94,8 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element));
jsonWriter.writeStringField("nextLink", this.nextLink);
+ jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element));
return jsonWriter.writeEndObject();
}
@@ -115,11 +115,11 @@ public static CodeVersionResourceArmPaginatedResult fromJson(JsonReader jsonRead
String fieldName = reader.getFieldName();
reader.nextToken();
- if ("value".equals(fieldName)) {
+ if ("nextLink".equals(fieldName)) {
+ deserializedCodeVersionResourceArmPaginatedResult.nextLink = reader.getString();
+ } else if ("value".equals(fieldName)) {
List value = reader.readArray(reader1 -> CodeVersionInner.fromJson(reader1));
deserializedCodeVersionResourceArmPaginatedResult.value = value;
- } else if ("nextLink".equals(fieldName)) {
- deserializedCodeVersionResourceArmPaginatedResult.nextLink = reader.getString();
} else {
reader.skipChildren();
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/Collection.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/Collection.java
index 6dc7e1989260..88b958f2c6c5 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/Collection.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/Collection.java
@@ -17,9 +17,10 @@
@Fluent
public final class Collection implements JsonSerializable {
/*
- * The sampling rate for collection. Sampling rate 1.0 means we collect 100% of data by default.
+ * The msi client id used to collect logging to blob storage. If it's null,backend will pick a registered endpoint
+ * identity to auth.
*/
- private Double samplingRate;
+ private String clientId;
/*
* Enable or disable data collection.
@@ -33,10 +34,9 @@ public final class Collection implements JsonSerializable {
private String dataId;
/*
- * The msi client id used to collect logging to blob storage. If it's null,backend will pick a registered endpoint
- * identity to auth.
+ * The sampling rate for collection. Sampling rate 1.0 means we collect 100% of data by default.
*/
- private String clientId;
+ private Double samplingRate;
/**
* Creates an instance of Collection class.
@@ -45,24 +45,24 @@ public Collection() {
}
/**
- * Get the samplingRate property: The sampling rate for collection. Sampling rate 1.0 means we collect 100% of data
- * by default.
+ * Get the clientId property: The msi client id used to collect logging to blob storage. If it's null,backend will
+ * pick a registered endpoint identity to auth.
*
- * @return the samplingRate value.
+ * @return the clientId value.
*/
- public Double samplingRate() {
- return this.samplingRate;
+ public String clientId() {
+ return this.clientId;
}
/**
- * Set the samplingRate property: The sampling rate for collection. Sampling rate 1.0 means we collect 100% of data
- * by default.
+ * Set the clientId property: The msi client id used to collect logging to blob storage. If it's null,backend will
+ * pick a registered endpoint identity to auth.
*
- * @param samplingRate the samplingRate value to set.
+ * @param clientId the clientId value to set.
* @return the Collection object itself.
*/
- public Collection withSamplingRate(Double samplingRate) {
- this.samplingRate = samplingRate;
+ public Collection withClientId(String clientId) {
+ this.clientId = clientId;
return this;
}
@@ -109,24 +109,24 @@ public Collection withDataId(String dataId) {
}
/**
- * Get the clientId property: The msi client id used to collect logging to blob storage. If it's null,backend will
- * pick a registered endpoint identity to auth.
+ * Get the samplingRate property: The sampling rate for collection. Sampling rate 1.0 means we collect 100% of data
+ * by default.
*
- * @return the clientId value.
+ * @return the samplingRate value.
*/
- public String clientId() {
- return this.clientId;
+ public Double samplingRate() {
+ return this.samplingRate;
}
/**
- * Set the clientId property: The msi client id used to collect logging to blob storage. If it's null,backend will
- * pick a registered endpoint identity to auth.
+ * Set the samplingRate property: The sampling rate for collection. Sampling rate 1.0 means we collect 100% of data
+ * by default.
*
- * @param clientId the clientId value to set.
+ * @param samplingRate the samplingRate value to set.
* @return the Collection object itself.
*/
- public Collection withClientId(String clientId) {
- this.clientId = clientId;
+ public Collection withSamplingRate(Double samplingRate) {
+ this.samplingRate = samplingRate;
return this;
}
@@ -144,11 +144,11 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeNumberField("samplingRate", this.samplingRate);
+ jsonWriter.writeStringField("clientId", this.clientId);
jsonWriter.writeStringField("dataCollectionMode",
this.dataCollectionMode == null ? null : this.dataCollectionMode.toString());
jsonWriter.writeStringField("dataId", this.dataId);
- jsonWriter.writeStringField("clientId", this.clientId);
+ jsonWriter.writeNumberField("samplingRate", this.samplingRate);
return jsonWriter.writeEndObject();
}
@@ -167,14 +167,14 @@ public static Collection fromJson(JsonReader jsonReader) throws IOException {
String fieldName = reader.getFieldName();
reader.nextToken();
- if ("samplingRate".equals(fieldName)) {
- deserializedCollection.samplingRate = reader.getNullable(JsonReader::getDouble);
+ if ("clientId".equals(fieldName)) {
+ deserializedCollection.clientId = reader.getString();
} else if ("dataCollectionMode".equals(fieldName)) {
deserializedCollection.dataCollectionMode = DataCollectionMode.fromString(reader.getString());
} else if ("dataId".equals(fieldName)) {
deserializedCollection.dataId = reader.getString();
- } else if ("clientId".equals(fieldName)) {
- deserializedCollection.clientId = reader.getString();
+ } else if ("samplingRate".equals(fieldName)) {
+ deserializedCollection.samplingRate = reader.getNullable(JsonReader::getDouble);
} else {
reader.skipChildren();
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/CommandJob.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/CommandJob.java
index c0bd48df854b..47b661aa89bb 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/CommandJob.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/CommandJob.java
@@ -22,11 +22,6 @@ public final class CommandJob extends JobBaseProperties {
*/
private JobType jobType = JobType.COMMAND;
- /*
- * Compute Resource configuration for the job.
- */
- private JobResourceConfiguration resources;
-
/*
* ARM resource ID of the code asset.
*/
@@ -38,24 +33,24 @@ public final class CommandJob extends JobBaseProperties {
private String command;
/*
- * [Required] The ARM resource ID of the Environment specification for the job.
+ * Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, or null.
*/
- private String environmentId;
+ private DistributionConfiguration distribution;
/*
- * Mapping of input data bindings used in the job.
+ * [Required] The ARM resource ID of the Environment specification for the job.
*/
- private Map inputs;
+ private String environmentId;
/*
- * Mapping of output data bindings used in the job.
+ * Environment variables included in the job.
*/
- private Map outputs;
+ private Map environmentVariables;
/*
- * Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, or null.
+ * Mapping of input data bindings used in the job.
*/
- private DistributionConfiguration distribution;
+ private Map inputs;
/*
* Command Job limit.
@@ -63,9 +58,9 @@ public final class CommandJob extends JobBaseProperties {
private CommandJobLimits limits;
/*
- * Environment variables included in the job.
+ * Mapping of output data bindings used in the job.
*/
- private Map environmentVariables;
+ private Map outputs;
/*
* Input parameters.
@@ -78,9 +73,9 @@ public final class CommandJob extends JobBaseProperties {
private QueueSettings queueSettings;
/*
- * Status of the job.
+ * Compute Resource configuration for the job.
*/
- private JobStatus status;
+ private JobResourceConfiguration resources;
/**
* Creates an instance of CommandJob class.
@@ -98,26 +93,6 @@ public JobType jobType() {
return this.jobType;
}
- /**
- * Get the resources property: Compute Resource configuration for the job.
- *
- * @return the resources value.
- */
- public JobResourceConfiguration resources() {
- return this.resources;
- }
-
- /**
- * Set the resources property: Compute Resource configuration for the job.
- *
- * @param resources the resources value to set.
- * @return the CommandJob object itself.
- */
- public CommandJob withResources(JobResourceConfiguration resources) {
- this.resources = resources;
- return this;
- }
-
/**
* Get the codeId property: ARM resource ID of the code asset.
*
@@ -159,84 +134,84 @@ public CommandJob withCommand(String command) {
}
/**
- * Get the environmentId property: [Required] The ARM resource ID of the Environment specification for the job.
+ * Get the distribution property: Distribution configuration of the job. If set, this should be one of Mpi,
+ * Tensorflow, PyTorch, or null.
*
- * @return the environmentId value.
+ * @return the distribution value.
*/
- public String environmentId() {
- return this.environmentId;
+ public DistributionConfiguration distribution() {
+ return this.distribution;
}
/**
- * Set the environmentId property: [Required] The ARM resource ID of the Environment specification for the job.
+ * Set the distribution property: Distribution configuration of the job. If set, this should be one of Mpi,
+ * Tensorflow, PyTorch, or null.
*
- * @param environmentId the environmentId value to set.
+ * @param distribution the distribution value to set.
* @return the CommandJob object itself.
*/
- public CommandJob withEnvironmentId(String environmentId) {
- this.environmentId = environmentId;
+ public CommandJob withDistribution(DistributionConfiguration distribution) {
+ this.distribution = distribution;
return this;
}
/**
- * Get the inputs property: Mapping of input data bindings used in the job.
+ * Get the environmentId property: [Required] The ARM resource ID of the Environment specification for the job.
*
- * @return the inputs value.
+ * @return the environmentId value.
*/
- public Map inputs() {
- return this.inputs;
+ public String environmentId() {
+ return this.environmentId;
}
/**
- * Set the inputs property: Mapping of input data bindings used in the job.
+ * Set the environmentId property: [Required] The ARM resource ID of the Environment specification for the job.
*
- * @param inputs the inputs value to set.
+ * @param environmentId the environmentId value to set.
* @return the CommandJob object itself.
*/
- public CommandJob withInputs(Map inputs) {
- this.inputs = inputs;
+ public CommandJob withEnvironmentId(String environmentId) {
+ this.environmentId = environmentId;
return this;
}
/**
- * Get the outputs property: Mapping of output data bindings used in the job.
+ * Get the environmentVariables property: Environment variables included in the job.
*
- * @return the outputs value.
+ * @return the environmentVariables value.
*/
- public Map outputs() {
- return this.outputs;
+ public Map environmentVariables() {
+ return this.environmentVariables;
}
/**
- * Set the outputs property: Mapping of output data bindings used in the job.
+ * Set the environmentVariables property: Environment variables included in the job.
*
- * @param outputs the outputs value to set.
+ * @param environmentVariables the environmentVariables value to set.
* @return the CommandJob object itself.
*/
- public CommandJob withOutputs(Map outputs) {
- this.outputs = outputs;
+ public CommandJob withEnvironmentVariables(Map environmentVariables) {
+ this.environmentVariables = environmentVariables;
return this;
}
/**
- * Get the distribution property: Distribution configuration of the job. If set, this should be one of Mpi,
- * Tensorflow, PyTorch, or null.
+ * Get the inputs property: Mapping of input data bindings used in the job.
*
- * @return the distribution value.
+ * @return the inputs value.
*/
- public DistributionConfiguration distribution() {
- return this.distribution;
+ public Map inputs() {
+ return this.inputs;
}
/**
- * Set the distribution property: Distribution configuration of the job. If set, this should be one of Mpi,
- * Tensorflow, PyTorch, or null.
+ * Set the inputs property: Mapping of input data bindings used in the job.
*
- * @param distribution the distribution value to set.
+ * @param inputs the inputs value to set.
* @return the CommandJob object itself.
*/
- public CommandJob withDistribution(DistributionConfiguration distribution) {
- this.distribution = distribution;
+ public CommandJob withInputs(Map inputs) {
+ this.inputs = inputs;
return this;
}
@@ -261,22 +236,22 @@ public CommandJob withLimits(CommandJobLimits limits) {
}
/**
- * Get the environmentVariables property: Environment variables included in the job.
+ * Get the outputs property: Mapping of output data bindings used in the job.
*
- * @return the environmentVariables value.
+ * @return the outputs value.
*/
- public Map environmentVariables() {
- return this.environmentVariables;
+ public Map outputs() {
+ return this.outputs;
}
/**
- * Set the environmentVariables property: Environment variables included in the job.
+ * Set the outputs property: Mapping of output data bindings used in the job.
*
- * @param environmentVariables the environmentVariables value to set.
+ * @param outputs the outputs value to set.
* @return the CommandJob object itself.
*/
- public CommandJob withEnvironmentVariables(Map environmentVariables) {
- this.environmentVariables = environmentVariables;
+ public CommandJob withOutputs(Map outputs) {
+ this.outputs = outputs;
return this;
}
@@ -310,21 +285,22 @@ public CommandJob withQueueSettings(QueueSettings queueSettings) {
}
/**
- * Get the status property: Status of the job.
+ * Get the resources property: Compute Resource configuration for the job.
*
- * @return the status value.
+ * @return the resources value.
*/
- @Override
- public JobStatus status() {
- return this.status;
+ public JobResourceConfiguration resources() {
+ return this.resources;
}
/**
- * {@inheritDoc}
+ * Set the resources property: Compute Resource configuration for the job.
+ *
+ * @param resources the resources value to set.
+ * @return the CommandJob object itself.
*/
- @Override
- public CommandJob withDisplayName(String displayName) {
- super.withDisplayName(displayName);
+ public CommandJob withResources(JobResourceConfiguration resources) {
+ this.resources = resources;
return this;
}
@@ -332,8 +308,8 @@ public CommandJob withDisplayName(String displayName) {
* {@inheritDoc}
*/
@Override
- public CommandJob withExperimentName(String experimentName) {
- super.withExperimentName(experimentName);
+ public CommandJob withComponentId(String componentId) {
+ super.withComponentId(componentId);
return this;
}
@@ -341,8 +317,8 @@ public CommandJob withExperimentName(String experimentName) {
* {@inheritDoc}
*/
@Override
- public CommandJob withServices(Map services) {
- super.withServices(services);
+ public CommandJob withComputeId(String computeId) {
+ super.withComputeId(computeId);
return this;
}
@@ -350,8 +326,8 @@ public CommandJob withServices(Map services) {
* {@inheritDoc}
*/
@Override
- public CommandJob withComputeId(String computeId) {
- super.withComputeId(computeId);
+ public CommandJob withDisplayName(String displayName) {
+ super.withDisplayName(displayName);
return this;
}
@@ -359,8 +335,8 @@ public CommandJob withComputeId(String computeId) {
* {@inheritDoc}
*/
@Override
- public CommandJob withIsArchived(Boolean isArchived) {
- super.withIsArchived(isArchived);
+ public CommandJob withExperimentName(String experimentName) {
+ super.withExperimentName(experimentName);
return this;
}
@@ -377,8 +353,8 @@ public CommandJob withIdentity(IdentityConfiguration identity) {
* {@inheritDoc}
*/
@Override
- public CommandJob withComponentId(String componentId) {
- super.withComponentId(componentId);
+ public CommandJob withIsArchived(Boolean isArchived) {
+ super.withIsArchived(isArchived);
return this;
}
@@ -395,8 +371,8 @@ public CommandJob withNotificationSetting(NotificationSetting notificationSettin
* {@inheritDoc}
*/
@Override
- public CommandJob withDescription(String description) {
- super.withDescription(description);
+ public CommandJob withServices(Map services) {
+ super.withServices(services);
return this;
}
@@ -404,8 +380,8 @@ public CommandJob withDescription(String description) {
* {@inheritDoc}
*/
@Override
- public CommandJob withTags(Map tags) {
- super.withTags(tags);
+ public CommandJob withDescription(String description) {
+ super.withDescription(description);
return this;
}
@@ -418,6 +394,15 @@ public CommandJob withProperties(Map properties) {
return this;
}
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public CommandJob withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
/**
* Validates the instance.
*
@@ -425,14 +410,13 @@ public CommandJob withProperties(Map properties) {
*/
@Override
public void validate() {
- super.validate();
- if (resources() != null) {
- resources().validate();
- }
if (command() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException("Missing required property command in model CommandJob"));
}
+ if (distribution() != null) {
+ distribution().validate();
+ }
if (environmentId() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException("Missing required property environmentId in model CommandJob"));
@@ -444,6 +428,9 @@ public void validate() {
}
});
}
+ if (limits() != null) {
+ limits().validate();
+ }
if (outputs() != null) {
outputs().values().forEach(e -> {
if (e != null) {
@@ -451,15 +438,25 @@ public void validate() {
}
});
}
- if (distribution() != null) {
- distribution().validate();
- }
- if (limits() != null) {
- limits().validate();
- }
if (queueSettings() != null) {
queueSettings().validate();
}
+ if (resources() != null) {
+ resources().validate();
+ }
+ if (identity() != null) {
+ identity().validate();
+ }
+ if (notificationSetting() != null) {
+ notificationSetting().validate();
+ }
+ if (services() != null) {
+ services().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(CommandJob.class);
@@ -471,28 +468,28 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeStringField("description", description());
- jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeMapField("properties", properties(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeStringField("componentId", componentId());
+ jsonWriter.writeStringField("computeId", computeId());
jsonWriter.writeStringField("displayName", displayName());
jsonWriter.writeStringField("experimentName", experimentName());
- jsonWriter.writeMapField("services", services(), (writer, element) -> writer.writeJson(element));
- jsonWriter.writeStringField("computeId", computeId());
- jsonWriter.writeBooleanField("isArchived", isArchived());
jsonWriter.writeJsonField("identity", identity());
- jsonWriter.writeStringField("componentId", componentId());
+ jsonWriter.writeBooleanField("isArchived", isArchived());
jsonWriter.writeJsonField("notificationSetting", notificationSetting());
+ jsonWriter.writeMapField("services", services(), (writer, element) -> writer.writeJson(element));
jsonWriter.writeStringField("command", this.command);
jsonWriter.writeStringField("environmentId", this.environmentId);
jsonWriter.writeStringField("jobType", this.jobType == null ? null : this.jobType.toString());
- jsonWriter.writeJsonField("resources", this.resources);
jsonWriter.writeStringField("codeId", this.codeId);
- jsonWriter.writeMapField("inputs", this.inputs, (writer, element) -> writer.writeJson(element));
- jsonWriter.writeMapField("outputs", this.outputs, (writer, element) -> writer.writeJson(element));
jsonWriter.writeJsonField("distribution", this.distribution);
- jsonWriter.writeJsonField("limits", this.limits);
jsonWriter.writeMapField("environmentVariables", this.environmentVariables,
(writer, element) -> writer.writeString(element));
+ jsonWriter.writeMapField("inputs", this.inputs, (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeJsonField("limits", this.limits);
+ jsonWriter.writeMapField("outputs", this.outputs, (writer, element) -> writer.writeJson(element));
jsonWriter.writeJsonField("queueSettings", this.queueSettings);
+ jsonWriter.writeJsonField("resources", this.resources);
return jsonWriter.writeEndObject();
}
@@ -514,58 +511,58 @@ public static CommandJob fromJson(JsonReader jsonReader) throws IOException {
if ("description".equals(fieldName)) {
deserializedCommandJob.withDescription(reader.getString());
- } else if ("tags".equals(fieldName)) {
- Map tags = reader.readMap(reader1 -> reader1.getString());
- deserializedCommandJob.withTags(tags);
} else if ("properties".equals(fieldName)) {
Map properties = reader.readMap(reader1 -> reader1.getString());
deserializedCommandJob.withProperties(properties);
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedCommandJob.withTags(tags);
+ } else if ("componentId".equals(fieldName)) {
+ deserializedCommandJob.withComponentId(reader.getString());
+ } else if ("computeId".equals(fieldName)) {
+ deserializedCommandJob.withComputeId(reader.getString());
} else if ("displayName".equals(fieldName)) {
deserializedCommandJob.withDisplayName(reader.getString());
- } else if ("status".equals(fieldName)) {
- deserializedCommandJob.status = JobStatus.fromString(reader.getString());
} else if ("experimentName".equals(fieldName)) {
deserializedCommandJob.withExperimentName(reader.getString());
- } else if ("services".equals(fieldName)) {
- Map services = reader.readMap(reader1 -> JobService.fromJson(reader1));
- deserializedCommandJob.withServices(services);
- } else if ("computeId".equals(fieldName)) {
- deserializedCommandJob.withComputeId(reader.getString());
- } else if ("isArchived".equals(fieldName)) {
- deserializedCommandJob.withIsArchived(reader.getNullable(JsonReader::getBoolean));
} else if ("identity".equals(fieldName)) {
deserializedCommandJob.withIdentity(IdentityConfiguration.fromJson(reader));
- } else if ("componentId".equals(fieldName)) {
- deserializedCommandJob.withComponentId(reader.getString());
+ } else if ("isArchived".equals(fieldName)) {
+ deserializedCommandJob.withIsArchived(reader.getNullable(JsonReader::getBoolean));
} else if ("notificationSetting".equals(fieldName)) {
deserializedCommandJob.withNotificationSetting(NotificationSetting.fromJson(reader));
+ } else if ("services".equals(fieldName)) {
+ Map services = reader.readMap(reader1 -> JobService.fromJson(reader1));
+ deserializedCommandJob.withServices(services);
+ } else if ("status".equals(fieldName)) {
+ deserializedCommandJob.withStatus(JobStatus.fromString(reader.getString()));
} else if ("command".equals(fieldName)) {
deserializedCommandJob.command = reader.getString();
} else if ("environmentId".equals(fieldName)) {
deserializedCommandJob.environmentId = reader.getString();
} else if ("jobType".equals(fieldName)) {
deserializedCommandJob.jobType = JobType.fromString(reader.getString());
- } else if ("resources".equals(fieldName)) {
- deserializedCommandJob.resources = JobResourceConfiguration.fromJson(reader);
} else if ("codeId".equals(fieldName)) {
deserializedCommandJob.codeId = reader.getString();
+ } else if ("distribution".equals(fieldName)) {
+ deserializedCommandJob.distribution = DistributionConfiguration.fromJson(reader);
+ } else if ("environmentVariables".equals(fieldName)) {
+ Map environmentVariables = reader.readMap(reader1 -> reader1.getString());
+ deserializedCommandJob.environmentVariables = environmentVariables;
} else if ("inputs".equals(fieldName)) {
Map inputs = reader.readMap(reader1 -> JobInput.fromJson(reader1));
deserializedCommandJob.inputs = inputs;
+ } else if ("limits".equals(fieldName)) {
+ deserializedCommandJob.limits = CommandJobLimits.fromJson(reader);
} else if ("outputs".equals(fieldName)) {
Map outputs = reader.readMap(reader1 -> JobOutput.fromJson(reader1));
deserializedCommandJob.outputs = outputs;
- } else if ("distribution".equals(fieldName)) {
- deserializedCommandJob.distribution = DistributionConfiguration.fromJson(reader);
- } else if ("limits".equals(fieldName)) {
- deserializedCommandJob.limits = CommandJobLimits.fromJson(reader);
- } else if ("environmentVariables".equals(fieldName)) {
- Map environmentVariables = reader.readMap(reader1 -> reader1.getString());
- deserializedCommandJob.environmentVariables = environmentVariables;
} else if ("parameters".equals(fieldName)) {
deserializedCommandJob.parameters = reader.readUntyped();
} else if ("queueSettings".equals(fieldName)) {
deserializedCommandJob.queueSettings = QueueSettings.fromJson(reader);
+ } else if ("resources".equals(fieldName)) {
+ deserializedCommandJob.resources = JobResourceConfiguration.fromJson(reader);
} else {
reader.skipChildren();
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/CommandJobLimits.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/CommandJobLimits.java
index a45e5518cd9b..a0dccf222827 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/CommandJobLimits.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/CommandJobLimits.java
@@ -54,7 +54,6 @@ public CommandJobLimits withTimeout(Duration timeout) {
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/ComponentContainerProperties.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/ComponentContainerProperties.java
index 57d7926b42dd..6a37291619ce 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/ComponentContainerProperties.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/ComponentContainerProperties.java
@@ -23,14 +23,14 @@ public final class ComponentContainerProperties extends AssetContainer {
private AssetProvisioningState provisioningState;
/*
- * The latest version inside this container.
+ * The next auto incremental version
*/
- private String latestVersion;
+ private String nextVersion;
/*
- * The next auto incremental version
+ * The latest version inside this container.
*/
- private String nextVersion;
+ private String latestVersion;
/**
* Creates an instance of ComponentContainerProperties class.
@@ -48,23 +48,23 @@ public AssetProvisioningState provisioningState() {
}
/**
- * Get the latestVersion property: The latest version inside this container.
+ * Get the nextVersion property: The next auto incremental version.
*
- * @return the latestVersion value.
+ * @return the nextVersion value.
*/
@Override
- public String latestVersion() {
- return this.latestVersion;
+ public String nextVersion() {
+ return this.nextVersion;
}
/**
- * Get the nextVersion property: The next auto incremental version.
+ * Get the latestVersion property: The latest version inside this container.
*
- * @return the nextVersion value.
+ * @return the latestVersion value.
*/
@Override
- public String nextVersion() {
- return this.nextVersion;
+ public String latestVersion() {
+ return this.latestVersion;
}
/**
@@ -89,8 +89,8 @@ public ComponentContainerProperties withDescription(String description) {
* {@inheritDoc}
*/
@Override
- public ComponentContainerProperties withTags(Map tags) {
- super.withTags(tags);
+ public ComponentContainerProperties withProperties(Map properties) {
+ super.withProperties(properties);
return this;
}
@@ -98,8 +98,8 @@ public ComponentContainerProperties withTags(Map tags) {
* {@inheritDoc}
*/
@Override
- public ComponentContainerProperties withProperties(Map properties) {
- super.withProperties(properties);
+ public ComponentContainerProperties withTags(Map