diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/CHANGELOG.md b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/CHANGELOG.md
index 41c62a9ca98f..1e32eebbd5bd 100644
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/CHANGELOG.md
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/CHANGELOG.md
@@ -1,7 +1,8 @@
# Release History
-## 1.0.0-beta.2 (Unreleased)
+## 1.0.0-beta.1 (2021-07-29)
+- Azure Resource Manager MachineLearningServices client library for Java. This package contains Microsoft Azure SDK for MachineLearningServices Management SDK. These APIs allow end users to operate on Azure Machine Learning Workspace resources. Package tag package-2021-07-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## 1.0.0-beta.1 (2021-04-16)
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/README.md b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/README.md
index fd63ec9be8f7..7165ebb4ed4e 100644
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/README.md
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager MachineLearningServices client library for Java.
-This package contains Microsoft Azure SDK for MachineLearningServices Management SDK. These APIs allow end users to operate on Azure Machine Learning Workspace resources. Package tag package-2021-04-01. 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 MachineLearningServices Management SDK. These APIs allow end users to operate on Azure Machine Learning Workspace resources. Package tag package-2021-07-01. 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-machinelearningservices
- 1.0.0-beta.1
+ 1.0.0-beta.2
```
[//]: # ({x-version-update-end})
@@ -74,6 +74,8 @@ See [API design][design] for general introduction on design and key concepts on
## Examples
+
+
## Troubleshooting
## Next steps
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/pom.xml b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/pom.xml
index 79d4773af79e..54331cf410c2 100644
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/pom.xml
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/pom.xml
@@ -1,67 +1,86 @@
- 4.0.0
-
- com.azure
- azure-client-sdk-parent
- 1.7.0
- ../../parents/azure-client-sdk-parent
-
+ 4.0.0
+
+ com.azure
+ azure-client-sdk-parent
+ 1.7.0
+ ../../parents/azure-client-sdk-parent
+
- com.azure.resourcemanager
- azure-resourcemanager-machinelearningservices
- 1.0.0-beta.2
- jar
+ com.azure.resourcemanager
+ azure-resourcemanager-machinelearningservices
+ 1.0.0-beta.2
+ jar
- Microsoft Azure SDK for MachineLearningServices Management
- This package contains Microsoft Azure SDK for MachineLearningServices 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-2021-04-01.
- https://github.com/Azure/azure-sdk-for-java
+ Microsoft Azure SDK for MachineLearningServices Management
+ This package contains Microsoft Azure SDK for MachineLearningServices 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-2021-07-01.
+ https://github.com/Azure/azure-sdk-for-java
-
-
- The MIT License (MIT)
- http://opensource.org/licenses/MIT
- repo
-
-
+
+
+ The MIT License (MIT)
+ http://opensource.org/licenses/MIT
+ repo
+
+
-
- https://github.com/Azure/azure-sdk-for-java
- scm:git:git@github.com:Azure/azure-sdk-for-java.git
- scm:git:git@github.com:Azure/azure-sdk-for-java.git
- HEAD
-
-
-
- microsoft
- Microsoft
-
-
-
- UTF-8
-
-
-
-
- com.azure
- azure-core
- 1.18.0
-
-
- com.azure
- azure-core-management
- 1.3.1
-
-
-
-
-
- org.jacoco
- jacoco-maven-plugin
- 0.8.5
-
- true
-
-
-
-
+
+ https://github.com/Azure/azure-sdk-for-java
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ HEAD
+
+
+
+ microsoft
+ Microsoft
+
+
+
+ UTF-8
+
+
+
+
+ com.azure
+ azure-core
+ 1.18.0
+
+
+ com.azure
+ azure-core-management
+ 1.3.1
+
+
+
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.8.5
+
+ true
+
+
+
+ org.revapi
+ revapi-maven-plugin
+ 0.11.2
+
+
+
+ -
+
java.method.addedToInterface
+
+ -
+ true
+
.*
+ com\.azure\.resourcemanager(\.[^.]+)+\.fluent(\.[^.]+)*
+
+
+
+
+
+
+
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/MachineLearningServicesManager.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/MachineLearningServicesManager.java
index 1c9aaf51e0be..171cfb96e341 100644
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/MachineLearningServicesManager.java
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/MachineLearningServicesManager.java
@@ -9,7 +9,6 @@
import com.azure.core.http.HttpPipeline;
import com.azure.core.http.HttpPipelineBuilder;
import com.azure.core.http.policy.AddDatePolicy;
-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;
@@ -17,38 +16,33 @@
import com.azure.core.http.policy.RequestIdPolicy;
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;
import com.azure.resourcemanager.machinelearningservices.fluent.AzureMachineLearningWorkspaces;
import com.azure.resourcemanager.machinelearningservices.implementation.AzureMachineLearningWorkspacesBuilder;
-import com.azure.resourcemanager.machinelearningservices.implementation.MachineLearningComputesImpl;
-import com.azure.resourcemanager.machinelearningservices.implementation.MachineLearningServicesImpl;
-import com.azure.resourcemanager.machinelearningservices.implementation.NotebooksImpl;
+import com.azure.resourcemanager.machinelearningservices.implementation.ComputesImpl;
import com.azure.resourcemanager.machinelearningservices.implementation.OperationsImpl;
import com.azure.resourcemanager.machinelearningservices.implementation.PrivateEndpointConnectionsImpl;
import com.azure.resourcemanager.machinelearningservices.implementation.PrivateLinkResourcesImpl;
import com.azure.resourcemanager.machinelearningservices.implementation.QuotasImpl;
-import com.azure.resourcemanager.machinelearningservices.implementation.StorageAccountsImpl;
import com.azure.resourcemanager.machinelearningservices.implementation.UsagesImpl;
import com.azure.resourcemanager.machinelearningservices.implementation.VirtualMachineSizesImpl;
import com.azure.resourcemanager.machinelearningservices.implementation.WorkspaceConnectionsImpl;
import com.azure.resourcemanager.machinelearningservices.implementation.WorkspaceFeaturesImpl;
-import com.azure.resourcemanager.machinelearningservices.implementation.WorkspaceOperationsImpl;
+import com.azure.resourcemanager.machinelearningservices.implementation.WorkspaceSkusImpl;
import com.azure.resourcemanager.machinelearningservices.implementation.WorkspacesImpl;
-import com.azure.resourcemanager.machinelearningservices.models.MachineLearningComputes;
-import com.azure.resourcemanager.machinelearningservices.models.MachineLearningServices;
-import com.azure.resourcemanager.machinelearningservices.models.Notebooks;
+import com.azure.resourcemanager.machinelearningservices.models.Computes;
import com.azure.resourcemanager.machinelearningservices.models.Operations;
import com.azure.resourcemanager.machinelearningservices.models.PrivateEndpointConnections;
import com.azure.resourcemanager.machinelearningservices.models.PrivateLinkResources;
import com.azure.resourcemanager.machinelearningservices.models.Quotas;
-import com.azure.resourcemanager.machinelearningservices.models.StorageAccounts;
import com.azure.resourcemanager.machinelearningservices.models.Usages;
import com.azure.resourcemanager.machinelearningservices.models.VirtualMachineSizes;
import com.azure.resourcemanager.machinelearningservices.models.WorkspaceConnections;
import com.azure.resourcemanager.machinelearningservices.models.WorkspaceFeatures;
-import com.azure.resourcemanager.machinelearningservices.models.WorkspaceOperations;
+import com.azure.resourcemanager.machinelearningservices.models.WorkspaceSkus;
import com.azure.resourcemanager.machinelearningservices.models.Workspaces;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
@@ -65,29 +59,23 @@ public final class MachineLearningServicesManager {
private Workspaces workspaces;
- private WorkspaceFeatures workspaceFeatures;
-
private Usages usages;
private VirtualMachineSizes virtualMachineSizes;
private Quotas quotas;
- private MachineLearningComputes machineLearningComputes;
-
- private WorkspaceOperations workspaceOperations;
+ private Computes computes;
private PrivateEndpointConnections privateEndpointConnections;
private PrivateLinkResources privateLinkResources;
- private MachineLearningServices machineLearningServices;
+ private WorkspaceConnections workspaceConnections;
- private Notebooks notebooks;
+ private WorkspaceFeatures workspaceFeatures;
- private StorageAccounts storageAccounts;
-
- private WorkspaceConnections workspaceConnections;
+ private WorkspaceSkus workspaceSkus;
private final AzureMachineLearningWorkspaces clientObject;
@@ -134,6 +122,7 @@ public static final class Configurable {
private HttpClient httpClient;
private HttpLogOptions httpLogOptions;
private final List policies = new ArrayList<>();
+ private final List scopes = new ArrayList<>();
private RetryPolicy retryPolicy;
private Duration defaultPollInterval;
@@ -173,6 +162,17 @@ public Configurable withPolicy(HttpPipelinePolicy policy) {
return this;
}
+ /**
+ * Adds the scope to permission sets.
+ *
+ * @param scope the scope.
+ * @return the configurable object itself.
+ */
+ public Configurable withScope(String scope) {
+ this.scopes.add(Objects.requireNonNull(scope, "'scope' cannot be null."));
+ return this;
+ }
+
/**
* Sets the retry policy to the HTTP pipeline.
*
@@ -229,6 +229,9 @@ public MachineLearningServicesManager authenticate(TokenCredential credential, A
userAgentBuilder.append(" (auto-generated)");
}
+ if (scopes.isEmpty()) {
+ scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
+ }
if (retryPolicy == null) {
retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
}
@@ -238,10 +241,7 @@ public MachineLearningServicesManager authenticate(TokenCredential credential, A
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
- policies
- .add(
- new BearerTokenAuthenticationPolicy(
- credential, profile.getEnvironment().getManagementEndpoint() + "/.default"));
+ policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
policies.addAll(this.policies);
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
@@ -270,14 +270,6 @@ public Workspaces workspaces() {
return workspaces;
}
- /** @return Resource collection API of WorkspaceFeatures. */
- public WorkspaceFeatures workspaceFeatures() {
- if (this.workspaceFeatures == null) {
- this.workspaceFeatures = new WorkspaceFeaturesImpl(clientObject.getWorkspaceFeatures(), this);
- }
- return workspaceFeatures;
- }
-
/** @return Resource collection API of Usages. */
public Usages usages() {
if (this.usages == null) {
@@ -302,21 +294,12 @@ public Quotas quotas() {
return quotas;
}
- /** @return Resource collection API of MachineLearningComputes. */
- public MachineLearningComputes machineLearningComputes() {
- if (this.machineLearningComputes == null) {
- this.machineLearningComputes =
- new MachineLearningComputesImpl(clientObject.getMachineLearningComputes(), this);
- }
- return machineLearningComputes;
- }
-
- /** @return Resource collection API of WorkspaceOperations. */
- public WorkspaceOperations workspaceOperations() {
- if (this.workspaceOperations == null) {
- this.workspaceOperations = new WorkspaceOperationsImpl(clientObject.getWorkspaceOperations(), this);
+ /** @return Resource collection API of Computes. */
+ public Computes computes() {
+ if (this.computes == null) {
+ this.computes = new ComputesImpl(clientObject.getComputes(), this);
}
- return workspaceOperations;
+ return computes;
}
/** @return Resource collection API of PrivateEndpointConnections. */
@@ -336,37 +319,28 @@ public PrivateLinkResources privateLinkResources() {
return privateLinkResources;
}
- /** @return Resource collection API of MachineLearningServices. */
- public MachineLearningServices machineLearningServices() {
- if (this.machineLearningServices == null) {
- this.machineLearningServices =
- new MachineLearningServicesImpl(clientObject.getMachineLearningServices(), this);
- }
- return machineLearningServices;
- }
-
- /** @return Resource collection API of Notebooks. */
- public Notebooks notebooks() {
- if (this.notebooks == null) {
- this.notebooks = new NotebooksImpl(clientObject.getNotebooks(), this);
+ /** @return Resource collection API of WorkspaceConnections. */
+ public WorkspaceConnections workspaceConnections() {
+ if (this.workspaceConnections == null) {
+ this.workspaceConnections = new WorkspaceConnectionsImpl(clientObject.getWorkspaceConnections(), this);
}
- return notebooks;
+ return workspaceConnections;
}
- /** @return Resource collection API of StorageAccounts. */
- public StorageAccounts storageAccounts() {
- if (this.storageAccounts == null) {
- this.storageAccounts = new StorageAccountsImpl(clientObject.getStorageAccounts(), this);
+ /** @return Resource collection API of WorkspaceFeatures. */
+ public WorkspaceFeatures workspaceFeatures() {
+ if (this.workspaceFeatures == null) {
+ this.workspaceFeatures = new WorkspaceFeaturesImpl(clientObject.getWorkspaceFeatures(), this);
}
- return storageAccounts;
+ return workspaceFeatures;
}
- /** @return Resource collection API of WorkspaceConnections. */
- public WorkspaceConnections workspaceConnections() {
- if (this.workspaceConnections == null) {
- this.workspaceConnections = new WorkspaceConnectionsImpl(clientObject.getWorkspaceConnections(), this);
+ /** @return Resource collection API of WorkspaceSkus. */
+ public WorkspaceSkus workspaceSkus() {
+ if (this.workspaceSkus == null) {
+ this.workspaceSkus = new WorkspaceSkusImpl(clientObject.getWorkspaceSkus(), this);
}
- return workspaceConnections;
+ return workspaceSkus;
}
/**
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/AzureMachineLearningWorkspaces.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/AzureMachineLearningWorkspaces.java
index af14f5759361..c2ab163750ab 100644
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/AzureMachineLearningWorkspaces.java
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/AzureMachineLearningWorkspaces.java
@@ -10,7 +10,7 @@
/** The interface for AzureMachineLearningWorkspaces class. */
public interface AzureMachineLearningWorkspaces {
/**
- * Gets Azure subscription identifier.
+ * Gets The ID of the target subscription.
*
* @return the subscriptionId value.
*/
@@ -58,13 +58,6 @@ public interface AzureMachineLearningWorkspaces {
*/
WorkspacesClient getWorkspaces();
- /**
- * Gets the WorkspaceFeaturesClient object to access its operations.
- *
- * @return the WorkspaceFeaturesClient object.
- */
- WorkspaceFeaturesClient getWorkspaceFeatures();
-
/**
* Gets the UsagesClient object to access its operations.
*
@@ -87,18 +80,11 @@ public interface AzureMachineLearningWorkspaces {
QuotasClient getQuotas();
/**
- * Gets the MachineLearningComputesClient object to access its operations.
- *
- * @return the MachineLearningComputesClient object.
- */
- MachineLearningComputesClient getMachineLearningComputes();
-
- /**
- * Gets the WorkspaceOperationsClient object to access its operations.
+ * Gets the ComputesClient object to access its operations.
*
- * @return the WorkspaceOperationsClient object.
+ * @return the ComputesClient object.
*/
- WorkspaceOperationsClient getWorkspaceOperations();
+ ComputesClient getComputes();
/**
* Gets the PrivateEndpointConnectionsClient object to access its operations.
@@ -115,30 +101,23 @@ public interface AzureMachineLearningWorkspaces {
PrivateLinkResourcesClient getPrivateLinkResources();
/**
- * Gets the MachineLearningServicesClient object to access its operations.
- *
- * @return the MachineLearningServicesClient object.
- */
- MachineLearningServicesClient getMachineLearningServices();
-
- /**
- * Gets the NotebooksClient object to access its operations.
+ * Gets the WorkspaceConnectionsClient object to access its operations.
*
- * @return the NotebooksClient object.
+ * @return the WorkspaceConnectionsClient object.
*/
- NotebooksClient getNotebooks();
+ WorkspaceConnectionsClient getWorkspaceConnections();
/**
- * Gets the StorageAccountsClient object to access its operations.
+ * Gets the WorkspaceFeaturesClient object to access its operations.
*
- * @return the StorageAccountsClient object.
+ * @return the WorkspaceFeaturesClient object.
*/
- StorageAccountsClient getStorageAccounts();
+ WorkspaceFeaturesClient getWorkspaceFeatures();
/**
- * Gets the WorkspaceConnectionsClient object to access its operations.
+ * Gets the WorkspaceSkusClient object to access its operations.
*
- * @return the WorkspaceConnectionsClient object.
+ * @return the WorkspaceSkusClient object.
*/
- WorkspaceConnectionsClient getWorkspaceConnections();
+ WorkspaceSkusClient getWorkspaceSkus();
}
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/MachineLearningComputesClient.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/ComputesClient.java
similarity index 85%
rename from sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/MachineLearningComputesClient.java
rename to sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/ComputesClient.java
index b07cc7e45a95..e67b4c4ac703 100644
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/MachineLearningComputesClient.java
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/ComputesClient.java
@@ -17,12 +17,12 @@
import com.azure.resourcemanager.machinelearningservices.models.ClusterUpdateParameters;
import com.azure.resourcemanager.machinelearningservices.models.UnderlyingResourceAction;
-/** An instance of this class provides access to all the operations defined in MachineLearningComputesClient. */
-public interface MachineLearningComputesClient {
+/** An instance of this class provides access to all the operations defined in ComputesClient. */
+public interface ComputesClient {
/**
* Gets computes in specified workspace.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -30,12 +30,12 @@ public interface MachineLearningComputesClient {
* @return computes in specified workspace.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByWorkspace(String resourceGroupName, String workspaceName);
+ PagedIterable list(String resourceGroupName, String workspaceName);
/**
* Gets computes in specified workspace.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param skip Continuation token for pagination.
* @param context The context to associate with this operation.
@@ -45,14 +45,14 @@ public interface MachineLearningComputesClient {
* @return computes in specified workspace.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByWorkspace(
+ PagedIterable list(
String resourceGroupName, String workspaceName, String skip, Context context);
/**
* Gets compute definition by its name. Any secrets (storage keys, service credentials, etc) are not returned - use
* 'keys' nested resource to get them.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -67,7 +67,7 @@ PagedIterable listByWorkspace(
* Gets compute definition by its name. Any secrets (storage keys, service credentials, etc) are not returned - use
* 'keys' nested resource to get them.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param context The context to associate with this operation.
@@ -84,7 +84,7 @@ Response getWithResponse(
* Creates or updates compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation.
* If your intent is to create a new compute, do a GET first to verify that it does not exist yet.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param parameters Payload with Machine Learning compute definition.
@@ -101,7 +101,7 @@ SyncPoller, ComputeResourceInner> beginCreateOr
* Creates or updates compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation.
* If your intent is to create a new compute, do a GET first to verify that it does not exist yet.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param parameters Payload with Machine Learning compute definition.
@@ -123,7 +123,7 @@ SyncPoller, ComputeResourceInner> beginCreateOr
* Creates or updates compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation.
* If your intent is to create a new compute, do a GET first to verify that it does not exist yet.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param parameters Payload with Machine Learning compute definition.
@@ -140,7 +140,7 @@ ComputeResourceInner createOrUpdate(
* Creates or updates compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation.
* If your intent is to create a new compute, do a GET first to verify that it does not exist yet.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param parameters Payload with Machine Learning compute definition.
@@ -162,7 +162,7 @@ ComputeResourceInner createOrUpdate(
* Updates properties of a compute. This call will overwrite a compute if it exists. This is a nonrecoverable
* operation.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param parameters Additional parameters for cluster update.
@@ -179,7 +179,7 @@ SyncPoller, ComputeResourceInner> beginUpdate(
* Updates properties of a compute. This call will overwrite a compute if it exists. This is a nonrecoverable
* operation.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param parameters Additional parameters for cluster update.
@@ -201,7 +201,7 @@ SyncPoller, ComputeResourceInner> beginUpdate(
* Updates properties of a compute. This call will overwrite a compute if it exists. This is a nonrecoverable
* operation.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param parameters Additional parameters for cluster update.
@@ -218,7 +218,7 @@ ComputeResourceInner update(
* Updates properties of a compute. This call will overwrite a compute if it exists. This is a nonrecoverable
* operation.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param parameters Additional parameters for cluster update.
@@ -239,7 +239,7 @@ ComputeResourceInner update(
/**
* Deletes specified Machine Learning compute.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param underlyingResourceAction Delete the underlying compute if 'Delete', or detach the underlying compute from
@@ -259,7 +259,7 @@ SyncPoller, Void> beginDelete(
/**
* Deletes specified Machine Learning compute.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param underlyingResourceAction Delete the underlying compute if 'Delete', or detach the underlying compute from
@@ -281,7 +281,7 @@ SyncPoller, Void> beginDelete(
/**
* Deletes specified Machine Learning compute.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param underlyingResourceAction Delete the underlying compute if 'Delete', or detach the underlying compute from
@@ -300,7 +300,7 @@ void delete(
/**
* Deletes specified Machine Learning compute.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param underlyingResourceAction Delete the underlying compute if 'Delete', or detach the underlying compute from
@@ -321,7 +321,7 @@ void delete(
/**
* Get the details (e.g IP address, port etc) of all the compute nodes in the compute.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -336,7 +336,7 @@ PagedIterable listNodes(
/**
* Get the details (e.g IP address, port etc) of all the compute nodes in the compute.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param context The context to associate with this operation.
@@ -352,7 +352,7 @@ PagedIterable listNodes(
/**
* Gets secrets related to Machine Learning compute (storage keys, service credentials, etc).
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -366,7 +366,7 @@ PagedIterable listNodes(
/**
* Gets secrets related to Machine Learning compute (storage keys, service credentials, etc).
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param context The context to associate with this operation.
@@ -382,7 +382,7 @@ Response listKeysWithResponse(
/**
* Posts a start action to a compute instance.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -396,7 +396,7 @@ Response listKeysWithResponse(
/**
* Posts a start action to a compute instance.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param context The context to associate with this operation.
@@ -412,7 +412,7 @@ SyncPoller, Void> beginStart(
/**
* Posts a start action to a compute instance.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -425,7 +425,7 @@ SyncPoller, Void> beginStart(
/**
* Posts a start action to a compute instance.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param context The context to associate with this operation.
@@ -439,7 +439,7 @@ SyncPoller, Void> beginStart(
/**
* Posts a stop action to a compute instance.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -453,7 +453,7 @@ SyncPoller, Void> beginStart(
/**
* Posts a stop action to a compute instance.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param context The context to associate with this operation.
@@ -469,7 +469,7 @@ SyncPoller, Void> beginStop(
/**
* Posts a stop action to a compute instance.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -482,7 +482,7 @@ SyncPoller, Void> beginStop(
/**
* Posts a stop action to a compute instance.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param context The context to associate with this operation.
@@ -496,29 +496,57 @@ SyncPoller, Void> beginStop(
/**
* Posts a restart action to a compute instance.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void restart(String resourceGroupName, String workspaceName, String computeName);
+ SyncPoller, Void> beginRestart(String resourceGroupName, String workspaceName, String computeName);
/**
* Posts a restart action to a compute instance.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response restartWithResponse(
+ SyncPoller, Void> beginRestart(
String resourceGroupName, String workspaceName, String computeName, Context context);
+
+ /**
+ * Posts a restart action to a compute instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param computeName Name of the Azure Machine Learning compute.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void restart(String resourceGroupName, String workspaceName, String computeName);
+
+ /**
+ * Posts a restart action to a compute instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param computeName Name of the Azure Machine Learning compute.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void restart(String resourceGroupName, String workspaceName, String computeName, Context context);
}
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/MachineLearningServicesClient.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/MachineLearningServicesClient.java
deleted file mode 100644
index ae52246e89b2..000000000000
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/MachineLearningServicesClient.java
+++ /dev/null
@@ -1,207 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.machinelearningservices.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.machinelearningservices.fluent.models.ServiceResourceInner;
-import com.azure.resourcemanager.machinelearningservices.models.CreateServiceRequest;
-import com.azure.resourcemanager.machinelearningservices.models.OrderString;
-
-/** An instance of this class provides access to all the operations defined in MachineLearningServicesClient. */
-public interface MachineLearningServicesClient {
- /**
- * Gets services in specified workspace.
- *
- * @param resourceGroupName Name of the resource group in which workspace is located.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return services in specified workspace.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByWorkspace(String resourceGroupName, String workspaceName);
-
- /**
- * Gets services in specified workspace.
- *
- * @param resourceGroupName Name of the resource group in which workspace is located.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @param skip Continuation token for pagination.
- * @param modelId The Model Id.
- * @param modelName The Model name.
- * @param tag The object tag.
- * @param tags A set of tags with which to filter the returned services. It is a comma separated string of tags key
- * or tags key=value Example: tagKey1,tagKey2,tagKey3=value3 .
- * @param properties A set of properties with which to filter the returned services. It is a comma separated string
- * of properties key and/or properties key=value Example: propKey1,propKey2,propKey3=value3 .
- * @param runId runId for model associated with service.
- * @param expand Set to True to include Model details.
- * @param orderby The option to order the response.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return services in specified workspace.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByWorkspace(
- String resourceGroupName,
- String workspaceName,
- String skip,
- String modelId,
- String modelName,
- String tag,
- String tags,
- String properties,
- String runId,
- Boolean expand,
- OrderString orderby,
- Context context);
-
- /**
- * Get a Service by name.
- *
- * @param resourceGroupName Name of the resource group in which workspace is located.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @param serviceName Name of the Azure Machine Learning service.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a Service by name.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ServiceResourceInner get(String resourceGroupName, String workspaceName, String serviceName);
-
- /**
- * Get a Service by name.
- *
- * @param resourceGroupName Name of the resource group in which workspace is located.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @param serviceName Name of the Azure Machine Learning service.
- * @param expand Set to True to include Model details.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a Service by name.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String workspaceName, String serviceName, Boolean expand, Context context);
-
- /**
- * Delete a specific Service..
- *
- * @param resourceGroupName Name of the resource group in which workspace is located.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @param serviceName Name of the Azure Machine Learning service.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String workspaceName, String serviceName);
-
- /**
- * Delete a specific Service..
- *
- * @param resourceGroupName Name of the resource group in which workspace is located.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @param serviceName Name of the Azure Machine Learning service.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(
- String resourceGroupName, String workspaceName, String serviceName, Context context);
-
- /**
- * Creates or updates service. This call will update a service if it exists. This is a nonrecoverable operation. If
- * your intent is to create a new service, do a GET first to verify that it does not exist yet.
- *
- * @param resourceGroupName Name of the resource group in which workspace is located.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @param serviceName Name of the Azure Machine Learning service.
- * @param properties The payload that is used to create or update the Service.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return machine Learning service object wrapped into ARM resource envelope.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SyncPoller, ServiceResourceInner> beginCreateOrUpdate(
- String resourceGroupName, String workspaceName, String serviceName, CreateServiceRequest properties);
-
- /**
- * Creates or updates service. This call will update a service if it exists. This is a nonrecoverable operation. If
- * your intent is to create a new service, do a GET first to verify that it does not exist yet.
- *
- * @param resourceGroupName Name of the resource group in which workspace is located.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @param serviceName Name of the Azure Machine Learning service.
- * @param properties The payload that is used to create or update the Service.
- * @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 machine Learning service object wrapped into ARM resource envelope.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SyncPoller, ServiceResourceInner> beginCreateOrUpdate(
- String resourceGroupName,
- String workspaceName,
- String serviceName,
- CreateServiceRequest properties,
- Context context);
-
- /**
- * Creates or updates service. This call will update a service if it exists. This is a nonrecoverable operation. If
- * your intent is to create a new service, do a GET first to verify that it does not exist yet.
- *
- * @param resourceGroupName Name of the resource group in which workspace is located.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @param serviceName Name of the Azure Machine Learning service.
- * @param properties The payload that is used to create or update the Service.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return machine Learning service object wrapped into ARM resource envelope.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ServiceResourceInner createOrUpdate(
- String resourceGroupName, String workspaceName, String serviceName, CreateServiceRequest properties);
-
- /**
- * Creates or updates service. This call will update a service if it exists. This is a nonrecoverable operation. If
- * your intent is to create a new service, do a GET first to verify that it does not exist yet.
- *
- * @param resourceGroupName Name of the resource group in which workspace is located.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @param serviceName Name of the Azure Machine Learning service.
- * @param properties The payload that is used to create or update the Service.
- * @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 machine Learning service object wrapped into ARM resource envelope.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ServiceResourceInner createOrUpdate(
- String resourceGroupName,
- String workspaceName,
- String serviceName,
- CreateServiceRequest properties,
- Context context);
-}
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/NotebooksClient.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/NotebooksClient.java
deleted file mode 100644
index 2e926970ec64..000000000000
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/NotebooksClient.java
+++ /dev/null
@@ -1,89 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.machinelearningservices.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.Response;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.machinelearningservices.fluent.models.ListNotebookKeysResultInner;
-import com.azure.resourcemanager.machinelearningservices.fluent.models.NotebookResourceInfoInner;
-
-/** An instance of this class provides access to all the operations defined in NotebooksClient. */
-public interface NotebooksClient {
- /**
- * @param resourceGroupName Name of the resource group in which workspace is located.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SyncPoller, NotebookResourceInfoInner> beginPrepare(
- String resourceGroupName, String workspaceName);
-
- /**
- * @param resourceGroupName Name of the resource group in which workspace is located.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SyncPoller, NotebookResourceInfoInner> beginPrepare(
- String resourceGroupName, String workspaceName, Context context);
-
- /**
- * @param resourceGroupName Name of the resource group in which workspace is located.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- NotebookResourceInfoInner prepare(String resourceGroupName, String workspaceName);
-
- /**
- * @param resourceGroupName Name of the resource group in which workspace is located.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- NotebookResourceInfoInner prepare(String resourceGroupName, String workspaceName, Context context);
-
- /**
- * @param resourceGroupName Name of the resource group in which workspace is located.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ListNotebookKeysResultInner listKeys(String resourceGroupName, String workspaceName);
-
- /**
- * @param resourceGroupName Name of the resource group in which workspace is located.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response listKeysWithResponse(
- String resourceGroupName, String workspaceName, Context context);
-}
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/PrivateEndpointConnectionsClient.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/PrivateEndpointConnectionsClient.java
index 28c1ae787989..921469a96775 100644
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/PrivateEndpointConnectionsClient.java
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/PrivateEndpointConnectionsClient.java
@@ -6,16 +6,44 @@
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.machinelearningservices.fluent.models.PrivateEndpointConnectionInner;
/** An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient. */
public interface PrivateEndpointConnectionsClient {
+ /**
+ * List all the private endpoint connections associated with the workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of private endpoint connection associated with the specified workspace.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String workspaceName);
+
+ /**
+ * List all the private endpoint connections associated with the workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @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 list of private endpoint connection associated with the specified workspace.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String workspaceName, Context context);
+
/**
* Gets the specified private endpoint connection associated with the workspace.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the workspace.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -30,7 +58,7 @@ PrivateEndpointConnectionInner get(
/**
* Gets the specified private endpoint connection associated with the workspace.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the workspace.
* @param context The context to associate with this operation.
@@ -46,7 +74,7 @@ Response getWithResponse(
/**
* Update the state of specified private endpoint connection associated with the workspace.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the workspace.
* @param properties The private endpoint connection properties.
@@ -56,7 +84,7 @@ Response getWithResponse(
* @return the Private Endpoint Connection resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PrivateEndpointConnectionInner put(
+ PrivateEndpointConnectionInner createOrUpdate(
String resourceGroupName,
String workspaceName,
String privateEndpointConnectionName,
@@ -65,7 +93,7 @@ PrivateEndpointConnectionInner put(
/**
* Update the state of specified private endpoint connection associated with the workspace.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the workspace.
* @param properties The private endpoint connection properties.
@@ -76,7 +104,7 @@ PrivateEndpointConnectionInner put(
* @return the Private Endpoint Connection resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response putWithResponse(
+ Response createOrUpdateWithResponse(
String resourceGroupName,
String workspaceName,
String privateEndpointConnectionName,
@@ -86,7 +114,7 @@ Response putWithResponse(
/**
* Deletes the specified private endpoint connection associated with the workspace.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the workspace.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -99,7 +127,7 @@ Response putWithResponse(
/**
* Deletes the specified private endpoint connection associated with the workspace.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the workspace.
* @param context The context to associate with this operation.
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/PrivateLinkResourcesClient.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/PrivateLinkResourcesClient.java
index 8ab1afdbdaeb..c433852e73ee 100644
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/PrivateLinkResourcesClient.java
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/PrivateLinkResourcesClient.java
@@ -15,7 +15,7 @@ public interface PrivateLinkResourcesClient {
/**
* Gets the private link resources that need to be created for a workspace.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -23,12 +23,12 @@ public interface PrivateLinkResourcesClient {
* @return the private link resources that need to be created for a workspace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PrivateLinkResourceListResultInner listByWorkspace(String resourceGroupName, String workspaceName);
+ PrivateLinkResourceListResultInner list(String resourceGroupName, String workspaceName);
/**
* Gets the private link resources that need to be created for a workspace.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -37,6 +37,6 @@ public interface PrivateLinkResourcesClient {
* @return the private link resources that need to be created for a workspace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response listByWorkspaceWithResponse(
+ Response listWithResponse(
String resourceGroupName, String workspaceName, Context context);
}
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/StorageAccountsClient.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/StorageAccountsClient.java
deleted file mode 100644
index 95a577f1d77d..000000000000
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/StorageAccountsClient.java
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.machinelearningservices.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.Response;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.machinelearningservices.fluent.models.ListStorageAccountKeysResultInner;
-
-/** An instance of this class provides access to all the operations defined in StorageAccountsClient. */
-public interface StorageAccountsClient {
- /**
- * @param resourceGroupName Name of the resource group in which workspace is located.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ListStorageAccountKeysResultInner listKeys(String resourceGroupName, String workspaceName);
-
- /**
- * @param resourceGroupName Name of the resource group in which workspace is located.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response listKeysWithResponse(
- String resourceGroupName, String workspaceName, Context context);
-}
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/WorkspaceConnectionsClient.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/WorkspaceConnectionsClient.java
index e595d0c2001b..e64714d48c2f 100644
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/WorkspaceConnectionsClient.java
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/WorkspaceConnectionsClient.java
@@ -10,14 +10,13 @@
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.machinelearningservices.fluent.models.WorkspaceConnectionInner;
-import com.azure.resourcemanager.machinelearningservices.models.WorkspaceConnectionDto;
/** An instance of this class provides access to all the operations defined in WorkspaceConnectionsClient. */
public interface WorkspaceConnectionsClient {
/**
* List all connections under a AML workspace.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -30,7 +29,7 @@ public interface WorkspaceConnectionsClient {
/**
* List all connections under a AML workspace.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param target Target of the workspace connection.
* @param category Category of the workspace connection.
@@ -47,7 +46,7 @@ PagedIterable list(
/**
* Add a new workspace connection.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param connectionName Friendly name of the workspace connection.
* @param parameters The object for creating or updating a new workspace connection.
@@ -58,12 +57,12 @@ PagedIterable list(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
WorkspaceConnectionInner create(
- String resourceGroupName, String workspaceName, String connectionName, WorkspaceConnectionDto parameters);
+ String resourceGroupName, String workspaceName, String connectionName, WorkspaceConnectionInner parameters);
/**
* Add a new workspace connection.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param connectionName Friendly name of the workspace connection.
* @param parameters The object for creating or updating a new workspace connection.
@@ -78,13 +77,13 @@ Response createWithResponse(
String resourceGroupName,
String workspaceName,
String connectionName,
- WorkspaceConnectionDto parameters,
+ WorkspaceConnectionInner parameters,
Context context);
/**
* Get the detail of a workspace connection.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @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.
@@ -98,7 +97,7 @@ Response createWithResponse(
/**
* Get the detail of a workspace connection.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @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 context The context to associate with this operation.
@@ -114,7 +113,7 @@ Response getWithResponse(
/**
* Delete a workspace connection.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @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.
@@ -127,7 +126,7 @@ Response getWithResponse(
/**
* Delete a workspace connection.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @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 context The context to associate with this operation.
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/WorkspaceFeaturesClient.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/WorkspaceFeaturesClient.java
index f6451157bc19..e93a4142606b 100644
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/WorkspaceFeaturesClient.java
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/WorkspaceFeaturesClient.java
@@ -15,7 +15,7 @@ public interface WorkspaceFeaturesClient {
/**
* Lists all enabled features for a workspace.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -28,7 +28,7 @@ public interface WorkspaceFeaturesClient {
/**
* Lists all enabled features for a workspace.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/WorkspaceOperationsClient.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/WorkspaceSkusClient.java
similarity index 87%
rename from sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/WorkspaceOperationsClient.java
rename to sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/WorkspaceSkusClient.java
index 6cc8f4f46345..e1182d56a0fa 100644
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/WorkspaceOperationsClient.java
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/WorkspaceSkusClient.java
@@ -10,8 +10,8 @@
import com.azure.core.util.Context;
import com.azure.resourcemanager.machinelearningservices.fluent.models.WorkspaceSkuInner;
-/** An instance of this class provides access to all the operations defined in WorkspaceOperationsClient. */
-public interface WorkspaceOperationsClient {
+/** An instance of this class provides access to all the operations defined in WorkspaceSkusClient. */
+public interface WorkspaceSkusClient {
/**
* Lists all skus with associated features.
*
@@ -20,7 +20,7 @@ public interface WorkspaceOperationsClient {
* @return list of skus with features.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listSkus();
+ PagedIterable list();
/**
* Lists all skus with associated features.
@@ -32,5 +32,5 @@ public interface WorkspaceOperationsClient {
* @return list of skus with features.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listSkus(Context context);
+ PagedIterable list(Context context);
}
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/WorkspacesClient.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/WorkspacesClient.java
index f412c73fd058..f2f8fccfc472 100644
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/WorkspacesClient.java
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/WorkspacesClient.java
@@ -11,9 +11,15 @@
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.machinelearningservices.fluent.models.DiagnoseResponseResultInner;
+import com.azure.resourcemanager.machinelearningservices.fluent.models.ExternalFqdnResponseInner;
+import com.azure.resourcemanager.machinelearningservices.fluent.models.ListNotebookKeysResultInner;
+import com.azure.resourcemanager.machinelearningservices.fluent.models.ListStorageAccountKeysResultInner;
import com.azure.resourcemanager.machinelearningservices.fluent.models.ListWorkspaceKeysResultInner;
import com.azure.resourcemanager.machinelearningservices.fluent.models.NotebookAccessTokenResultInner;
+import com.azure.resourcemanager.machinelearningservices.fluent.models.NotebookResourceInfoInner;
import com.azure.resourcemanager.machinelearningservices.fluent.models.WorkspaceInner;
+import com.azure.resourcemanager.machinelearningservices.models.DiagnoseWorkspaceParameters;
import com.azure.resourcemanager.machinelearningservices.models.WorkspaceUpdateParameters;
/** An instance of this class provides access to all the operations defined in WorkspacesClient. */
@@ -21,7 +27,7 @@ public interface WorkspacesClient {
/**
* Gets the properties of the specified machine learning workspace.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -34,7 +40,7 @@ public interface WorkspacesClient {
/**
* Gets the properties of the specified machine learning workspace.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -49,7 +55,7 @@ Response getByResourceGroupWithResponse(
/**
* Creates or updates a workspace with the specified parameters.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param parameters The parameters for creating or updating a machine learning workspace.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -64,7 +70,7 @@ SyncPoller, WorkspaceInner> beginCreateOrUpdate(
/**
* Creates or updates a workspace with the specified parameters.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param parameters The parameters for creating or updating a machine learning workspace.
* @param context The context to associate with this operation.
@@ -80,7 +86,7 @@ SyncPoller, WorkspaceInner> beginCreateOrUpdate(
/**
* Creates or updates a workspace with the specified parameters.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param parameters The parameters for creating or updating a machine learning workspace.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -94,7 +100,7 @@ SyncPoller, WorkspaceInner> beginCreateOrUpdate(
/**
* Creates or updates a workspace with the specified parameters.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param parameters The parameters for creating or updating a machine learning workspace.
* @param context The context to associate with this operation.
@@ -110,7 +116,7 @@ WorkspaceInner createOrUpdate(
/**
* Deletes a machine learning workspace.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -123,7 +129,7 @@ WorkspaceInner createOrUpdate(
/**
* Deletes a machine learning workspace.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -137,7 +143,7 @@ WorkspaceInner createOrUpdate(
/**
* Deletes a machine learning workspace.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -149,7 +155,7 @@ WorkspaceInner createOrUpdate(
/**
* Deletes a machine learning workspace.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -162,7 +168,7 @@ WorkspaceInner createOrUpdate(
/**
* Updates a machine learning workspace with the specified parameters.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param parameters The parameters for updating a machine learning workspace.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -176,7 +182,7 @@ WorkspaceInner createOrUpdate(
/**
* Updates a machine learning workspace with the specified parameters.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param parameters The parameters for updating a machine learning workspace.
* @param context The context to associate with this operation.
@@ -192,7 +198,7 @@ Response updateWithResponse(
/**
* Lists all the available machine learning workspaces under the specified resource group.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -204,7 +210,7 @@ Response updateWithResponse(
/**
* Lists all the available machine learning workspaces under the specified resource group.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param skip Continuation token for pagination.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -215,11 +221,86 @@ Response updateWithResponse(
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, String skip, Context context);
+ /**
+ * Diagnose workspace setup issue.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param parameters The parameter of diagnosing workspace health.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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)
+ SyncPoller, DiagnoseResponseResultInner> beginDiagnose(
+ String resourceGroupName, String workspaceName, DiagnoseWorkspaceParameters parameters);
+
+ /**
+ * Diagnose workspace setup issue.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param parameters The parameter of diagnosing workspace health.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, DiagnoseResponseResultInner> beginDiagnose(
+ String resourceGroupName, String workspaceName, DiagnoseWorkspaceParameters parameters, Context context);
+
+ /**
+ * Diagnose workspace setup issue.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param parameters The parameter of diagnosing workspace health.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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)
+ DiagnoseResponseResultInner diagnose(
+ String resourceGroupName, String workspaceName, DiagnoseWorkspaceParameters parameters);
+
+ /**
+ * Diagnose workspace setup issue.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DiagnoseResponseResultInner diagnose(String resourceGroupName, String workspaceName);
+
+ /**
+ * Diagnose workspace setup issue.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param parameters The parameter of diagnosing workspace health.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DiagnoseResponseResultInner diagnose(
+ String resourceGroupName, String workspaceName, DiagnoseWorkspaceParameters parameters, Context context);
+
/**
* Lists all the keys associated with this workspace. This includes keys for the storage account, app insights and
* password for container registry.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -233,7 +314,7 @@ Response updateWithResponse(
* Lists all the keys associated with this workspace. This includes keys for the storage account, app insights and
* password for container registry.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -249,7 +330,7 @@ Response listKeysWithResponse(
* Resync all the keys associated with this workspace. This includes keys for the storage account, app insights and
* password for container registry.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -263,7 +344,7 @@ Response listKeysWithResponse(
* Resync all the keys associated with this workspace. This includes keys for the storage account, app insights and
* password for container registry.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -278,7 +359,7 @@ Response listKeysWithResponse(
* Resync all the keys associated with this workspace. This includes keys for the storage account, app insights and
* password for container registry.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -291,7 +372,7 @@ Response listKeysWithResponse(
* Resync all the keys associated with this workspace. This includes keys for the storage account, app insights and
* password for container registry.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -327,7 +408,7 @@ Response listKeysWithResponse(
/**
* return notebook access token and refresh token.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -340,7 +421,7 @@ Response listKeysWithResponse(
/**
* return notebook access token and refresh token.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -351,4 +432,144 @@ Response listKeysWithResponse(
@ServiceMethod(returns = ReturnType.SINGLE)
Response listNotebookAccessTokenWithResponse(
String resourceGroupName, String workspaceName, Context context);
+
+ /**
+ * Prepare a notebook.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, NotebookResourceInfoInner> beginPrepareNotebook(
+ String resourceGroupName, String workspaceName);
+
+ /**
+ * Prepare a notebook.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, NotebookResourceInfoInner> beginPrepareNotebook(
+ String resourceGroupName, String workspaceName, Context context);
+
+ /**
+ * Prepare a notebook.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ NotebookResourceInfoInner prepareNotebook(String resourceGroupName, String workspaceName);
+
+ /**
+ * Prepare a notebook.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ NotebookResourceInfoInner prepareNotebook(String resourceGroupName, String workspaceName, Context context);
+
+ /**
+ * List storage account keys of a workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ListStorageAccountKeysResultInner listStorageAccountKeys(String resourceGroupName, String workspaceName);
+
+ /**
+ * List storage account keys of a workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listStorageAccountKeysWithResponse(
+ String resourceGroupName, String workspaceName, Context context);
+
+ /**
+ * List keys of a notebook.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ListNotebookKeysResultInner listNotebookKeys(String resourceGroupName, String workspaceName);
+
+ /**
+ * List keys of a notebook.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listNotebookKeysWithResponse(
+ String resourceGroupName, String workspaceName, Context context);
+
+ /**
+ * Called by Client (Portal, CLI, etc) to get a list of all external outbound dependencies (FQDNs) programmatically.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ExternalFqdnResponseInner listOutboundNetworkDependenciesEndpoints(String resourceGroupName, String workspaceName);
+
+ /**
+ * Called by Client (Portal, CLI, etc) to get a list of all external outbound dependencies (FQDNs) programmatically.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listOutboundNetworkDependenciesEndpointsWithResponse(
+ String resourceGroupName, String workspaceName, Context context);
}
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/ComputeResourceInner.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/ComputeResourceInner.java
index 30285709c715..e40237f42011 100644
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/ComputeResourceInner.java
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/ComputeResourceInner.java
@@ -5,33 +5,41 @@
package com.azure.resourcemanager.machinelearningservices.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.management.Resource;
+import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.machinelearningservices.models.Compute;
import com.azure.resourcemanager.machinelearningservices.models.Identity;
import com.azure.resourcemanager.machinelearningservices.models.Sku;
import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
/** Machine Learning compute object wrapped into ARM resource envelope. */
@Fluent
-public final class ComputeResourceInner extends Resource {
+public final class ComputeResourceInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(ComputeResourceInner.class);
- /*
- * Compute properties
- */
- @JsonProperty(value = "properties")
- private Compute properties;
-
/*
* The identity of the resource.
*/
@JsonProperty(value = "identity")
private Identity identity;
+ /*
+ * Specifies the location of the resource.
+ */
+ @JsonProperty(value = "location")
+ private String location;
+
+ /*
+ * Contains resource tags defined as key/value pairs.
+ */
+ @JsonProperty(value = "tags")
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map tags;
+
/*
* The sku of the workspace.
*/
@@ -39,48 +47,74 @@ public final class ComputeResourceInner extends Resource {
private Sku sku;
/*
- * Read only system data
+ * System data
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
+ /*
+ * Compute properties
+ */
+ @JsonProperty(value = "properties")
+ private Compute properties;
+
/**
- * Get the properties property: Compute properties.
+ * Get the identity property: The identity of the resource.
*
- * @return the properties value.
+ * @return the identity value.
*/
- public Compute properties() {
- return this.properties;
+ public Identity identity() {
+ return this.identity;
}
/**
- * Set the properties property: Compute properties.
+ * Set the identity property: The identity of the resource.
*
- * @param properties the properties value to set.
+ * @param identity the identity value to set.
* @return the ComputeResourceInner object itself.
*/
- public ComputeResourceInner withProperties(Compute properties) {
- this.properties = properties;
+ public ComputeResourceInner withIdentity(Identity identity) {
+ this.identity = identity;
return this;
}
/**
- * Get the identity property: The identity of the resource.
+ * Get the location property: Specifies the location of the resource.
*
- * @return the identity value.
+ * @return the location value.
*/
- public Identity identity() {
- return this.identity;
+ public String location() {
+ return this.location;
}
/**
- * Set the identity property: The identity of the resource.
+ * Set the location property: Specifies the location of the resource.
*
- * @param identity the identity value to set.
+ * @param location the location value to set.
* @return the ComputeResourceInner object itself.
*/
- public ComputeResourceInner withIdentity(Identity identity) {
- this.identity = identity;
+ public ComputeResourceInner withLocation(String location) {
+ this.location = location;
+ return this;
+ }
+
+ /**
+ * Get the tags property: Contains resource tags defined as key/value pairs.
+ *
+ * @return the tags value.
+ */
+ public Map tags() {
+ return this.tags;
+ }
+
+ /**
+ * Set the tags property: Contains resource tags defined as key/value pairs.
+ *
+ * @param tags the tags value to set.
+ * @return the ComputeResourceInner object itself.
+ */
+ public ComputeResourceInner withTags(Map tags) {
+ this.tags = tags;
return this;
}
@@ -105,7 +139,7 @@ public ComputeResourceInner withSku(Sku sku) {
}
/**
- * Get the systemData property: Read only system data.
+ * Get the systemData property: System data.
*
* @return the systemData value.
*/
@@ -113,17 +147,23 @@ public SystemData systemData() {
return this.systemData;
}
- /** {@inheritDoc} */
- @Override
- public ComputeResourceInner withLocation(String location) {
- super.withLocation(location);
- return this;
+ /**
+ * Get the properties property: Compute properties.
+ *
+ * @return the properties value.
+ */
+ public Compute properties() {
+ return this.properties;
}
- /** {@inheritDoc} */
- @Override
- public ComputeResourceInner withTags(Map tags) {
- super.withTags(tags);
+ /**
+ * Set the properties property: Compute properties.
+ *
+ * @param properties the properties value to set.
+ * @return the ComputeResourceInner object itself.
+ */
+ public ComputeResourceInner withProperties(Compute properties) {
+ this.properties = properties;
return this;
}
@@ -133,14 +173,14 @@ public ComputeResourceInner withTags(Map tags) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (properties() != null) {
- properties().validate();
- }
if (identity() != null) {
identity().validate();
}
if (sku() != null) {
sku().validate();
}
+ if (properties() != null) {
+ properties().validate();
+ }
}
}
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/DiagnoseResponseResultInner.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/DiagnoseResponseResultInner.java
new file mode 100644
index 000000000000..edcb636935eb
--- /dev/null
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/DiagnoseResponseResultInner.java
@@ -0,0 +1,54 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.machinelearningservices.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.machinelearningservices.models.DiagnoseResponseResultValue;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The DiagnoseResponseResult model. */
+@Fluent
+public final class DiagnoseResponseResultInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DiagnoseResponseResultInner.class);
+
+ /*
+ * The value property.
+ */
+ @JsonProperty(value = "value")
+ private DiagnoseResponseResultValue value;
+
+ /**
+ * Get the value property: The value property.
+ *
+ * @return the value value.
+ */
+ public DiagnoseResponseResultValue value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: The value property.
+ *
+ * @param value the value value to set.
+ * @return the DiagnoseResponseResultInner object itself.
+ */
+ public DiagnoseResponseResultInner withValue(DiagnoseResponseResultValue value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() != null) {
+ value().validate();
+ }
+ }
+}
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/ExternalFqdnResponseInner.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/ExternalFqdnResponseInner.java
new file mode 100644
index 000000000000..f842179a65e3
--- /dev/null
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/ExternalFqdnResponseInner.java
@@ -0,0 +1,55 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.machinelearningservices.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.machinelearningservices.models.FqdnEndpoints;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** The ExternalFqdnResponse model. */
+@Fluent
+public final class ExternalFqdnResponseInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ExternalFqdnResponseInner.class);
+
+ /*
+ * The value property.
+ */
+ @JsonProperty(value = "value")
+ private List value;
+
+ /**
+ * Get the value property: The value property.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: The value property.
+ *
+ * @param value the value value to set.
+ * @return the ExternalFqdnResponseInner object itself.
+ */
+ public ExternalFqdnResponseInner withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() != null) {
+ value().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/PrivateEndpointConnectionInner.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/PrivateEndpointConnectionInner.java
index 3334cc9a86e1..65d46d1937d0 100644
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/PrivateEndpointConnectionInner.java
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/PrivateEndpointConnectionInner.java
@@ -6,7 +6,7 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
-import com.azure.core.management.Resource;
+import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.machinelearningservices.models.Identity;
@@ -15,39 +15,34 @@
import com.azure.resourcemanager.machinelearningservices.models.PrivateLinkServiceConnectionState;
import com.azure.resourcemanager.machinelearningservices.models.Sku;
import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
/** The Private Endpoint Connection resource. */
@JsonFlatten
@Fluent
-public class PrivateEndpointConnectionInner extends Resource {
+public class PrivateEndpointConnectionInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateEndpointConnectionInner.class);
/*
- * The resource of private end point.
- */
- @JsonProperty(value = "properties.privateEndpoint")
- private PrivateEndpoint privateEndpoint;
-
- /*
- * A collection of information about the state of the connection between
- * service consumer and provider.
+ * The identity of the resource.
*/
- @JsonProperty(value = "properties.privateLinkServiceConnectionState")
- private PrivateLinkServiceConnectionState privateLinkServiceConnectionState;
+ @JsonProperty(value = "identity")
+ private Identity identity;
/*
- * The provisioning state of the private endpoint connection resource.
+ * Specifies the location of the resource.
*/
- @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
- private PrivateEndpointConnectionProvisioningState provisioningState;
+ @JsonProperty(value = "location")
+ private String location;
/*
- * The identity of the resource.
+ * Contains resource tags defined as key/value pairs.
*/
- @JsonProperty(value = "identity")
- private Identity identity;
+ @JsonProperty(value = "tags")
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map tags;
/*
* The sku of the workspace.
@@ -56,80 +51,87 @@ public class PrivateEndpointConnectionInner extends Resource {
private Sku sku;
/*
- * Read only system data
+ * System data
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
+ /*
+ * The resource of private end point.
+ */
+ @JsonProperty(value = "properties.privateEndpoint")
+ private PrivateEndpoint privateEndpoint;
+
+ /*
+ * A collection of information about the state of the connection between
+ * service consumer and provider.
+ */
+ @JsonProperty(value = "properties.privateLinkServiceConnectionState")
+ private PrivateLinkServiceConnectionState privateLinkServiceConnectionState;
+
+ /*
+ * The provisioning state of the private endpoint connection resource.
+ */
+ @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private PrivateEndpointConnectionProvisioningState provisioningState;
+
/**
- * Get the privateEndpoint property: The resource of private end point.
+ * Get the identity property: The identity of the resource.
*
- * @return the privateEndpoint value.
+ * @return the identity value.
*/
- public PrivateEndpoint privateEndpoint() {
- return this.privateEndpoint;
+ public Identity identity() {
+ return this.identity;
}
/**
- * Set the privateEndpoint property: The resource of private end point.
+ * Set the identity property: The identity of the resource.
*
- * @param privateEndpoint the privateEndpoint value to set.
+ * @param identity the identity value to set.
* @return the PrivateEndpointConnectionInner object itself.
*/
- public PrivateEndpointConnectionInner withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
- this.privateEndpoint = privateEndpoint;
+ public PrivateEndpointConnectionInner withIdentity(Identity identity) {
+ this.identity = identity;
return this;
}
/**
- * Get the privateLinkServiceConnectionState property: A collection of information about the state of the connection
- * between service consumer and provider.
+ * Get the location property: Specifies the location of the resource.
*
- * @return the privateLinkServiceConnectionState value.
+ * @return the location value.
*/
- public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
- return this.privateLinkServiceConnectionState;
+ public String location() {
+ return this.location;
}
/**
- * Set the privateLinkServiceConnectionState property: A collection of information about the state of the connection
- * between service consumer and provider.
+ * Set the location property: Specifies the location of the resource.
*
- * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
+ * @param location the location value to set.
* @return the PrivateEndpointConnectionInner object itself.
*/
- public PrivateEndpointConnectionInner withPrivateLinkServiceConnectionState(
- PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
- this.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
+ public PrivateEndpointConnectionInner withLocation(String location) {
+ this.location = location;
return this;
}
/**
- * Get the provisioningState property: The provisioning state of the private endpoint connection resource.
- *
- * @return the provisioningState value.
- */
- public PrivateEndpointConnectionProvisioningState provisioningState() {
- return this.provisioningState;
- }
-
- /**
- * Get the identity property: The identity of the resource.
+ * Get the tags property: Contains resource tags defined as key/value pairs.
*
- * @return the identity value.
+ * @return the tags value.
*/
- public Identity identity() {
- return this.identity;
+ public Map tags() {
+ return this.tags;
}
/**
- * Set the identity property: The identity of the resource.
+ * Set the tags property: Contains resource tags defined as key/value pairs.
*
- * @param identity the identity value to set.
+ * @param tags the tags value to set.
* @return the PrivateEndpointConnectionInner object itself.
*/
- public PrivateEndpointConnectionInner withIdentity(Identity identity) {
- this.identity = identity;
+ public PrivateEndpointConnectionInner withTags(Map tags) {
+ this.tags = tags;
return this;
}
@@ -154,7 +156,7 @@ public PrivateEndpointConnectionInner withSku(Sku sku) {
}
/**
- * Get the systemData property: Read only system data.
+ * Get the systemData property: System data.
*
* @return the systemData value.
*/
@@ -162,37 +164,75 @@ public SystemData systemData() {
return this.systemData;
}
- /** {@inheritDoc} */
- @Override
- public PrivateEndpointConnectionInner withLocation(String location) {
- super.withLocation(location);
+ /**
+ * Get the privateEndpoint property: The resource of private end point.
+ *
+ * @return the privateEndpoint value.
+ */
+ public PrivateEndpoint privateEndpoint() {
+ return this.privateEndpoint;
+ }
+
+ /**
+ * Set the privateEndpoint property: The resource of private end point.
+ *
+ * @param privateEndpoint the privateEndpoint value to set.
+ * @return the PrivateEndpointConnectionInner object itself.
+ */
+ public PrivateEndpointConnectionInner withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
+ this.privateEndpoint = privateEndpoint;
return this;
}
- /** {@inheritDoc} */
- @Override
- public PrivateEndpointConnectionInner withTags(Map tags) {
- super.withTags(tags);
+ /**
+ * Get the privateLinkServiceConnectionState property: A collection of information about the state of the connection
+ * between service consumer and provider.
+ *
+ * @return the privateLinkServiceConnectionState value.
+ */
+ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
+ return this.privateLinkServiceConnectionState;
+ }
+
+ /**
+ * Set the privateLinkServiceConnectionState property: A collection of information about the state of the connection
+ * between service consumer and provider.
+ *
+ * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
+ * @return the PrivateEndpointConnectionInner object itself.
+ */
+ public PrivateEndpointConnectionInner withPrivateLinkServiceConnectionState(
+ PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
+ this.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
return this;
}
+ /**
+ * Get the provisioningState property: The provisioning state of the private endpoint connection resource.
+ *
+ * @return the provisioningState value.
+ */
+ public PrivateEndpointConnectionProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (privateEndpoint() != null) {
- privateEndpoint().validate();
- }
- if (privateLinkServiceConnectionState() != null) {
- privateLinkServiceConnectionState().validate();
- }
if (identity() != null) {
identity().validate();
}
if (sku() != null) {
sku().validate();
}
+ if (privateEndpoint() != null) {
+ privateEndpoint().validate();
+ }
+ if (privateLinkServiceConnectionState() != null) {
+ privateLinkServiceConnectionState().validate();
+ }
}
}
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/ResourceQuotaInner.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/ResourceQuotaInner.java
index 9df00d984560..ba4a04a0620a 100644
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/ResourceQuotaInner.java
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/ResourceQuotaInner.java
@@ -41,7 +41,7 @@ public final class ResourceQuotaInner {
private ResourceName name;
/*
- * The maximum permitted quota of the resource.
+ * Limit. The maximum permitted quota of the resource.
*/
@JsonProperty(value = "limit", access = JsonProperty.Access.WRITE_ONLY)
private Long limit;
@@ -89,7 +89,7 @@ public ResourceName name() {
}
/**
- * Get the limit property: The maximum permitted quota of the resource.
+ * Get the limit property: Limit. The maximum permitted quota of the resource.
*
* @return the limit value.
*/
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/ServiceResourceInner.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/ServiceResourceInner.java
deleted file mode 100644
index 7153f64ec175..000000000000
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/ServiceResourceInner.java
+++ /dev/null
@@ -1,146 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.machinelearningservices.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.Resource;
-import com.azure.core.management.SystemData;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.machinelearningservices.models.Identity;
-import com.azure.resourcemanager.machinelearningservices.models.ServiceResponseBase;
-import com.azure.resourcemanager.machinelearningservices.models.Sku;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.Map;
-
-/** Machine Learning service object wrapped into ARM resource envelope. */
-@Fluent
-public final class ServiceResourceInner extends Resource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ServiceResourceInner.class);
-
- /*
- * Service properties
- */
- @JsonProperty(value = "properties")
- private ServiceResponseBase properties;
-
- /*
- * The identity of the resource.
- */
- @JsonProperty(value = "identity")
- private Identity identity;
-
- /*
- * The sku of the workspace.
- */
- @JsonProperty(value = "sku")
- private Sku sku;
-
- /*
- * Read only system data
- */
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
-
- /**
- * Get the properties property: Service properties.
- *
- * @return the properties value.
- */
- public ServiceResponseBase properties() {
- return this.properties;
- }
-
- /**
- * Set the properties property: Service properties.
- *
- * @param properties the properties value to set.
- * @return the ServiceResourceInner object itself.
- */
- public ServiceResourceInner withProperties(ServiceResponseBase properties) {
- this.properties = properties;
- return this;
- }
-
- /**
- * Get the identity property: The identity of the resource.
- *
- * @return the identity value.
- */
- public Identity identity() {
- return this.identity;
- }
-
- /**
- * Set the identity property: The identity of the resource.
- *
- * @param identity the identity value to set.
- * @return the ServiceResourceInner object itself.
- */
- public ServiceResourceInner withIdentity(Identity identity) {
- this.identity = identity;
- return this;
- }
-
- /**
- * Get the sku property: The sku of the workspace.
- *
- * @return the sku value.
- */
- public Sku sku() {
- return this.sku;
- }
-
- /**
- * Set the sku property: The sku of the workspace.
- *
- * @param sku the sku value to set.
- * @return the ServiceResourceInner object itself.
- */
- public ServiceResourceInner withSku(Sku sku) {
- this.sku = sku;
- return this;
- }
-
- /**
- * Get the systemData property: Read only system data.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
- /** {@inheritDoc} */
- @Override
- public ServiceResourceInner withLocation(String location) {
- super.withLocation(location);
- return this;
- }
-
- /** {@inheritDoc} */
- @Override
- public ServiceResourceInner withTags(Map tags) {
- super.withTags(tags);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (properties() != null) {
- properties().validate();
- }
- if (identity() != null) {
- identity().validate();
- }
- if (sku() != null) {
- sku().validate();
- }
- }
-}
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/VirtualMachineSizeListResultInner.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/VirtualMachineSizeListResultInner.java
index d7b7bc81d032..f30bdec89369 100644
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/VirtualMachineSizeListResultInner.java
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/VirtualMachineSizeListResultInner.java
@@ -19,26 +19,26 @@ public final class VirtualMachineSizeListResultInner {
/*
* The list of virtual machine sizes supported by AmlCompute.
*/
- @JsonProperty(value = "amlCompute")
- private List amlCompute;
+ @JsonProperty(value = "value")
+ private List value;
/**
- * Get the amlCompute property: The list of virtual machine sizes supported by AmlCompute.
+ * Get the value property: The list of virtual machine sizes supported by AmlCompute.
*
- * @return the amlCompute value.
+ * @return the value value.
*/
- public List amlCompute() {
- return this.amlCompute;
+ public List value() {
+ return this.value;
}
/**
- * Set the amlCompute property: The list of virtual machine sizes supported by AmlCompute.
+ * Set the value property: The list of virtual machine sizes supported by AmlCompute.
*
- * @param amlCompute the amlCompute value to set.
+ * @param value the value value to set.
* @return the VirtualMachineSizeListResultInner object itself.
*/
- public VirtualMachineSizeListResultInner withAmlCompute(List amlCompute) {
- this.amlCompute = amlCompute;
+ public VirtualMachineSizeListResultInner withValue(List value) {
+ this.value = value;
return this;
}
@@ -48,8 +48,8 @@ public VirtualMachineSizeListResultInner withAmlCompute(List
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (amlCompute() != null) {
- amlCompute().forEach(e -> e.validate());
+ if (value() != null) {
+ value().forEach(e -> e.validate());
}
}
}
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/WorkspaceInner.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/WorkspaceInner.java
index a8815c7b7bbd..203ae92578ed 100644
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/WorkspaceInner.java
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/WorkspaceInner.java
@@ -6,16 +6,18 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
-import com.azure.core.management.Resource;
+import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.machinelearningservices.models.EncryptionProperty;
import com.azure.resourcemanager.machinelearningservices.models.Identity;
import com.azure.resourcemanager.machinelearningservices.models.ProvisioningState;
+import com.azure.resourcemanager.machinelearningservices.models.PublicNetworkAccess;
import com.azure.resourcemanager.machinelearningservices.models.ServiceManagedResourcesSettings;
import com.azure.resourcemanager.machinelearningservices.models.SharedPrivateLinkResource;
import com.azure.resourcemanager.machinelearningservices.models.Sku;
import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;
@@ -23,9 +25,40 @@
/** An object that represents a machine learning workspace. */
@JsonFlatten
@Fluent
-public class WorkspaceInner extends Resource {
+public class WorkspaceInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(WorkspaceInner.class);
+ /*
+ * The identity of the resource.
+ */
+ @JsonProperty(value = "identity")
+ private Identity identity;
+
+ /*
+ * Specifies the location of the resource.
+ */
+ @JsonProperty(value = "location")
+ private String location;
+
+ /*
+ * Contains resource tags defined as key/value pairs.
+ */
+ @JsonProperty(value = "tags")
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map tags;
+
+ /*
+ * The sku of the workspace.
+ */
+ @JsonProperty(value = "sku")
+ private Sku sku;
+
+ /*
+ * System data
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
/*
* The immutable id associated with this workspace.
*/
@@ -124,6 +157,12 @@ public class WorkspaceInner extends Resource {
@JsonProperty(value = "properties.allowPublicAccessWhenBehindVnet")
private Boolean allowPublicAccessWhenBehindVnet;
+ /*
+ * Whether requests from Public Network are allowed.
+ */
+ @JsonProperty(value = "properties.publicNetworkAccess")
+ private PublicNetworkAccess publicNetworkAccess;
+
/*
* The list of private endpoint connections in the workspace.
*/
@@ -162,22 +201,107 @@ public class WorkspaceInner extends Resource {
private String tenantId;
/*
- * The identity of the resource.
+ * If the storage associated with the workspace has hierarchical
+ * namespace(HNS) enabled.
*/
- @JsonProperty(value = "identity")
- private Identity identity;
+ @JsonProperty(value = "properties.storageHnsEnabled", access = JsonProperty.Access.WRITE_ONLY)
+ private Boolean storageHnsEnabled;
/*
- * The sku of the workspace.
+ * The URI associated with this workspace that machine learning flow must
+ * point at to set up tracking.
*/
- @JsonProperty(value = "sku")
- private Sku sku;
+ @JsonProperty(value = "properties.mlFlowTrackingUri", access = JsonProperty.Access.WRITE_ONLY)
+ private String mlFlowTrackingUri;
- /*
- * Read only system data
+ /**
+ * Get the identity property: The identity of the resource.
+ *
+ * @return the identity value.
*/
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
+ public Identity identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: The identity of the resource.
+ *
+ * @param identity the identity value to set.
+ * @return the WorkspaceInner object itself.
+ */
+ public WorkspaceInner withIdentity(Identity identity) {
+ this.identity = identity;
+ return this;
+ }
+
+ /**
+ * Get the location property: Specifies the location of the resource.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Set the location property: Specifies the location of the resource.
+ *
+ * @param location the location value to set.
+ * @return the WorkspaceInner object itself.
+ */
+ public WorkspaceInner withLocation(String location) {
+ this.location = location;
+ return this;
+ }
+
+ /**
+ * Get the tags property: Contains resource tags defined as key/value pairs.
+ *
+ * @return the tags value.
+ */
+ public Map tags() {
+ return this.tags;
+ }
+
+ /**
+ * Set the tags property: Contains resource tags defined as key/value pairs.
+ *
+ * @param tags the tags value to set.
+ * @return the WorkspaceInner object itself.
+ */
+ public WorkspaceInner withTags(Map tags) {
+ this.tags = tags;
+ return this;
+ }
+
+ /**
+ * Get the sku property: The sku of the workspace.
+ *
+ * @return the sku value.
+ */
+ public Sku sku() {
+ return this.sku;
+ }
+
+ /**
+ * Set the sku property: The sku of the workspace.
+ *
+ * @param sku the sku value to set.
+ * @return the WorkspaceInner object itself.
+ */
+ public WorkspaceInner withSku(Sku sku) {
+ this.sku = sku;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: System data.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
/**
* Get the workspaceId property: The immutable id associated with this workspace.
@@ -451,6 +575,26 @@ public WorkspaceInner withAllowPublicAccessWhenBehindVnet(Boolean allowPublicAcc
return this;
}
+ /**
+ * Get the publicNetworkAccess property: Whether requests from Public Network are allowed.
+ *
+ * @return the publicNetworkAccess value.
+ */
+ public PublicNetworkAccess publicNetworkAccess() {
+ return this.publicNetworkAccess;
+ }
+
+ /**
+ * Set the publicNetworkAccess property: Whether requests from Public Network are allowed.
+ *
+ * @param publicNetworkAccess the publicNetworkAccess value to set.
+ * @return the WorkspaceInner object itself.
+ */
+ public WorkspaceInner withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
+ this.publicNetworkAccess = publicNetworkAccess;
+ return this;
+ }
+
/**
* Get the privateEndpointConnections property: The list of private endpoint connections in the workspace.
*
@@ -542,66 +686,23 @@ public String tenantId() {
}
/**
- * Get the identity property: The identity of the resource.
- *
- * @return the identity value.
- */
- public Identity identity() {
- return this.identity;
- }
-
- /**
- * Set the identity property: The identity of the resource.
- *
- * @param identity the identity value to set.
- * @return the WorkspaceInner object itself.
- */
- public WorkspaceInner withIdentity(Identity identity) {
- this.identity = identity;
- return this;
- }
-
- /**
- * Get the sku property: The sku of the workspace.
- *
- * @return the sku value.
- */
- public Sku sku() {
- return this.sku;
- }
-
- /**
- * Set the sku property: The sku of the workspace.
+ * Get the storageHnsEnabled property: If the storage associated with the workspace has hierarchical namespace(HNS)
+ * enabled.
*
- * @param sku the sku value to set.
- * @return the WorkspaceInner object itself.
+ * @return the storageHnsEnabled value.
*/
- public WorkspaceInner withSku(Sku sku) {
- this.sku = sku;
- return this;
+ public Boolean storageHnsEnabled() {
+ return this.storageHnsEnabled;
}
/**
- * Get the systemData property: Read only system data.
+ * Get the mlFlowTrackingUri property: The URI associated with this workspace that machine learning flow must point
+ * at to set up tracking.
*
- * @return the systemData value.
+ * @return the mlFlowTrackingUri value.
*/
- public SystemData systemData() {
- return this.systemData;
- }
-
- /** {@inheritDoc} */
- @Override
- public WorkspaceInner withLocation(String location) {
- super.withLocation(location);
- return this;
- }
-
- /** {@inheritDoc} */
- @Override
- public WorkspaceInner withTags(Map tags) {
- super.withTags(tags);
- return this;
+ public String mlFlowTrackingUri() {
+ return this.mlFlowTrackingUri;
}
/**
@@ -610,6 +711,12 @@ public WorkspaceInner withTags(Map tags) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (identity() != null) {
+ identity().validate();
+ }
+ if (sku() != null) {
+ sku().validate();
+ }
if (encryption() != null) {
encryption().validate();
}
@@ -625,11 +732,5 @@ public void validate() {
if (serviceManagedResourcesSettings() != null) {
serviceManagedResourcesSettings().validate();
}
- if (identity() != null) {
- identity().validate();
- }
- if (sku() != null) {
- sku().validate();
- }
}
}
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/implementation/AzureMachineLearningWorkspacesBuilder.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/implementation/AzureMachineLearningWorkspacesBuilder.java
index eea90921315f..1af366c8dd9f 100644
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/implementation/AzureMachineLearningWorkspacesBuilder.java
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/implementation/AzureMachineLearningWorkspacesBuilder.java
@@ -19,12 +19,12 @@
@ServiceClientBuilder(serviceClients = {AzureMachineLearningWorkspacesImpl.class})
public final class AzureMachineLearningWorkspacesBuilder {
/*
- * Azure subscription identifier.
+ * The ID of the target subscription.
*/
private String subscriptionId;
/**
- * Sets Azure subscription identifier.
+ * Sets The ID of the target subscription.
*
* @param subscriptionId the subscriptionId value.
* @return the AzureMachineLearningWorkspacesBuilder.
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/implementation/AzureMachineLearningWorkspacesImpl.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/implementation/AzureMachineLearningWorkspacesImpl.java
index 031355d5ac86..8bd0eda47955 100644
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/implementation/AzureMachineLearningWorkspacesImpl.java
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/implementation/AzureMachineLearningWorkspacesImpl.java
@@ -22,19 +22,16 @@
import com.azure.core.util.serializer.SerializerAdapter;
import com.azure.core.util.serializer.SerializerEncoding;
import com.azure.resourcemanager.machinelearningservices.fluent.AzureMachineLearningWorkspaces;
-import com.azure.resourcemanager.machinelearningservices.fluent.MachineLearningComputesClient;
-import com.azure.resourcemanager.machinelearningservices.fluent.MachineLearningServicesClient;
-import com.azure.resourcemanager.machinelearningservices.fluent.NotebooksClient;
+import com.azure.resourcemanager.machinelearningservices.fluent.ComputesClient;
import com.azure.resourcemanager.machinelearningservices.fluent.OperationsClient;
import com.azure.resourcemanager.machinelearningservices.fluent.PrivateEndpointConnectionsClient;
import com.azure.resourcemanager.machinelearningservices.fluent.PrivateLinkResourcesClient;
import com.azure.resourcemanager.machinelearningservices.fluent.QuotasClient;
-import com.azure.resourcemanager.machinelearningservices.fluent.StorageAccountsClient;
import com.azure.resourcemanager.machinelearningservices.fluent.UsagesClient;
import com.azure.resourcemanager.machinelearningservices.fluent.VirtualMachineSizesClient;
import com.azure.resourcemanager.machinelearningservices.fluent.WorkspaceConnectionsClient;
import com.azure.resourcemanager.machinelearningservices.fluent.WorkspaceFeaturesClient;
-import com.azure.resourcemanager.machinelearningservices.fluent.WorkspaceOperationsClient;
+import com.azure.resourcemanager.machinelearningservices.fluent.WorkspaceSkusClient;
import com.azure.resourcemanager.machinelearningservices.fluent.WorkspacesClient;
import java.io.IOException;
import java.lang.reflect.Type;
@@ -51,11 +48,11 @@
public final class AzureMachineLearningWorkspacesImpl implements AzureMachineLearningWorkspaces {
private final ClientLogger logger = new ClientLogger(AzureMachineLearningWorkspacesImpl.class);
- /** Azure subscription identifier. */
+ /** The ID of the target subscription. */
private final String subscriptionId;
/**
- * Gets Azure subscription identifier.
+ * Gets The ID of the target subscription.
*
* @return the subscriptionId value.
*/
@@ -147,18 +144,6 @@ public WorkspacesClient getWorkspaces() {
return this.workspaces;
}
- /** The WorkspaceFeaturesClient object to access its operations. */
- private final WorkspaceFeaturesClient workspaceFeatures;
-
- /**
- * Gets the WorkspaceFeaturesClient object to access its operations.
- *
- * @return the WorkspaceFeaturesClient object.
- */
- public WorkspaceFeaturesClient getWorkspaceFeatures() {
- return this.workspaceFeatures;
- }
-
/** The UsagesClient object to access its operations. */
private final UsagesClient usages;
@@ -195,28 +180,16 @@ public QuotasClient getQuotas() {
return this.quotas;
}
- /** The MachineLearningComputesClient object to access its operations. */
- private final MachineLearningComputesClient machineLearningComputes;
+ /** The ComputesClient object to access its operations. */
+ private final ComputesClient computes;
/**
- * Gets the MachineLearningComputesClient object to access its operations.
+ * Gets the ComputesClient object to access its operations.
*
- * @return the MachineLearningComputesClient object.
+ * @return the ComputesClient object.
*/
- public MachineLearningComputesClient getMachineLearningComputes() {
- return this.machineLearningComputes;
- }
-
- /** The WorkspaceOperationsClient object to access its operations. */
- private final WorkspaceOperationsClient workspaceOperations;
-
- /**
- * Gets the WorkspaceOperationsClient object to access its operations.
- *
- * @return the WorkspaceOperationsClient object.
- */
- public WorkspaceOperationsClient getWorkspaceOperations() {
- return this.workspaceOperations;
+ public ComputesClient getComputes() {
+ return this.computes;
}
/** The PrivateEndpointConnectionsClient object to access its operations. */
@@ -243,52 +216,40 @@ public PrivateLinkResourcesClient getPrivateLinkResources() {
return this.privateLinkResources;
}
- /** The MachineLearningServicesClient object to access its operations. */
- private final MachineLearningServicesClient machineLearningServices;
-
- /**
- * Gets the MachineLearningServicesClient object to access its operations.
- *
- * @return the MachineLearningServicesClient object.
- */
- public MachineLearningServicesClient getMachineLearningServices() {
- return this.machineLearningServices;
- }
-
- /** The NotebooksClient object to access its operations. */
- private final NotebooksClient notebooks;
+ /** The WorkspaceConnectionsClient object to access its operations. */
+ private final WorkspaceConnectionsClient workspaceConnections;
/**
- * Gets the NotebooksClient object to access its operations.
+ * Gets the WorkspaceConnectionsClient object to access its operations.
*
- * @return the NotebooksClient object.
+ * @return the WorkspaceConnectionsClient object.
*/
- public NotebooksClient getNotebooks() {
- return this.notebooks;
+ public WorkspaceConnectionsClient getWorkspaceConnections() {
+ return this.workspaceConnections;
}
- /** The StorageAccountsClient object to access its operations. */
- private final StorageAccountsClient storageAccounts;
+ /** The WorkspaceFeaturesClient object to access its operations. */
+ private final WorkspaceFeaturesClient workspaceFeatures;
/**
- * Gets the StorageAccountsClient object to access its operations.
+ * Gets the WorkspaceFeaturesClient object to access its operations.
*
- * @return the StorageAccountsClient object.
+ * @return the WorkspaceFeaturesClient object.
*/
- public StorageAccountsClient getStorageAccounts() {
- return this.storageAccounts;
+ public WorkspaceFeaturesClient getWorkspaceFeatures() {
+ return this.workspaceFeatures;
}
- /** The WorkspaceConnectionsClient object to access its operations. */
- private final WorkspaceConnectionsClient workspaceConnections;
+ /** The WorkspaceSkusClient object to access its operations. */
+ private final WorkspaceSkusClient workspaceSkus;
/**
- * Gets the WorkspaceConnectionsClient object to access its operations.
+ * Gets the WorkspaceSkusClient object to access its operations.
*
- * @return the WorkspaceConnectionsClient object.
+ * @return the WorkspaceSkusClient object.
*/
- public WorkspaceConnectionsClient getWorkspaceConnections() {
- return this.workspaceConnections;
+ public WorkspaceSkusClient getWorkspaceSkus() {
+ return this.workspaceSkus;
}
/**
@@ -298,7 +259,7 @@ public WorkspaceConnectionsClient getWorkspaceConnections() {
* @param serializerAdapter The serializer to serialize an object into a string.
* @param defaultPollInterval The default poll interval for long-running operation.
* @param environment The Azure environment.
- * @param subscriptionId Azure subscription identifier.
+ * @param subscriptionId The ID of the target subscription.
* @param endpoint server parameter.
*/
AzureMachineLearningWorkspacesImpl(
@@ -313,21 +274,18 @@ public WorkspaceConnectionsClient getWorkspaceConnections() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2021-04-01";
+ this.apiVersion = "2021-07-01";
this.operations = new OperationsClientImpl(this);
this.workspaces = new WorkspacesClientImpl(this);
- this.workspaceFeatures = new WorkspaceFeaturesClientImpl(this);
this.usages = new UsagesClientImpl(this);
this.virtualMachineSizes = new VirtualMachineSizesClientImpl(this);
this.quotas = new QuotasClientImpl(this);
- this.machineLearningComputes = new MachineLearningComputesClientImpl(this);
- this.workspaceOperations = new WorkspaceOperationsClientImpl(this);
+ this.computes = new ComputesClientImpl(this);
this.privateEndpointConnections = new PrivateEndpointConnectionsClientImpl(this);
this.privateLinkResources = new PrivateLinkResourcesClientImpl(this);
- this.machineLearningServices = new MachineLearningServicesClientImpl(this);
- this.notebooks = new NotebooksClientImpl(this);
- this.storageAccounts = new StorageAccountsClientImpl(this);
this.workspaceConnections = new WorkspaceConnectionsClientImpl(this);
+ this.workspaceFeatures = new WorkspaceFeaturesClientImpl(this);
+ this.workspaceSkus = new WorkspaceSkusClientImpl(this);
}
/**
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/implementation/ComputeResourceImpl.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/implementation/ComputeResourceImpl.java
index 340f21513bf7..7d0a295ca820 100644
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/implementation/ComputeResourceImpl.java
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/implementation/ComputeResourceImpl.java
@@ -16,7 +16,7 @@
import com.azure.resourcemanager.machinelearningservices.models.ComputeResource;
import com.azure.resourcemanager.machinelearningservices.models.ComputeSecrets;
import com.azure.resourcemanager.machinelearningservices.models.Identity;
-import com.azure.resourcemanager.machinelearningservices.models.ScaleSettings;
+import com.azure.resourcemanager.machinelearningservices.models.ScaleSettingsInformation;
import com.azure.resourcemanager.machinelearningservices.models.Sku;
import java.util.Collections;
import java.util.Map;
@@ -38,6 +38,10 @@ public String type() {
return this.innerModel().type();
}
+ public Identity identity() {
+ return this.innerModel().identity();
+ }
+
public String location() {
return this.innerModel().location();
}
@@ -51,14 +55,6 @@ public Map tags() {
}
}
- public Compute properties() {
- return this.innerModel().properties();
- }
-
- public Identity identity() {
- return this.innerModel().identity();
- }
-
public Sku sku() {
return this.innerModel().sku();
}
@@ -67,6 +63,10 @@ public SystemData systemData() {
return this.innerModel().systemData();
}
+ public Compute properties() {
+ return this.innerModel().properties();
+ }
+
public Region region() {
return Region.fromName(this.regionName());
}
@@ -101,7 +101,7 @@ public ComputeResource create() {
this.innerObject =
serviceManager
.serviceClient()
- .getMachineLearningComputes()
+ .getComputes()
.createOrUpdate(resourceGroupName, workspaceName, computeName, this.innerModel(), Context.NONE);
return this;
}
@@ -110,7 +110,7 @@ public ComputeResource create(Context context) {
this.innerObject =
serviceManager
.serviceClient()
- .getMachineLearningComputes()
+ .getComputes()
.createOrUpdate(resourceGroupName, workspaceName, computeName, this.innerModel(), context);
return this;
}
@@ -131,7 +131,7 @@ public ComputeResource apply() {
this.innerObject =
serviceManager
.serviceClient()
- .getMachineLearningComputes()
+ .getComputes()
.update(resourceGroupName, workspaceName, computeName, updateParameters, Context.NONE);
return this;
}
@@ -140,7 +140,7 @@ public ComputeResource apply(Context context) {
this.innerObject =
serviceManager
.serviceClient()
- .getMachineLearningComputes()
+ .getComputes()
.update(resourceGroupName, workspaceName, computeName, updateParameters, context);
return this;
}
@@ -159,7 +159,7 @@ public ComputeResource refresh() {
this.innerObject =
serviceManager
.serviceClient()
- .getMachineLearningComputes()
+ .getComputes()
.getWithResponse(resourceGroupName, workspaceName, computeName, Context.NONE)
.getValue();
return this;
@@ -169,56 +169,50 @@ public ComputeResource refresh(Context context) {
this.innerObject =
serviceManager
.serviceClient()
- .getMachineLearningComputes()
+ .getComputes()
.getWithResponse(resourceGroupName, workspaceName, computeName, context)
.getValue();
return this;
}
public PagedIterable listNodes() {
- return serviceManager.machineLearningComputes().listNodes(resourceGroupName, workspaceName, computeName);
+ return serviceManager.computes().listNodes(resourceGroupName, workspaceName, computeName);
}
public PagedIterable listNodes(Context context) {
- return serviceManager
- .machineLearningComputes()
- .listNodes(resourceGroupName, workspaceName, computeName, context);
+ return serviceManager.computes().listNodes(resourceGroupName, workspaceName, computeName, context);
}
public ComputeSecrets listKeys() {
- return serviceManager.machineLearningComputes().listKeys(resourceGroupName, workspaceName, computeName);
+ return serviceManager.computes().listKeys(resourceGroupName, workspaceName, computeName);
}
public Response listKeysWithResponse(Context context) {
- return serviceManager
- .machineLearningComputes()
- .listKeysWithResponse(resourceGroupName, workspaceName, computeName, context);
+ return serviceManager.computes().listKeysWithResponse(resourceGroupName, workspaceName, computeName, context);
}
public void start() {
- serviceManager.machineLearningComputes().start(resourceGroupName, workspaceName, computeName);
+ serviceManager.computes().start(resourceGroupName, workspaceName, computeName);
}
public void start(Context context) {
- serviceManager.machineLearningComputes().start(resourceGroupName, workspaceName, computeName, context);
+ serviceManager.computes().start(resourceGroupName, workspaceName, computeName, context);
}
public void stop() {
- serviceManager.machineLearningComputes().stop(resourceGroupName, workspaceName, computeName);
+ serviceManager.computes().stop(resourceGroupName, workspaceName, computeName);
}
public void stop(Context context) {
- serviceManager.machineLearningComputes().stop(resourceGroupName, workspaceName, computeName, context);
+ serviceManager.computes().stop(resourceGroupName, workspaceName, computeName, context);
}
public void restart() {
- serviceManager.machineLearningComputes().restart(resourceGroupName, workspaceName, computeName);
+ serviceManager.computes().restart(resourceGroupName, workspaceName, computeName);
}
- public Response restartWithResponse(Context context) {
- return serviceManager
- .machineLearningComputes()
- .restartWithResponse(resourceGroupName, workspaceName, computeName, context);
+ public void restart(Context context) {
+ serviceManager.computes().restart(resourceGroupName, workspaceName, computeName, context);
}
public ComputeResourceImpl withRegion(Region location) {
@@ -236,11 +230,6 @@ public ComputeResourceImpl withTags(Map tags) {
return this;
}
- public ComputeResourceImpl withProperties(Compute properties) {
- this.innerModel().withProperties(properties);
- return this;
- }
-
public ComputeResourceImpl withIdentity(Identity identity) {
this.innerModel().withIdentity(identity);
return this;
@@ -251,8 +240,13 @@ public ComputeResourceImpl withSku(Sku sku) {
return this;
}
- public ComputeResourceImpl withScaleSettings(ScaleSettings scaleSettings) {
- this.updateParameters.withScaleSettings(scaleSettings);
+ public ComputeResourceImpl withProperties(Compute properties) {
+ this.innerModel().withProperties(properties);
+ return this;
+ }
+
+ public ComputeResourceImpl withProperties(ScaleSettingsInformation properties) {
+ this.updateParameters.withProperties(properties);
return this;
}
}
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/implementation/MachineLearningComputesClientImpl.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/implementation/ComputesClientImpl.java
similarity index 89%
rename from sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/implementation/MachineLearningComputesClientImpl.java
rename to sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/implementation/ComputesClientImpl.java
index 486c37c45ef2..c1afc86473e9 100644
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/implementation/MachineLearningComputesClientImpl.java
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/implementation/ComputesClientImpl.java
@@ -34,7 +34,7 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.machinelearningservices.fluent.MachineLearningComputesClient;
+import com.azure.resourcemanager.machinelearningservices.fluent.ComputesClient;
import com.azure.resourcemanager.machinelearningservices.fluent.models.ComputeResourceInner;
import com.azure.resourcemanager.machinelearningservices.fluent.models.ComputeSecretsInner;
import com.azure.resourcemanager.machinelearningservices.models.AmlComputeNodeInformation;
@@ -46,42 +46,40 @@
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
-/** An instance of this class provides access to all the operations defined in MachineLearningComputesClient. */
-public final class MachineLearningComputesClientImpl implements MachineLearningComputesClient {
- private final ClientLogger logger = new ClientLogger(MachineLearningComputesClientImpl.class);
+/** An instance of this class provides access to all the operations defined in ComputesClient. */
+public final class ComputesClientImpl implements ComputesClient {
+ private final ClientLogger logger = new ClientLogger(ComputesClientImpl.class);
/** The proxy service used to perform REST calls. */
- private final MachineLearningComputesService service;
+ private final ComputesService service;
/** The service client containing this operation class. */
private final AzureMachineLearningWorkspacesImpl client;
/**
- * Initializes an instance of MachineLearningComputesClientImpl.
+ * Initializes an instance of ComputesClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- MachineLearningComputesClientImpl(AzureMachineLearningWorkspacesImpl client) {
- this.service =
- RestProxy
- .create(MachineLearningComputesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ ComputesClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ this.service = RestProxy.create(ComputesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesMachineLearningComputes to be used by
- * the proxy service to perform REST calls.
+ * The interface defining all the services for AzureMachineLearningWorkspacesComputes to be used by the proxy
+ * service to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "AzureMachineLearning")
- private interface MachineLearningComputesService {
+ private interface ComputesService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
+ "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByWorkspace(
+ Mono> list(
@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@@ -226,9 +224,9 @@ Mono>> stop(
@Post(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
+ "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/restart")
- @ExpectedResponses({200})
+ @ExpectedResponses({202})
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> restart(
+ Mono>> restart(
@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@@ -242,7 +240,7 @@ Mono> restart(
@Get("{nextLink}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByWorkspaceNext(
+ Mono> listNext(
@PathParam(value = "nextLink", encoded = true) String nextLink,
@HostParam("$host") String endpoint,
@HeaderParam("Accept") String accept,
@@ -262,7 +260,7 @@ Mono> listNodesNext(
/**
* Gets computes in specified workspace.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param skip Continuation token for pagination.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -271,7 +269,7 @@ Mono> listNodesNext(
* @return computes in specified workspace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByWorkspaceSinglePageAsync(
+ private Mono> listSinglePageAsync(
String resourceGroupName, String workspaceName, String skip) {
if (this.client.getEndpoint() == null) {
return Mono
@@ -297,7 +295,7 @@ private Mono> listByWorkspaceSinglePageAsync
.withContext(
context ->
service
- .listByWorkspace(
+ .list(
this.client.getEndpoint(),
this.client.getSubscriptionId(),
resourceGroupName,
@@ -321,7 +319,7 @@ private Mono> listByWorkspaceSinglePageAsync
/**
* Gets computes in specified workspace.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param skip Continuation token for pagination.
* @param context The context to associate with this operation.
@@ -331,7 +329,7 @@ private Mono> listByWorkspaceSinglePageAsync
* @return computes in specified workspace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByWorkspaceSinglePageAsync(
+ private Mono> listSinglePageAsync(
String resourceGroupName, String workspaceName, String skip, Context context) {
if (this.client.getEndpoint() == null) {
return Mono
@@ -355,7 +353,7 @@ private Mono> listByWorkspaceSinglePageAsync
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
- .listByWorkspace(
+ .list(
this.client.getEndpoint(),
this.client.getSubscriptionId(),
resourceGroupName,
@@ -378,7 +376,7 @@ private Mono> listByWorkspaceSinglePageAsync
/**
* Gets computes in specified workspace.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param skip Continuation token for pagination.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -387,17 +385,16 @@ private Mono> listByWorkspaceSinglePageAsync
* @return computes in specified workspace.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByWorkspaceAsync(
- String resourceGroupName, String workspaceName, String skip) {
+ private PagedFlux listAsync(String resourceGroupName, String workspaceName, String skip) {
return new PagedFlux<>(
- () -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName, skip),
- nextLink -> listByWorkspaceNextSinglePageAsync(nextLink));
+ () -> listSinglePageAsync(resourceGroupName, workspaceName, skip),
+ nextLink -> listNextSinglePageAsync(nextLink));
}
/**
* Gets computes in specified workspace.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -405,17 +402,17 @@ private PagedFlux listByWorkspaceAsync(
* @return computes in specified workspace.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByWorkspaceAsync(String resourceGroupName, String workspaceName) {
+ private PagedFlux listAsync(String resourceGroupName, String workspaceName) {
final String skip = null;
return new PagedFlux<>(
- () -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName, skip),
- nextLink -> listByWorkspaceNextSinglePageAsync(nextLink));
+ () -> listSinglePageAsync(resourceGroupName, workspaceName, skip),
+ nextLink -> listNextSinglePageAsync(nextLink));
}
/**
* Gets computes in specified workspace.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param skip Continuation token for pagination.
* @param context The context to associate with this operation.
@@ -425,17 +422,17 @@ private PagedFlux listByWorkspaceAsync(String resourceGrou
* @return computes in specified workspace.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByWorkspaceAsync(
+ private PagedFlux listAsync(
String resourceGroupName, String workspaceName, String skip, Context context) {
return new PagedFlux<>(
- () -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName, skip, context),
- nextLink -> listByWorkspaceNextSinglePageAsync(nextLink, context));
+ () -> listSinglePageAsync(resourceGroupName, workspaceName, skip, context),
+ nextLink -> listNextSinglePageAsync(nextLink, context));
}
/**
* Gets computes in specified workspace.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -443,15 +440,15 @@ private PagedFlux listByWorkspaceAsync(
* @return computes in specified workspace.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) {
+ public PagedIterable list(String resourceGroupName, String workspaceName) {
final String skip = null;
- return new PagedIterable<>(listByWorkspaceAsync(resourceGroupName, workspaceName, skip));
+ return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, skip));
}
/**
* Gets computes in specified workspace.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param skip Continuation token for pagination.
* @param context The context to associate with this operation.
@@ -461,16 +458,16 @@ public PagedIterable listByWorkspace(String resourceGroupN
* @return computes in specified workspace.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByWorkspace(
+ public PagedIterable list(
String resourceGroupName, String workspaceName, String skip, Context context) {
- return new PagedIterable<>(listByWorkspaceAsync(resourceGroupName, workspaceName, skip, context));
+ return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, skip, context));
}
/**
* Gets compute definition by its name. Any secrets (storage keys, service credentials, etc) are not returned - use
* 'keys' nested resource to get them.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -524,7 +521,7 @@ private Mono> getWithResponseAsync(
* Gets compute definition by its name. Any secrets (storage keys, service credentials, etc) are not returned - use
* 'keys' nested resource to get them.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param context The context to associate with this operation.
@@ -576,7 +573,7 @@ private Mono> getWithResponseAsync(
* Gets compute definition by its name. Any secrets (storage keys, service credentials, etc) are not returned - use
* 'keys' nested resource to get them.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -601,7 +598,7 @@ private Mono getAsync(String resourceGroupName, String wor
* Gets compute definition by its name. Any secrets (storage keys, service credentials, etc) are not returned - use
* 'keys' nested resource to get them.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -618,7 +615,7 @@ public ComputeResourceInner get(String resourceGroupName, String workspaceName,
* Gets compute definition by its name. Any secrets (storage keys, service credentials, etc) are not returned - use
* 'keys' nested resource to get them.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param context The context to associate with this operation.
@@ -637,7 +634,7 @@ public Response getWithResponse(
* Creates or updates compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation.
* If your intent is to create a new compute, do a GET first to verify that it does not exist yet.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param parameters Payload with Machine Learning compute definition.
@@ -698,7 +695,7 @@ private Mono>> createOrUpdateWithResponseAsync(
* Creates or updates compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation.
* If your intent is to create a new compute, do a GET first to verify that it does not exist yet.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param parameters Payload with Machine Learning compute definition.
@@ -761,7 +758,7 @@ private Mono>> createOrUpdateWithResponseAsync(
* Creates or updates compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation.
* If your intent is to create a new compute, do a GET first to verify that it does not exist yet.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param parameters Payload with Machine Learning compute definition.
@@ -789,7 +786,7 @@ private PollerFlux, ComputeResourceInner> begin
* Creates or updates compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation.
* If your intent is to create a new compute, do a GET first to verify that it does not exist yet.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param parameters Payload with Machine Learning compute definition.
@@ -819,7 +816,7 @@ private PollerFlux, ComputeResourceInner> begin
* Creates or updates compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation.
* If your intent is to create a new compute, do a GET first to verify that it does not exist yet.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param parameters Payload with Machine Learning compute definition.
@@ -838,7 +835,7 @@ public SyncPoller, ComputeResourceInner> beginC
* Creates or updates compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation.
* If your intent is to create a new compute, do a GET first to verify that it does not exist yet.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param parameters Payload with Machine Learning compute definition.
@@ -863,7 +860,7 @@ public SyncPoller, ComputeResourceInner> beginC
* Creates or updates compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation.
* If your intent is to create a new compute, do a GET first to verify that it does not exist yet.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param parameters Payload with Machine Learning compute definition.
@@ -884,7 +881,7 @@ private Mono createOrUpdateAsync(
* Creates or updates compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation.
* If your intent is to create a new compute, do a GET first to verify that it does not exist yet.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param parameters Payload with Machine Learning compute definition.
@@ -910,7 +907,7 @@ private Mono createOrUpdateAsync(
* Creates or updates compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation.
* If your intent is to create a new compute, do a GET first to verify that it does not exist yet.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param parameters Payload with Machine Learning compute definition.
@@ -929,7 +926,7 @@ public ComputeResourceInner createOrUpdate(
* Creates or updates compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation.
* If your intent is to create a new compute, do a GET first to verify that it does not exist yet.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param parameters Payload with Machine Learning compute definition.
@@ -953,7 +950,7 @@ public ComputeResourceInner createOrUpdate(
* Updates properties of a compute. This call will overwrite a compute if it exists. This is a nonrecoverable
* operation.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param parameters Additional parameters for cluster update.
@@ -1014,7 +1011,7 @@ private Mono>> updateWithResponseAsync(
* Updates properties of a compute. This call will overwrite a compute if it exists. This is a nonrecoverable
* operation.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param parameters Additional parameters for cluster update.
@@ -1077,7 +1074,7 @@ private Mono>> updateWithResponseAsync(
* Updates properties of a compute. This call will overwrite a compute if it exists. This is a nonrecoverable
* operation.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param parameters Additional parameters for cluster update.
@@ -1105,7 +1102,7 @@ private PollerFlux, ComputeResourceInner> begin
* Updates properties of a compute. This call will overwrite a compute if it exists. This is a nonrecoverable
* operation.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param parameters Additional parameters for cluster update.
@@ -1135,7 +1132,7 @@ private PollerFlux, ComputeResourceInner> begin
* Updates properties of a compute. This call will overwrite a compute if it exists. This is a nonrecoverable
* operation.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param parameters Additional parameters for cluster update.
@@ -1154,7 +1151,7 @@ public SyncPoller, ComputeResourceInner> beginU
* Updates properties of a compute. This call will overwrite a compute if it exists. This is a nonrecoverable
* operation.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param parameters Additional parameters for cluster update.
@@ -1178,7 +1175,7 @@ public SyncPoller, ComputeResourceInner> beginU
* Updates properties of a compute. This call will overwrite a compute if it exists. This is a nonrecoverable
* operation.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param parameters Additional parameters for cluster update.
@@ -1199,7 +1196,7 @@ private Mono updateAsync(
* Updates properties of a compute. This call will overwrite a compute if it exists. This is a nonrecoverable
* operation.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param parameters Additional parameters for cluster update.
@@ -1225,7 +1222,7 @@ private Mono updateAsync(
* Updates properties of a compute. This call will overwrite a compute if it exists. This is a nonrecoverable
* operation.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param parameters Additional parameters for cluster update.
@@ -1244,7 +1241,7 @@ public ComputeResourceInner update(
* Updates properties of a compute. This call will overwrite a compute if it exists. This is a nonrecoverable
* operation.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param parameters Additional parameters for cluster update.
@@ -1267,7 +1264,7 @@ public ComputeResourceInner update(
/**
* Deletes specified Machine Learning compute.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param underlyingResourceAction Delete the underlying compute if 'Delete', or detach the underlying compute from
@@ -1331,7 +1328,7 @@ private Mono>> deleteWithResponseAsync(
/**
* Deletes specified Machine Learning compute.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param underlyingResourceAction Delete the underlying compute if 'Delete', or detach the underlying compute from
@@ -1394,7 +1391,7 @@ private Mono>> deleteWithResponseAsync(
/**
* Deletes specified Machine Learning compute.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param underlyingResourceAction Delete the underlying compute if 'Delete', or detach the underlying compute from
@@ -1420,7 +1417,7 @@ private PollerFlux, Void> beginDeleteAsync(
/**
* Deletes specified Machine Learning compute.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param underlyingResourceAction Delete the underlying compute if 'Delete', or detach the underlying compute from
@@ -1449,7 +1446,7 @@ private PollerFlux, Void> beginDeleteAsync(
/**
* Deletes specified Machine Learning compute.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param underlyingResourceAction Delete the underlying compute if 'Delete', or detach the underlying compute from
@@ -1472,7 +1469,7 @@ public SyncPoller, Void> beginDelete(
/**
* Deletes specified Machine Learning compute.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param underlyingResourceAction Delete the underlying compute if 'Delete', or detach the underlying compute from
@@ -1497,7 +1494,7 @@ public SyncPoller, Void> beginDelete(
/**
* Deletes specified Machine Learning compute.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param underlyingResourceAction Delete the underlying compute if 'Delete', or detach the underlying compute from
@@ -1521,7 +1518,7 @@ private Mono deleteAsync(
/**
* Deletes specified Machine Learning compute.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param underlyingResourceAction Delete the underlying compute if 'Delete', or detach the underlying compute from
@@ -1547,7 +1544,7 @@ private Mono deleteAsync(
/**
* Deletes specified Machine Learning compute.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param underlyingResourceAction Delete the underlying compute if 'Delete', or detach the underlying compute from
@@ -1568,7 +1565,7 @@ public void delete(
/**
* Deletes specified Machine Learning compute.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param underlyingResourceAction Delete the underlying compute if 'Delete', or detach the underlying compute from
@@ -1591,7 +1588,7 @@ public void delete(
/**
* Get the details (e.g IP address, port etc) of all the compute nodes in the compute.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -1653,7 +1650,7 @@ private Mono> listNodesSinglePageAsync(
/**
* Get the details (e.g IP address, port etc) of all the compute nodes in the compute.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param context The context to associate with this operation.
@@ -1713,7 +1710,7 @@ private Mono> listNodesSinglePageAsync(
/**
* Get the details (e.g IP address, port etc) of all the compute nodes in the compute.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -1732,7 +1729,7 @@ private PagedFlux listNodesAsync(
/**
* Get the details (e.g IP address, port etc) of all the compute nodes in the compute.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param context The context to associate with this operation.
@@ -1752,7 +1749,7 @@ private PagedFlux listNodesAsync(
/**
* Get the details (e.g IP address, port etc) of all the compute nodes in the compute.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -1769,7 +1766,7 @@ public PagedIterable listNodes(
/**
* Get the details (e.g IP address, port etc) of all the compute nodes in the compute.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param context The context to associate with this operation.
@@ -1787,7 +1784,7 @@ public PagedIterable listNodes(
/**
* Gets secrets related to Machine Learning compute (storage keys, service credentials, etc).
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -1840,7 +1837,7 @@ private Mono> listKeysWithResponseAsync(
/**
* Gets secrets related to Machine Learning compute (storage keys, service credentials, etc).
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param context The context to associate with this operation.
@@ -1891,7 +1888,7 @@ private Mono> listKeysWithResponseAsync(
/**
* Gets secrets related to Machine Learning compute (storage keys, service credentials, etc).
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -1916,7 +1913,7 @@ private Mono listKeysAsync(
/**
* Gets secrets related to Machine Learning compute (storage keys, service credentials, etc).
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -1932,7 +1929,7 @@ public ComputeSecretsInner listKeys(String resourceGroupName, String workspaceNa
/**
* Gets secrets related to Machine Learning compute (storage keys, service credentials, etc).
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param context The context to associate with this operation.
@@ -1950,7 +1947,7 @@ public Response listKeysWithResponse(
/**
* Posts a start action to a compute instance.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -2003,7 +2000,7 @@ private Mono>> startWithResponseAsync(
/**
* Posts a start action to a compute instance.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param context The context to associate with this operation.
@@ -2054,7 +2051,7 @@ private Mono>> startWithResponseAsync(
/**
* Posts a start action to a compute instance.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -2074,7 +2071,7 @@ private PollerFlux, Void> beginStartAsync(
/**
* Posts a start action to a compute instance.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param context The context to associate with this operation.
@@ -2097,7 +2094,7 @@ private PollerFlux, Void> beginStartAsync(
/**
* Posts a start action to a compute instance.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -2114,7 +2111,7 @@ public SyncPoller, Void> beginStart(
/**
* Posts a start action to a compute instance.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param context The context to associate with this operation.
@@ -2132,7 +2129,7 @@ public SyncPoller, Void> beginStart(
/**
* Posts a start action to a compute instance.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -2150,7 +2147,7 @@ private Mono startAsync(String resourceGroupName, String workspaceName, St
/**
* Posts a start action to a compute instance.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param context The context to associate with this operation.
@@ -2169,7 +2166,7 @@ private Mono startAsync(String resourceGroupName, String workspaceName, St
/**
* Posts a start action to a compute instance.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -2184,7 +2181,7 @@ public void start(String resourceGroupName, String workspaceName, String compute
/**
* Posts a start action to a compute instance.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param context The context to associate with this operation.
@@ -2200,7 +2197,7 @@ public void start(String resourceGroupName, String workspaceName, String compute
/**
* Posts a stop action to a compute instance.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -2253,7 +2250,7 @@ private Mono>> stopWithResponseAsync(
/**
* Posts a stop action to a compute instance.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param context The context to associate with this operation.
@@ -2304,7 +2301,7 @@ private Mono>> stopWithResponseAsync(
/**
* Posts a stop action to a compute instance.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -2324,7 +2321,7 @@ private PollerFlux, Void> beginStopAsync(
/**
* Posts a stop action to a compute instance.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param context The context to associate with this operation.
@@ -2347,7 +2344,7 @@ private PollerFlux, Void> beginStopAsync(
/**
* Posts a stop action to a compute instance.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -2364,7 +2361,7 @@ public SyncPoller, Void> beginStop(
/**
* Posts a stop action to a compute instance.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param context The context to associate with this operation.
@@ -2382,7 +2379,7 @@ public SyncPoller, Void> beginStop(
/**
* Posts a stop action to a compute instance.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -2400,7 +2397,7 @@ private Mono stopAsync(String resourceGroupName, String workspaceName, Str
/**
* Posts a stop action to a compute instance.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param context The context to associate with this operation.
@@ -2419,7 +2416,7 @@ private Mono stopAsync(String resourceGroupName, String workspaceName, Str
/**
* Posts a stop action to a compute instance.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -2434,7 +2431,7 @@ public void stop(String resourceGroupName, String workspaceName, String computeN
/**
* Posts a stop action to a compute instance.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param context The context to associate with this operation.
@@ -2450,7 +2447,7 @@ public void stop(String resourceGroupName, String workspaceName, String computeN
/**
* Posts a restart action to a compute instance.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -2459,7 +2456,7 @@ public void stop(String resourceGroupName, String workspaceName, String computeN
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> restartWithResponseAsync(
+ private Mono>> restartWithResponseAsync(
String resourceGroupName, String workspaceName, String computeName) {
if (this.client.getEndpoint() == null) {
return Mono
@@ -2503,7 +2500,7 @@ private Mono> restartWithResponseAsync(
/**
* Posts a restart action to a compute instance.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param context The context to associate with this operation.
@@ -2513,7 +2510,7 @@ private Mono> restartWithResponseAsync(
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> restartWithResponseAsync(
+ private Mono>> restartWithResponseAsync(
String resourceGroupName, String workspaceName, String computeName, Context context) {
if (this.client.getEndpoint() == null) {
return Mono
@@ -2554,7 +2551,85 @@ private Mono> restartWithResponseAsync(
/**
* Posts a restart action to a compute instance.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param computeName Name of the Azure Machine Learning compute.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PollerFlux, Void> beginRestartAsync(
+ String resourceGroupName, String workspaceName, String computeName) {
+ Mono>> mono = restartWithResponseAsync(resourceGroupName, workspaceName, computeName);
+ return this
+ .client
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE);
+ }
+
+ /**
+ * Posts a restart action to a compute instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param computeName Name of the Azure Machine Learning compute.
+ * @param 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PollerFlux, Void> beginRestartAsync(
+ String resourceGroupName, String workspaceName, String computeName, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ restartWithResponseAsync(resourceGroupName, workspaceName, computeName, context);
+ return this
+ .client
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);
+ }
+
+ /**
+ * Posts a restart action to a compute instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param computeName Name of the Azure Machine Learning compute.
+ * @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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, Void> beginRestart(
+ String resourceGroupName, String workspaceName, String computeName) {
+ return beginRestartAsync(resourceGroupName, workspaceName, computeName).getSyncPoller();
+ }
+
+ /**
+ * Posts a restart action to a compute instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param computeName Name of the Azure Machine Learning compute.
+ * @param 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, Void> beginRestart(
+ String resourceGroupName, String workspaceName, String computeName, Context context) {
+ return beginRestartAsync(resourceGroupName, workspaceName, computeName, context).getSyncPoller();
+ }
+
+ /**
+ * Posts a restart action to a compute instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -2564,14 +2639,35 @@ private Mono> restartWithResponseAsync(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono restartAsync(String resourceGroupName, String workspaceName, String computeName) {
- return restartWithResponseAsync(resourceGroupName, workspaceName, computeName)
- .flatMap((Response res) -> Mono.empty());
+ return beginRestartAsync(resourceGroupName, workspaceName, computeName)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Posts a restart action to a compute instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param computeName Name of the Azure Machine Learning compute.
+ * @param 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono restartAsync(
+ String resourceGroupName, String workspaceName, String computeName, Context context) {
+ return beginRestartAsync(resourceGroupName, workspaceName, computeName, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
}
/**
* Posts a restart action to a compute instance.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -2586,19 +2682,17 @@ public void restart(String resourceGroupName, String workspaceName, String compu
/**
* Posts a restart action to a compute instance.
*
- * @param resourceGroupName Name of the resource group in which workspace is located.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param computeName Name of the Azure Machine Learning compute.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 Response restartWithResponse(
- String resourceGroupName, String workspaceName, String computeName, Context context) {
- return restartWithResponseAsync(resourceGroupName, workspaceName, computeName, context).block();
+ public void restart(String resourceGroupName, String workspaceName, String computeName, Context context) {
+ restartAsync(resourceGroupName, workspaceName, computeName, context).block();
}
/**
@@ -2611,7 +2705,7 @@ public Response restartWithResponse(
* @return paginated list of Machine Learning compute objects wrapped in ARM resource envelope.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByWorkspaceNextSinglePageAsync(String nextLink) {
+ private Mono> listNextSinglePageAsync(String nextLink) {
if (nextLink == null) {
return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
}
@@ -2623,7 +2717,7 @@ private Mono> listByWorkspaceNextSinglePageA
}
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.listByWorkspaceNext(nextLink, this.client.getEndpoint(), accept, context))
+ .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
.>map(
res ->
new PagedResponseBase<>(
@@ -2647,8 +2741,7 @@ private Mono> listByWorkspaceNextSinglePageA
* @return paginated list of Machine Learning compute objects wrapped in ARM resource envelope.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByWorkspaceNextSinglePageAsync(
- String nextLink, Context context) {
+ private Mono> listNextSinglePageAsync(String nextLink, Context context) {
if (nextLink == null) {
return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
}
@@ -2661,7 +2754,7 @@ private Mono> listByWorkspaceNextSinglePageA
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
- .listByWorkspaceNext(nextLink, this.client.getEndpoint(), accept, context)
+ .listNext(nextLink, this.client.getEndpoint(), accept, context)
.map(
res ->
new PagedResponseBase<>(
@@ -2680,7 +2773,7 @@ private Mono> listByWorkspaceNextSinglePageA
* @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 compute node information related to a AmlCompute.
+ * @return result of AmlCompute Nodes.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNodesNextSinglePageAsync(String nextLink) {
@@ -2716,7 +2809,7 @@ private Mono> listNodesNextSinglePageAs
* @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 compute node information related to a AmlCompute.
+ * @return result of AmlCompute Nodes.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNodesNextSinglePageAsync(
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/implementation/MachineLearningComputesImpl.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/implementation/ComputesImpl.java
similarity index 89%
rename from sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/implementation/MachineLearningComputesImpl.java
rename to sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/implementation/ComputesImpl.java
index 696a32929219..9602489ece07 100644
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/implementation/MachineLearningComputesImpl.java
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/implementation/ComputesImpl.java
@@ -9,40 +9,39 @@
import com.azure.core.http.rest.SimpleResponse;
import com.azure.core.util.Context;
import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.machinelearningservices.fluent.MachineLearningComputesClient;
+import com.azure.resourcemanager.machinelearningservices.fluent.ComputesClient;
import com.azure.resourcemanager.machinelearningservices.fluent.models.ComputeResourceInner;
import com.azure.resourcemanager.machinelearningservices.fluent.models.ComputeSecretsInner;
import com.azure.resourcemanager.machinelearningservices.models.AmlComputeNodeInformation;
import com.azure.resourcemanager.machinelearningservices.models.ComputeResource;
import com.azure.resourcemanager.machinelearningservices.models.ComputeSecrets;
-import com.azure.resourcemanager.machinelearningservices.models.MachineLearningComputes;
+import com.azure.resourcemanager.machinelearningservices.models.Computes;
import com.azure.resourcemanager.machinelearningservices.models.UnderlyingResourceAction;
import com.fasterxml.jackson.annotation.JsonIgnore;
-public final class MachineLearningComputesImpl implements MachineLearningComputes {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(MachineLearningComputesImpl.class);
+public final class ComputesImpl implements Computes {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ComputesImpl.class);
- private final MachineLearningComputesClient innerClient;
+ private final ComputesClient innerClient;
private final com.azure.resourcemanager.machinelearningservices.MachineLearningServicesManager serviceManager;
- public MachineLearningComputesImpl(
- MachineLearningComputesClient innerClient,
+ public ComputesImpl(
+ ComputesClient innerClient,
com.azure.resourcemanager.machinelearningservices.MachineLearningServicesManager serviceManager) {
this.innerClient = innerClient;
this.serviceManager = serviceManager;
}
- public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) {
- PagedIterable inner =
- this.serviceClient().listByWorkspace(resourceGroupName, workspaceName);
+ public PagedIterable list(String resourceGroupName, String workspaceName) {
+ PagedIterable inner = this.serviceClient().list(resourceGroupName, workspaceName);
return Utils.mapPage(inner, inner1 -> new ComputeResourceImpl(inner1, this.manager()));
}
- public PagedIterable listByWorkspace(
+ public PagedIterable list(
String resourceGroupName, String workspaceName, String skip, Context context) {
PagedIterable inner =
- this.serviceClient().listByWorkspace(resourceGroupName, workspaceName, skip, context);
+ this.serviceClient().list(resourceGroupName, workspaceName, skip, context);
return Utils.mapPage(inner, inner1 -> new ComputeResourceImpl(inner1, this.manager()));
}
@@ -141,9 +140,8 @@ public void restart(String resourceGroupName, String workspaceName, String compu
this.serviceClient().restart(resourceGroupName, workspaceName, computeName);
}
- public Response restartWithResponse(
- String resourceGroupName, String workspaceName, String computeName, Context context) {
- return this.serviceClient().restartWithResponse(resourceGroupName, workspaceName, computeName, context);
+ public void restart(String resourceGroupName, String workspaceName, String computeName, Context context) {
+ this.serviceClient().restart(resourceGroupName, workspaceName, computeName, context);
}
public ComputeResource getById(String id) {
@@ -198,7 +196,7 @@ public Response getByIdWithResponse(String id, Context context)
return this.getWithResponse(resourceGroupName, workspaceName, computeName, context);
}
- private MachineLearningComputesClient serviceClient() {
+ private ComputesClient serviceClient() {
return this.innerClient;
}
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/implementation/DiagnoseResponseResultImpl.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/implementation/DiagnoseResponseResultImpl.java
new file mode 100644
index 000000000000..75e22c7aec84
--- /dev/null
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/implementation/DiagnoseResponseResultImpl.java
@@ -0,0 +1,34 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.machinelearningservices.implementation;
+
+import com.azure.resourcemanager.machinelearningservices.fluent.models.DiagnoseResponseResultInner;
+import com.azure.resourcemanager.machinelearningservices.models.DiagnoseResponseResult;
+import com.azure.resourcemanager.machinelearningservices.models.DiagnoseResponseResultValue;
+
+public final class DiagnoseResponseResultImpl implements DiagnoseResponseResult {
+ private DiagnoseResponseResultInner innerObject;
+
+ private final com.azure.resourcemanager.machinelearningservices.MachineLearningServicesManager serviceManager;
+
+ DiagnoseResponseResultImpl(
+ DiagnoseResponseResultInner innerObject,
+ com.azure.resourcemanager.machinelearningservices.MachineLearningServicesManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public DiagnoseResponseResultValue value() {
+ return this.innerModel().value();
+ }
+
+ public DiagnoseResponseResultInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.machinelearningservices.MachineLearningServicesManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/implementation/ExternalFqdnResponseImpl.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/implementation/ExternalFqdnResponseImpl.java
new file mode 100644
index 000000000000..2867c90490d2
--- /dev/null
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/implementation/ExternalFqdnResponseImpl.java
@@ -0,0 +1,41 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.machinelearningservices.implementation;
+
+import com.azure.resourcemanager.machinelearningservices.fluent.models.ExternalFqdnResponseInner;
+import com.azure.resourcemanager.machinelearningservices.models.ExternalFqdnResponse;
+import com.azure.resourcemanager.machinelearningservices.models.FqdnEndpoints;
+import java.util.Collections;
+import java.util.List;
+
+public final class ExternalFqdnResponseImpl implements ExternalFqdnResponse {
+ private ExternalFqdnResponseInner innerObject;
+
+ private final com.azure.resourcemanager.machinelearningservices.MachineLearningServicesManager serviceManager;
+
+ ExternalFqdnResponseImpl(
+ ExternalFqdnResponseInner innerObject,
+ com.azure.resourcemanager.machinelearningservices.MachineLearningServicesManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public List value() {
+ List inner = this.innerModel().value();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public ExternalFqdnResponseInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.machinelearningservices.MachineLearningServicesManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/implementation/MachineLearningServicesClientImpl.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/implementation/MachineLearningServicesClientImpl.java
deleted file mode 100644
index d7156fbcd189..000000000000
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/implementation/MachineLearningServicesClientImpl.java
+++ /dev/null
@@ -1,1298 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.machinelearningservices.implementation;
-
-import com.azure.core.annotation.BodyParam;
-import com.azure.core.annotation.Delete;
-import com.azure.core.annotation.ExpectedResponses;
-import com.azure.core.annotation.Get;
-import com.azure.core.annotation.HeaderParam;
-import com.azure.core.annotation.Headers;
-import com.azure.core.annotation.Host;
-import com.azure.core.annotation.HostParam;
-import com.azure.core.annotation.PathParam;
-import com.azure.core.annotation.Put;
-import com.azure.core.annotation.QueryParam;
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceInterface;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.annotation.UnexpectedResponseExceptionType;
-import com.azure.core.http.rest.PagedFlux;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.PagedResponse;
-import com.azure.core.http.rest.PagedResponseBase;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.RestProxy;
-import com.azure.core.management.exception.ManagementException;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.core.util.polling.PollerFlux;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.machinelearningservices.fluent.MachineLearningServicesClient;
-import com.azure.resourcemanager.machinelearningservices.fluent.models.ServiceResourceInner;
-import com.azure.resourcemanager.machinelearningservices.models.CreateServiceRequest;
-import com.azure.resourcemanager.machinelearningservices.models.OrderString;
-import com.azure.resourcemanager.machinelearningservices.models.PaginatedServiceList;
-import java.nio.ByteBuffer;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-/** An instance of this class provides access to all the operations defined in MachineLearningServicesClient. */
-public final class MachineLearningServicesClientImpl implements MachineLearningServicesClient {
- private final ClientLogger logger = new ClientLogger(MachineLearningServicesClientImpl.class);
-
- /** The proxy service used to perform REST calls. */
- private final MachineLearningServicesService service;
-
- /** The service client containing this operation class. */
- private final AzureMachineLearningWorkspacesImpl client;
-
- /**
- * Initializes an instance of MachineLearningServicesClientImpl.
- *
- * @param client the instance of the service client containing this operation class.
- */
- MachineLearningServicesClientImpl(AzureMachineLearningWorkspacesImpl client) {
- this.service =
- RestProxy
- .create(MachineLearningServicesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
- this.client = client;
- }
-
- /**
- * The interface defining all the services for AzureMachineLearningWorkspacesMachineLearningServices to be used by
- * the proxy service to perform REST calls.
- */
- @Host("{$host}")
- @ServiceInterface(name = "AzureMachineLearning")
- private interface MachineLearningServicesService {
- @Headers({"Content-Type: application/json"})
- @Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
- + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/services")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByWorkspace(
- @HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("workspaceName") String workspaceName,
- @QueryParam("api-version") String apiVersion,
- @QueryParam("$skip") String skip,
- @QueryParam("modelId") String modelId,
- @QueryParam("modelName") String modelName,
- @QueryParam("tag") String tag,
- @QueryParam("tags") String tags,
- @QueryParam("properties") String properties,
- @QueryParam("runId") String runId,
- @QueryParam("expand") Boolean expand,
- @QueryParam("orderby") OrderString orderby,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
- + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/services/{serviceName}")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> get(
- @HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("workspaceName") String workspaceName,
- @QueryParam("api-version") String apiVersion,
- @PathParam("serviceName") String serviceName,
- @QueryParam("expand") Boolean expand,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Delete(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
- + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/services/{serviceName}")
- @ExpectedResponses({200, 204})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> delete(
- @HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("workspaceName") String workspaceName,
- @QueryParam("api-version") String apiVersion,
- @PathParam("serviceName") String serviceName,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Put(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
- + "/Microsoft.MachineLearningServices/workspaces/{workspaceName}/services/{serviceName}")
- @ExpectedResponses({200, 201})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> createOrUpdate(
- @HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("workspaceName") String workspaceName,
- @QueryParam("api-version") String apiVersion,
- @PathParam("serviceName") String serviceName,
- @BodyParam("application/json") CreateServiceRequest properties,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Get("{nextLink}")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByWorkspaceNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept,
- Context context);
- }
-
- /**
- * Gets services in specified workspace.
- *
- * @param resourceGroupName Name of the resource group in which workspace is located.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @param skip Continuation token for pagination.
- * @param modelId The Model Id.
- * @param modelName The Model name.
- * @param tag The object tag.
- * @param tags A set of tags with which to filter the returned services. It is a comma separated string of tags key
- * or tags key=value Example: tagKey1,tagKey2,tagKey3=value3 .
- * @param properties A set of properties with which to filter the returned services. It is a comma separated string
- * of properties key and/or properties key=value Example: propKey1,propKey2,propKey3=value3 .
- * @param runId runId for model associated with service.
- * @param expand Set to True to include Model details.
- * @param orderby The option to order the response.
- * @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 services in specified workspace.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByWorkspaceSinglePageAsync(
- String resourceGroupName,
- String workspaceName,
- String skip,
- String modelId,
- String modelName,
- String tag,
- String tags,
- String properties,
- String runId,
- Boolean expand,
- OrderString orderby) {
- 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."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context ->
- service
- .listByWorkspace(
- this.client.getEndpoint(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- workspaceName,
- this.client.getApiVersion(),
- skip,
- modelId,
- modelName,
- tag,
- tags,
- properties,
- runId,
- expand,
- orderby,
- accept,
- context))
- .>map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Gets services in specified workspace.
- *
- * @param resourceGroupName Name of the resource group in which workspace is located.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @param skip Continuation token for pagination.
- * @param modelId The Model Id.
- * @param modelName The Model name.
- * @param tag The object tag.
- * @param tags A set of tags with which to filter the returned services. It is a comma separated string of tags key
- * or tags key=value Example: tagKey1,tagKey2,tagKey3=value3 .
- * @param properties A set of properties with which to filter the returned services. It is a comma separated string
- * of properties key and/or properties key=value Example: propKey1,propKey2,propKey3=value3 .
- * @param runId runId for model associated with service.
- * @param expand Set to True to include Model details.
- * @param orderby The option to order the response.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return services in specified workspace.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByWorkspaceSinglePageAsync(
- String resourceGroupName,
- String workspaceName,
- String skip,
- String modelId,
- String modelName,
- String tag,
- String tags,
- String properties,
- String runId,
- Boolean expand,
- OrderString orderby,
- 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."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .listByWorkspace(
- this.client.getEndpoint(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- workspaceName,
- this.client.getApiVersion(),
- skip,
- modelId,
- modelName,
- tag,
- tags,
- properties,
- runId,
- expand,
- orderby,
- accept,
- context)
- .map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null));
- }
-
- /**
- * Gets services in specified workspace.
- *
- * @param resourceGroupName Name of the resource group in which workspace is located.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @param skip Continuation token for pagination.
- * @param modelId The Model Id.
- * @param modelName The Model name.
- * @param tag The object tag.
- * @param tags A set of tags with which to filter the returned services. It is a comma separated string of tags key
- * or tags key=value Example: tagKey1,tagKey2,tagKey3=value3 .
- * @param properties A set of properties with which to filter the returned services. It is a comma separated string
- * of properties key and/or properties key=value Example: propKey1,propKey2,propKey3=value3 .
- * @param runId runId for model associated with service.
- * @param expand Set to True to include Model details.
- * @param orderby The option to order the response.
- * @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 services in specified workspace.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux