scopes = new ArrayList<>();
private RetryPolicy retryPolicy;
+ private RetryOptions retryOptions;
private Duration defaultPollInterval;
private Configurable() {
@@ -173,6 +180,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.
*
@@ -184,6 +202,19 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
return this;
}
+ /**
+ * Sets the retry options for the HTTP pipeline retry policy.
+ *
+ * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
+ *
+ * @param retryOptions the retry options for the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryOptions(RetryOptions retryOptions) {
+ this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null.");
+ return this;
+ }
+
/**
* Sets the default poll interval, used when service does not provide "Retry-After" header.
*
@@ -191,9 +222,11 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
* @return the configurable object itself.
*/
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
- this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
+ this.defaultPollInterval =
+ Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
if (this.defaultPollInterval.isNegative()) {
- throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
+ throw LOGGER
+ .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
}
return this;
}
@@ -229,20 +262,38 @@ 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);
+ if (retryOptions != null) {
+ retryPolicy = new RetryPolicy(retryOptions);
+ } else {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
}
List policies = new ArrayList<>();
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new AddHeadersFromContextPolicy());
policies.add(new RequestIdPolicy());
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .collect(Collectors.toList()));
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
+ policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
policies
- .add(
- new BearerTokenAuthenticationPolicy(
- credential, profile.getEnvironment().getManagementEndpoint() + "/.default"));
- policies.addAll(this.policies);
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .collect(Collectors.toList()));
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
HttpPipeline httpPipeline =
@@ -254,7 +305,11 @@ public MachineLearningServicesManager authenticate(TokenCredential credential, A
}
}
- /** @return Resource collection API of Operations. */
+ /**
+ * Gets the resource collection API of Operations.
+ *
+ * @return Resource collection API of Operations.
+ */
public Operations operations() {
if (this.operations == null) {
this.operations = new OperationsImpl(clientObject.getOperations(), this);
@@ -262,7 +317,11 @@ public Operations operations() {
return operations;
}
- /** @return Resource collection API of Workspaces. */
+ /**
+ * Gets the resource collection API of Workspaces.
+ *
+ * @return Resource collection API of Workspaces.
+ */
public Workspaces workspaces() {
if (this.workspaces == null) {
this.workspaces = new WorkspacesImpl(clientObject.getWorkspaces(), this);
@@ -270,15 +329,11 @@ 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. */
+ /**
+ * Gets the resource collection API of Usages.
+ *
+ * @return Resource collection API of Usages.
+ */
public Usages usages() {
if (this.usages == null) {
this.usages = new UsagesImpl(clientObject.getUsages(), this);
@@ -286,7 +341,11 @@ public Usages usages() {
return usages;
}
- /** @return Resource collection API of VirtualMachineSizes. */
+ /**
+ * Gets the resource collection API of VirtualMachineSizes.
+ *
+ * @return Resource collection API of VirtualMachineSizes.
+ */
public VirtualMachineSizes virtualMachineSizes() {
if (this.virtualMachineSizes == null) {
this.virtualMachineSizes = new VirtualMachineSizesImpl(clientObject.getVirtualMachineSizes(), this);
@@ -294,7 +353,11 @@ public VirtualMachineSizes virtualMachineSizes() {
return virtualMachineSizes;
}
- /** @return Resource collection API of Quotas. */
+ /**
+ * Gets the resource collection API of Quotas.
+ *
+ * @return Resource collection API of Quotas.
+ */
public Quotas quotas() {
if (this.quotas == null) {
this.quotas = new QuotasImpl(clientObject.getQuotas(), this);
@@ -302,24 +365,23 @@ 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);
+ /**
+ * Gets the resource collection API of Computes.
+ *
+ * @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. */
+ /**
+ * Gets the resource collection API of PrivateEndpointConnections.
+ *
+ * @return Resource collection API of PrivateEndpointConnections.
+ */
public PrivateEndpointConnections privateEndpointConnections() {
if (this.privateEndpointConnections == null) {
this.privateEndpointConnections =
@@ -328,7 +390,11 @@ public PrivateEndpointConnections privateEndpointConnections() {
return privateEndpointConnections;
}
- /** @return Resource collection API of PrivateLinkResources. */
+ /**
+ * Gets the resource collection API of PrivateLinkResources.
+ *
+ * @return Resource collection API of PrivateLinkResources.
+ */
public PrivateLinkResources privateLinkResources() {
if (this.privateLinkResources == null) {
this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this);
@@ -336,37 +402,40 @@ 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);
+ /**
+ * Gets the resource collection API of WorkspaceConnections.
+ *
+ * @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);
+ /**
+ * Gets the resource collection API of WorkspaceFeatures.
+ *
+ * @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);
+ /**
+ * Gets the resource collection API of WorkspaceSkus.
+ *
+ * @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 af14f5759361b..c2ab163750abc 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 78%
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 b07cc7e45a959..e7875660d0c8a 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,42 +17,42 @@
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.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return computes in specified workspace.
+ * @return computes in specified workspace as paginated response with {@link PagedIterable}.
*/
@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.
* @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 computes in specified workspace.
+ * @return computes in specified workspace as paginated response with {@link PagedIterable}.
*/
@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,14 +67,14 @@ 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.
* @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 compute definition by its name.
+ * @return compute definition by its name along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -84,16 +84,16 @@ 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.
* @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 compute object wrapped into ARM resource envelope.
+ * @return the {@link SyncPoller} for polling of machine Learning compute object wrapped into ARM resource envelope.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ComputeResourceInner> beginCreateOrUpdate(
String resourceGroupName, String workspaceName, String computeName, ComputeResourceInner parameters);
@@ -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.
@@ -109,9 +109,9 @@ SyncPoller, ComputeResourceInner> beginCreateOr
* @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 compute object wrapped into ARM resource envelope.
+ * @return the {@link SyncPoller} for polling of machine Learning compute object wrapped into ARM resource envelope.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ComputeResourceInner> beginCreateOrUpdate(
String resourceGroupName,
String workspaceName,
@@ -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,16 +162,16 @@ 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.
* @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 compute object wrapped into ARM resource envelope.
+ * @return the {@link SyncPoller} for polling of machine Learning compute object wrapped into ARM resource envelope.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ComputeResourceInner> beginUpdate(
String resourceGroupName, String workspaceName, String computeName, ClusterUpdateParameters parameters);
@@ -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.
@@ -187,9 +187,9 @@ SyncPoller, ComputeResourceInner> beginUpdate(
* @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 compute object wrapped into ARM resource envelope.
+ * @return the {@link SyncPoller} for polling of machine Learning compute object wrapped into ARM resource envelope.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ComputeResourceInner> beginUpdate(
String resourceGroupName,
String workspaceName,
@@ -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
@@ -247,9 +247,9 @@ ComputeResourceInner update(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName,
String workspaceName,
@@ -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
@@ -268,9 +268,9 @@ SyncPoller, Void> beginDelete(
* @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.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName,
String workspaceName,
@@ -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,13 +321,14 @@ 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.
* @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 details (e.
+ * @return the details (e.g IP address, port etc) of all the compute nodes in the compute as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listNodes(
@@ -336,14 +337,15 @@ 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.
* @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 details (e.
+ * @return the details (e.g IP address, port etc) of all the compute nodes in the compute as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listNodes(
@@ -352,7 +354,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,14 +368,15 @@ 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.
* @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 secrets related to Machine Learning compute (storage keys, service credentials, etc).
+ * @return secrets related to Machine Learning compute (storage keys, service credentials, etc) along with {@link
+ * Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listKeysWithResponse(
@@ -382,37 +385,37 @@ 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.
* @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.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginStart(String resourceGroupName, String workspaceName, String computeName);
/**
* 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.
* @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.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginStart(
String resourceGroupName, String workspaceName, String computeName, Context context);
/**
* 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 +428,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,37 +442,37 @@ 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.
* @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.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginStop(String resourceGroupName, String workspaceName, String computeName);
/**
* 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.
* @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.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginStop(
String resourceGroupName, String workspaceName, String computeName, Context context);
/**
* 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 +485,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,7 +499,37 @@ 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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginRestart(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.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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.
@@ -509,16 +542,14 @@ 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.
* @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 restartWithResponse(
- String resourceGroupName, String workspaceName, String computeName, Context context);
+ 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 ae52246e89b26..0000000000000
--- 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 2e926970ec64f..0000000000000
--- 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/OperationsClient.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/OperationsClient.java
index e6a69f11283d7..2c5539b063908 100644
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/OperationsClient.java
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/OperationsClient.java
@@ -17,7 +17,8 @@ public interface OperationsClient {
*
* @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 an array of operations supported by the resource provider.
+ * @return an array of operations supported by the resource provider as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -29,7 +30,8 @@ public interface OperationsClient {
* @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 an array of operations supported by the resource provider.
+ * @return an array of operations supported by the resource provider as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(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 28c1ae7879899..1242791f92cf7 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,46 @@
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 as paginated response with
+ * {@link PagedIterable}.
+ */
+ @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 as paginated response with
+ * {@link PagedIterable}.
+ */
+ @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,14 +60,14 @@ 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.
* @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 specified private endpoint connection associated with the workspace.
+ * @return the specified private endpoint connection associated with the workspace along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -46,7 +76,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 +86,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 +95,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.
@@ -73,10 +103,10 @@ PrivateEndpointConnectionInner put(
* @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 Private Endpoint Connection resource.
+ * @return the Private Endpoint Connection resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response putWithResponse(
+ Response createOrUpdateWithResponse(
String resourceGroupName,
String workspaceName,
String privateEndpointConnectionName,
@@ -86,7 +116,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,14 +129,14 @@ 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.
* @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 {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(
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 8ab1afdbdaeb9..9d84579f3bf54 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,20 +23,20 @@ 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.
* @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 private link resources that need to be created for a workspace.
+ * @return the private link resources that need to be created for a workspace along with {@link Response}.
*/
@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/QuotasClient.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/QuotasClient.java
index f551dd9813747..1e3026ff19b5c 100644
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/QuotasClient.java
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/QuotasClient.java
@@ -37,7 +37,7 @@ public interface QuotasClient {
* @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 result of update workspace quota.
+ * @return the result of update workspace quota along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateWithResponse(
@@ -50,7 +50,8 @@ Response updateWithResponse(
* @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 currently assigned Workspace Quotas based on VMFamily.
+ * @return the currently assigned Workspace Quotas based on VMFamily as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String location);
@@ -63,7 +64,8 @@ Response updateWithResponse(
* @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 currently assigned Workspace Quotas based on VMFamily.
+ * @return the currently assigned Workspace Quotas based on VMFamily as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String location, 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 95a577f1d77d0..0000000000000
--- 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/UsagesClient.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/UsagesClient.java
index e76f4c9e04f8f..5af9b3a358e79 100644
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/UsagesClient.java
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/UsagesClient.java
@@ -19,7 +19,8 @@ public interface UsagesClient {
* @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 current usage information as well as limits for AML resources for given subscription and location.
+ * @return the current usage information as well as limits for AML resources for given subscription and location as
+ * paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String location);
@@ -32,7 +33,8 @@ public interface UsagesClient {
* @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 current usage information as well as limits for AML resources for given subscription and location.
+ * @return the current usage information as well as limits for AML resources for given subscription and location as
+ * paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String location, Context context);
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/VirtualMachineSizesClient.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/VirtualMachineSizesClient.java
index dc92a4a70f897..7b9e18ffac4c4 100644
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/VirtualMachineSizesClient.java
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/VirtualMachineSizesClient.java
@@ -32,7 +32,7 @@ public interface VirtualMachineSizesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the List Virtual Machine size operation response.
+ * @return the List Virtual Machine size operation response along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listWithResponse(String location, 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 e595d0c2001b1..45137eddeccb6 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,19 +10,18 @@
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.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return paginated list of Workspace connection objects.
+ * @return paginated list of Workspace connection objects as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String workspaceName);
@@ -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.
@@ -38,7 +37,7 @@ public interface WorkspaceConnectionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return paginated list of Workspace connection objects.
+ * @return paginated list of Workspace connection objects as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(
@@ -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.
@@ -71,20 +70,20 @@ WorkspaceConnectionInner create(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return workspace connection.
+ * @return workspace connection along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
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,14 +97,14 @@ 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.
* @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 detail of a workspace connection.
+ * @return the detail of a workspace connection along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -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,14 +126,14 @@ 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.
* @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 {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(
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 f6451157bc19f..fd2c279b8dc0a 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,12 +15,12 @@ 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.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the List Aml user feature operation response.
+ * @return the List Aml user feature operation response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String workspaceName);
@@ -28,13 +28,13 @@ 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.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the List Aml user feature operation response.
+ * @return the List Aml user feature operation response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String workspaceName, Context context);
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 79%
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 6cc8f4f463450..46269218ed93c 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,17 +10,17 @@
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.
*
* @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 skus with features.
+ * @return list of skus with features as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listSkus();
+ PagedIterable list();
/**
* Lists all skus with associated features.
@@ -29,8 +29,8 @@ public interface WorkspaceOperationsClient {
* @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 skus with features.
+ * @return list of skus with features as paginated response with {@link PagedIterable}.
*/
@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 f412c73fd058b..521380e3de751 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,13 +40,13 @@ 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.
* @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 properties of the specified machine learning workspace.
+ * @return the properties of the specified machine learning workspace along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(
@@ -49,38 +55,38 @@ 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.
* @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 an object that represents a machine learning workspace.
+ * @return the {@link SyncPoller} for polling of an object that represents a machine learning workspace.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, WorkspaceInner> beginCreateOrUpdate(
String resourceGroupName, String workspaceName, WorkspaceInner parameters);
/**
* 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.
* @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 an object that represents a machine learning workspace.
+ * @return the {@link SyncPoller} for polling of an object that represents a machine learning workspace.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, WorkspaceInner> beginCreateOrUpdate(
String resourceGroupName, String workspaceName, WorkspaceInner parameters, Context context);
/**
* 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,34 +116,34 @@ 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.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName);
/**
* 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.
* @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.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, Context context);
/**
* 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,14 +182,14 @@ 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.
* @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 an object that represents a machine learning workspace.
+ * @return an object that represents a machine learning workspace along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateWithResponse(
@@ -192,11 +198,12 @@ 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.
- * @return the result of a request to list machine learning workspaces.
+ * @return the result of a request to list machine learning workspaces as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -204,22 +211,98 @@ 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.
* @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 result of a request to list machine learning workspaces.
+ * @return the result of a request to list machine learning workspaces as paginated response with {@link
+ * PagedIterable}.
*/
@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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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,13 +316,13 @@ 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.
* @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 response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listKeysWithResponse(
@@ -249,36 +332,36 @@ 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.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginResyncKeys(String resourceGroupName, String workspaceName);
/**
* 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.
* @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.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginResyncKeys(String resourceGroupName, String workspaceName, Context context);
/**
* 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 +374,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.
@@ -306,7 +389,8 @@ Response listKeysWithResponse(
*
* @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 result of a request to list machine learning workspaces.
+ * @return the result of a request to list machine learning workspaces as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -319,7 +403,8 @@ Response listKeysWithResponse(
* @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 result of a request to list machine learning workspaces.
+ * @return the result of a request to list machine learning workspaces as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String skip, Context context);
@@ -327,7 +412,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,15 +425,155 @@ 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.
* @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 response body along with {@link Response}.
*/
@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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 body along with {@link 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 body along with {@link 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 body along with {@link 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/AmlUserFeatureInner.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/AmlUserFeatureInner.java
index 0c10295210b25..338b584931bb2 100644
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/AmlUserFeatureInner.java
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/AmlUserFeatureInner.java
@@ -5,15 +5,11 @@
package com.azure.resourcemanager.machinelearningservices.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Features enabled for a workspace. */
@Fluent
public final class AmlUserFeatureInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(AmlUserFeatureInner.class);
-
/*
* Specifies the feature ID
*/
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/ClusterUpdateProperties.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/ClusterUpdateProperties.java
new file mode 100644
index 0000000000000..8a2ccba92361a
--- /dev/null
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/ClusterUpdateProperties.java
@@ -0,0 +1,50 @@
+// 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.resourcemanager.machinelearningservices.models.ScaleSettingsInformation;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The properties of a amlCompute that need to be updated. */
+@Fluent
+public final class ClusterUpdateProperties {
+ /*
+ * Properties of ClusterUpdate
+ */
+ @JsonProperty(value = "properties")
+ private ScaleSettingsInformation properties;
+
+ /**
+ * Get the properties property: Properties of ClusterUpdate.
+ *
+ * @return the properties value.
+ */
+ public ScaleSettingsInformation properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Properties of ClusterUpdate.
+ *
+ * @param properties the properties value to set.
+ * @return the ClusterUpdateProperties object itself.
+ */
+ public ClusterUpdateProperties withProperties(ScaleSettingsInformation properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
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 30285709c7152..d810d08c43fe8 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,32 +5,36 @@
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 {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ComputeResourceInner.class);
+public final class ComputeResourceInner extends ProxyResource {
+ /*
+ * The identity of the resource.
+ */
+ @JsonProperty(value = "identity")
+ private Identity identity;
/*
- * Compute properties
+ * Specifies the location of the resource.
*/
- @JsonProperty(value = "properties")
- private Compute properties;
+ @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.
@@ -39,48 +43,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 +135,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 +143,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 +169,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/ComputeSecretsInner.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/ComputeSecretsInner.java
index b789485a28a3d..dc65d739a4dd2 100644
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/ComputeSecretsInner.java
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/ComputeSecretsInner.java
@@ -5,11 +5,9 @@
package com.azure.resourcemanager.machinelearningservices.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.machinelearningservices.models.AksComputeSecrets;
import com.azure.resourcemanager.machinelearningservices.models.DatabricksComputeSecrets;
import com.azure.resourcemanager.machinelearningservices.models.VirtualMachineSecrets;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
@@ -28,8 +26,6 @@
})
@Immutable
public class ComputeSecretsInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ComputeSecretsInner.class);
-
/**
* Validates the instance.
*
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 0000000000000..57ac8a4343b1a
--- /dev/null
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/DiagnoseResponseResultInner.java
@@ -0,0 +1,50 @@
+// 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.resourcemanager.machinelearningservices.models.DiagnoseResponseResultValue;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The DiagnoseResponseResult model. */
+@Fluent
+public final class DiagnoseResponseResultInner {
+ /*
+ * 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 0000000000000..7078960a2e01f
--- /dev/null
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/ExternalFqdnResponseInner.java
@@ -0,0 +1,51 @@
+// 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.resourcemanager.machinelearningservices.models.FqdnEndpoints;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** The ExternalFqdnResponse model. */
+@Fluent
+public final class ExternalFqdnResponseInner {
+ /*
+ * 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/ListNotebookKeysResultInner.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/ListNotebookKeysResultInner.java
index 08a36edd74025..12cd43f32f503 100644
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/ListNotebookKeysResultInner.java
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/ListNotebookKeysResultInner.java
@@ -5,15 +5,11 @@
package com.azure.resourcemanager.machinelearningservices.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The ListNotebookKeysResult model. */
@Immutable
public final class ListNotebookKeysResultInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ListNotebookKeysResultInner.class);
-
/*
* The primaryAccessKey property.
*/
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/ListStorageAccountKeysResultInner.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/ListStorageAccountKeysResultInner.java
index 1566c723c8806..43d9ffdbc7b3d 100644
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/ListStorageAccountKeysResultInner.java
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/ListStorageAccountKeysResultInner.java
@@ -5,15 +5,11 @@
package com.azure.resourcemanager.machinelearningservices.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The ListStorageAccountKeysResult model. */
@Immutable
public final class ListStorageAccountKeysResultInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ListStorageAccountKeysResultInner.class);
-
/*
* The userStorageKey property.
*/
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/ListWorkspaceKeysResultInner.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/ListWorkspaceKeysResultInner.java
index 4302d6c695bb7..d9b82c5c20266 100644
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/ListWorkspaceKeysResultInner.java
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/ListWorkspaceKeysResultInner.java
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.machinelearningservices.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.machinelearningservices.models.RegistryListCredentialsResult;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The ListWorkspaceKeysResult model. */
@Immutable
public final class ListWorkspaceKeysResultInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ListWorkspaceKeysResultInner.class);
-
/*
* The userStorageKey property.
*/
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/NotebookAccessTokenResultInner.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/NotebookAccessTokenResultInner.java
index 9d42615915f6e..1f31e9a9712dd 100644
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/NotebookAccessTokenResultInner.java
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/NotebookAccessTokenResultInner.java
@@ -5,15 +5,11 @@
package com.azure.resourcemanager.machinelearningservices.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The NotebookAccessTokenResult model. */
@Immutable
public final class NotebookAccessTokenResultInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(NotebookAccessTokenResultInner.class);
-
/*
* The notebookResourceId property.
*/
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/NotebookResourceInfoInner.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/NotebookResourceInfoInner.java
index 540740e101ab6..a14e6ebd2ba35 100644
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/NotebookResourceInfoInner.java
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/NotebookResourceInfoInner.java
@@ -5,16 +5,12 @@
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.NotebookPreparationError;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The NotebookResourceInfo model. */
@Fluent
public final class NotebookResourceInfoInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(NotebookResourceInfoInner.class);
-
/*
* The fqdn property.
*/
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/OperationInner.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/OperationInner.java
index 44ee8df486ac2..62b37ef4e6bb3 100644
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/OperationInner.java
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/OperationInner.java
@@ -5,16 +5,12 @@
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.OperationDisplay;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Azure Machine Learning workspace REST API operation. */
@Fluent
public final class OperationInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationInner.class);
-
/*
* Operation name: {provider}/{resource}/{operation}
*/
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 3334cc9a86e15..5bdb8ee0684c2 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
@@ -5,49 +5,44 @@
package com.azure.resourcemanager.machinelearningservices.fluent.models;
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;
import com.azure.resourcemanager.machinelearningservices.models.PrivateEndpoint;
import com.azure.resourcemanager.machinelearningservices.models.PrivateEndpointConnectionProvisioningState;
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 {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateEndpointConnectionInner.class);
-
+public final class PrivateEndpointConnectionInner extends ProxyResource {
/*
- * The resource of private end point.
+ * Resource properties.
*/
- @JsonProperty(value = "properties.privateEndpoint")
- private PrivateEndpoint privateEndpoint;
+ @JsonProperty(value = "properties")
+ private PrivateEndpointConnectionProperties innerProperties;
/*
- * 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,77 @@ 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;
/**
- * Get the privateEndpoint property: The resource of private end point.
+ * Get the innerProperties property: Resource properties.
*
- * @return the privateEndpoint value.
+ * @return the innerProperties value.
*/
- public PrivateEndpoint privateEndpoint() {
- return this.privateEndpoint;
+ private PrivateEndpointConnectionProperties innerProperties() {
+ return this.innerProperties;
}
/**
- * Set the privateEndpoint property: The resource of private end point.
+ * Get the identity property: The identity of the resource.
*
- * @param privateEndpoint the privateEndpoint value to set.
- * @return the PrivateEndpointConnectionInner object itself.
+ * @return the identity value.
*/
- public PrivateEndpointConnectionInner withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
- this.privateEndpoint = privateEndpoint;
- return this;
+ public Identity identity() {
+ return this.identity;
}
/**
- * Get the privateLinkServiceConnectionState property: A collection of information about the state of the connection
- * between service consumer and provider.
+ * Set the identity property: The identity of the resource.
*
- * @return the privateLinkServiceConnectionState value.
+ * @param identity the identity value to set.
+ * @return the PrivateEndpointConnectionInner object itself.
*/
- public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
- return this.privateLinkServiceConnectionState;
+ public PrivateEndpointConnectionInner withIdentity(Identity identity) {
+ this.identity = identity;
+ return this;
}
/**
- * Set 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.
*
- * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
- * @return the PrivateEndpointConnectionInner object itself.
+ * @return the location value.
*/
- public PrivateEndpointConnectionInner withPrivateLinkServiceConnectionState(
- PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
- this.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
- return this;
+ public String location() {
+ return this.location;
}
/**
- * Get the provisioningState property: The provisioning state of the private endpoint connection resource.
+ * Set the location property: Specifies the location of the resource.
*
- * @return the provisioningState value.
+ * @param location the location value to set.
+ * @return the PrivateEndpointConnectionInner object itself.
*/
- public PrivateEndpointConnectionProvisioningState provisioningState() {
- return this.provisioningState;
+ public PrivateEndpointConnectionInner withLocation(String location) {
+ this.location = location;
+ return this;
}
/**
- * 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 +146,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,31 +154,72 @@ 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.innerProperties() == null ? null : this.innerProperties().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) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PrivateEndpointConnectionProperties();
+ }
+ this.innerProperties().withPrivateEndpoint(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.innerProperties() == null ? null : this.innerProperties().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) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PrivateEndpointConnectionProperties();
+ }
+ this.innerProperties().withPrivateLinkServiceConnectionState(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.innerProperties() == null ? null : this.innerProperties().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 (innerProperties() != null) {
+ innerProperties().validate();
}
if (identity() != null) {
identity().validate();
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/PrivateEndpointConnectionProperties.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/PrivateEndpointConnectionProperties.java
new file mode 100644
index 0000000000000..e2bc1259471e0
--- /dev/null
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/PrivateEndpointConnectionProperties.java
@@ -0,0 +1,109 @@
+// 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.PrivateEndpoint;
+import com.azure.resourcemanager.machinelearningservices.models.PrivateEndpointConnectionProvisioningState;
+import com.azure.resourcemanager.machinelearningservices.models.PrivateLinkServiceConnectionState;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Properties of the PrivateEndpointConnectProperties. */
+@Fluent
+public final class PrivateEndpointConnectionProperties {
+ /*
+ * The resource of private end point.
+ */
+ @JsonProperty(value = "privateEndpoint")
+ private PrivateEndpoint privateEndpoint;
+
+ /*
+ * A collection of information about the state of the connection between
+ * service consumer and provider.
+ */
+ @JsonProperty(value = "privateLinkServiceConnectionState", required = true)
+ private PrivateLinkServiceConnectionState privateLinkServiceConnectionState;
+
+ /*
+ * The provisioning state of the private endpoint connection resource.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private PrivateEndpointConnectionProvisioningState provisioningState;
+
+ /**
+ * 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 PrivateEndpointConnectionProperties object itself.
+ */
+ public PrivateEndpointConnectionProperties withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
+ this.privateEndpoint = privateEndpoint;
+ return this;
+ }
+
+ /**
+ * 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 PrivateEndpointConnectionProperties object itself.
+ */
+ public PrivateEndpointConnectionProperties 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) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property privateLinkServiceConnectionState in model"
+ + " PrivateEndpointConnectionProperties"));
+ } else {
+ privateLinkServiceConnectionState().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(PrivateEndpointConnectionProperties.class);
+}
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/PrivateLinkResourceListResultInner.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/PrivateLinkResourceListResultInner.java
index 8a8d6e7db587f..f73ad916266b0 100644
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/PrivateLinkResourceListResultInner.java
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/PrivateLinkResourceListResultInner.java
@@ -5,17 +5,13 @@
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.PrivateLinkResource;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** A list of private link resources. */
@Fluent
public final class PrivateLinkResourceListResultInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateLinkResourceListResultInner.class);
-
/*
* Array of private link resources
*/
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/PrivateLinkResourceProperties.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/PrivateLinkResourceProperties.java
new file mode 100644
index 0000000000000..6acef1fa0c269
--- /dev/null
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/PrivateLinkResourceProperties.java
@@ -0,0 +1,77 @@
+// 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.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Properties of a private link resource. */
+@Fluent
+public final class PrivateLinkResourceProperties {
+ /*
+ * The private link resource group id.
+ */
+ @JsonProperty(value = "groupId", access = JsonProperty.Access.WRITE_ONLY)
+ private String groupId;
+
+ /*
+ * The private link resource required member names.
+ */
+ @JsonProperty(value = "requiredMembers", access = JsonProperty.Access.WRITE_ONLY)
+ private List requiredMembers;
+
+ /*
+ * The private link resource Private link DNS zone name.
+ */
+ @JsonProperty(value = "requiredZoneNames")
+ private List requiredZoneNames;
+
+ /**
+ * Get the groupId property: The private link resource group id.
+ *
+ * @return the groupId value.
+ */
+ public String groupId() {
+ return this.groupId;
+ }
+
+ /**
+ * Get the requiredMembers property: The private link resource required member names.
+ *
+ * @return the requiredMembers value.
+ */
+ public List requiredMembers() {
+ return this.requiredMembers;
+ }
+
+ /**
+ * Get the requiredZoneNames property: The private link resource Private link DNS zone name.
+ *
+ * @return the requiredZoneNames value.
+ */
+ public List requiredZoneNames() {
+ return this.requiredZoneNames;
+ }
+
+ /**
+ * Set the requiredZoneNames property: The private link resource Private link DNS zone name.
+ *
+ * @param requiredZoneNames the requiredZoneNames value to set.
+ * @return the PrivateLinkResourceProperties object itself.
+ */
+ public PrivateLinkResourceProperties withRequiredZoneNames(List requiredZoneNames) {
+ this.requiredZoneNames = requiredZoneNames;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void 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 9df00d984560e..7b5c83c40bfd1 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
@@ -5,17 +5,13 @@
package com.azure.resourcemanager.machinelearningservices.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.machinelearningservices.models.QuotaUnit;
import com.azure.resourcemanager.machinelearningservices.models.ResourceName;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The quota assigned to a resource. */
@Immutable
public final class ResourceQuotaInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ResourceQuotaInner.class);
-
/*
* Specifies the resource ID.
*/
@@ -41,7 +37,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 +85,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 7153f64ec175d..0000000000000
--- 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/SharedPrivateLinkResourceProperty.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/SharedPrivateLinkResourceProperty.java
new file mode 100644
index 0000000000000..9f0145021453b
--- /dev/null
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/SharedPrivateLinkResourceProperty.java
@@ -0,0 +1,128 @@
+// 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.resourcemanager.machinelearningservices.models.PrivateEndpointServiceConnectionStatus;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Properties of a shared private link resource. */
+@Fluent
+public final class SharedPrivateLinkResourceProperty {
+ /*
+ * The resource id that private link links to.
+ */
+ @JsonProperty(value = "privateLinkResourceId")
+ private String privateLinkResourceId;
+
+ /*
+ * The private link resource group id.
+ */
+ @JsonProperty(value = "groupId")
+ private String groupId;
+
+ /*
+ * Request message.
+ */
+ @JsonProperty(value = "requestMessage")
+ private String requestMessage;
+
+ /*
+ * Indicates whether the connection has been Approved/Rejected/Removed by
+ * the owner of the service.
+ */
+ @JsonProperty(value = "status")
+ private PrivateEndpointServiceConnectionStatus status;
+
+ /**
+ * Get the privateLinkResourceId property: The resource id that private link links to.
+ *
+ * @return the privateLinkResourceId value.
+ */
+ public String privateLinkResourceId() {
+ return this.privateLinkResourceId;
+ }
+
+ /**
+ * Set the privateLinkResourceId property: The resource id that private link links to.
+ *
+ * @param privateLinkResourceId the privateLinkResourceId value to set.
+ * @return the SharedPrivateLinkResourceProperty object itself.
+ */
+ public SharedPrivateLinkResourceProperty withPrivateLinkResourceId(String privateLinkResourceId) {
+ this.privateLinkResourceId = privateLinkResourceId;
+ return this;
+ }
+
+ /**
+ * Get the groupId property: The private link resource group id.
+ *
+ * @return the groupId value.
+ */
+ public String groupId() {
+ return this.groupId;
+ }
+
+ /**
+ * Set the groupId property: The private link resource group id.
+ *
+ * @param groupId the groupId value to set.
+ * @return the SharedPrivateLinkResourceProperty object itself.
+ */
+ public SharedPrivateLinkResourceProperty withGroupId(String groupId) {
+ this.groupId = groupId;
+ return this;
+ }
+
+ /**
+ * Get the requestMessage property: Request message.
+ *
+ * @return the requestMessage value.
+ */
+ public String requestMessage() {
+ return this.requestMessage;
+ }
+
+ /**
+ * Set the requestMessage property: Request message.
+ *
+ * @param requestMessage the requestMessage value to set.
+ * @return the SharedPrivateLinkResourceProperty object itself.
+ */
+ public SharedPrivateLinkResourceProperty withRequestMessage(String requestMessage) {
+ this.requestMessage = requestMessage;
+ return this;
+ }
+
+ /**
+ * Get the status property: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the
+ * service.
+ *
+ * @return the status value.
+ */
+ public PrivateEndpointServiceConnectionStatus status() {
+ return this.status;
+ }
+
+ /**
+ * Set the status property: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the
+ * service.
+ *
+ * @param status the status value to set.
+ * @return the SharedPrivateLinkResourceProperty object itself.
+ */
+ public SharedPrivateLinkResourceProperty withStatus(PrivateEndpointServiceConnectionStatus status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/UpdateWorkspaceQuotasResultInner.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/UpdateWorkspaceQuotasResultInner.java
index bc0791401d53d..c4ee9fd12831b 100644
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/UpdateWorkspaceQuotasResultInner.java
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/UpdateWorkspaceQuotasResultInner.java
@@ -5,17 +5,13 @@
package com.azure.resourcemanager.machinelearningservices.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.machinelearningservices.models.UpdateWorkspaceQuotas;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** The result of update workspace quota. */
@Immutable
public final class UpdateWorkspaceQuotasResultInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(UpdateWorkspaceQuotasResultInner.class);
-
/*
* The list of workspace quota update result.
*/
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/UsageInner.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/UsageInner.java
index 06adbfe134511..2849f5fd83d77 100644
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/UsageInner.java
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/UsageInner.java
@@ -5,17 +5,13 @@
package com.azure.resourcemanager.machinelearningservices.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.machinelearningservices.models.UsageName;
import com.azure.resourcemanager.machinelearningservices.models.UsageUnit;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Describes AML Resource Usage. */
@Immutable
public final class UsageInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(UsageInner.class);
-
/*
* Specifies the resource ID.
*/
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 d7b7bc81d032e..0f1c7ecfa6acc 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
@@ -5,40 +5,36 @@
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.VirtualMachineSize;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** The List Virtual Machine size operation response. */
@Fluent
public final class VirtualMachineSizeListResultInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(VirtualMachineSizeListResultInner.class);
-
/*
* 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 +44,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/WorkspaceConnectionInner.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/WorkspaceConnectionInner.java
index faddd431765e3..4af65f73ac21b 100644
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/WorkspaceConnectionInner.java
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/WorkspaceConnectionInner.java
@@ -5,48 +5,27 @@
package com.azure.resourcemanager.machinelearningservices.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.machinelearningservices.models.ValueFormat;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Workspace connection. */
-@JsonFlatten
@Fluent
-public class WorkspaceConnectionInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkspaceConnectionInner.class);
-
- /*
- * Category of the workspace connection.
- */
- @JsonProperty(value = "properties.category")
- private String category;
-
- /*
- * Target of the workspace connection.
- */
- @JsonProperty(value = "properties.target")
- private String target;
-
+public final class WorkspaceConnectionInner extends ProxyResource {
/*
- * Authorization type of the workspace connection.
+ * Properties of workspace connection.
*/
- @JsonProperty(value = "properties.authType")
- private String authType;
+ @JsonProperty(value = "properties")
+ private WorkspaceConnectionProps innerProperties;
- /*
- * Value details of the workspace connection.
- */
- @JsonProperty(value = "properties.value")
- private String value;
-
- /*
- * format for the workspace connection value
+ /**
+ * Get the innerProperties property: Properties of workspace connection.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.valueFormat")
- private ValueFormat valueFormat;
+ private WorkspaceConnectionProps innerProperties() {
+ return this.innerProperties;
+ }
/**
* Get the category property: Category of the workspace connection.
@@ -54,7 +33,7 @@ public class WorkspaceConnectionInner extends ProxyResource {
* @return the category value.
*/
public String category() {
- return this.category;
+ return this.innerProperties() == null ? null : this.innerProperties().category();
}
/**
@@ -64,7 +43,10 @@ public String category() {
* @return the WorkspaceConnectionInner object itself.
*/
public WorkspaceConnectionInner withCategory(String category) {
- this.category = category;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkspaceConnectionProps();
+ }
+ this.innerProperties().withCategory(category);
return this;
}
@@ -74,7 +56,7 @@ public WorkspaceConnectionInner withCategory(String category) {
* @return the target value.
*/
public String target() {
- return this.target;
+ return this.innerProperties() == null ? null : this.innerProperties().target();
}
/**
@@ -84,7 +66,10 @@ public String target() {
* @return the WorkspaceConnectionInner object itself.
*/
public WorkspaceConnectionInner withTarget(String target) {
- this.target = target;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkspaceConnectionProps();
+ }
+ this.innerProperties().withTarget(target);
return this;
}
@@ -94,7 +79,7 @@ public WorkspaceConnectionInner withTarget(String target) {
* @return the authType value.
*/
public String authType() {
- return this.authType;
+ return this.innerProperties() == null ? null : this.innerProperties().authType();
}
/**
@@ -104,7 +89,10 @@ public String authType() {
* @return the WorkspaceConnectionInner object itself.
*/
public WorkspaceConnectionInner withAuthType(String authType) {
- this.authType = authType;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkspaceConnectionProps();
+ }
+ this.innerProperties().withAuthType(authType);
return this;
}
@@ -114,7 +102,7 @@ public WorkspaceConnectionInner withAuthType(String authType) {
* @return the value value.
*/
public String value() {
- return this.value;
+ return this.innerProperties() == null ? null : this.innerProperties().value();
}
/**
@@ -124,7 +112,10 @@ public String value() {
* @return the WorkspaceConnectionInner object itself.
*/
public WorkspaceConnectionInner withValue(String value) {
- this.value = value;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkspaceConnectionProps();
+ }
+ this.innerProperties().withValue(value);
return this;
}
@@ -134,7 +125,7 @@ public WorkspaceConnectionInner withValue(String value) {
* @return the valueFormat value.
*/
public ValueFormat valueFormat() {
- return this.valueFormat;
+ return this.innerProperties() == null ? null : this.innerProperties().valueFormat();
}
/**
@@ -144,7 +135,10 @@ public ValueFormat valueFormat() {
* @return the WorkspaceConnectionInner object itself.
*/
public WorkspaceConnectionInner withValueFormat(ValueFormat valueFormat) {
- this.valueFormat = valueFormat;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkspaceConnectionProps();
+ }
+ this.innerProperties().withValueFormat(valueFormat);
return this;
}
@@ -154,5 +148,8 @@ public WorkspaceConnectionInner withValueFormat(ValueFormat valueFormat) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
}
}
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/models/WorkspaceConnectionDto.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/WorkspaceConnectionProps.java
similarity index 60%
rename from sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/models/WorkspaceConnectionDto.java
rename to sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/WorkspaceConnectionProps.java
index 74476aaea3568..7b59efbeca811 100644
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/models/WorkspaceConnectionDto.java
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/WorkspaceConnectionProps.java
@@ -2,76 +2,45 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.machinelearningservices.models;
+package com.azure.resourcemanager.machinelearningservices.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.azure.resourcemanager.machinelearningservices.models.ValueFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** object used for creating workspace connection. */
-@JsonFlatten
+/** Workspace Connection specific properties. */
@Fluent
-public class WorkspaceConnectionDto {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkspaceConnectionDto.class);
-
- /*
- * Friendly name of the workspace connection
- */
- @JsonProperty(value = "name")
- private String name;
-
+public final class WorkspaceConnectionProps {
/*
* Category of the workspace connection.
*/
- @JsonProperty(value = "properties.category")
+ @JsonProperty(value = "category")
private String category;
/*
* Target of the workspace connection.
*/
- @JsonProperty(value = "properties.target")
+ @JsonProperty(value = "target")
private String target;
/*
* Authorization type of the workspace connection.
*/
- @JsonProperty(value = "properties.authType")
+ @JsonProperty(value = "authType")
private String authType;
/*
* Value details of the workspace connection.
*/
- @JsonProperty(value = "properties.value")
+ @JsonProperty(value = "value")
private String value;
/*
* format for the workspace connection value
*/
- @JsonProperty(value = "properties.valueFormat")
+ @JsonProperty(value = "valueFormat")
private ValueFormat valueFormat;
- /**
- * Get the name property: Friendly name of the workspace connection.
- *
- * @return the name value.
- */
- public String name() {
- return this.name;
- }
-
- /**
- * Set the name property: Friendly name of the workspace connection.
- *
- * @param name the name value to set.
- * @return the WorkspaceConnectionDto object itself.
- */
- public WorkspaceConnectionDto withName(String name) {
- this.name = name;
- return this;
- }
-
/**
* Get the category property: Category of the workspace connection.
*
@@ -85,9 +54,9 @@ public String category() {
* Set the category property: Category of the workspace connection.
*
* @param category the category value to set.
- * @return the WorkspaceConnectionDto object itself.
+ * @return the WorkspaceConnectionProps object itself.
*/
- public WorkspaceConnectionDto withCategory(String category) {
+ public WorkspaceConnectionProps withCategory(String category) {
this.category = category;
return this;
}
@@ -105,9 +74,9 @@ public String target() {
* Set the target property: Target of the workspace connection.
*
* @param target the target value to set.
- * @return the WorkspaceConnectionDto object itself.
+ * @return the WorkspaceConnectionProps object itself.
*/
- public WorkspaceConnectionDto withTarget(String target) {
+ public WorkspaceConnectionProps withTarget(String target) {
this.target = target;
return this;
}
@@ -125,9 +94,9 @@ public String authType() {
* Set the authType property: Authorization type of the workspace connection.
*
* @param authType the authType value to set.
- * @return the WorkspaceConnectionDto object itself.
+ * @return the WorkspaceConnectionProps object itself.
*/
- public WorkspaceConnectionDto withAuthType(String authType) {
+ public WorkspaceConnectionProps withAuthType(String authType) {
this.authType = authType;
return this;
}
@@ -145,9 +114,9 @@ public String value() {
* Set the value property: Value details of the workspace connection.
*
* @param value the value value to set.
- * @return the WorkspaceConnectionDto object itself.
+ * @return the WorkspaceConnectionProps object itself.
*/
- public WorkspaceConnectionDto withValue(String value) {
+ public WorkspaceConnectionProps withValue(String value) {
this.value = value;
return this;
}
@@ -165,9 +134,9 @@ public ValueFormat valueFormat() {
* Set the valueFormat property: format for the workspace connection value.
*
* @param valueFormat the valueFormat value to set.
- * @return the WorkspaceConnectionDto object itself.
+ * @return the WorkspaceConnectionProps object itself.
*/
- public WorkspaceConnectionDto withValueFormat(ValueFormat valueFormat) {
+ public WorkspaceConnectionProps withValueFormat(ValueFormat valueFormat) {
this.valueFormat = valueFormat;
return this;
}
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 a8815c7b7bbda..83e5b696b3457 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
@@ -5,179 +5,157 @@
package com.azure.resourcemanager.machinelearningservices.fluent.models;
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;
/** An object that represents a machine learning workspace. */
-@JsonFlatten
@Fluent
-public class WorkspaceInner extends Resource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkspaceInner.class);
-
- /*
- * The immutable id associated with this workspace.
- */
- @JsonProperty(value = "properties.workspaceId", access = JsonProperty.Access.WRITE_ONLY)
- private String workspaceId;
-
- /*
- * The description of this workspace.
- */
- @JsonProperty(value = "properties.description")
- private String description;
-
- /*
- * The friendly name for this workspace. This name in mutable
- */
- @JsonProperty(value = "properties.friendlyName")
- private String friendlyName;
-
- /*
- * ARM id of the key vault associated with this workspace. This cannot be
- * changed once the workspace has been created
- */
- @JsonProperty(value = "properties.keyVault")
- private String keyVault;
-
- /*
- * ARM id of the application insights associated with this workspace. This
- * cannot be changed once the workspace has been created
- */
- @JsonProperty(value = "properties.applicationInsights")
- private String applicationInsights;
-
- /*
- * ARM id of the container registry associated with this workspace. This
- * cannot be changed once the workspace has been created
- */
- @JsonProperty(value = "properties.containerRegistry")
- private String containerRegistry;
-
- /*
- * ARM id of the storage account associated with this workspace. This
- * cannot be changed once the workspace has been created
- */
- @JsonProperty(value = "properties.storageAccount")
- private String storageAccount;
-
+public final class WorkspaceInner extends ProxyResource {
/*
- * Url for the discovery service to identify regional endpoints for machine
- * learning experimentation services
+ * The properties of the machine learning workspace.
*/
- @JsonProperty(value = "properties.discoveryUrl")
- private String discoveryUrl;
+ @JsonProperty(value = "properties")
+ private WorkspacePropertiesInner innerProperties;
/*
- * The current deployment state of workspace resource. The
- * provisioningState is to indicate states for resource provisioning.
- */
- @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
- private ProvisioningState provisioningState;
-
- /*
- * The encryption settings of Azure ML workspace.
+ * The identity of the resource.
*/
- @JsonProperty(value = "properties.encryption")
- private EncryptionProperty encryption;
+ @JsonProperty(value = "identity")
+ private Identity identity;
/*
- * The flag to signal HBI data in the workspace and reduce diagnostic data
- * collected by the service
+ * Specifies the location of the resource.
*/
- @JsonProperty(value = "properties.hbiWorkspace")
- private Boolean hbiWorkspace;
+ @JsonProperty(value = "location")
+ private String location;
/*
- * The name of the managed resource group created by workspace RP in
- * customer subscription if the workspace is CMK workspace
+ * Contains resource tags defined as key/value pairs.
*/
- @JsonProperty(value = "properties.serviceProvisionedResourceGroup", access = JsonProperty.Access.WRITE_ONLY)
- private String serviceProvisionedResourceGroup;
+ @JsonProperty(value = "tags")
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map tags;
/*
- * Count of private connections in the workspace
+ * The sku of the workspace.
*/
- @JsonProperty(value = "properties.privateLinkCount", access = JsonProperty.Access.WRITE_ONLY)
- private Integer privateLinkCount;
+ @JsonProperty(value = "sku")
+ private Sku sku;
/*
- * The compute name for image build
+ * System data
*/
- @JsonProperty(value = "properties.imageBuildCompute")
- private String imageBuildCompute;
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
- /*
- * The flag to indicate whether to allow public access when behind VNet.
+ /**
+ * Get the innerProperties property: The properties of the machine learning workspace.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.allowPublicAccessWhenBehindVnet")
- private Boolean allowPublicAccessWhenBehindVnet;
+ private WorkspacePropertiesInner innerProperties() {
+ return this.innerProperties;
+ }
- /*
- * The list of private endpoint connections in the workspace.
+ /**
+ * Get the identity property: The identity of the resource.
+ *
+ * @return the identity value.
*/
- @JsonProperty(value = "properties.privateEndpointConnections", access = JsonProperty.Access.WRITE_ONLY)
- private List privateEndpointConnections;
+ public Identity identity() {
+ return this.identity;
+ }
- /*
- * The list of shared private link resources in this workspace.
+ /**
+ * Set the identity property: The identity of the resource.
+ *
+ * @param identity the identity value to set.
+ * @return the WorkspaceInner object itself.
*/
- @JsonProperty(value = "properties.sharedPrivateLinkResources")
- private List sharedPrivateLinkResources;
+ public WorkspaceInner withIdentity(Identity identity) {
+ this.identity = identity;
+ return this;
+ }
- /*
- * The notebook info of Azure ML workspace.
+ /**
+ * Get the location property: Specifies the location of the resource.
+ *
+ * @return the location value.
*/
- @JsonProperty(value = "properties.notebookInfo", access = JsonProperty.Access.WRITE_ONLY)
- private NotebookResourceInfoInner notebookInfo;
+ public String location() {
+ return this.location;
+ }
- /*
- * The service managed resource settings.
+ /**
+ * Set the location property: Specifies the location of the resource.
+ *
+ * @param location the location value to set.
+ * @return the WorkspaceInner object itself.
*/
- @JsonProperty(value = "properties.serviceManagedResourcesSettings")
- private ServiceManagedResourcesSettings serviceManagedResourcesSettings;
+ public WorkspaceInner withLocation(String location) {
+ this.location = location;
+ return this;
+ }
- /*
- * The user assigned identity resource id that represents the workspace
- * identity.
+ /**
+ * Get the tags property: Contains resource tags defined as key/value pairs.
+ *
+ * @return the tags value.
*/
- @JsonProperty(value = "properties.primaryUserAssignedIdentity")
- private String primaryUserAssignedIdentity;
+ public Map tags() {
+ return this.tags;
+ }
- /*
- * The tenant id associated with this workspace.
+ /**
+ * Set the tags property: Contains resource tags defined as key/value pairs.
+ *
+ * @param tags the tags value to set.
+ * @return the WorkspaceInner object itself.
*/
- @JsonProperty(value = "properties.tenantId", access = JsonProperty.Access.WRITE_ONLY)
- private String tenantId;
+ public WorkspaceInner withTags(Map tags) {
+ this.tags = tags;
+ return this;
+ }
- /*
- * The identity of the resource.
+ /**
+ * Get the sku property: The sku of the workspace.
+ *
+ * @return the sku value.
*/
- @JsonProperty(value = "identity")
- private Identity identity;
+ public Sku sku() {
+ return this.sku;
+ }
- /*
- * The sku of the workspace.
+ /**
+ * Set the sku property: The sku of the workspace.
+ *
+ * @param sku the sku value to set.
+ * @return the WorkspaceInner object itself.
*/
- @JsonProperty(value = "sku")
- private Sku sku;
+ public WorkspaceInner withSku(Sku sku) {
+ this.sku = sku;
+ return this;
+ }
- /*
- * Read only system data
+ /**
+ * Get the systemData property: System data.
+ *
+ * @return the systemData value.
*/
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
+ public SystemData systemData() {
+ return this.systemData;
+ }
/**
* Get the workspaceId property: The immutable id associated with this workspace.
@@ -185,7 +163,7 @@ public class WorkspaceInner extends Resource {
* @return the workspaceId value.
*/
public String workspaceId() {
- return this.workspaceId;
+ return this.innerProperties() == null ? null : this.innerProperties().workspaceId();
}
/**
@@ -194,7 +172,7 @@ public String workspaceId() {
* @return the description value.
*/
public String description() {
- return this.description;
+ return this.innerProperties() == null ? null : this.innerProperties().description();
}
/**
@@ -204,7 +182,10 @@ public String description() {
* @return the WorkspaceInner object itself.
*/
public WorkspaceInner withDescription(String description) {
- this.description = description;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkspacePropertiesInner();
+ }
+ this.innerProperties().withDescription(description);
return this;
}
@@ -214,7 +195,7 @@ public WorkspaceInner withDescription(String description) {
* @return the friendlyName value.
*/
public String friendlyName() {
- return this.friendlyName;
+ return this.innerProperties() == null ? null : this.innerProperties().friendlyName();
}
/**
@@ -224,7 +205,10 @@ public String friendlyName() {
* @return the WorkspaceInner object itself.
*/
public WorkspaceInner withFriendlyName(String friendlyName) {
- this.friendlyName = friendlyName;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkspacePropertiesInner();
+ }
+ this.innerProperties().withFriendlyName(friendlyName);
return this;
}
@@ -235,7 +219,7 @@ public WorkspaceInner withFriendlyName(String friendlyName) {
* @return the keyVault value.
*/
public String keyVault() {
- return this.keyVault;
+ return this.innerProperties() == null ? null : this.innerProperties().keyVault();
}
/**
@@ -246,7 +230,10 @@ public String keyVault() {
* @return the WorkspaceInner object itself.
*/
public WorkspaceInner withKeyVault(String keyVault) {
- this.keyVault = keyVault;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkspacePropertiesInner();
+ }
+ this.innerProperties().withKeyVault(keyVault);
return this;
}
@@ -257,7 +244,7 @@ public WorkspaceInner withKeyVault(String keyVault) {
* @return the applicationInsights value.
*/
public String applicationInsights() {
- return this.applicationInsights;
+ return this.innerProperties() == null ? null : this.innerProperties().applicationInsights();
}
/**
@@ -268,7 +255,10 @@ public String applicationInsights() {
* @return the WorkspaceInner object itself.
*/
public WorkspaceInner withApplicationInsights(String applicationInsights) {
- this.applicationInsights = applicationInsights;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkspacePropertiesInner();
+ }
+ this.innerProperties().withApplicationInsights(applicationInsights);
return this;
}
@@ -279,7 +269,7 @@ public WorkspaceInner withApplicationInsights(String applicationInsights) {
* @return the containerRegistry value.
*/
public String containerRegistry() {
- return this.containerRegistry;
+ return this.innerProperties() == null ? null : this.innerProperties().containerRegistry();
}
/**
@@ -290,7 +280,10 @@ public String containerRegistry() {
* @return the WorkspaceInner object itself.
*/
public WorkspaceInner withContainerRegistry(String containerRegistry) {
- this.containerRegistry = containerRegistry;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkspacePropertiesInner();
+ }
+ this.innerProperties().withContainerRegistry(containerRegistry);
return this;
}
@@ -301,7 +294,7 @@ public WorkspaceInner withContainerRegistry(String containerRegistry) {
* @return the storageAccount value.
*/
public String storageAccount() {
- return this.storageAccount;
+ return this.innerProperties() == null ? null : this.innerProperties().storageAccount();
}
/**
@@ -312,7 +305,10 @@ public String storageAccount() {
* @return the WorkspaceInner object itself.
*/
public WorkspaceInner withStorageAccount(String storageAccount) {
- this.storageAccount = storageAccount;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkspacePropertiesInner();
+ }
+ this.innerProperties().withStorageAccount(storageAccount);
return this;
}
@@ -323,7 +319,7 @@ public WorkspaceInner withStorageAccount(String storageAccount) {
* @return the discoveryUrl value.
*/
public String discoveryUrl() {
- return this.discoveryUrl;
+ return this.innerProperties() == null ? null : this.innerProperties().discoveryUrl();
}
/**
@@ -334,7 +330,10 @@ public String discoveryUrl() {
* @return the WorkspaceInner object itself.
*/
public WorkspaceInner withDiscoveryUrl(String discoveryUrl) {
- this.discoveryUrl = discoveryUrl;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkspacePropertiesInner();
+ }
+ this.innerProperties().withDiscoveryUrl(discoveryUrl);
return this;
}
@@ -345,7 +344,7 @@ public WorkspaceInner withDiscoveryUrl(String discoveryUrl) {
* @return the provisioningState value.
*/
public ProvisioningState provisioningState() {
- return this.provisioningState;
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
}
/**
@@ -354,7 +353,7 @@ public ProvisioningState provisioningState() {
* @return the encryption value.
*/
public EncryptionProperty encryption() {
- return this.encryption;
+ return this.innerProperties() == null ? null : this.innerProperties().encryption();
}
/**
@@ -364,7 +363,10 @@ public EncryptionProperty encryption() {
* @return the WorkspaceInner object itself.
*/
public WorkspaceInner withEncryption(EncryptionProperty encryption) {
- this.encryption = encryption;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkspacePropertiesInner();
+ }
+ this.innerProperties().withEncryption(encryption);
return this;
}
@@ -375,7 +377,7 @@ public WorkspaceInner withEncryption(EncryptionProperty encryption) {
* @return the hbiWorkspace value.
*/
public Boolean hbiWorkspace() {
- return this.hbiWorkspace;
+ return this.innerProperties() == null ? null : this.innerProperties().hbiWorkspace();
}
/**
@@ -386,7 +388,10 @@ public Boolean hbiWorkspace() {
* @return the WorkspaceInner object itself.
*/
public WorkspaceInner withHbiWorkspace(Boolean hbiWorkspace) {
- this.hbiWorkspace = hbiWorkspace;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkspacePropertiesInner();
+ }
+ this.innerProperties().withHbiWorkspace(hbiWorkspace);
return this;
}
@@ -397,7 +402,7 @@ public WorkspaceInner withHbiWorkspace(Boolean hbiWorkspace) {
* @return the serviceProvisionedResourceGroup value.
*/
public String serviceProvisionedResourceGroup() {
- return this.serviceProvisionedResourceGroup;
+ return this.innerProperties() == null ? null : this.innerProperties().serviceProvisionedResourceGroup();
}
/**
@@ -406,7 +411,7 @@ public String serviceProvisionedResourceGroup() {
* @return the privateLinkCount value.
*/
public Integer privateLinkCount() {
- return this.privateLinkCount;
+ return this.innerProperties() == null ? null : this.innerProperties().privateLinkCount();
}
/**
@@ -415,7 +420,7 @@ public Integer privateLinkCount() {
* @return the imageBuildCompute value.
*/
public String imageBuildCompute() {
- return this.imageBuildCompute;
+ return this.innerProperties() == null ? null : this.innerProperties().imageBuildCompute();
}
/**
@@ -425,7 +430,10 @@ public String imageBuildCompute() {
* @return the WorkspaceInner object itself.
*/
public WorkspaceInner withImageBuildCompute(String imageBuildCompute) {
- this.imageBuildCompute = imageBuildCompute;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkspacePropertiesInner();
+ }
+ this.innerProperties().withImageBuildCompute(imageBuildCompute);
return this;
}
@@ -436,7 +444,7 @@ public WorkspaceInner withImageBuildCompute(String imageBuildCompute) {
* @return the allowPublicAccessWhenBehindVnet value.
*/
public Boolean allowPublicAccessWhenBehindVnet() {
- return this.allowPublicAccessWhenBehindVnet;
+ return this.innerProperties() == null ? null : this.innerProperties().allowPublicAccessWhenBehindVnet();
}
/**
@@ -447,7 +455,33 @@ public Boolean allowPublicAccessWhenBehindVnet() {
* @return the WorkspaceInner object itself.
*/
public WorkspaceInner withAllowPublicAccessWhenBehindVnet(Boolean allowPublicAccessWhenBehindVnet) {
- this.allowPublicAccessWhenBehindVnet = allowPublicAccessWhenBehindVnet;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkspacePropertiesInner();
+ }
+ this.innerProperties().withAllowPublicAccessWhenBehindVnet(allowPublicAccessWhenBehindVnet);
+ return this;
+ }
+
+ /**
+ * Get the publicNetworkAccess property: Whether requests from Public Network are allowed.
+ *
+ * @return the publicNetworkAccess value.
+ */
+ public PublicNetworkAccess publicNetworkAccess() {
+ return this.innerProperties() == null ? null : this.innerProperties().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) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkspacePropertiesInner();
+ }
+ this.innerProperties().withPublicNetworkAccess(publicNetworkAccess);
return this;
}
@@ -457,7 +491,7 @@ public WorkspaceInner withAllowPublicAccessWhenBehindVnet(Boolean allowPublicAcc
* @return the privateEndpointConnections value.
*/
public List privateEndpointConnections() {
- return this.privateEndpointConnections;
+ return this.innerProperties() == null ? null : this.innerProperties().privateEndpointConnections();
}
/**
@@ -466,7 +500,7 @@ public List privateEndpointConnections() {
* @return the sharedPrivateLinkResources value.
*/
public List sharedPrivateLinkResources() {
- return this.sharedPrivateLinkResources;
+ return this.innerProperties() == null ? null : this.innerProperties().sharedPrivateLinkResources();
}
/**
@@ -476,7 +510,10 @@ public List sharedPrivateLinkResources() {
* @return the WorkspaceInner object itself.
*/
public WorkspaceInner withSharedPrivateLinkResources(List sharedPrivateLinkResources) {
- this.sharedPrivateLinkResources = sharedPrivateLinkResources;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkspacePropertiesInner();
+ }
+ this.innerProperties().withSharedPrivateLinkResources(sharedPrivateLinkResources);
return this;
}
@@ -486,7 +523,7 @@ public WorkspaceInner withSharedPrivateLinkResources(List tags) {
- super.withTags(tags);
- return this;
+ public String mlFlowTrackingUri() {
+ return this.innerProperties() == null ? null : this.innerProperties().mlFlowTrackingUri();
}
/**
@@ -610,20 +610,8 @@ public WorkspaceInner withTags(Map tags) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (encryption() != null) {
- encryption().validate();
- }
- if (privateEndpointConnections() != null) {
- privateEndpointConnections().forEach(e -> e.validate());
- }
- if (sharedPrivateLinkResources() != null) {
- sharedPrivateLinkResources().forEach(e -> e.validate());
- }
- if (notebookInfo() != null) {
- notebookInfo().validate();
- }
- if (serviceManagedResourcesSettings() != null) {
- serviceManagedResourcesSettings().validate();
+ if (innerProperties() != null) {
+ innerProperties().validate();
}
if (identity() != null) {
identity().validate();
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/WorkspacePropertiesInner.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/WorkspacePropertiesInner.java
new file mode 100644
index 0000000000000..a67b84a675c7e
--- /dev/null
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/WorkspacePropertiesInner.java
@@ -0,0 +1,599 @@
+// 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.resourcemanager.machinelearningservices.models.EncryptionProperty;
+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.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** The properties of a machine learning workspace. */
+@Fluent
+public final class WorkspacePropertiesInner {
+ /*
+ * The immutable id associated with this workspace.
+ */
+ @JsonProperty(value = "workspaceId", access = JsonProperty.Access.WRITE_ONLY)
+ private String workspaceId;
+
+ /*
+ * The description of this workspace.
+ */
+ @JsonProperty(value = "description")
+ private String description;
+
+ /*
+ * The friendly name for this workspace. This name in mutable
+ */
+ @JsonProperty(value = "friendlyName")
+ private String friendlyName;
+
+ /*
+ * ARM id of the key vault associated with this workspace. This cannot be
+ * changed once the workspace has been created
+ */
+ @JsonProperty(value = "keyVault")
+ private String keyVault;
+
+ /*
+ * ARM id of the application insights associated with this workspace. This
+ * cannot be changed once the workspace has been created
+ */
+ @JsonProperty(value = "applicationInsights")
+ private String applicationInsights;
+
+ /*
+ * ARM id of the container registry associated with this workspace. This
+ * cannot be changed once the workspace has been created
+ */
+ @JsonProperty(value = "containerRegistry")
+ private String containerRegistry;
+
+ /*
+ * ARM id of the storage account associated with this workspace. This
+ * cannot be changed once the workspace has been created
+ */
+ @JsonProperty(value = "storageAccount")
+ private String storageAccount;
+
+ /*
+ * Url for the discovery service to identify regional endpoints for machine
+ * learning experimentation services
+ */
+ @JsonProperty(value = "discoveryUrl")
+ private String discoveryUrl;
+
+ /*
+ * The current deployment state of workspace resource. The
+ * provisioningState is to indicate states for resource provisioning.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningState provisioningState;
+
+ /*
+ * The encryption settings of Azure ML workspace.
+ */
+ @JsonProperty(value = "encryption")
+ private EncryptionProperty encryption;
+
+ /*
+ * The flag to signal HBI data in the workspace and reduce diagnostic data
+ * collected by the service
+ */
+ @JsonProperty(value = "hbiWorkspace")
+ private Boolean hbiWorkspace;
+
+ /*
+ * The name of the managed resource group created by workspace RP in
+ * customer subscription if the workspace is CMK workspace
+ */
+ @JsonProperty(value = "serviceProvisionedResourceGroup", access = JsonProperty.Access.WRITE_ONLY)
+ private String serviceProvisionedResourceGroup;
+
+ /*
+ * Count of private connections in the workspace
+ */
+ @JsonProperty(value = "privateLinkCount", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer privateLinkCount;
+
+ /*
+ * The compute name for image build
+ */
+ @JsonProperty(value = "imageBuildCompute")
+ private String imageBuildCompute;
+
+ /*
+ * The flag to indicate whether to allow public access when behind VNet.
+ */
+ @JsonProperty(value = "allowPublicAccessWhenBehindVnet")
+ private Boolean allowPublicAccessWhenBehindVnet;
+
+ /*
+ * Whether requests from Public Network are allowed.
+ */
+ @JsonProperty(value = "publicNetworkAccess")
+ private PublicNetworkAccess publicNetworkAccess;
+
+ /*
+ * The list of private endpoint connections in the workspace.
+ */
+ @JsonProperty(value = "privateEndpointConnections", access = JsonProperty.Access.WRITE_ONLY)
+ private List privateEndpointConnections;
+
+ /*
+ * The list of shared private link resources in this workspace.
+ */
+ @JsonProperty(value = "sharedPrivateLinkResources")
+ private List sharedPrivateLinkResources;
+
+ /*
+ * The notebook info of Azure ML workspace.
+ */
+ @JsonProperty(value = "notebookInfo", access = JsonProperty.Access.WRITE_ONLY)
+ private NotebookResourceInfoInner notebookInfo;
+
+ /*
+ * The service managed resource settings.
+ */
+ @JsonProperty(value = "serviceManagedResourcesSettings")
+ private ServiceManagedResourcesSettings serviceManagedResourcesSettings;
+
+ /*
+ * The user assigned identity resource id that represents the workspace
+ * identity.
+ */
+ @JsonProperty(value = "primaryUserAssignedIdentity")
+ private String primaryUserAssignedIdentity;
+
+ /*
+ * The tenant id associated with this workspace.
+ */
+ @JsonProperty(value = "tenantId", access = JsonProperty.Access.WRITE_ONLY)
+ private String tenantId;
+
+ /*
+ * If the storage associated with the workspace has hierarchical
+ * namespace(HNS) enabled.
+ */
+ @JsonProperty(value = "storageHnsEnabled", access = JsonProperty.Access.WRITE_ONLY)
+ private Boolean storageHnsEnabled;
+
+ /*
+ * The URI associated with this workspace that machine learning flow must
+ * point at to set up tracking.
+ */
+ @JsonProperty(value = "mlFlowTrackingUri", access = JsonProperty.Access.WRITE_ONLY)
+ private String mlFlowTrackingUri;
+
+ /**
+ * Get the workspaceId property: The immutable id associated with this workspace.
+ *
+ * @return the workspaceId value.
+ */
+ public String workspaceId() {
+ return this.workspaceId;
+ }
+
+ /**
+ * Get the description property: The description of this workspace.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Set the description property: The description of this workspace.
+ *
+ * @param description the description value to set.
+ * @return the WorkspacePropertiesInner object itself.
+ */
+ public WorkspacePropertiesInner withDescription(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * Get the friendlyName property: The friendly name for this workspace. This name in mutable.
+ *
+ * @return the friendlyName value.
+ */
+ public String friendlyName() {
+ return this.friendlyName;
+ }
+
+ /**
+ * Set the friendlyName property: The friendly name for this workspace. This name in mutable.
+ *
+ * @param friendlyName the friendlyName value to set.
+ * @return the WorkspacePropertiesInner object itself.
+ */
+ public WorkspacePropertiesInner withFriendlyName(String friendlyName) {
+ this.friendlyName = friendlyName;
+ return this;
+ }
+
+ /**
+ * Get the keyVault property: ARM id of the key vault associated with this workspace. This cannot be changed once
+ * the workspace has been created.
+ *
+ * @return the keyVault value.
+ */
+ public String keyVault() {
+ return this.keyVault;
+ }
+
+ /**
+ * Set the keyVault property: ARM id of the key vault associated with this workspace. This cannot be changed once
+ * the workspace has been created.
+ *
+ * @param keyVault the keyVault value to set.
+ * @return the WorkspacePropertiesInner object itself.
+ */
+ public WorkspacePropertiesInner withKeyVault(String keyVault) {
+ this.keyVault = keyVault;
+ return this;
+ }
+
+ /**
+ * Get the applicationInsights property: ARM id of the application insights associated with this workspace. This
+ * cannot be changed once the workspace has been created.
+ *
+ * @return the applicationInsights value.
+ */
+ public String applicationInsights() {
+ return this.applicationInsights;
+ }
+
+ /**
+ * Set the applicationInsights property: ARM id of the application insights associated with this workspace. This
+ * cannot be changed once the workspace has been created.
+ *
+ * @param applicationInsights the applicationInsights value to set.
+ * @return the WorkspacePropertiesInner object itself.
+ */
+ public WorkspacePropertiesInner withApplicationInsights(String applicationInsights) {
+ this.applicationInsights = applicationInsights;
+ return this;
+ }
+
+ /**
+ * Get the containerRegistry property: ARM id of the container registry associated with this workspace. This cannot
+ * be changed once the workspace has been created.
+ *
+ * @return the containerRegistry value.
+ */
+ public String containerRegistry() {
+ return this.containerRegistry;
+ }
+
+ /**
+ * Set the containerRegistry property: ARM id of the container registry associated with this workspace. This cannot
+ * be changed once the workspace has been created.
+ *
+ * @param containerRegistry the containerRegistry value to set.
+ * @return the WorkspacePropertiesInner object itself.
+ */
+ public WorkspacePropertiesInner withContainerRegistry(String containerRegistry) {
+ this.containerRegistry = containerRegistry;
+ return this;
+ }
+
+ /**
+ * Get the storageAccount property: ARM id of the storage account associated with this workspace. This cannot be
+ * changed once the workspace has been created.
+ *
+ * @return the storageAccount value.
+ */
+ public String storageAccount() {
+ return this.storageAccount;
+ }
+
+ /**
+ * Set the storageAccount property: ARM id of the storage account associated with this workspace. This cannot be
+ * changed once the workspace has been created.
+ *
+ * @param storageAccount the storageAccount value to set.
+ * @return the WorkspacePropertiesInner object itself.
+ */
+ public WorkspacePropertiesInner withStorageAccount(String storageAccount) {
+ this.storageAccount = storageAccount;
+ return this;
+ }
+
+ /**
+ * Get the discoveryUrl property: Url for the discovery service to identify regional endpoints for machine learning
+ * experimentation services.
+ *
+ * @return the discoveryUrl value.
+ */
+ public String discoveryUrl() {
+ return this.discoveryUrl;
+ }
+
+ /**
+ * Set the discoveryUrl property: Url for the discovery service to identify regional endpoints for machine learning
+ * experimentation services.
+ *
+ * @param discoveryUrl the discoveryUrl value to set.
+ * @return the WorkspacePropertiesInner object itself.
+ */
+ public WorkspacePropertiesInner withDiscoveryUrl(String discoveryUrl) {
+ this.discoveryUrl = discoveryUrl;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: The current deployment state of workspace resource. The provisioningState is
+ * to indicate states for resource provisioning.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the encryption property: The encryption settings of Azure ML workspace.
+ *
+ * @return the encryption value.
+ */
+ public EncryptionProperty encryption() {
+ return this.encryption;
+ }
+
+ /**
+ * Set the encryption property: The encryption settings of Azure ML workspace.
+ *
+ * @param encryption the encryption value to set.
+ * @return the WorkspacePropertiesInner object itself.
+ */
+ public WorkspacePropertiesInner withEncryption(EncryptionProperty encryption) {
+ this.encryption = encryption;
+ return this;
+ }
+
+ /**
+ * Get the hbiWorkspace property: The flag to signal HBI data in the workspace and reduce diagnostic data collected
+ * by the service.
+ *
+ * @return the hbiWorkspace value.
+ */
+ public Boolean hbiWorkspace() {
+ return this.hbiWorkspace;
+ }
+
+ /**
+ * Set the hbiWorkspace property: The flag to signal HBI data in the workspace and reduce diagnostic data collected
+ * by the service.
+ *
+ * @param hbiWorkspace the hbiWorkspace value to set.
+ * @return the WorkspacePropertiesInner object itself.
+ */
+ public WorkspacePropertiesInner withHbiWorkspace(Boolean hbiWorkspace) {
+ this.hbiWorkspace = hbiWorkspace;
+ return this;
+ }
+
+ /**
+ * Get the serviceProvisionedResourceGroup property: The name of the managed resource group created by workspace RP
+ * in customer subscription if the workspace is CMK workspace.
+ *
+ * @return the serviceProvisionedResourceGroup value.
+ */
+ public String serviceProvisionedResourceGroup() {
+ return this.serviceProvisionedResourceGroup;
+ }
+
+ /**
+ * Get the privateLinkCount property: Count of private connections in the workspace.
+ *
+ * @return the privateLinkCount value.
+ */
+ public Integer privateLinkCount() {
+ return this.privateLinkCount;
+ }
+
+ /**
+ * Get the imageBuildCompute property: The compute name for image build.
+ *
+ * @return the imageBuildCompute value.
+ */
+ public String imageBuildCompute() {
+ return this.imageBuildCompute;
+ }
+
+ /**
+ * Set the imageBuildCompute property: The compute name for image build.
+ *
+ * @param imageBuildCompute the imageBuildCompute value to set.
+ * @return the WorkspacePropertiesInner object itself.
+ */
+ public WorkspacePropertiesInner withImageBuildCompute(String imageBuildCompute) {
+ this.imageBuildCompute = imageBuildCompute;
+ return this;
+ }
+
+ /**
+ * Get the allowPublicAccessWhenBehindVnet property: The flag to indicate whether to allow public access when behind
+ * VNet.
+ *
+ * @return the allowPublicAccessWhenBehindVnet value.
+ */
+ public Boolean allowPublicAccessWhenBehindVnet() {
+ return this.allowPublicAccessWhenBehindVnet;
+ }
+
+ /**
+ * Set the allowPublicAccessWhenBehindVnet property: The flag to indicate whether to allow public access when behind
+ * VNet.
+ *
+ * @param allowPublicAccessWhenBehindVnet the allowPublicAccessWhenBehindVnet value to set.
+ * @return the WorkspacePropertiesInner object itself.
+ */
+ public WorkspacePropertiesInner withAllowPublicAccessWhenBehindVnet(Boolean allowPublicAccessWhenBehindVnet) {
+ this.allowPublicAccessWhenBehindVnet = allowPublicAccessWhenBehindVnet;
+ 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 WorkspacePropertiesInner object itself.
+ */
+ public WorkspacePropertiesInner withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
+ this.publicNetworkAccess = publicNetworkAccess;
+ return this;
+ }
+
+ /**
+ * Get the privateEndpointConnections property: The list of private endpoint connections in the workspace.
+ *
+ * @return the privateEndpointConnections value.
+ */
+ public List privateEndpointConnections() {
+ return this.privateEndpointConnections;
+ }
+
+ /**
+ * Get the sharedPrivateLinkResources property: The list of shared private link resources in this workspace.
+ *
+ * @return the sharedPrivateLinkResources value.
+ */
+ public List sharedPrivateLinkResources() {
+ return this.sharedPrivateLinkResources;
+ }
+
+ /**
+ * Set the sharedPrivateLinkResources property: The list of shared private link resources in this workspace.
+ *
+ * @param sharedPrivateLinkResources the sharedPrivateLinkResources value to set.
+ * @return the WorkspacePropertiesInner object itself.
+ */
+ public WorkspacePropertiesInner withSharedPrivateLinkResources(
+ List sharedPrivateLinkResources) {
+ this.sharedPrivateLinkResources = sharedPrivateLinkResources;
+ return this;
+ }
+
+ /**
+ * Get the notebookInfo property: The notebook info of Azure ML workspace.
+ *
+ * @return the notebookInfo value.
+ */
+ public NotebookResourceInfoInner notebookInfo() {
+ return this.notebookInfo;
+ }
+
+ /**
+ * Get the serviceManagedResourcesSettings property: The service managed resource settings.
+ *
+ * @return the serviceManagedResourcesSettings value.
+ */
+ public ServiceManagedResourcesSettings serviceManagedResourcesSettings() {
+ return this.serviceManagedResourcesSettings;
+ }
+
+ /**
+ * Set the serviceManagedResourcesSettings property: The service managed resource settings.
+ *
+ * @param serviceManagedResourcesSettings the serviceManagedResourcesSettings value to set.
+ * @return the WorkspacePropertiesInner object itself.
+ */
+ public WorkspacePropertiesInner withServiceManagedResourcesSettings(
+ ServiceManagedResourcesSettings serviceManagedResourcesSettings) {
+ this.serviceManagedResourcesSettings = serviceManagedResourcesSettings;
+ return this;
+ }
+
+ /**
+ * Get the primaryUserAssignedIdentity property: The user assigned identity resource id that represents the
+ * workspace identity.
+ *
+ * @return the primaryUserAssignedIdentity value.
+ */
+ public String primaryUserAssignedIdentity() {
+ return this.primaryUserAssignedIdentity;
+ }
+
+ /**
+ * Set the primaryUserAssignedIdentity property: The user assigned identity resource id that represents the
+ * workspace identity.
+ *
+ * @param primaryUserAssignedIdentity the primaryUserAssignedIdentity value to set.
+ * @return the WorkspacePropertiesInner object itself.
+ */
+ public WorkspacePropertiesInner withPrimaryUserAssignedIdentity(String primaryUserAssignedIdentity) {
+ this.primaryUserAssignedIdentity = primaryUserAssignedIdentity;
+ return this;
+ }
+
+ /**
+ * Get the tenantId property: The tenant id associated with this workspace.
+ *
+ * @return the tenantId value.
+ */
+ public String tenantId() {
+ return this.tenantId;
+ }
+
+ /**
+ * Get the storageHnsEnabled property: If the storage associated with the workspace has hierarchical namespace(HNS)
+ * enabled.
+ *
+ * @return the storageHnsEnabled value.
+ */
+ public Boolean storageHnsEnabled() {
+ return this.storageHnsEnabled;
+ }
+
+ /**
+ * Get the mlFlowTrackingUri property: The URI associated with this workspace that machine learning flow must point
+ * at to set up tracking.
+ *
+ * @return the mlFlowTrackingUri value.
+ */
+ public String mlFlowTrackingUri() {
+ return this.mlFlowTrackingUri;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (encryption() != null) {
+ encryption().validate();
+ }
+ if (privateEndpointConnections() != null) {
+ privateEndpointConnections().forEach(e -> e.validate());
+ }
+ if (sharedPrivateLinkResources() != null) {
+ sharedPrivateLinkResources().forEach(e -> e.validate());
+ }
+ if (notebookInfo() != null) {
+ notebookInfo().validate();
+ }
+ if (serviceManagedResourcesSettings() != null) {
+ serviceManagedResourcesSettings().validate();
+ }
+ }
+}
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/WorkspacePropertiesUpdateParameters.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/WorkspacePropertiesUpdateParameters.java
new file mode 100644
index 0000000000000..95d92446fe6c0
--- /dev/null
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/WorkspacePropertiesUpdateParameters.java
@@ -0,0 +1,185 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.machinelearningservices.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.machinelearningservices.models.PublicNetworkAccess;
+import com.azure.resourcemanager.machinelearningservices.models.ServiceManagedResourcesSettings;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The parameters for updating the properties of a machine learning workspace. */
+@Fluent
+public final class WorkspacePropertiesUpdateParameters {
+ /*
+ * The description of this workspace.
+ */
+ @JsonProperty(value = "description")
+ private String description;
+
+ /*
+ * The friendly name for this workspace.
+ */
+ @JsonProperty(value = "friendlyName")
+ private String friendlyName;
+
+ /*
+ * The compute name for image build
+ */
+ @JsonProperty(value = "imageBuildCompute")
+ private String imageBuildCompute;
+
+ /*
+ * The service managed resource settings.
+ */
+ @JsonProperty(value = "serviceManagedResourcesSettings")
+ private ServiceManagedResourcesSettings serviceManagedResourcesSettings;
+
+ /*
+ * The user assigned identity resource id that represents the workspace
+ * identity.
+ */
+ @JsonProperty(value = "primaryUserAssignedIdentity")
+ private String primaryUserAssignedIdentity;
+
+ /*
+ * Whether requests from Public Network are allowed.
+ */
+ @JsonProperty(value = "publicNetworkAccess")
+ private PublicNetworkAccess publicNetworkAccess;
+
+ /**
+ * Get the description property: The description of this workspace.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Set the description property: The description of this workspace.
+ *
+ * @param description the description value to set.
+ * @return the WorkspacePropertiesUpdateParameters object itself.
+ */
+ public WorkspacePropertiesUpdateParameters withDescription(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * Get the friendlyName property: The friendly name for this workspace.
+ *
+ * @return the friendlyName value.
+ */
+ public String friendlyName() {
+ return this.friendlyName;
+ }
+
+ /**
+ * Set the friendlyName property: The friendly name for this workspace.
+ *
+ * @param friendlyName the friendlyName value to set.
+ * @return the WorkspacePropertiesUpdateParameters object itself.
+ */
+ public WorkspacePropertiesUpdateParameters withFriendlyName(String friendlyName) {
+ this.friendlyName = friendlyName;
+ return this;
+ }
+
+ /**
+ * Get the imageBuildCompute property: The compute name for image build.
+ *
+ * @return the imageBuildCompute value.
+ */
+ public String imageBuildCompute() {
+ return this.imageBuildCompute;
+ }
+
+ /**
+ * Set the imageBuildCompute property: The compute name for image build.
+ *
+ * @param imageBuildCompute the imageBuildCompute value to set.
+ * @return the WorkspacePropertiesUpdateParameters object itself.
+ */
+ public WorkspacePropertiesUpdateParameters withImageBuildCompute(String imageBuildCompute) {
+ this.imageBuildCompute = imageBuildCompute;
+ return this;
+ }
+
+ /**
+ * Get the serviceManagedResourcesSettings property: The service managed resource settings.
+ *
+ * @return the serviceManagedResourcesSettings value.
+ */
+ public ServiceManagedResourcesSettings serviceManagedResourcesSettings() {
+ return this.serviceManagedResourcesSettings;
+ }
+
+ /**
+ * Set the serviceManagedResourcesSettings property: The service managed resource settings.
+ *
+ * @param serviceManagedResourcesSettings the serviceManagedResourcesSettings value to set.
+ * @return the WorkspacePropertiesUpdateParameters object itself.
+ */
+ public WorkspacePropertiesUpdateParameters withServiceManagedResourcesSettings(
+ ServiceManagedResourcesSettings serviceManagedResourcesSettings) {
+ this.serviceManagedResourcesSettings = serviceManagedResourcesSettings;
+ return this;
+ }
+
+ /**
+ * Get the primaryUserAssignedIdentity property: The user assigned identity resource id that represents the
+ * workspace identity.
+ *
+ * @return the primaryUserAssignedIdentity value.
+ */
+ public String primaryUserAssignedIdentity() {
+ return this.primaryUserAssignedIdentity;
+ }
+
+ /**
+ * Set the primaryUserAssignedIdentity property: The user assigned identity resource id that represents the
+ * workspace identity.
+ *
+ * @param primaryUserAssignedIdentity the primaryUserAssignedIdentity value to set.
+ * @return the WorkspacePropertiesUpdateParameters object itself.
+ */
+ public WorkspacePropertiesUpdateParameters withPrimaryUserAssignedIdentity(String primaryUserAssignedIdentity) {
+ this.primaryUserAssignedIdentity = primaryUserAssignedIdentity;
+ 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 WorkspacePropertiesUpdateParameters object itself.
+ */
+ public WorkspacePropertiesUpdateParameters withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
+ this.publicNetworkAccess = publicNetworkAccess;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (serviceManagedResourcesSettings() != null) {
+ serviceManagedResourcesSettings().validate();
+ }
+ }
+}
diff --git a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/WorkspaceSkuInner.java b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/WorkspaceSkuInner.java
index b62edc97d6831..73615cb6795ca 100644
--- a/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/WorkspaceSkuInner.java
+++ b/sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/fluent/models/WorkspaceSkuInner.java
@@ -5,19 +5,15 @@
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.ResourceSkuLocationInfo;
import com.azure.resourcemanager.machinelearningservices.models.Restriction;
import com.azure.resourcemanager.machinelearningservices.models.SkuCapability;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Describes Workspace Sku details and features. */
@Fluent
public final class WorkspaceSkuInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkspaceSkuInner.class);
-
/*
* The set of locations that the SKU is available. This will be supported
* and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia,
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 eea90921315f0..fa83654cc236f 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
@@ -7,7 +7,6 @@
import com.azure.core.annotation.ServiceClientBuilder;
import com.azure.core.http.HttpPipeline;
import com.azure.core.http.HttpPipelineBuilder;
-import com.azure.core.http.policy.CookiePolicy;
import com.azure.core.http.policy.RetryPolicy;
import com.azure.core.http.policy.UserAgentPolicy;
import com.azure.core.management.AzureEnvironment;
@@ -19,12 +18,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.
@@ -67,34 +66,34 @@ public AzureMachineLearningWorkspacesBuilder environment(AzureEnvironment enviro
}
/*
- * The default poll interval for long-running operation
+ * The HTTP pipeline to send requests through
*/
- private Duration defaultPollInterval;
+ private HttpPipeline pipeline;
/**
- * Sets The default poll interval for long-running operation.
+ * Sets The HTTP pipeline to send requests through.
*
- * @param defaultPollInterval the defaultPollInterval value.
+ * @param pipeline the pipeline value.
* @return the AzureMachineLearningWorkspacesBuilder.
*/
- public AzureMachineLearningWorkspacesBuilder defaultPollInterval(Duration defaultPollInterval) {
- this.defaultPollInterval = defaultPollInterval;
+ public AzureMachineLearningWorkspacesBuilder pipeline(HttpPipeline pipeline) {
+ this.pipeline = pipeline;
return this;
}
/*
- * The HTTP pipeline to send requests through
+ * The default poll interval for long-running operation
*/
- private HttpPipeline pipeline;
+ private Duration defaultPollInterval;
/**
- * Sets The HTTP pipeline to send requests through.
+ * Sets The default poll interval for long-running operation.
*
- * @param pipeline the pipeline value.
+ * @param defaultPollInterval the defaultPollInterval value.
* @return the AzureMachineLearningWorkspacesBuilder.
*/
- public AzureMachineLearningWorkspacesBuilder pipeline(HttpPipeline pipeline) {
- this.pipeline = pipeline;
+ public AzureMachineLearningWorkspacesBuilder defaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval = defaultPollInterval;
return this;
}
@@ -126,15 +125,12 @@ public AzureMachineLearningWorkspacesImpl buildClient() {
if (environment == null) {
this.environment = AzureEnvironment.AZURE;
}
+ if (pipeline == null) {
+ this.pipeline = new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
+ }
if (defaultPollInterval == null) {
this.defaultPollInterval = Duration.ofSeconds(30);
}
- if (pipeline == null) {
- this.pipeline =
- new HttpPipelineBuilder()
- .policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy())
- .build();
- }
if (serializerAdapter == null) {
this.serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter();
}
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 031355d5ac861..e7ecc52f1bb42 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;
@@ -49,13 +46,11 @@
/** Initializes a new instance of the AzureMachineLearningWorkspacesImpl type. */
@ServiceClient(builder = AzureMachineLearningWorkspacesBuilder.class)
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 +142,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 +178,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 +214,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 +257,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 +272,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);
}
/**
@@ -413,7 +369,7 @@ public Mono getLroFinalResultOrError(AsyncPollResponse,
managementError = null;
}
} catch (IOException | RuntimeException ioe) {
- logger.logThrowableAsWarning(ioe);
+ LOGGER.logThrowableAsWarning(ioe);
}
}
} else {
@@ -472,4 +428,6 @@ public Mono getBodyAsString(Charset charset) {
return Mono.just(new String(responseBody, charset));
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(AzureMachineLearningWorkspacesImpl.class);
}
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 340f21513bf74..7d0a295ca8201 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 83%
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 486c37c45ef22..5f3f7380da491 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
@@ -31,10 +31,9 @@
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.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 +45,38 @@
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 {
/** 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 +221,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 +237,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,16 +257,17 @@ 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.
* @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 computes in specified workspace.
+ * @return computes in specified workspace along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
*/
@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 +293,7 @@ private Mono> listByWorkspaceSinglePageAsync
.withContext(
context ->
service
- .listByWorkspace(
+ .list(
this.client.getEndpoint(),
this.client.getSubscriptionId(),
resourceGroupName,
@@ -321,17 +317,18 @@ 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.
* @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 computes in specified workspace.
+ * @return computes in specified workspace along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
*/
@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 +352,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,105 +375,104 @@ 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.
* @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 computes in specified workspace.
+ * @return computes in specified workspace as paginated response with {@link PagedFlux}.
*/
@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.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return computes in specified workspace.
+ * @return computes in specified workspace as paginated response with {@link PagedFlux}.
*/
@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.
* @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 computes in specified workspace.
+ * @return computes in specified workspace as paginated response with {@link PagedFlux}.
*/
@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.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return computes in specified workspace.
+ * @return computes in specified workspace as paginated response with {@link PagedIterable}.
*/
@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.
* @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 computes in specified workspace.
+ * @return computes in specified workspace as paginated response with {@link PagedIterable}.
*/
@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.
* @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 definition by its name.
+ * @return compute definition by its name along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(
@@ -524,14 +520,14 @@ 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.
* @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 definition by its name.
+ * @return compute definition by its name along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(
@@ -576,13 +572,13 @@ 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.
* @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 definition by its name.
+ * @return compute definition by its name on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getAsync(String resourceGroupName, String workspaceName, String computeName) {
@@ -601,7 +597,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,14 +614,14 @@ 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.
* @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 definition by its name.
+ * @return compute definition by its name along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getWithResponse(
@@ -637,14 +633,15 @@ 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.
* @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 machine Learning compute object wrapped into ARM resource envelope.
+ * @return machine Learning compute object wrapped into ARM resource envelope along with {@link Response} on
+ * successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createOrUpdateWithResponseAsync(
@@ -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.
@@ -706,7 +703,8 @@ private Mono>> createOrUpdateWithResponseAsync(
* @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 machine Learning compute object wrapped into ARM resource envelope.
+ * @return machine Learning compute object wrapped into ARM resource envelope along with {@link Response} on
+ * successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createOrUpdateWithResponseAsync(
@@ -761,16 +759,16 @@ 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.
* @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 machine Learning compute object wrapped into ARM resource envelope.
+ * @return the {@link PollerFlux} for polling of machine Learning compute object wrapped into ARM resource envelope.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, ComputeResourceInner> beginCreateOrUpdateAsync(
String resourceGroupName, String workspaceName, String computeName, ComputeResourceInner parameters) {
Mono>> mono =
@@ -782,14 +780,14 @@ private PollerFlux, ComputeResourceInner> begin
this.client.getHttpPipeline(),
ComputeResourceInner.class,
ComputeResourceInner.class,
- Context.NONE);
+ this.client.getContext());
}
/**
* 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.
@@ -797,9 +795,9 @@ private PollerFlux, ComputeResourceInner> begin
* @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 machine Learning compute object wrapped into ARM resource envelope.
+ * @return the {@link PollerFlux} for polling of machine Learning compute object wrapped into ARM resource envelope.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, ComputeResourceInner> beginCreateOrUpdateAsync(
String resourceGroupName,
String workspaceName,
@@ -819,16 +817,16 @@ 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.
* @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 machine Learning compute object wrapped into ARM resource envelope.
+ * @return the {@link SyncPoller} for polling of machine Learning compute object wrapped into ARM resource envelope.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ComputeResourceInner> beginCreateOrUpdate(
String resourceGroupName, String workspaceName, String computeName, ComputeResourceInner parameters) {
return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, computeName, parameters).getSyncPoller();
@@ -838,7 +836,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.
@@ -846,9 +844,9 @@ public SyncPoller, ComputeResourceInner> beginC
* @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 machine Learning compute object wrapped into ARM resource envelope.
+ * @return the {@link SyncPoller} for polling of machine Learning compute object wrapped into ARM resource envelope.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ComputeResourceInner> beginCreateOrUpdate(
String resourceGroupName,
String workspaceName,
@@ -863,14 +861,15 @@ 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.
* @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 machine Learning compute object wrapped into ARM resource envelope.
+ * @return machine Learning compute object wrapped into ARM resource envelope on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createOrUpdateAsync(
@@ -884,7 +883,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.
@@ -892,7 +891,8 @@ private Mono createOrUpdateAsync(
* @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 machine Learning compute object wrapped into ARM resource envelope.
+ * @return machine Learning compute object wrapped into ARM resource envelope on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createOrUpdateAsync(
@@ -910,7 +910,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 +929,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,14 +953,15 @@ 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.
* @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 machine Learning compute object wrapped into ARM resource envelope.
+ * @return machine Learning compute object wrapped into ARM resource envelope along with {@link Response} on
+ * successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> updateWithResponseAsync(
@@ -1014,7 +1015,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.
@@ -1022,7 +1023,8 @@ private Mono>> updateWithResponseAsync(
* @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 machine Learning compute object wrapped into ARM resource envelope.
+ * @return machine Learning compute object wrapped into ARM resource envelope along with {@link Response} on
+ * successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> updateWithResponseAsync(
@@ -1077,16 +1079,16 @@ 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.
* @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 machine Learning compute object wrapped into ARM resource envelope.
+ * @return the {@link PollerFlux} for polling of machine Learning compute object wrapped into ARM resource envelope.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, ComputeResourceInner> beginUpdateAsync(
String resourceGroupName, String workspaceName, String computeName, ClusterUpdateParameters parameters) {
Mono>> mono =
@@ -1098,14 +1100,14 @@ private PollerFlux, ComputeResourceInner> begin
this.client.getHttpPipeline(),
ComputeResourceInner.class,
ComputeResourceInner.class,
- Context.NONE);
+ this.client.getContext());
}
/**
* 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.
@@ -1113,9 +1115,9 @@ private PollerFlux, ComputeResourceInner> begin
* @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 machine Learning compute object wrapped into ARM resource envelope.
+ * @return the {@link PollerFlux} for polling of machine Learning compute object wrapped into ARM resource envelope.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, ComputeResourceInner> beginUpdateAsync(
String resourceGroupName,
String workspaceName,
@@ -1135,16 +1137,16 @@ 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.
* @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 machine Learning compute object wrapped into ARM resource envelope.
+ * @return the {@link SyncPoller} for polling of machine Learning compute object wrapped into ARM resource envelope.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ComputeResourceInner> beginUpdate(
String resourceGroupName, String workspaceName, String computeName, ClusterUpdateParameters parameters) {
return beginUpdateAsync(resourceGroupName, workspaceName, computeName, parameters).getSyncPoller();
@@ -1154,7 +1156,7 @@ public SyncPoller