net.bytebuddy
byte-buddy
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/HDInsightContainersManager.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/HDInsightContainersManager.java
index 4e39035d863de..d7c97053129ac 100644
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/HDInsightContainersManager.java
+++ b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/HDInsightContainersManager.java
@@ -26,7 +26,9 @@
import com.azure.resourcemanager.hdinsight.containers.fluent.HDInsightContainersManagementClient;
import com.azure.resourcemanager.hdinsight.containers.implementation.AvailableClusterPoolVersionsImpl;
import com.azure.resourcemanager.hdinsight.containers.implementation.AvailableClusterVersionsImpl;
+import com.azure.resourcemanager.hdinsight.containers.implementation.ClusterAvailableUpgradesImpl;
import com.azure.resourcemanager.hdinsight.containers.implementation.ClusterJobsImpl;
+import com.azure.resourcemanager.hdinsight.containers.implementation.ClusterPoolAvailableUpgradesImpl;
import com.azure.resourcemanager.hdinsight.containers.implementation.ClusterPoolsImpl;
import com.azure.resourcemanager.hdinsight.containers.implementation.ClustersImpl;
import com.azure.resourcemanager.hdinsight.containers.implementation.HDInsightContainersManagementClientBuilder;
@@ -34,7 +36,9 @@
import com.azure.resourcemanager.hdinsight.containers.implementation.OperationsImpl;
import com.azure.resourcemanager.hdinsight.containers.models.AvailableClusterPoolVersions;
import com.azure.resourcemanager.hdinsight.containers.models.AvailableClusterVersions;
+import com.azure.resourcemanager.hdinsight.containers.models.ClusterAvailableUpgrades;
import com.azure.resourcemanager.hdinsight.containers.models.ClusterJobs;
+import com.azure.resourcemanager.hdinsight.containers.models.ClusterPoolAvailableUpgrades;
import com.azure.resourcemanager.hdinsight.containers.models.ClusterPools;
import com.azure.resourcemanager.hdinsight.containers.models.Clusters;
import com.azure.resourcemanager.hdinsight.containers.models.Locations;
@@ -46,12 +50,19 @@
import java.util.Objects;
import java.util.stream.Collectors;
-/** Entry point to HDInsightContainersManager. HDInsight Containers Management Client. */
+/**
+ * Entry point to HDInsightContainersManager.
+ * HDInsight Containers Management Client.
+ */
public final class HDInsightContainersManager {
private ClusterPools clusterPools;
+ private ClusterPoolAvailableUpgrades clusterPoolAvailableUpgrades;
+
private Clusters clusters;
+ private ClusterAvailableUpgrades clusterAvailableUpgrades;
+
private ClusterJobs clusterJobs;
private Locations locations;
@@ -67,18 +78,14 @@ public final class HDInsightContainersManager {
private HDInsightContainersManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
- this.clientObject =
- new HDInsightContainersManagementClientBuilder()
- .pipeline(httpPipeline)
- .endpoint(profile.getEnvironment().getResourceManagerEndpoint())
- .subscriptionId(profile.getSubscriptionId())
- .defaultPollInterval(defaultPollInterval)
- .buildClient();
+ this.clientObject = new HDInsightContainersManagementClientBuilder().pipeline(httpPipeline)
+ .endpoint(profile.getEnvironment().getResourceManagerEndpoint()).subscriptionId(profile.getSubscriptionId())
+ .defaultPollInterval(defaultPollInterval).buildClient();
}
/**
* Creates an instance of HDInsightContainers service API entry point.
- *
+ *
* @param credential the credential to use.
* @param profile the Azure profile for client.
* @return the HDInsightContainers service API instance.
@@ -91,7 +98,7 @@ public static HDInsightContainersManager authenticate(TokenCredential credential
/**
* Creates an instance of HDInsightContainers service API entry point.
- *
+ *
* @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential.
* @param profile the Azure profile for client.
* @return the HDInsightContainers service API instance.
@@ -104,14 +111,16 @@ public static HDInsightContainersManager authenticate(HttpPipeline httpPipeline,
/**
* Gets a Configurable instance that can be used to create HDInsightContainersManager with optional configuration.
- *
+ *
* @return the Configurable instance allowing configurations.
*/
public static Configurable configure() {
return new HDInsightContainersManager.Configurable();
}
- /** The Configurable allowing configurations to be set. */
+ /**
+ * The Configurable allowing configurations to be set.
+ */
public static final class Configurable {
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
@@ -183,8 +192,8 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
/**
* Sets the retry options for the HTTP pipeline retry policy.
- *
- * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
+ *
+ * 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.
@@ -201,8 +210,8 @@ public Configurable withRetryOptions(RetryOptions retryOptions) {
* @return the configurable object itself.
*/
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
- this.defaultPollInterval =
- Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
+ this.defaultPollInterval
+ = Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
if (this.defaultPollInterval.isNegative()) {
throw LOGGER
.logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
@@ -222,21 +231,12 @@ public HDInsightContainersManager authenticate(TokenCredential credential, Azure
Objects.requireNonNull(profile, "'profile' cannot be null.");
StringBuilder userAgentBuilder = new StringBuilder();
- userAgentBuilder
- .append("azsdk-java")
- .append("-")
- .append("com.azure.resourcemanager.hdinsight.containers")
- .append("/")
- .append("1.0.0-beta.1");
+ userAgentBuilder.append("azsdk-java").append("-").append("com.azure.resourcemanager.hdinsight.containers")
+ .append("/").append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
- userAgentBuilder
- .append(" (")
- .append(Configuration.getGlobalConfiguration().get("java.version"))
- .append("; ")
- .append(Configuration.getGlobalConfiguration().get("os.name"))
- .append("; ")
- .append(Configuration.getGlobalConfiguration().get("os.version"))
- .append("; auto-generated)");
+ userAgentBuilder.append(" (").append(Configuration.getGlobalConfiguration().get("java.version"))
+ .append("; ").append(Configuration.getGlobalConfiguration().get("os.name")).append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.version")).append("; auto-generated)");
} else {
userAgentBuilder.append(" (auto-generated)");
}
@@ -255,38 +255,25 @@ public HDInsightContainersManager authenticate(TokenCredential credential, Azure
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()));
+ 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
- .addAll(
- this
- .policies
- .stream()
- .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
- .collect(Collectors.toList()));
+ 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 =
- new HttpPipelineBuilder()
- .httpClient(httpClient)
- .policies(policies.toArray(new HttpPipelinePolicy[0]))
- .build();
+ HttpPipeline httpPipeline = new HttpPipelineBuilder().httpClient(httpClient)
+ .policies(policies.toArray(new HttpPipelinePolicy[0])).build();
return new HDInsightContainersManager(httpPipeline, profile, defaultPollInterval);
}
}
/**
* Gets the resource collection API of ClusterPools. It manages ClusterPool.
- *
+ *
* @return Resource collection API of ClusterPools.
*/
public ClusterPools clusterPools() {
@@ -296,9 +283,22 @@ public ClusterPools clusterPools() {
return clusterPools;
}
+ /**
+ * Gets the resource collection API of ClusterPoolAvailableUpgrades.
+ *
+ * @return Resource collection API of ClusterPoolAvailableUpgrades.
+ */
+ public ClusterPoolAvailableUpgrades clusterPoolAvailableUpgrades() {
+ if (this.clusterPoolAvailableUpgrades == null) {
+ this.clusterPoolAvailableUpgrades
+ = new ClusterPoolAvailableUpgradesImpl(clientObject.getClusterPoolAvailableUpgrades(), this);
+ }
+ return clusterPoolAvailableUpgrades;
+ }
+
/**
* Gets the resource collection API of Clusters. It manages Cluster.
- *
+ *
* @return Resource collection API of Clusters.
*/
public Clusters clusters() {
@@ -308,9 +308,22 @@ public Clusters clusters() {
return clusters;
}
+ /**
+ * Gets the resource collection API of ClusterAvailableUpgrades.
+ *
+ * @return Resource collection API of ClusterAvailableUpgrades.
+ */
+ public ClusterAvailableUpgrades clusterAvailableUpgrades() {
+ if (this.clusterAvailableUpgrades == null) {
+ this.clusterAvailableUpgrades
+ = new ClusterAvailableUpgradesImpl(clientObject.getClusterAvailableUpgrades(), this);
+ }
+ return clusterAvailableUpgrades;
+ }
+
/**
* Gets the resource collection API of ClusterJobs.
- *
+ *
* @return Resource collection API of ClusterJobs.
*/
public ClusterJobs clusterJobs() {
@@ -322,7 +335,7 @@ public ClusterJobs clusterJobs() {
/**
* Gets the resource collection API of Locations.
- *
+ *
* @return Resource collection API of Locations.
*/
public Locations locations() {
@@ -334,7 +347,7 @@ public Locations locations() {
/**
* Gets the resource collection API of Operations.
- *
+ *
* @return Resource collection API of Operations.
*/
public Operations operations() {
@@ -346,26 +359,26 @@ public Operations operations() {
/**
* Gets the resource collection API of AvailableClusterPoolVersions.
- *
+ *
* @return Resource collection API of AvailableClusterPoolVersions.
*/
public AvailableClusterPoolVersions availableClusterPoolVersions() {
if (this.availableClusterPoolVersions == null) {
- this.availableClusterPoolVersions =
- new AvailableClusterPoolVersionsImpl(clientObject.getAvailableClusterPoolVersions(), this);
+ this.availableClusterPoolVersions
+ = new AvailableClusterPoolVersionsImpl(clientObject.getAvailableClusterPoolVersions(), this);
}
return availableClusterPoolVersions;
}
/**
* Gets the resource collection API of AvailableClusterVersions.
- *
+ *
* @return Resource collection API of AvailableClusterVersions.
*/
public AvailableClusterVersions availableClusterVersions() {
if (this.availableClusterVersions == null) {
- this.availableClusterVersions =
- new AvailableClusterVersionsImpl(clientObject.getAvailableClusterVersions(), this);
+ this.availableClusterVersions
+ = new AvailableClusterVersionsImpl(clientObject.getAvailableClusterVersions(), this);
}
return availableClusterVersions;
}
@@ -373,7 +386,7 @@ public AvailableClusterVersions availableClusterVersions() {
/**
* Gets wrapped service client HDInsightContainersManagementClient providing direct access to the underlying
* auto-generated API implementation, based on Azure REST API.
- *
+ *
* @return Wrapped service client HDInsightContainersManagementClient.
*/
public HDInsightContainersManagementClient serviceClient() {
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/AvailableClusterPoolVersionsClient.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/AvailableClusterPoolVersionsClient.java
index 884a18b08dbb1..c88550abec117 100644
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/AvailableClusterPoolVersionsClient.java
+++ b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/AvailableClusterPoolVersionsClient.java
@@ -10,11 +10,13 @@
import com.azure.core.util.Context;
import com.azure.resourcemanager.hdinsight.containers.fluent.models.ClusterPoolVersionInner;
-/** An instance of this class provides access to all the operations defined in AvailableClusterPoolVersionsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in AvailableClusterPoolVersionsClient.
+ */
public interface AvailableClusterPoolVersionsClient {
/**
* Returns a list of available cluster pool versions.
- *
+ *
* @param location The name of the Azure region.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -26,7 +28,7 @@ public interface AvailableClusterPoolVersionsClient {
/**
* Returns a list of available cluster pool versions.
- *
+ *
* @param location The name of the Azure region.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/AvailableClusterVersionsClient.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/AvailableClusterVersionsClient.java
index e4a849c6c7857..ade4b45436b07 100644
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/AvailableClusterVersionsClient.java
+++ b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/AvailableClusterVersionsClient.java
@@ -10,11 +10,13 @@
import com.azure.core.util.Context;
import com.azure.resourcemanager.hdinsight.containers.fluent.models.ClusterVersionInner;
-/** An instance of this class provides access to all the operations defined in AvailableClusterVersionsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in AvailableClusterVersionsClient.
+ */
public interface AvailableClusterVersionsClient {
/**
* Returns a list of available cluster versions.
- *
+ *
* @param location The name of the Azure region.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -26,7 +28,7 @@ public interface AvailableClusterVersionsClient {
/**
* Returns a list of available cluster versions.
- *
+ *
* @param location The name of the Azure region.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/ClusterAvailableUpgradesClient.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/ClusterAvailableUpgradesClient.java
new file mode 100644
index 0000000000000..c4e794b8385a5
--- /dev/null
+++ b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/ClusterAvailableUpgradesClient.java
@@ -0,0 +1,47 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hdinsight.containers.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.hdinsight.containers.fluent.models.ClusterAvailableUpgradeInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in ClusterAvailableUpgradesClient.
+ */
+public interface ClusterAvailableUpgradesClient {
+ /**
+ * List a cluster available upgrade.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterPoolName The name of the cluster pool.
+ * @param clusterName The name of the HDInsight cluster.
+ * @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 collection of cluster available upgrade as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String clusterPoolName,
+ String clusterName);
+
+ /**
+ * List a cluster available upgrade.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterPoolName The name of the cluster pool.
+ * @param clusterName The name of the HDInsight cluster.
+ * @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 collection of cluster available upgrade as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String clusterPoolName,
+ String clusterName, Context context);
+}
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/ClusterJobsClient.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/ClusterJobsClient.java
index 6c97551434ead..931dd88ea3327 100644
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/ClusterJobsClient.java
+++ b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/ClusterJobsClient.java
@@ -12,11 +12,13 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.hdinsight.containers.fluent.models.ClusterJobInner;
-/** An instance of this class provides access to all the operations defined in ClusterJobsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in ClusterJobsClient.
+ */
public interface ClusterJobsClient {
/**
* Operations on jobs of HDInsight on AKS cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
@@ -27,12 +29,12 @@ public interface ClusterJobsClient {
* @return the {@link SyncPoller} for polling of cluster job.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ClusterJobInner> beginRunJob(
- String resourceGroupName, String clusterPoolName, String clusterName, ClusterJobInner clusterJob);
+ SyncPoller, ClusterJobInner> beginRunJob(String resourceGroupName,
+ String clusterPoolName, String clusterName, ClusterJobInner clusterJob);
/**
* Operations on jobs of HDInsight on AKS cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
@@ -44,16 +46,12 @@ SyncPoller, ClusterJobInner> beginRunJob(
* @return the {@link SyncPoller} for polling of cluster job.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ClusterJobInner> beginRunJob(
- String resourceGroupName,
- String clusterPoolName,
- String clusterName,
- ClusterJobInner clusterJob,
- Context context);
+ SyncPoller, ClusterJobInner> beginRunJob(String resourceGroupName,
+ String clusterPoolName, String clusterName, ClusterJobInner clusterJob, Context context);
/**
* Operations on jobs of HDInsight on AKS cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
@@ -64,12 +62,12 @@ SyncPoller, ClusterJobInner> beginRunJob(
* @return cluster job.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ClusterJobInner runJob(
- String resourceGroupName, String clusterPoolName, String clusterName, ClusterJobInner clusterJob);
+ ClusterJobInner runJob(String resourceGroupName, String clusterPoolName, String clusterName,
+ ClusterJobInner clusterJob);
/**
* Operations on jobs of HDInsight on AKS cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
@@ -81,16 +79,12 @@ ClusterJobInner runJob(
* @return cluster job.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ClusterJobInner runJob(
- String resourceGroupName,
- String clusterPoolName,
- String clusterName,
- ClusterJobInner clusterJob,
- Context context);
+ ClusterJobInner runJob(String resourceGroupName, String clusterPoolName, String clusterName,
+ ClusterJobInner clusterJob, Context context);
/**
* Get jobs of HDInsight on AKS cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
@@ -104,10 +98,12 @@ ClusterJobInner runJob(
/**
* Get jobs of HDInsight on AKS cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
+ * @param filter The system query option to filter job returned in the response. Allowed value is 'jobName eq
+ * {jobName}' or 'jarName eq {jarName}'.
* @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.
@@ -115,6 +111,6 @@ ClusterJobInner runJob(
* @return jobs of HDInsight on AKS cluster as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
- String resourceGroupName, String clusterPoolName, String clusterName, Context context);
+ PagedIterable list(String resourceGroupName, String clusterPoolName, String clusterName,
+ String filter, Context context);
}
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/ClusterPoolAvailableUpgradesClient.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/ClusterPoolAvailableUpgradesClient.java
new file mode 100644
index 0000000000000..b6190cf52402d
--- /dev/null
+++ b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/ClusterPoolAvailableUpgradesClient.java
@@ -0,0 +1,44 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hdinsight.containers.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.hdinsight.containers.fluent.models.ClusterPoolAvailableUpgradeInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in ClusterPoolAvailableUpgradesClient.
+ */
+public interface ClusterPoolAvailableUpgradesClient {
+ /**
+ * List a cluster pool available upgrade.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterPoolName The name of the cluster pool.
+ * @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 collection of cluster pool available upgrade as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String clusterPoolName);
+
+ /**
+ * List a cluster pool available upgrade.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterPoolName The name of the cluster pool.
+ * @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 collection of cluster pool available upgrade as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String clusterPoolName,
+ Context context);
+}
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/ClusterPoolsClient.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/ClusterPoolsClient.java
index 3ad36b39f301e..782e4a9fc8f67 100644
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/ClusterPoolsClient.java
+++ b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/ClusterPoolsClient.java
@@ -12,13 +12,16 @@
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.hdinsight.containers.fluent.models.ClusterPoolInner;
+import com.azure.resourcemanager.hdinsight.containers.models.ClusterPoolUpgrade;
import com.azure.resourcemanager.hdinsight.containers.models.TagsObject;
-/** An instance of this class provides access to all the operations defined in ClusterPoolsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in ClusterPoolsClient.
+ */
public interface ClusterPoolsClient {
/**
* Gets a cluster pool.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param context The context to associate with this operation.
@@ -28,12 +31,12 @@ public interface ClusterPoolsClient {
* @return a cluster pool along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(
- String resourceGroupName, String clusterPoolName, Context context);
+ Response getByResourceGroupWithResponse(String resourceGroupName, String clusterPoolName,
+ Context context);
/**
* Gets a cluster pool.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -46,7 +49,7 @@ Response getByResourceGroupWithResponse(
/**
* Creates or updates a cluster pool.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterPool The Cluster Pool to create.
@@ -56,12 +59,12 @@ Response getByResourceGroupWithResponse(
* @return the {@link SyncPoller} for polling of cluster pool.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ClusterPoolInner> beginCreateOrUpdate(
- String resourceGroupName, String clusterPoolName, ClusterPoolInner clusterPool);
+ SyncPoller, ClusterPoolInner> beginCreateOrUpdate(String resourceGroupName,
+ String clusterPoolName, ClusterPoolInner clusterPool);
/**
* Creates or updates a cluster pool.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterPool The Cluster Pool to create.
@@ -72,12 +75,12 @@ SyncPoller, ClusterPoolInner> beginCreateOrUpdate(
* @return the {@link SyncPoller} for polling of cluster pool.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ClusterPoolInner> beginCreateOrUpdate(
- String resourceGroupName, String clusterPoolName, ClusterPoolInner clusterPool, Context context);
+ SyncPoller, ClusterPoolInner> beginCreateOrUpdate(String resourceGroupName,
+ String clusterPoolName, ClusterPoolInner clusterPool, Context context);
/**
* Creates or updates a cluster pool.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterPool The Cluster Pool to create.
@@ -91,7 +94,7 @@ SyncPoller, ClusterPoolInner> beginCreateOrUpdate(
/**
* Creates or updates a cluster pool.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterPool The Cluster Pool to create.
@@ -102,12 +105,12 @@ SyncPoller, ClusterPoolInner> beginCreateOrUpdate(
* @return cluster pool.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ClusterPoolInner createOrUpdate(
- String resourceGroupName, String clusterPoolName, ClusterPoolInner clusterPool, Context context);
+ ClusterPoolInner createOrUpdate(String resourceGroupName, String clusterPoolName, ClusterPoolInner clusterPool,
+ Context context);
/**
* Updates an existing Cluster Pool Tags.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterPoolTags Parameters supplied to update tags.
@@ -117,12 +120,12 @@ ClusterPoolInner createOrUpdate(
* @return the {@link SyncPoller} for polling of cluster pool.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ClusterPoolInner> beginUpdateTags(
- String resourceGroupName, String clusterPoolName, TagsObject clusterPoolTags);
+ SyncPoller, ClusterPoolInner> beginUpdateTags(String resourceGroupName,
+ String clusterPoolName, TagsObject clusterPoolTags);
/**
* Updates an existing Cluster Pool Tags.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterPoolTags Parameters supplied to update tags.
@@ -133,12 +136,12 @@ SyncPoller, ClusterPoolInner> beginUpdateTags(
* @return the {@link SyncPoller} for polling of cluster pool.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ClusterPoolInner> beginUpdateTags(
- String resourceGroupName, String clusterPoolName, TagsObject clusterPoolTags, Context context);
+ SyncPoller, ClusterPoolInner> beginUpdateTags(String resourceGroupName,
+ String clusterPoolName, TagsObject clusterPoolTags, Context context);
/**
* Updates an existing Cluster Pool Tags.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterPoolTags Parameters supplied to update tags.
@@ -152,7 +155,7 @@ SyncPoller, ClusterPoolInner> beginUpdateTags(
/**
* Updates an existing Cluster Pool Tags.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterPoolTags Parameters supplied to update tags.
@@ -163,12 +166,12 @@ SyncPoller, ClusterPoolInner> beginUpdateTags(
* @return cluster pool.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ClusterPoolInner updateTags(
- String resourceGroupName, String clusterPoolName, TagsObject clusterPoolTags, Context context);
+ ClusterPoolInner updateTags(String resourceGroupName, String clusterPoolName, TagsObject clusterPoolTags,
+ Context context);
/**
* Deletes a Cluster Pool.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -181,7 +184,7 @@ ClusterPoolInner updateTags(
/**
* Deletes a Cluster Pool.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param context The context to associate with this operation.
@@ -195,7 +198,7 @@ ClusterPoolInner updateTags(
/**
* Deletes a Cluster Pool.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -207,7 +210,7 @@ ClusterPoolInner updateTags(
/**
* Deletes a Cluster Pool.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param context The context to associate with this operation.
@@ -220,7 +223,7 @@ ClusterPoolInner updateTags(
/**
* Gets the list of Cluster Pools within a Subscription.
- *
+ *
* @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 of Cluster Pools within a Subscription as paginated response with {@link PagedIterable}.
@@ -230,7 +233,7 @@ ClusterPoolInner updateTags(
/**
* Gets the list of Cluster Pools within a Subscription.
- *
+ *
* @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.
@@ -242,7 +245,7 @@ ClusterPoolInner updateTags(
/**
* Lists the HDInsight cluster pools under a resource group.
- *
+ *
* @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.
@@ -254,7 +257,7 @@ ClusterPoolInner updateTags(
/**
* Lists the HDInsight cluster pools under a resource group.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -264,4 +267,66 @@ ClusterPoolInner updateTags(
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Upgrade a cluster pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterPoolName The name of the cluster pool.
+ * @param clusterPoolUpgradeRequest Upgrade a cluster pool.
+ * @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 cluster pool.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ClusterPoolInner> beginUpgrade(String resourceGroupName,
+ String clusterPoolName, ClusterPoolUpgrade clusterPoolUpgradeRequest);
+
+ /**
+ * Upgrade a cluster pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterPoolName The name of the cluster pool.
+ * @param clusterPoolUpgradeRequest Upgrade a cluster pool.
+ * @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 cluster pool.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ClusterPoolInner> beginUpgrade(String resourceGroupName,
+ String clusterPoolName, ClusterPoolUpgrade clusterPoolUpgradeRequest, Context context);
+
+ /**
+ * Upgrade a cluster pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterPoolName The name of the cluster pool.
+ * @param clusterPoolUpgradeRequest Upgrade a cluster pool.
+ * @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 cluster pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ClusterPoolInner upgrade(String resourceGroupName, String clusterPoolName,
+ ClusterPoolUpgrade clusterPoolUpgradeRequest);
+
+ /**
+ * Upgrade a cluster pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterPoolName The name of the cluster pool.
+ * @param clusterPoolUpgradeRequest Upgrade a cluster pool.
+ * @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 cluster pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ClusterPoolInner upgrade(String resourceGroupName, String clusterPoolName,
+ ClusterPoolUpgrade clusterPoolUpgradeRequest, Context context);
}
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/ClustersClient.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/ClustersClient.java
index 07e6bd2d067e0..36f90598a2f8e 100644
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/ClustersClient.java
+++ b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/ClustersClient.java
@@ -16,12 +16,15 @@
import com.azure.resourcemanager.hdinsight.containers.fluent.models.ServiceConfigResultInner;
import com.azure.resourcemanager.hdinsight.containers.models.ClusterPatch;
import com.azure.resourcemanager.hdinsight.containers.models.ClusterResizeData;
+import com.azure.resourcemanager.hdinsight.containers.models.ClusterUpgrade;
-/** An instance of this class provides access to all the operations defined in ClustersClient. */
+/**
+ * An instance of this class provides access to all the operations defined in ClustersClient.
+ */
public interface ClustersClient {
/**
* Lists the HDInsight cluster pools under a resource group.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -34,7 +37,7 @@ public interface ClustersClient {
/**
* Lists the HDInsight cluster pools under a resource group.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param context The context to associate with this operation.
@@ -44,12 +47,78 @@ public interface ClustersClient {
* @return the list cluster operation response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByClusterPoolName(
- String resourceGroupName, String clusterPoolName, Context context);
+ PagedIterable listByClusterPoolName(String resourceGroupName, String clusterPoolName,
+ Context context);
+
+ /**
+ * Upgrade a cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterPoolName The name of the cluster pool.
+ * @param clusterName The name of the HDInsight cluster.
+ * @param clusterUpgradeRequest Upgrade a cluster.
+ * @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 the cluster.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ClusterInner> beginUpgrade(String resourceGroupName, String clusterPoolName,
+ String clusterName, ClusterUpgrade clusterUpgradeRequest);
+
+ /**
+ * Upgrade a cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterPoolName The name of the cluster pool.
+ * @param clusterName The name of the HDInsight cluster.
+ * @param clusterUpgradeRequest Upgrade a cluster.
+ * @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 the cluster.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ClusterInner> beginUpgrade(String resourceGroupName, String clusterPoolName,
+ String clusterName, ClusterUpgrade clusterUpgradeRequest, Context context);
+
+ /**
+ * Upgrade a cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterPoolName The name of the cluster pool.
+ * @param clusterName The name of the HDInsight cluster.
+ * @param clusterUpgradeRequest Upgrade a cluster.
+ * @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 cluster.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ClusterInner upgrade(String resourceGroupName, String clusterPoolName, String clusterName,
+ ClusterUpgrade clusterUpgradeRequest);
+
+ /**
+ * Upgrade a cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterPoolName The name of the cluster pool.
+ * @param clusterName The name of the HDInsight cluster.
+ * @param clusterUpgradeRequest Upgrade a cluster.
+ * @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 cluster.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ClusterInner upgrade(String resourceGroupName, String clusterPoolName, String clusterName,
+ ClusterUpgrade clusterUpgradeRequest, Context context);
/**
* Resize an existing Cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
@@ -60,12 +129,12 @@ PagedIterable listByClusterPoolName(
* @return the {@link SyncPoller} for polling of the cluster.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ClusterInner> beginResize(
- String resourceGroupName, String clusterPoolName, String clusterName, ClusterResizeData clusterResizeRequest);
+ SyncPoller, ClusterInner> beginResize(String resourceGroupName, String clusterPoolName,
+ String clusterName, ClusterResizeData clusterResizeRequest);
/**
* Resize an existing Cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
@@ -77,16 +146,12 @@ SyncPoller, ClusterInner> beginResize(
* @return the {@link SyncPoller} for polling of the cluster.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ClusterInner> beginResize(
- String resourceGroupName,
- String clusterPoolName,
- String clusterName,
- ClusterResizeData clusterResizeRequest,
- Context context);
+ SyncPoller, ClusterInner> beginResize(String resourceGroupName, String clusterPoolName,
+ String clusterName, ClusterResizeData clusterResizeRequest, Context context);
/**
* Resize an existing Cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
@@ -97,12 +162,12 @@ SyncPoller, ClusterInner> beginResize(
* @return the cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ClusterInner resize(
- String resourceGroupName, String clusterPoolName, String clusterName, ClusterResizeData clusterResizeRequest);
+ ClusterInner resize(String resourceGroupName, String clusterPoolName, String clusterName,
+ ClusterResizeData clusterResizeRequest);
/**
* Resize an existing Cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
@@ -114,16 +179,12 @@ ClusterInner resize(
* @return the cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ClusterInner resize(
- String resourceGroupName,
- String clusterPoolName,
- String clusterName,
- ClusterResizeData clusterResizeRequest,
- Context context);
+ ClusterInner resize(String resourceGroupName, String clusterPoolName, String clusterName,
+ ClusterResizeData clusterResizeRequest, Context context);
/**
* Gets a HDInsight cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
@@ -134,12 +195,12 @@ ClusterInner resize(
* @return a HDInsight cluster along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String clusterPoolName, String clusterName, Context context);
+ Response getWithResponse(String resourceGroupName, String clusterPoolName, String clusterName,
+ Context context);
/**
* Gets a HDInsight cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
@@ -153,7 +214,7 @@ Response getWithResponse(
/**
* Creates a cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
@@ -164,12 +225,12 @@ Response getWithResponse(
* @return the {@link SyncPoller} for polling of the cluster.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ClusterInner> beginCreate(
- String resourceGroupName, String clusterPoolName, String clusterName, ClusterInner hDInsightCluster);
+ SyncPoller, ClusterInner> beginCreate(String resourceGroupName, String clusterPoolName,
+ String clusterName, ClusterInner hDInsightCluster);
/**
* Creates a cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
@@ -181,16 +242,12 @@ SyncPoller, ClusterInner> beginCreate(
* @return the {@link SyncPoller} for polling of the cluster.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ClusterInner> beginCreate(
- String resourceGroupName,
- String clusterPoolName,
- String clusterName,
- ClusterInner hDInsightCluster,
- Context context);
+ SyncPoller, ClusterInner> beginCreate(String resourceGroupName, String clusterPoolName,
+ String clusterName, ClusterInner hDInsightCluster, Context context);
/**
* Creates a cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
@@ -201,12 +258,12 @@ SyncPoller, ClusterInner> beginCreate(
* @return the cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ClusterInner create(
- String resourceGroupName, String clusterPoolName, String clusterName, ClusterInner hDInsightCluster);
+ ClusterInner create(String resourceGroupName, String clusterPoolName, String clusterName,
+ ClusterInner hDInsightCluster);
/**
* Creates a cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
@@ -218,16 +275,12 @@ ClusterInner create(
* @return the cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ClusterInner create(
- String resourceGroupName,
- String clusterPoolName,
- String clusterName,
- ClusterInner hDInsightCluster,
- Context context);
+ ClusterInner create(String resourceGroupName, String clusterPoolName, String clusterName,
+ ClusterInner hDInsightCluster, Context context);
/**
* Updates an existing Cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
@@ -238,12 +291,12 @@ ClusterInner create(
* @return the {@link SyncPoller} for polling of the cluster.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ClusterInner> beginUpdate(
- String resourceGroupName, String clusterPoolName, String clusterName, ClusterPatch clusterPatchRequest);
+ SyncPoller, ClusterInner> beginUpdate(String resourceGroupName, String clusterPoolName,
+ String clusterName, ClusterPatch clusterPatchRequest);
/**
* Updates an existing Cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
@@ -255,16 +308,12 @@ SyncPoller, ClusterInner> beginUpdate(
* @return the {@link SyncPoller} for polling of the cluster.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ClusterInner> beginUpdate(
- String resourceGroupName,
- String clusterPoolName,
- String clusterName,
- ClusterPatch clusterPatchRequest,
- Context context);
+ SyncPoller, ClusterInner> beginUpdate(String resourceGroupName, String clusterPoolName,
+ String clusterName, ClusterPatch clusterPatchRequest, Context context);
/**
* Updates an existing Cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
@@ -275,12 +324,12 @@ SyncPoller, ClusterInner> beginUpdate(
* @return the cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ClusterInner update(
- String resourceGroupName, String clusterPoolName, String clusterName, ClusterPatch clusterPatchRequest);
+ ClusterInner update(String resourceGroupName, String clusterPoolName, String clusterName,
+ ClusterPatch clusterPatchRequest);
/**
* Updates an existing Cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
@@ -292,16 +341,12 @@ ClusterInner update(
* @return the cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ClusterInner update(
- String resourceGroupName,
- String clusterPoolName,
- String clusterName,
- ClusterPatch clusterPatchRequest,
- Context context);
+ ClusterInner update(String resourceGroupName, String clusterPoolName, String clusterName,
+ ClusterPatch clusterPatchRequest, Context context);
/**
* Deletes a cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
@@ -311,12 +356,12 @@ ClusterInner update(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(
- String resourceGroupName, String clusterPoolName, String clusterName);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String clusterPoolName,
+ String clusterName);
/**
* Deletes a cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
@@ -327,12 +372,12 @@ SyncPoller, Void> beginDelete(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(
- String resourceGroupName, String clusterPoolName, String clusterName, Context context);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String clusterPoolName, String clusterName,
+ Context context);
/**
* Deletes a cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
@@ -345,7 +390,7 @@ SyncPoller, Void> beginDelete(
/**
* Deletes a cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
@@ -359,7 +404,7 @@ SyncPoller, Void> beginDelete(
/**
* Lists the config dump of all services running in cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
@@ -369,12 +414,12 @@ SyncPoller, Void> beginDelete(
* @return cluster instance service configs api response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listServiceConfigs(
- String resourceGroupName, String clusterPoolName, String clusterName);
+ PagedIterable listServiceConfigs(String resourceGroupName, String clusterPoolName,
+ String clusterName);
/**
* Lists the config dump of all services running in cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
@@ -385,12 +430,12 @@ PagedIterable listServiceConfigs(
* @return cluster instance service configs api response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listServiceConfigs(
- String resourceGroupName, String clusterPoolName, String clusterName, Context context);
+ PagedIterable listServiceConfigs(String resourceGroupName, String clusterPoolName,
+ String clusterName, Context context);
/**
* Lists the lists of instance views.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
@@ -400,12 +445,12 @@ PagedIterable listServiceConfigs(
* @return the instance view of a HDInsight Cluster as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listInstanceViews(
- String resourceGroupName, String clusterPoolName, String clusterName);
+ PagedIterable listInstanceViews(String resourceGroupName, String clusterPoolName,
+ String clusterName);
/**
* Lists the lists of instance views.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
@@ -416,12 +461,12 @@ PagedIterable listInstanceViews(
* @return the instance view of a HDInsight Cluster as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listInstanceViews(
- String resourceGroupName, String clusterPoolName, String clusterName, Context context);
+ PagedIterable listInstanceViews(String resourceGroupName, String clusterPoolName,
+ String clusterName, Context context);
/**
* Gets the status of a cluster instance.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
@@ -432,12 +477,12 @@ PagedIterable listInstanceViews(
* @return the status of a cluster instance along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getInstanceViewWithResponse(
- String resourceGroupName, String clusterPoolName, String clusterName, Context context);
+ Response getInstanceViewWithResponse(String resourceGroupName,
+ String clusterPoolName, String clusterName, Context context);
/**
* Gets the status of a cluster instance.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
@@ -447,6 +492,6 @@ Response getInstanceViewWithResponse(
* @return the status of a cluster instance.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ClusterInstanceViewResultInner getInstanceView(
- String resourceGroupName, String clusterPoolName, String clusterName);
+ ClusterInstanceViewResultInner getInstanceView(String resourceGroupName, String clusterPoolName,
+ String clusterName);
}
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/HDInsightContainersManagementClient.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/HDInsightContainersManagementClient.java
index 0b9b953e19b7e..091ad26b7807b 100644
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/HDInsightContainersManagementClient.java
+++ b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/HDInsightContainersManagementClient.java
@@ -7,88 +7,104 @@
import com.azure.core.http.HttpPipeline;
import java.time.Duration;
-/** The interface for HDInsightContainersManagementClient class. */
+/**
+ * The interface for HDInsightContainersManagementClient class.
+ */
public interface HDInsightContainersManagementClient {
/**
* Gets The ID of the target subscription. The value must be an UUID.
- *
+ *
* @return the subscriptionId value.
*/
String getSubscriptionId();
/**
* Gets server parameter.
- *
+ *
* @return the endpoint value.
*/
String getEndpoint();
/**
* Gets Api Version.
- *
+ *
* @return the apiVersion value.
*/
String getApiVersion();
/**
* Gets The HTTP pipeline to send requests through.
- *
+ *
* @return the httpPipeline value.
*/
HttpPipeline getHttpPipeline();
/**
* Gets The default poll interval for long-running operation.
- *
+ *
* @return the defaultPollInterval value.
*/
Duration getDefaultPollInterval();
/**
* Gets the ClusterPoolsClient object to access its operations.
- *
+ *
* @return the ClusterPoolsClient object.
*/
ClusterPoolsClient getClusterPools();
+ /**
+ * Gets the ClusterPoolAvailableUpgradesClient object to access its operations.
+ *
+ * @return the ClusterPoolAvailableUpgradesClient object.
+ */
+ ClusterPoolAvailableUpgradesClient getClusterPoolAvailableUpgrades();
+
/**
* Gets the ClustersClient object to access its operations.
- *
+ *
* @return the ClustersClient object.
*/
ClustersClient getClusters();
+ /**
+ * Gets the ClusterAvailableUpgradesClient object to access its operations.
+ *
+ * @return the ClusterAvailableUpgradesClient object.
+ */
+ ClusterAvailableUpgradesClient getClusterAvailableUpgrades();
+
/**
* Gets the ClusterJobsClient object to access its operations.
- *
+ *
* @return the ClusterJobsClient object.
*/
ClusterJobsClient getClusterJobs();
/**
* Gets the LocationsClient object to access its operations.
- *
+ *
* @return the LocationsClient object.
*/
LocationsClient getLocations();
/**
* Gets the OperationsClient object to access its operations.
- *
+ *
* @return the OperationsClient object.
*/
OperationsClient getOperations();
/**
* Gets the AvailableClusterPoolVersionsClient object to access its operations.
- *
+ *
* @return the AvailableClusterPoolVersionsClient object.
*/
AvailableClusterPoolVersionsClient getAvailableClusterPoolVersions();
/**
* Gets the AvailableClusterVersionsClient object to access its operations.
- *
+ *
* @return the AvailableClusterVersionsClient object.
*/
AvailableClusterVersionsClient getAvailableClusterVersions();
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/LocationsClient.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/LocationsClient.java
index f111b12e8d20f..8e02e5edf0fab 100644
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/LocationsClient.java
+++ b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/LocationsClient.java
@@ -11,11 +11,13 @@
import com.azure.resourcemanager.hdinsight.containers.fluent.models.NameAvailabilityResultInner;
import com.azure.resourcemanager.hdinsight.containers.models.NameAvailabilityParameters;
-/** An instance of this class provides access to all the operations defined in LocationsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in LocationsClient.
+ */
public interface LocationsClient {
/**
* Check the availability of the resource name.
- *
+ *
* @param location The name of the Azure region.
* @param nameAvailabilityParameters The name and type of the resource.
* @param context The context to associate with this operation.
@@ -25,12 +27,12 @@ public interface LocationsClient {
* @return result of check name availability along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response checkNameAvailabilityWithResponse(
- String location, NameAvailabilityParameters nameAvailabilityParameters, Context context);
+ Response checkNameAvailabilityWithResponse(String location,
+ NameAvailabilityParameters nameAvailabilityParameters, Context context);
/**
* Check the availability of the resource name.
- *
+ *
* @param location The name of the Azure region.
* @param nameAvailabilityParameters The name and type of the resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -39,6 +41,6 @@ Response checkNameAvailabilityWithResponse(
* @return result of check name availability.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- NameAvailabilityResultInner checkNameAvailability(
- String location, NameAvailabilityParameters nameAvailabilityParameters);
+ NameAvailabilityResultInner checkNameAvailability(String location,
+ NameAvailabilityParameters nameAvailabilityParameters);
}
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/OperationsClient.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/OperationsClient.java
index 7fa05ec084a19..64495db5f7a34 100644
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/OperationsClient.java
+++ b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/OperationsClient.java
@@ -10,28 +10,30 @@
import com.azure.core.util.Context;
import com.azure.resourcemanager.hdinsight.containers.fluent.models.OperationInner;
-/** An instance of this class provides access to all the operations defined in OperationsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in OperationsClient.
+ */
public interface OperationsClient {
/**
* Returns list of operations.
- *
+ *
* @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 list of REST API operations supported by an Azure Resource Provider as paginated response with {@link
- * PagedIterable}.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
/**
* Returns list of operations.
- *
+ *
* @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 list of REST API operations supported by an Azure Resource Provider as paginated response with {@link
- * PagedIterable}.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterAvailableUpgradeInner.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterAvailableUpgradeInner.java
new file mode 100644
index 0000000000000..0a2d6aaa8b99c
--- /dev/null
+++ b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterAvailableUpgradeInner.java
@@ -0,0 +1,75 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hdinsight.containers.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.hdinsight.containers.models.ClusterAvailableUpgradeProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Cluster available upgrade.
+ */
+@Fluent
+public final class ClusterAvailableUpgradeInner extends ProxyResource {
+ /*
+ * Gets or sets the properties. Define cluster upgrade specific properties.
+ */
+ @JsonProperty(value = "properties")
+ private ClusterAvailableUpgradeProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Creates an instance of ClusterAvailableUpgradeInner class.
+ */
+ public ClusterAvailableUpgradeInner() {
+ }
+
+ /**
+ * Get the properties property: Gets or sets the properties. Define cluster upgrade specific properties.
+ *
+ * @return the properties value.
+ */
+ public ClusterAvailableUpgradeProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Gets or sets the properties. Define cluster upgrade specific properties.
+ *
+ * @param properties the properties value to set.
+ * @return the ClusterAvailableUpgradeInner object itself.
+ */
+ public ClusterAvailableUpgradeInner withProperties(ClusterAvailableUpgradeProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterInner.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterInner.java
index 467d208900415..0710c0e9cd65e 100644
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterInner.java
+++ b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterInner.java
@@ -13,7 +13,9 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
-/** The cluster. */
+/**
+ * The cluster.
+ */
@Fluent
public final class ClusterInner extends Resource {
/*
@@ -28,13 +30,15 @@ public final class ClusterInner extends Resource {
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
- /** Creates an instance of ClusterInner class. */
+ /**
+ * Creates an instance of ClusterInner class.
+ */
public ClusterInner() {
}
/**
* Get the innerProperties property: Gets or sets the properties. Define cluster specific properties.
- *
+ *
* @return the innerProperties value.
*/
private ClusterResourceProperties innerProperties() {
@@ -43,21 +47,25 @@ private ClusterResourceProperties innerProperties() {
/**
* Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
- *
+ *
* @return the systemData value.
*/
public SystemData systemData() {
return this.systemData;
}
- /** {@inheritDoc} */
+ /**
+ * {@inheritDoc}
+ */
@Override
public ClusterInner withLocation(String location) {
super.withLocation(location);
return this;
}
- /** {@inheritDoc} */
+ /**
+ * {@inheritDoc}
+ */
@Override
public ClusterInner withTags(Map tags) {
super.withTags(tags);
@@ -66,7 +74,7 @@ public ClusterInner withTags(Map tags) {
/**
* Get the provisioningState property: Provisioning state of the resource.
- *
+ *
* @return the provisioningState value.
*/
public ProvisioningStatus provisioningState() {
@@ -75,7 +83,7 @@ public ProvisioningStatus provisioningState() {
/**
* Get the clusterType property: The type of cluster.
- *
+ *
* @return the clusterType value.
*/
public String clusterType() {
@@ -84,7 +92,7 @@ public String clusterType() {
/**
* Set the clusterType property: The type of cluster.
- *
+ *
* @param clusterType the clusterType value to set.
* @return the ClusterInner object itself.
*/
@@ -98,7 +106,7 @@ public ClusterInner withClusterType(String clusterType) {
/**
* Get the deploymentId property: A unique id generated by the RP to identify the resource.
- *
+ *
* @return the deploymentId value.
*/
public String deploymentId() {
@@ -107,7 +115,7 @@ public String deploymentId() {
/**
* Get the computeProfile property: The compute profile.
- *
+ *
* @return the computeProfile value.
*/
public ComputeProfile computeProfile() {
@@ -116,7 +124,7 @@ public ComputeProfile computeProfile() {
/**
* Set the computeProfile property: The compute profile.
- *
+ *
* @param computeProfile the computeProfile value to set.
* @return the ClusterInner object itself.
*/
@@ -130,7 +138,7 @@ public ClusterInner withComputeProfile(ComputeProfile computeProfile) {
/**
* Get the clusterProfile property: Cluster profile.
- *
+ *
* @return the clusterProfile value.
*/
public ClusterProfile clusterProfile() {
@@ -139,7 +147,7 @@ public ClusterProfile clusterProfile() {
/**
* Set the clusterProfile property: Cluster profile.
- *
+ *
* @param clusterProfile the clusterProfile value to set.
* @return the ClusterInner object itself.
*/
@@ -153,7 +161,7 @@ public ClusterInner withClusterProfile(ClusterProfile clusterProfile) {
/**
* Get the status property: Business status of the resource.
- *
+ *
* @return the status value.
*/
public String status() {
@@ -162,7 +170,7 @@ public String status() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterInstanceViewResultInner.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterInstanceViewResultInner.java
index ac86618fece9d..df5290969e581 100644
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterInstanceViewResultInner.java
+++ b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterInstanceViewResultInner.java
@@ -11,7 +11,9 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
-/** Cluster Instance View. */
+/**
+ * Cluster Instance View.
+ */
@Fluent
public final class ClusterInstanceViewResultInner {
/*
@@ -26,13 +28,15 @@ public final class ClusterInstanceViewResultInner {
@JsonProperty(value = "properties", required = true)
private ClusterInstanceViewResultProperties innerProperties = new ClusterInstanceViewResultProperties();
- /** Creates an instance of ClusterInstanceViewResultInner class. */
+ /**
+ * Creates an instance of ClusterInstanceViewResultInner class.
+ */
public ClusterInstanceViewResultInner() {
}
/**
* Get the name property: Name of the instance view.
- *
+ *
* @return the name value.
*/
public String name() {
@@ -41,7 +45,7 @@ public String name() {
/**
* Set the name property: Name of the instance view.
- *
+ *
* @param name the name value to set.
* @return the ClusterInstanceViewResultInner object itself.
*/
@@ -52,7 +56,7 @@ public ClusterInstanceViewResultInner withName(String name) {
/**
* Get the innerProperties property: Properties of the instance view.
- *
+ *
* @return the innerProperties value.
*/
private ClusterInstanceViewResultProperties innerProperties() {
@@ -61,7 +65,7 @@ private ClusterInstanceViewResultProperties innerProperties() {
/**
* Get the status property: Status of the instance view.
- *
+ *
* @return the status value.
*/
public ClusterInstanceViewPropertiesStatus status() {
@@ -70,7 +74,7 @@ public ClusterInstanceViewPropertiesStatus status() {
/**
* Set the status property: Status of the instance view.
- *
+ *
* @param status the status value to set.
* @return the ClusterInstanceViewResultInner object itself.
*/
@@ -83,9 +87,9 @@ public ClusterInstanceViewResultInner withStatus(ClusterInstanceViewPropertiesSt
}
/**
- * Get the serviceStatuses property: List of statuses of relevant services that make up the HDInsight on aks cluster
- * to surface to the customer.
- *
+ * Get the serviceStatuses property: List of statuses of relevant services that make up the HDInsight on AKS
+ * cluster to surface to the customer.
+ *
* @return the serviceStatuses value.
*/
public List serviceStatuses() {
@@ -93,9 +97,9 @@ public List serviceStatuses() {
}
/**
- * Set the serviceStatuses property: List of statuses of relevant services that make up the HDInsight on aks cluster
- * to surface to the customer.
- *
+ * Set the serviceStatuses property: List of statuses of relevant services that make up the HDInsight on AKS
+ * cluster to surface to the customer.
+ *
* @param serviceStatuses the serviceStatuses value to set.
* @return the ClusterInstanceViewResultInner object itself.
*/
@@ -109,21 +113,17 @@ public ClusterInstanceViewResultInner withServiceStatuses(List se
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (name() == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- "Missing required property name in model ClusterInstanceViewResultInner"));
+ throw LOGGER.logExceptionAsError(
+ new IllegalArgumentException("Missing required property name in model ClusterInstanceViewResultInner"));
}
if (innerProperties() == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- "Missing required property innerProperties in model ClusterInstanceViewResultInner"));
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ "Missing required property innerProperties in model ClusterInstanceViewResultInner"));
} else {
innerProperties().validate();
}
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterInstanceViewResultProperties.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterInstanceViewResultProperties.java
index 9fabab175be33..841ad84694fda 100644
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterInstanceViewResultProperties.java
+++ b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterInstanceViewResultProperties.java
@@ -10,21 +10,29 @@
import com.azure.resourcemanager.hdinsight.containers.models.ServiceStatus;
import java.util.List;
-/** Properties of the instance view. */
+/**
+ * Properties of the instance view.
+ */
@Fluent
public final class ClusterInstanceViewResultProperties extends ClusterInstanceViewProperties {
- /** Creates an instance of ClusterInstanceViewResultProperties class. */
+ /**
+ * Creates an instance of ClusterInstanceViewResultProperties class.
+ */
public ClusterInstanceViewResultProperties() {
}
- /** {@inheritDoc} */
+ /**
+ * {@inheritDoc}
+ */
@Override
public ClusterInstanceViewResultProperties withStatus(ClusterInstanceViewPropertiesStatus status) {
super.withStatus(status);
return this;
}
- /** {@inheritDoc} */
+ /**
+ * {@inheritDoc}
+ */
@Override
public ClusterInstanceViewResultProperties withServiceStatuses(List serviceStatuses) {
super.withServiceStatuses(serviceStatuses);
@@ -33,7 +41,7 @@ public ClusterInstanceViewResultProperties withServiceStatuses(List tags) {
super.withTags(tags);
@@ -69,7 +77,7 @@ public ClusterPoolInner withTags(Map tags) {
/**
* Get the provisioningState property: Provisioning state of the resource.
- *
+ *
* @return the provisioningState value.
*/
public ProvisioningStatus provisioningState() {
@@ -78,7 +86,7 @@ public ProvisioningStatus provisioningState() {
/**
* Get the deploymentId property: A unique id generated by the RP to identify the resource.
- *
+ *
* @return the deploymentId value.
*/
public String deploymentId() {
@@ -90,7 +98,7 @@ public String deploymentId() {
* on-behalf of customers. It will also be used to generate aksManagedResourceGroupName by pattern:
* MC_{managedResourceGroupName}_{clusterPoolName}_{region}. Please make sure it meets resource group name
* restriction.
- *
+ *
* @return the managedResourceGroupName value.
*/
public String managedResourceGroupName() {
@@ -102,7 +110,7 @@ public String managedResourceGroupName() {
* on-behalf of customers. It will also be used to generate aksManagedResourceGroupName by pattern:
* MC_{managedResourceGroupName}_{clusterPoolName}_{region}. Please make sure it meets resource group name
* restriction.
- *
+ *
* @param managedResourceGroupName the managedResourceGroupName value to set.
* @return the ClusterPoolInner object itself.
*/
@@ -118,7 +126,7 @@ public ClusterPoolInner withManagedResourceGroupName(String managedResourceGroup
* Get the aksManagedResourceGroupName property: A resource group created by AKS, to hold the infrastructure
* resources created by AKS on-behalf of customers. It is generated by cluster pool name and managed resource group
* name by pattern: MC_{managedResourceGroupName}_{clusterPoolName}_{region}.
- *
+ *
* @return the aksManagedResourceGroupName value.
*/
public String aksManagedResourceGroupName() {
@@ -127,7 +135,7 @@ public String aksManagedResourceGroupName() {
/**
* Get the clusterPoolProfile property: CLuster pool profile.
- *
+ *
* @return the clusterPoolProfile value.
*/
public ClusterPoolResourcePropertiesClusterPoolProfile clusterPoolProfile() {
@@ -136,7 +144,7 @@ public ClusterPoolResourcePropertiesClusterPoolProfile clusterPoolProfile() {
/**
* Set the clusterPoolProfile property: CLuster pool profile.
- *
+ *
* @param clusterPoolProfile the clusterPoolProfile value to set.
* @return the ClusterPoolInner object itself.
*/
@@ -150,7 +158,7 @@ public ClusterPoolInner withClusterPoolProfile(ClusterPoolResourcePropertiesClus
/**
* Get the computeProfile property: CLuster pool compute profile.
- *
+ *
* @return the computeProfile value.
*/
public ClusterPoolResourcePropertiesComputeProfile computeProfile() {
@@ -159,7 +167,7 @@ public ClusterPoolResourcePropertiesComputeProfile computeProfile() {
/**
* Set the computeProfile property: CLuster pool compute profile.
- *
+ *
* @param computeProfile the computeProfile value to set.
* @return the ClusterPoolInner object itself.
*/
@@ -173,7 +181,7 @@ public ClusterPoolInner withComputeProfile(ClusterPoolResourcePropertiesComputeP
/**
* Get the aksClusterProfile property: Properties of underlying AKS cluster.
- *
+ *
* @return the aksClusterProfile value.
*/
public ClusterPoolResourcePropertiesAksClusterProfile aksClusterProfile() {
@@ -182,7 +190,7 @@ public ClusterPoolResourcePropertiesAksClusterProfile aksClusterProfile() {
/**
* Get the networkProfile property: Cluster pool network profile.
- *
+ *
* @return the networkProfile value.
*/
public ClusterPoolResourcePropertiesNetworkProfile networkProfile() {
@@ -191,7 +199,7 @@ public ClusterPoolResourcePropertiesNetworkProfile networkProfile() {
/**
* Set the networkProfile property: Cluster pool network profile.
- *
+ *
* @param networkProfile the networkProfile value to set.
* @return the ClusterPoolInner object itself.
*/
@@ -205,7 +213,7 @@ public ClusterPoolInner withNetworkProfile(ClusterPoolResourcePropertiesNetworkP
/**
* Get the logAnalyticsProfile property: Cluster pool log analytics profile to enable OMS agent for AKS cluster.
- *
+ *
* @return the logAnalyticsProfile value.
*/
public ClusterPoolResourcePropertiesLogAnalyticsProfile logAnalyticsProfile() {
@@ -214,12 +222,12 @@ public ClusterPoolResourcePropertiesLogAnalyticsProfile logAnalyticsProfile() {
/**
* Set the logAnalyticsProfile property: Cluster pool log analytics profile to enable OMS agent for AKS cluster.
- *
+ *
* @param logAnalyticsProfile the logAnalyticsProfile value to set.
* @return the ClusterPoolInner object itself.
*/
- public ClusterPoolInner withLogAnalyticsProfile(
- ClusterPoolResourcePropertiesLogAnalyticsProfile logAnalyticsProfile) {
+ public ClusterPoolInner
+ withLogAnalyticsProfile(ClusterPoolResourcePropertiesLogAnalyticsProfile logAnalyticsProfile) {
if (this.innerProperties() == null) {
this.innerProperties = new ClusterPoolResourceProperties();
}
@@ -229,7 +237,7 @@ public ClusterPoolInner withLogAnalyticsProfile(
/**
* Get the status property: Business status of the resource.
- *
+ *
* @return the status value.
*/
public String status() {
@@ -238,7 +246,7 @@ public String status() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterPoolResourceProperties.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterPoolResourceProperties.java
index 2e65104190ca6..70c23f0da7115 100644
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterPoolResourceProperties.java
+++ b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterPoolResourceProperties.java
@@ -14,7 +14,9 @@
import com.azure.resourcemanager.hdinsight.containers.models.ProvisioningStatus;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** Cluster pool resource properties. */
+/**
+ * Cluster pool resource properties.
+ */
@Fluent
public final class ClusterPoolResourceProperties {
/*
@@ -81,13 +83,15 @@ public final class ClusterPoolResourceProperties {
@JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY)
private String status;
- /** Creates an instance of ClusterPoolResourceProperties class. */
+ /**
+ * Creates an instance of ClusterPoolResourceProperties class.
+ */
public ClusterPoolResourceProperties() {
}
/**
* Get the provisioningState property: Provisioning state of the resource.
- *
+ *
* @return the provisioningState value.
*/
public ProvisioningStatus provisioningState() {
@@ -96,7 +100,7 @@ public ProvisioningStatus provisioningState() {
/**
* Get the deploymentId property: A unique id generated by the RP to identify the resource.
- *
+ *
* @return the deploymentId value.
*/
public String deploymentId() {
@@ -108,7 +112,7 @@ public String deploymentId() {
* on-behalf of customers. It will also be used to generate aksManagedResourceGroupName by pattern:
* MC_{managedResourceGroupName}_{clusterPoolName}_{region}. Please make sure it meets resource group name
* restriction.
- *
+ *
* @return the managedResourceGroupName value.
*/
public String managedResourceGroupName() {
@@ -120,7 +124,7 @@ public String managedResourceGroupName() {
* on-behalf of customers. It will also be used to generate aksManagedResourceGroupName by pattern:
* MC_{managedResourceGroupName}_{clusterPoolName}_{region}. Please make sure it meets resource group name
* restriction.
- *
+ *
* @param managedResourceGroupName the managedResourceGroupName value to set.
* @return the ClusterPoolResourceProperties object itself.
*/
@@ -133,7 +137,7 @@ public ClusterPoolResourceProperties withManagedResourceGroupName(String managed
* Get the aksManagedResourceGroupName property: A resource group created by AKS, to hold the infrastructure
* resources created by AKS on-behalf of customers. It is generated by cluster pool name and managed resource group
* name by pattern: MC_{managedResourceGroupName}_{clusterPoolName}_{region}.
- *
+ *
* @return the aksManagedResourceGroupName value.
*/
public String aksManagedResourceGroupName() {
@@ -142,7 +146,7 @@ public String aksManagedResourceGroupName() {
/**
* Get the clusterPoolProfile property: CLuster pool profile.
- *
+ *
* @return the clusterPoolProfile value.
*/
public ClusterPoolResourcePropertiesClusterPoolProfile clusterPoolProfile() {
@@ -151,19 +155,19 @@ public ClusterPoolResourcePropertiesClusterPoolProfile clusterPoolProfile() {
/**
* Set the clusterPoolProfile property: CLuster pool profile.
- *
+ *
* @param clusterPoolProfile the clusterPoolProfile value to set.
* @return the ClusterPoolResourceProperties object itself.
*/
- public ClusterPoolResourceProperties withClusterPoolProfile(
- ClusterPoolResourcePropertiesClusterPoolProfile clusterPoolProfile) {
+ public ClusterPoolResourceProperties
+ withClusterPoolProfile(ClusterPoolResourcePropertiesClusterPoolProfile clusterPoolProfile) {
this.clusterPoolProfile = clusterPoolProfile;
return this;
}
/**
* Get the computeProfile property: CLuster pool compute profile.
- *
+ *
* @return the computeProfile value.
*/
public ClusterPoolResourcePropertiesComputeProfile computeProfile() {
@@ -172,19 +176,19 @@ public ClusterPoolResourcePropertiesComputeProfile computeProfile() {
/**
* Set the computeProfile property: CLuster pool compute profile.
- *
+ *
* @param computeProfile the computeProfile value to set.
* @return the ClusterPoolResourceProperties object itself.
*/
- public ClusterPoolResourceProperties withComputeProfile(
- ClusterPoolResourcePropertiesComputeProfile computeProfile) {
+ public ClusterPoolResourceProperties
+ withComputeProfile(ClusterPoolResourcePropertiesComputeProfile computeProfile) {
this.computeProfile = computeProfile;
return this;
}
/**
* Get the aksClusterProfile property: Properties of underlying AKS cluster.
- *
+ *
* @return the aksClusterProfile value.
*/
public ClusterPoolResourcePropertiesAksClusterProfile aksClusterProfile() {
@@ -193,7 +197,7 @@ public ClusterPoolResourcePropertiesAksClusterProfile aksClusterProfile() {
/**
* Get the networkProfile property: Cluster pool network profile.
- *
+ *
* @return the networkProfile value.
*/
public ClusterPoolResourcePropertiesNetworkProfile networkProfile() {
@@ -202,19 +206,19 @@ public ClusterPoolResourcePropertiesNetworkProfile networkProfile() {
/**
* Set the networkProfile property: Cluster pool network profile.
- *
+ *
* @param networkProfile the networkProfile value to set.
* @return the ClusterPoolResourceProperties object itself.
*/
- public ClusterPoolResourceProperties withNetworkProfile(
- ClusterPoolResourcePropertiesNetworkProfile networkProfile) {
+ public ClusterPoolResourceProperties
+ withNetworkProfile(ClusterPoolResourcePropertiesNetworkProfile networkProfile) {
this.networkProfile = networkProfile;
return this;
}
/**
* Get the logAnalyticsProfile property: Cluster pool log analytics profile to enable OMS agent for AKS cluster.
- *
+ *
* @return the logAnalyticsProfile value.
*/
public ClusterPoolResourcePropertiesLogAnalyticsProfile logAnalyticsProfile() {
@@ -223,19 +227,19 @@ public ClusterPoolResourcePropertiesLogAnalyticsProfile logAnalyticsProfile() {
/**
* Set the logAnalyticsProfile property: Cluster pool log analytics profile to enable OMS agent for AKS cluster.
- *
+ *
* @param logAnalyticsProfile the logAnalyticsProfile value to set.
* @return the ClusterPoolResourceProperties object itself.
*/
- public ClusterPoolResourceProperties withLogAnalyticsProfile(
- ClusterPoolResourcePropertiesLogAnalyticsProfile logAnalyticsProfile) {
+ public ClusterPoolResourceProperties
+ withLogAnalyticsProfile(ClusterPoolResourcePropertiesLogAnalyticsProfile logAnalyticsProfile) {
this.logAnalyticsProfile = logAnalyticsProfile;
return this;
}
/**
* Get the status property: Business status of the resource.
- *
+ *
* @return the status value.
*/
public String status() {
@@ -244,7 +248,7 @@ public String status() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
@@ -252,10 +256,8 @@ public void validate() {
clusterPoolProfile().validate();
}
if (computeProfile() == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- "Missing required property computeProfile in model ClusterPoolResourceProperties"));
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ "Missing required property computeProfile in model ClusterPoolResourceProperties"));
} else {
computeProfile().validate();
}
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterPoolVersionInner.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterPoolVersionInner.java
index 6646dbb7f770e..c1a5f5abfa3ee 100644
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterPoolVersionInner.java
+++ b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterPoolVersionInner.java
@@ -6,9 +6,12 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** Available cluster pool version. */
+/**
+ * Available cluster pool version.
+ */
@Fluent
public final class ClusterPoolVersionInner extends ProxyResource {
/*
@@ -17,22 +20,39 @@ public final class ClusterPoolVersionInner extends ProxyResource {
@JsonProperty(value = "properties")
private ClusterPoolVersionProperties innerProperties;
- /** Creates an instance of ClusterPoolVersionInner class. */
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Creates an instance of ClusterPoolVersionInner class.
+ */
public ClusterPoolVersionInner() {
}
/**
* Get the innerProperties property: Cluster pool version properties.
- *
+ *
* @return the innerProperties value.
*/
private ClusterPoolVersionProperties innerProperties() {
return this.innerProperties;
}
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the clusterPoolVersion property: Cluster pool version is a 2-part version.
- *
+ *
* @return the clusterPoolVersion value.
*/
public String clusterPoolVersion() {
@@ -41,7 +61,7 @@ public String clusterPoolVersion() {
/**
* Set the clusterPoolVersion property: Cluster pool version is a 2-part version.
- *
+ *
* @param clusterPoolVersion the clusterPoolVersion value to set.
* @return the ClusterPoolVersionInner object itself.
*/
@@ -55,7 +75,7 @@ public ClusterPoolVersionInner withClusterPoolVersion(String clusterPoolVersion)
/**
* Get the aksVersion property: AKS version.
- *
+ *
* @return the aksVersion value.
*/
public String aksVersion() {
@@ -64,7 +84,7 @@ public String aksVersion() {
/**
* Set the aksVersion property: AKS version.
- *
+ *
* @param aksVersion the aksVersion value to set.
* @return the ClusterPoolVersionInner object itself.
*/
@@ -78,7 +98,7 @@ public ClusterPoolVersionInner withAksVersion(String aksVersion) {
/**
* Get the isPreview property: Indicate if this version is in preview or not.
- *
+ *
* @return the isPreview value.
*/
public Boolean isPreview() {
@@ -87,7 +107,7 @@ public Boolean isPreview() {
/**
* Set the isPreview property: Indicate if this version is in preview or not.
- *
+ *
* @param isPreview the isPreview value to set.
* @return the ClusterPoolVersionInner object itself.
*/
@@ -101,7 +121,7 @@ public ClusterPoolVersionInner withIsPreview(Boolean isPreview) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterPoolVersionProperties.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterPoolVersionProperties.java
index 3375fb751108c..9203706018c8c 100644
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterPoolVersionProperties.java
+++ b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterPoolVersionProperties.java
@@ -7,7 +7,9 @@
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** Cluster pool version properties. */
+/**
+ * Cluster pool version properties.
+ */
@Fluent
public final class ClusterPoolVersionProperties {
/*
@@ -28,13 +30,15 @@ public final class ClusterPoolVersionProperties {
@JsonProperty(value = "isPreview")
private Boolean isPreview;
- /** Creates an instance of ClusterPoolVersionProperties class. */
+ /**
+ * Creates an instance of ClusterPoolVersionProperties class.
+ */
public ClusterPoolVersionProperties() {
}
/**
* Get the clusterPoolVersion property: Cluster pool version is a 2-part version.
- *
+ *
* @return the clusterPoolVersion value.
*/
public String clusterPoolVersion() {
@@ -43,7 +47,7 @@ public String clusterPoolVersion() {
/**
* Set the clusterPoolVersion property: Cluster pool version is a 2-part version.
- *
+ *
* @param clusterPoolVersion the clusterPoolVersion value to set.
* @return the ClusterPoolVersionProperties object itself.
*/
@@ -54,7 +58,7 @@ public ClusterPoolVersionProperties withClusterPoolVersion(String clusterPoolVer
/**
* Get the aksVersion property: AKS version.
- *
+ *
* @return the aksVersion value.
*/
public String aksVersion() {
@@ -63,7 +67,7 @@ public String aksVersion() {
/**
* Set the aksVersion property: AKS version.
- *
+ *
* @param aksVersion the aksVersion value to set.
* @return the ClusterPoolVersionProperties object itself.
*/
@@ -74,7 +78,7 @@ public ClusterPoolVersionProperties withAksVersion(String aksVersion) {
/**
* Get the isPreview property: Indicate if this version is in preview or not.
- *
+ *
* @return the isPreview value.
*/
public Boolean isPreview() {
@@ -83,7 +87,7 @@ public Boolean isPreview() {
/**
* Set the isPreview property: Indicate if this version is in preview or not.
- *
+ *
* @param isPreview the isPreview value to set.
* @return the ClusterPoolVersionProperties object itself.
*/
@@ -94,7 +98,7 @@ public ClusterPoolVersionProperties withIsPreview(Boolean isPreview) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterResizeProperties.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterResizeProperties.java
index 8d9cb6f9269b5..016f6499ad532 100644
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterResizeProperties.java
+++ b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterResizeProperties.java
@@ -7,7 +7,9 @@
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** The properties for resizing a cluster. */
+/**
+ * The properties for resizing a cluster.
+ */
@Fluent
public final class ClusterResizeProperties {
/*
@@ -16,13 +18,15 @@ public final class ClusterResizeProperties {
@JsonProperty(value = "targetWorkerNodeCount", required = true)
private int targetWorkerNodeCount;
- /** Creates an instance of ClusterResizeProperties class. */
+ /**
+ * Creates an instance of ClusterResizeProperties class.
+ */
public ClusterResizeProperties() {
}
/**
* Get the targetWorkerNodeCount property: Target node count of worker node.
- *
+ *
* @return the targetWorkerNodeCount value.
*/
public int targetWorkerNodeCount() {
@@ -31,7 +35,7 @@ public int targetWorkerNodeCount() {
/**
* Set the targetWorkerNodeCount property: Target node count of worker node.
- *
+ *
* @param targetWorkerNodeCount the targetWorkerNodeCount value to set.
* @return the ClusterResizeProperties object itself.
*/
@@ -42,7 +46,7 @@ public ClusterResizeProperties withTargetWorkerNodeCount(int targetWorkerNodeCou
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterResourceProperties.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterResourceProperties.java
index b83b00d02acb7..ab4396750cffa 100644
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterResourceProperties.java
+++ b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterResourceProperties.java
@@ -11,7 +11,9 @@
import com.azure.resourcemanager.hdinsight.containers.models.ProvisioningStatus;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** Cluster resource properties. */
+/**
+ * Cluster resource properties.
+ */
@Fluent
public final class ClusterResourceProperties {
/*
@@ -50,13 +52,15 @@ public final class ClusterResourceProperties {
@JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY)
private String status;
- /** Creates an instance of ClusterResourceProperties class. */
+ /**
+ * Creates an instance of ClusterResourceProperties class.
+ */
public ClusterResourceProperties() {
}
/**
* Get the provisioningState property: Provisioning state of the resource.
- *
+ *
* @return the provisioningState value.
*/
public ProvisioningStatus provisioningState() {
@@ -65,7 +69,7 @@ public ProvisioningStatus provisioningState() {
/**
* Get the clusterType property: The type of cluster.
- *
+ *
* @return the clusterType value.
*/
public String clusterType() {
@@ -74,7 +78,7 @@ public String clusterType() {
/**
* Set the clusterType property: The type of cluster.
- *
+ *
* @param clusterType the clusterType value to set.
* @return the ClusterResourceProperties object itself.
*/
@@ -85,7 +89,7 @@ public ClusterResourceProperties withClusterType(String clusterType) {
/**
* Get the deploymentId property: A unique id generated by the RP to identify the resource.
- *
+ *
* @return the deploymentId value.
*/
public String deploymentId() {
@@ -94,7 +98,7 @@ public String deploymentId() {
/**
* Get the computeProfile property: The compute profile.
- *
+ *
* @return the computeProfile value.
*/
public ComputeProfile computeProfile() {
@@ -103,7 +107,7 @@ public ComputeProfile computeProfile() {
/**
* Set the computeProfile property: The compute profile.
- *
+ *
* @param computeProfile the computeProfile value to set.
* @return the ClusterResourceProperties object itself.
*/
@@ -114,7 +118,7 @@ public ClusterResourceProperties withComputeProfile(ComputeProfile computeProfil
/**
* Get the clusterProfile property: Cluster profile.
- *
+ *
* @return the clusterProfile value.
*/
public ClusterProfile clusterProfile() {
@@ -123,7 +127,7 @@ public ClusterProfile clusterProfile() {
/**
* Set the clusterProfile property: Cluster profile.
- *
+ *
* @param clusterProfile the clusterProfile value to set.
* @return the ClusterResourceProperties object itself.
*/
@@ -134,7 +138,7 @@ public ClusterResourceProperties withClusterProfile(ClusterProfile clusterProfil
/**
* Get the status property: Business status of the resource.
- *
+ *
* @return the status value.
*/
public String status() {
@@ -143,29 +147,23 @@ public String status() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (clusterType() == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- "Missing required property clusterType in model ClusterResourceProperties"));
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ "Missing required property clusterType in model ClusterResourceProperties"));
}
if (computeProfile() == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- "Missing required property computeProfile in model ClusterResourceProperties"));
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ "Missing required property computeProfile in model ClusterResourceProperties"));
} else {
computeProfile().validate();
}
if (clusterProfile() == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- "Missing required property clusterProfile in model ClusterResourceProperties"));
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ "Missing required property clusterProfile in model ClusterResourceProperties"));
} else {
clusterProfile().validate();
}
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterVersionInner.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterVersionInner.java
index aac0d1127b130..d0073de7a9393 100644
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterVersionInner.java
+++ b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterVersionInner.java
@@ -6,11 +6,14 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
import com.azure.resourcemanager.hdinsight.containers.models.ClusterComponentsItem;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
-/** Available cluster version. */
+/**
+ * Available cluster version.
+ */
@Fluent
public final class ClusterVersionInner extends ProxyResource {
/*
@@ -19,22 +22,39 @@ public final class ClusterVersionInner extends ProxyResource {
@JsonProperty(value = "properties")
private ClusterVersionProperties innerProperties;
- /** Creates an instance of ClusterVersionInner class. */
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Creates an instance of ClusterVersionInner class.
+ */
public ClusterVersionInner() {
}
/**
* Get the innerProperties property: Cluster version properties.
- *
+ *
* @return the innerProperties value.
*/
private ClusterVersionProperties innerProperties() {
return this.innerProperties;
}
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the clusterType property: The type of cluster.
- *
+ *
* @return the clusterType value.
*/
public String clusterType() {
@@ -43,7 +63,7 @@ public String clusterType() {
/**
* Set the clusterType property: The type of cluster.
- *
+ *
* @param clusterType the clusterType value to set.
* @return the ClusterVersionInner object itself.
*/
@@ -57,7 +77,7 @@ public ClusterVersionInner withClusterType(String clusterType) {
/**
* Get the clusterVersion property: Version with three part.
- *
+ *
* @return the clusterVersion value.
*/
public String clusterVersion() {
@@ -66,7 +86,7 @@ public String clusterVersion() {
/**
* Set the clusterVersion property: Version with three part.
- *
+ *
* @param clusterVersion the clusterVersion value to set.
* @return the ClusterVersionInner object itself.
*/
@@ -80,7 +100,7 @@ public ClusterVersionInner withClusterVersion(String clusterVersion) {
/**
* Get the ossVersion property: Version with three part.
- *
+ *
* @return the ossVersion value.
*/
public String ossVersion() {
@@ -89,7 +109,7 @@ public String ossVersion() {
/**
* Set the ossVersion property: Version with three part.
- *
+ *
* @param ossVersion the ossVersion value to set.
* @return the ClusterVersionInner object itself.
*/
@@ -104,7 +124,7 @@ public ClusterVersionInner withOssVersion(String ossVersion) {
/**
* Get the clusterPoolVersion property: The two part cluster pool version. If the cluster version is before cluster
* pool version on-board, the return value will be empty string.
- *
+ *
* @return the clusterPoolVersion value.
*/
public String clusterPoolVersion() {
@@ -114,7 +134,7 @@ public String clusterPoolVersion() {
/**
* Set the clusterPoolVersion property: The two part cluster pool version. If the cluster version is before cluster
* pool version on-board, the return value will be empty string.
- *
+ *
* @param clusterPoolVersion the clusterPoolVersion value to set.
* @return the ClusterVersionInner object itself.
*/
@@ -128,7 +148,7 @@ public ClusterVersionInner withClusterPoolVersion(String clusterPoolVersion) {
/**
* Get the isPreview property: Indicate if this version is in preview or not.
- *
+ *
* @return the isPreview value.
*/
public Boolean isPreview() {
@@ -137,7 +157,7 @@ public Boolean isPreview() {
/**
* Set the isPreview property: Indicate if this version is in preview or not.
- *
+ *
* @param isPreview the isPreview value to set.
* @return the ClusterVersionInner object itself.
*/
@@ -151,7 +171,7 @@ public ClusterVersionInner withIsPreview(Boolean isPreview) {
/**
* Get the components property: Component list of this cluster type and version.
- *
+ *
* @return the components value.
*/
public List components() {
@@ -160,7 +180,7 @@ public List components() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterVersionProperties.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterVersionProperties.java
index b7d3233057d96..fe04a5391d2c3 100644
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterVersionProperties.java
+++ b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterVersionProperties.java
@@ -9,7 +9,9 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
-/** Cluster version properties. */
+/**
+ * Cluster version properties.
+ */
@Fluent
public final class ClusterVersionProperties {
/*
@@ -49,13 +51,15 @@ public final class ClusterVersionProperties {
@JsonProperty(value = "components", access = JsonProperty.Access.WRITE_ONLY)
private List components;
- /** Creates an instance of ClusterVersionProperties class. */
+ /**
+ * Creates an instance of ClusterVersionProperties class.
+ */
public ClusterVersionProperties() {
}
/**
* Get the clusterType property: The type of cluster.
- *
+ *
* @return the clusterType value.
*/
public String clusterType() {
@@ -64,7 +68,7 @@ public String clusterType() {
/**
* Set the clusterType property: The type of cluster.
- *
+ *
* @param clusterType the clusterType value to set.
* @return the ClusterVersionProperties object itself.
*/
@@ -75,7 +79,7 @@ public ClusterVersionProperties withClusterType(String clusterType) {
/**
* Get the clusterVersion property: Version with three part.
- *
+ *
* @return the clusterVersion value.
*/
public String clusterVersion() {
@@ -84,7 +88,7 @@ public String clusterVersion() {
/**
* Set the clusterVersion property: Version with three part.
- *
+ *
* @param clusterVersion the clusterVersion value to set.
* @return the ClusterVersionProperties object itself.
*/
@@ -95,7 +99,7 @@ public ClusterVersionProperties withClusterVersion(String clusterVersion) {
/**
* Get the ossVersion property: Version with three part.
- *
+ *
* @return the ossVersion value.
*/
public String ossVersion() {
@@ -104,7 +108,7 @@ public String ossVersion() {
/**
* Set the ossVersion property: Version with three part.
- *
+ *
* @param ossVersion the ossVersion value to set.
* @return the ClusterVersionProperties object itself.
*/
@@ -116,7 +120,7 @@ public ClusterVersionProperties withOssVersion(String ossVersion) {
/**
* Get the clusterPoolVersion property: The two part cluster pool version. If the cluster version is before cluster
* pool version on-board, the return value will be empty string.
- *
+ *
* @return the clusterPoolVersion value.
*/
public String clusterPoolVersion() {
@@ -126,7 +130,7 @@ public String clusterPoolVersion() {
/**
* Set the clusterPoolVersion property: The two part cluster pool version. If the cluster version is before cluster
* pool version on-board, the return value will be empty string.
- *
+ *
* @param clusterPoolVersion the clusterPoolVersion value to set.
* @return the ClusterVersionProperties object itself.
*/
@@ -137,7 +141,7 @@ public ClusterVersionProperties withClusterPoolVersion(String clusterPoolVersion
/**
* Get the isPreview property: Indicate if this version is in preview or not.
- *
+ *
* @return the isPreview value.
*/
public Boolean isPreview() {
@@ -146,7 +150,7 @@ public Boolean isPreview() {
/**
* Set the isPreview property: Indicate if this version is in preview or not.
- *
+ *
* @param isPreview the isPreview value to set.
* @return the ClusterVersionProperties object itself.
*/
@@ -157,7 +161,7 @@ public ClusterVersionProperties withIsPreview(Boolean isPreview) {
/**
* Get the components property: Component list of this cluster type and version.
- *
+ *
* @return the components value.
*/
public List components() {
@@ -166,7 +170,7 @@ public List components() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/NameAvailabilityResultInner.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/NameAvailabilityResultInner.java
index 8666a98edf680..4c72dfe084109 100644
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/NameAvailabilityResultInner.java
+++ b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/NameAvailabilityResultInner.java
@@ -7,7 +7,9 @@
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** Result of check name availability. */
+/**
+ * Result of check name availability.
+ */
@Fluent
public final class NameAvailabilityResultInner {
/*
@@ -28,13 +30,15 @@ public final class NameAvailabilityResultInner {
@JsonProperty(value = "message")
private String message;
- /** Creates an instance of NameAvailabilityResultInner class. */
+ /**
+ * Creates an instance of NameAvailabilityResultInner class.
+ */
public NameAvailabilityResultInner() {
}
/**
* Get the nameAvailable property: Indicator of availability of the Microsoft.HDInsight resource name.
- *
+ *
* @return the nameAvailable value.
*/
public Boolean nameAvailable() {
@@ -43,7 +47,7 @@ public Boolean nameAvailable() {
/**
* Set the nameAvailable property: Indicator of availability of the Microsoft.HDInsight resource name.
- *
+ *
* @param nameAvailable the nameAvailable value to set.
* @return the NameAvailabilityResultInner object itself.
*/
@@ -54,7 +58,7 @@ public NameAvailabilityResultInner withNameAvailable(Boolean nameAvailable) {
/**
* Get the reason property: The reason of unavailability.
- *
+ *
* @return the reason value.
*/
public String reason() {
@@ -63,7 +67,7 @@ public String reason() {
/**
* Set the reason property: The reason of unavailability.
- *
+ *
* @param reason the reason value to set.
* @return the NameAvailabilityResultInner object itself.
*/
@@ -74,7 +78,7 @@ public NameAvailabilityResultInner withReason(String reason) {
/**
* Get the message property: The error message of unavailability.
- *
+ *
* @return the message value.
*/
public String message() {
@@ -83,7 +87,7 @@ public String message() {
/**
* Set the message property: The error message of unavailability.
- *
+ *
* @param message the message value to set.
* @return the NameAvailabilityResultInner object itself.
*/
@@ -94,7 +98,7 @@ public NameAvailabilityResultInner withMessage(String message) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/OperationInner.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/OperationInner.java
index 8f87ceb3dc536..9ae10698caea8 100644
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/OperationInner.java
+++ b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/OperationInner.java
@@ -12,8 +12,8 @@
/**
* REST API Operation
- *
- * Details of a REST API operation, returned from the Resource Provider Operations API.
+ *
+ * Details of a REST API operation, returned from the Resource Provider Operations API.
*/
@Fluent
public final class OperationInner {
@@ -50,14 +50,16 @@ public final class OperationInner {
@JsonProperty(value = "actionType", access = JsonProperty.Access.WRITE_ONLY)
private ActionType actionType;
- /** Creates an instance of OperationInner class. */
+ /**
+ * Creates an instance of OperationInner class.
+ */
public OperationInner() {
}
/**
* Get the name property: The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
* "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action".
- *
+ *
* @return the name value.
*/
public String name() {
@@ -67,7 +69,7 @@ public String name() {
/**
* Get the isDataAction property: Whether the operation applies to data-plane. This is "true" for data-plane
* operations and "false" for ARM/control-plane operations.
- *
+ *
* @return the isDataAction value.
*/
public Boolean isDataAction() {
@@ -76,7 +78,7 @@ public Boolean isDataAction() {
/**
* Get the display property: Localized display information for this particular operation.
- *
+ *
* @return the display value.
*/
public OperationDisplay display() {
@@ -85,7 +87,7 @@ public OperationDisplay display() {
/**
* Set the display property: Localized display information for this particular operation.
- *
+ *
* @param display the display value to set.
* @return the OperationInner object itself.
*/
@@ -97,7 +99,7 @@ public OperationInner withDisplay(OperationDisplay display) {
/**
* Get the origin property: The intended executor of the operation; as in Resource Based Access Control (RBAC) and
* audit logs UX. Default value is "user,system".
- *
+ *
* @return the origin value.
*/
public Origin origin() {
@@ -107,7 +109,7 @@ public Origin origin() {
/**
* Get the actionType property: Enum. Indicates the action type. "Internal" refers to actions that are for internal
* only APIs.
- *
+ *
* @return the actionType value.
*/
public ActionType actionType() {
@@ -116,7 +118,7 @@ public ActionType actionType() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ServiceConfigResultInner.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ServiceConfigResultInner.java
index 06676f5f88dbc..1d2397620029a 100644
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ServiceConfigResultInner.java
+++ b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ServiceConfigResultInner.java
@@ -9,7 +9,9 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
-/** Cluster instance service config. */
+/**
+ * Cluster instance service config.
+ */
@Fluent
public final class ServiceConfigResultInner {
/*
@@ -18,13 +20,15 @@ public final class ServiceConfigResultInner {
@JsonProperty(value = "properties")
private ServiceConfigResultProperties innerProperties;
- /** Creates an instance of ServiceConfigResultInner class. */
+ /**
+ * Creates an instance of ServiceConfigResultInner class.
+ */
public ServiceConfigResultInner() {
}
/**
* Get the innerProperties property: Cluster instance service config properties.
- *
+ *
* @return the innerProperties value.
*/
private ServiceConfigResultProperties innerProperties() {
@@ -33,7 +37,7 @@ private ServiceConfigResultProperties innerProperties() {
/**
* Get the serviceName property: Service Config Name.
- *
+ *
* @return the serviceName value.
*/
public String serviceName() {
@@ -42,7 +46,7 @@ public String serviceName() {
/**
* Set the serviceName property: Service Config Name.
- *
+ *
* @param serviceName the serviceName value to set.
* @return the ServiceConfigResultInner object itself.
*/
@@ -56,7 +60,7 @@ public ServiceConfigResultInner withServiceName(String serviceName) {
/**
* Get the fileName property: File Name.
- *
+ *
* @return the fileName value.
*/
public String fileName() {
@@ -65,7 +69,7 @@ public String fileName() {
/**
* Set the fileName property: File Name.
- *
+ *
* @param fileName the fileName value to set.
* @return the ServiceConfigResultInner object itself.
*/
@@ -79,7 +83,7 @@ public ServiceConfigResultInner withFileName(String fileName) {
/**
* Get the content property: Content in the service config file.
- *
+ *
* @return the content value.
*/
public String content() {
@@ -88,7 +92,7 @@ public String content() {
/**
* Set the content property: Content in the service config file.
- *
+ *
* @param content the content value to set.
* @return the ServiceConfigResultInner object itself.
*/
@@ -102,7 +106,7 @@ public ServiceConfigResultInner withContent(String content) {
/**
* Get the componentName property: Component Name.
- *
+ *
* @return the componentName value.
*/
public String componentName() {
@@ -111,7 +115,7 @@ public String componentName() {
/**
* Set the componentName property: Component Name.
- *
+ *
* @param componentName the componentName value to set.
* @return the ServiceConfigResultInner object itself.
*/
@@ -125,7 +129,7 @@ public ServiceConfigResultInner withComponentName(String componentName) {
/**
* Get the type property: Config type.
- *
+ *
* @return the type value.
*/
public String type() {
@@ -134,7 +138,7 @@ public String type() {
/**
* Set the type property: Config type.
- *
+ *
* @param type the type value to set.
* @return the ServiceConfigResultInner object itself.
*/
@@ -148,7 +152,7 @@ public ServiceConfigResultInner withType(String type) {
/**
* Get the path property: Config file path.
- *
+ *
* @return the path value.
*/
public String path() {
@@ -157,7 +161,7 @@ public String path() {
/**
* Set the path property: Config file path.
- *
+ *
* @param path the path value to set.
* @return the ServiceConfigResultInner object itself.
*/
@@ -171,7 +175,7 @@ public ServiceConfigResultInner withPath(String path) {
/**
* Get the customKeys property: The custom keys.
- *
+ *
* @return the customKeys value.
*/
public Map customKeys() {
@@ -180,7 +184,7 @@ public Map customKeys() {
/**
* Set the customKeys property: The custom keys.
- *
+ *
* @param customKeys the customKeys value to set.
* @return the ServiceConfigResultInner object itself.
*/
@@ -194,7 +198,7 @@ public ServiceConfigResultInner withCustomKeys(Map customKeys) {
/**
* Get the defaultKeys property: The default keys.
- *
+ *
* @return the defaultKeys value.
*/
public Map defaultKeys() {
@@ -203,7 +207,7 @@ public Map defaultKeys() {
/**
* Set the defaultKeys property: The default keys.
- *
+ *
* @param defaultKeys the defaultKeys value to set.
* @return the ServiceConfigResultInner object itself.
*/
@@ -217,7 +221,7 @@ public ServiceConfigResultInner withDefaultKeys(Map customKeys) {
super.withCustomKeys(customKeys);
return this;
}
- /** {@inheritDoc} */
+ /**
+ * {@inheritDoc}
+ */
@Override
public ServiceConfigResultProperties withDefaultKeys(Map defaultKeys) {
super.withDefaultKeys(defaultKeys);
@@ -74,7 +94,7 @@ public ServiceConfigResultProperties withDefaultKeys(Map> listByLocation(
- @HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("location") String location,
- @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept,
- Context context);
+ Mono> listByLocation(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location,
+ @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
+ @Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
- @ExpectedResponses({200})
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listByLocationNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
}
/**
* Returns a list of available cluster pool versions.
- *
+ *
* @param location The name of the Azure region.
* @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 represents a list of cluster pool versions along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByLocationSinglePageAsync(String location) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (location == null) {
return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
}
final String accept = "application/json";
return FluxUtil
- .withContext(
- context ->
- service
- .listByLocation(
- this.client.getEndpoint(),
- this.client.getSubscriptionId(),
- location,
- this.client.getApiVersion(),
- accept,
- context))
- .>map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null))
+ .withContext(context -> service.listByLocation(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ location, this.client.getApiVersion(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
* Returns a list of available cluster pool versions.
- *
+ *
* @param location The name of the Azure region.
* @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 represents a list of cluster pool versions along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByLocationSinglePageAsync(
- String location, Context context) {
+ private Mono> listByLocationSinglePageAsync(String location,
+ Context context) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (location == null) {
return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
@@ -165,27 +139,15 @@ private Mono> listByLocationSinglePageAsy
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
- .listByLocation(
- this.client.getEndpoint(),
- this.client.getSubscriptionId(),
- location,
- this.client.getApiVersion(),
- accept,
- context)
- .map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null));
+ .listByLocation(this.client.getEndpoint(), this.client.getSubscriptionId(), location,
+ this.client.getApiVersion(), accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
}
/**
* Returns a list of available cluster pool versions.
- *
+ *
* @param location The name of the Azure region.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -194,13 +156,13 @@ private Mono> listByLocationSinglePageAsy
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByLocationAsync(String location) {
- return new PagedFlux<>(
- () -> listByLocationSinglePageAsync(location), nextLink -> listByLocationNextSinglePageAsync(nextLink));
+ return new PagedFlux<>(() -> listByLocationSinglePageAsync(location),
+ nextLink -> listByLocationNextSinglePageAsync(nextLink));
}
/**
* Returns a list of available cluster pool versions.
- *
+ *
* @param location The name of the Azure region.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -210,14 +172,13 @@ private PagedFlux listByLocationAsync(String location)
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByLocationAsync(String location, Context context) {
- return new PagedFlux<>(
- () -> listByLocationSinglePageAsync(location, context),
+ return new PagedFlux<>(() -> listByLocationSinglePageAsync(location, context),
nextLink -> listByLocationNextSinglePageAsync(nextLink, context));
}
/**
* Returns a list of available cluster pool versions.
- *
+ *
* @param location The name of the Azure region.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -231,7 +192,7 @@ public PagedIterable listByLocation(String location) {
/**
* Returns a list of available cluster pool versions.
- *
+ *
* @param location The name of the Azure region.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -246,14 +207,15 @@ public PagedIterable listByLocation(String location, Co
/**
* Get the next page of items.
- *
+ *
* @param nextLink The URL to get the next list of items
- * The nextLink parameter.
+ *
+ * The nextLink parameter.
* @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 represents a list of cluster pool versions along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByLocationNextSinglePageAsync(String nextLink) {
@@ -261,62 +223,44 @@ private Mono> listByLocationNextSinglePag
return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
}
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listByLocationNext(nextLink, this.client.getEndpoint(), accept, context))
- .>map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
* Get the next page of items.
- *
+ *
* @param nextLink The URL to get the next list of items
- * The nextLink parameter.
+ *
+ * The nextLink parameter.
* @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 represents a list of cluster pool versions along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByLocationNextSinglePageAsync(
- String nextLink, Context context) {
+ private Mono> listByLocationNextSinglePageAsync(String nextLink,
+ Context context) {
if (nextLink == null) {
return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
}
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service
- .listByLocationNext(nextLink, this.client.getEndpoint(), accept, context)
- .map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null));
+ return service.listByLocationNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
}
}
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/AvailableClusterPoolVersionsImpl.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/AvailableClusterPoolVersionsImpl.java
index 2e64d8c876656..6519e06537965 100644
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/AvailableClusterPoolVersionsImpl.java
+++ b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/AvailableClusterPoolVersionsImpl.java
@@ -19,8 +19,7 @@ public final class AvailableClusterPoolVersionsImpl implements AvailableClusterP
private final com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager serviceManager;
- public AvailableClusterPoolVersionsImpl(
- AvailableClusterPoolVersionsClient innerClient,
+ public AvailableClusterPoolVersionsImpl(AvailableClusterPoolVersionsClient innerClient,
com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager serviceManager) {
this.innerClient = innerClient;
this.serviceManager = serviceManager;
@@ -28,12 +27,12 @@ public AvailableClusterPoolVersionsImpl(
public PagedIterable listByLocation(String location) {
PagedIterable inner = this.serviceClient().listByLocation(location);
- return Utils.mapPage(inner, inner1 -> new ClusterPoolVersionImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new ClusterPoolVersionImpl(inner1, this.manager()));
}
public PagedIterable listByLocation(String location, Context context) {
PagedIterable inner = this.serviceClient().listByLocation(location, context);
- return Utils.mapPage(inner, inner1 -> new ClusterPoolVersionImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new ClusterPoolVersionImpl(inner1, this.manager()));
}
private AvailableClusterPoolVersionsClient serviceClient() {
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/AvailableClusterVersionsClientImpl.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/AvailableClusterVersionsClientImpl.java
index 9d1757b35e2bc..08f804bd43652 100644
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/AvailableClusterVersionsClientImpl.java
+++ b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/AvailableClusterVersionsClientImpl.java
@@ -30,23 +30,28 @@
import com.azure.resourcemanager.hdinsight.containers.models.ClusterVersionsListResult;
import reactor.core.publisher.Mono;
-/** An instance of this class provides access to all the operations defined in AvailableClusterVersionsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in AvailableClusterVersionsClient.
+ */
public final class AvailableClusterVersionsClientImpl implements AvailableClusterVersionsClient {
- /** The proxy service used to perform REST calls. */
+ /**
+ * The proxy service used to perform REST calls.
+ */
private final AvailableClusterVersionsService service;
- /** The service client containing this operation class. */
+ /**
+ * The service client containing this operation class.
+ */
private final HDInsightContainersManagementClientImpl client;
/**
* Initializes an instance of AvailableClusterVersionsClientImpl.
- *
+ *
* @param client the instance of the service client containing this operation class.
*/
AvailableClusterVersionsClientImpl(HDInsightContainersManagementClientImpl client) {
- this.service =
- RestProxy
- .create(AvailableClusterVersionsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.service = RestProxy.create(AvailableClusterVersionsService.class, client.getHttpPipeline(),
+ client.getSerializerAdapter());
this.client = client;
}
@@ -57,105 +62,75 @@ public final class AvailableClusterVersionsClientImpl implements AvailableCluste
@Host("{$host}")
@ServiceInterface(name = "HDInsightContainersM")
public interface AvailableClusterVersionsService {
- @Headers({"Content-Type: application/json"})
- @Get(
- "/subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/availableClusterVersions")
- @ExpectedResponses({200})
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/availableClusterVersions")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByLocation(
- @HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("location") String location,
- @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept,
- Context context);
+ Mono> listByLocation(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location,
+ @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
+ @Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
- @ExpectedResponses({200})
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listByLocationNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
}
/**
* Returns a list of available cluster versions.
- *
+ *
* @param location The name of the Azure region.
* @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 represents a list of cluster versions along with {@link PagedResponse} on successful completion of {@link
- * Mono}.
+ * @return represents a list of cluster versions along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByLocationSinglePageAsync(String location) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (location == null) {
return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
}
final String accept = "application/json";
return FluxUtil
- .withContext(
- context ->
- service
- .listByLocation(
- this.client.getEndpoint(),
- this.client.getSubscriptionId(),
- location,
- this.client.getApiVersion(),
- accept,
- context))
- .>map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null))
+ .withContext(context -> service.listByLocation(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ location, this.client.getApiVersion(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
* Returns a list of available cluster versions.
- *
+ *
* @param location The name of the Azure region.
* @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 represents a list of cluster versions along with {@link PagedResponse} on successful completion of {@link
- * Mono}.
+ * @return represents a list of cluster versions along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByLocationSinglePageAsync(String location, Context context) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (location == null) {
return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
@@ -163,27 +138,15 @@ private Mono> listByLocationSinglePageAsync(S
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
- .listByLocation(
- this.client.getEndpoint(),
- this.client.getSubscriptionId(),
- location,
- this.client.getApiVersion(),
- accept,
- context)
- .map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null));
+ .listByLocation(this.client.getEndpoint(), this.client.getSubscriptionId(), location,
+ this.client.getApiVersion(), accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
}
/**
* Returns a list of available cluster versions.
- *
+ *
* @param location The name of the Azure region.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -192,13 +155,13 @@ private Mono> listByLocationSinglePageAsync(S
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByLocationAsync(String location) {
- return new PagedFlux<>(
- () -> listByLocationSinglePageAsync(location), nextLink -> listByLocationNextSinglePageAsync(nextLink));
+ return new PagedFlux<>(() -> listByLocationSinglePageAsync(location),
+ nextLink -> listByLocationNextSinglePageAsync(nextLink));
}
/**
* Returns a list of available cluster versions.
- *
+ *
* @param location The name of the Azure region.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -208,14 +171,13 @@ private PagedFlux listByLocationAsync(String location) {
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByLocationAsync(String location, Context context) {
- return new PagedFlux<>(
- () -> listByLocationSinglePageAsync(location, context),
+ return new PagedFlux<>(() -> listByLocationSinglePageAsync(location, context),
nextLink -> listByLocationNextSinglePageAsync(nextLink, context));
}
/**
* Returns a list of available cluster versions.
- *
+ *
* @param location The name of the Azure region.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -229,7 +191,7 @@ public PagedIterable listByLocation(String location) {
/**
* Returns a list of available cluster versions.
- *
+ *
* @param location The name of the Azure region.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -244,14 +206,15 @@ public PagedIterable listByLocation(String location, Contex
/**
* Get the next page of items.
- *
+ *
* @param nextLink The URL to get the next list of items
- * The nextLink parameter.
+ *
+ * The nextLink parameter.
* @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 represents a list of cluster versions along with {@link PagedResponse} on successful completion of {@link
- * Mono}.
+ * @return represents a list of cluster versions along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByLocationNextSinglePageAsync(String nextLink) {
@@ -259,62 +222,44 @@ private Mono> listByLocationNextSinglePageAsy
return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
}
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listByLocationNext(nextLink, this.client.getEndpoint(), accept, context))
- .>map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
* Get the next page of items.
- *
+ *
* @param nextLink The URL to get the next list of items
- * The nextLink parameter.
+ *
+ * The nextLink parameter.
* @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 represents a list of cluster versions along with {@link PagedResponse} on successful completion of {@link
- * Mono}.
+ * @return represents a list of cluster versions along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByLocationNextSinglePageAsync(
- String nextLink, Context context) {
+ private Mono> listByLocationNextSinglePageAsync(String nextLink,
+ Context context) {
if (nextLink == null) {
return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
}
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service
- .listByLocationNext(nextLink, this.client.getEndpoint(), accept, context)
- .map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null));
+ return service.listByLocationNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
}
}
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/AvailableClusterVersionsImpl.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/AvailableClusterVersionsImpl.java
index cfc94fbf502b2..db08ea18ee98f 100644
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/AvailableClusterVersionsImpl.java
+++ b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/AvailableClusterVersionsImpl.java
@@ -19,8 +19,7 @@ public final class AvailableClusterVersionsImpl implements AvailableClusterVersi
private final com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager serviceManager;
- public AvailableClusterVersionsImpl(
- AvailableClusterVersionsClient innerClient,
+ public AvailableClusterVersionsImpl(AvailableClusterVersionsClient innerClient,
com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager serviceManager) {
this.innerClient = innerClient;
this.serviceManager = serviceManager;
@@ -28,12 +27,12 @@ public AvailableClusterVersionsImpl(
public PagedIterable listByLocation(String location) {
PagedIterable inner = this.serviceClient().listByLocation(location);
- return Utils.mapPage(inner, inner1 -> new ClusterVersionImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new ClusterVersionImpl(inner1, this.manager()));
}
public PagedIterable listByLocation(String location, Context context) {
PagedIterable inner = this.serviceClient().listByLocation(location, context);
- return Utils.mapPage(inner, inner1 -> new ClusterVersionImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new ClusterVersionImpl(inner1, this.manager()));
}
private AvailableClusterVersionsClient serviceClient() {
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterAvailableUpgradeImpl.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterAvailableUpgradeImpl.java
new file mode 100644
index 0000000000000..ab837db0beb78
--- /dev/null
+++ b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterAvailableUpgradeImpl.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.hdinsight.containers.implementation;
+
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.hdinsight.containers.fluent.models.ClusterAvailableUpgradeInner;
+import com.azure.resourcemanager.hdinsight.containers.models.ClusterAvailableUpgrade;
+import com.azure.resourcemanager.hdinsight.containers.models.ClusterAvailableUpgradeProperties;
+
+public final class ClusterAvailableUpgradeImpl implements ClusterAvailableUpgrade {
+ private ClusterAvailableUpgradeInner innerObject;
+
+ private final com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager serviceManager;
+
+ ClusterAvailableUpgradeImpl(ClusterAvailableUpgradeInner innerObject,
+ com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public ClusterAvailableUpgradeProperties properties() {
+ return this.innerModel().properties();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public ClusterAvailableUpgradeInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterAvailableUpgradesClientImpl.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterAvailableUpgradesClientImpl.java
new file mode 100644
index 0000000000000..4c700857f0f29
--- /dev/null
+++ b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterAvailableUpgradesClientImpl.java
@@ -0,0 +1,300 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hdinsight.containers.implementation;
+
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.resourcemanager.hdinsight.containers.fluent.ClusterAvailableUpgradesClient;
+import com.azure.resourcemanager.hdinsight.containers.fluent.models.ClusterAvailableUpgradeInner;
+import com.azure.resourcemanager.hdinsight.containers.models.ClusterAvailableUpgradeList;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in ClusterAvailableUpgradesClient.
+ */
+public final class ClusterAvailableUpgradesClientImpl implements ClusterAvailableUpgradesClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final ClusterAvailableUpgradesService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final HDInsightContainersManagementClientImpl client;
+
+ /**
+ * Initializes an instance of ClusterAvailableUpgradesClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ ClusterAvailableUpgradesClientImpl(HDInsightContainersManagementClientImpl client) {
+ this.service = RestProxy.create(ClusterAvailableUpgradesService.class, client.getHttpPipeline(),
+ client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for HDInsightContainersManagementClientClusterAvailableUpgrades to be
+ * used by the proxy service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "HDInsightContainersM")
+ public interface ClusterAvailableUpgradesService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusterpools/{clusterPoolName}/clusters/{clusterName}/availableUpgrades")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion,
+ @PathParam("clusterPoolName") String clusterPoolName, @PathParam("clusterName") String clusterName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * List a cluster available upgrade.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterPoolName The name of the cluster pool.
+ * @param clusterName The name of the HDInsight cluster.
+ * @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 collection of cluster available upgrade along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(String resourceGroupName,
+ String clusterPoolName, String clusterName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (clusterPoolName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter clusterPoolName is required and cannot be null."));
+ }
+ if (clusterName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ resourceGroupName, this.client.getApiVersion(), clusterPoolName, clusterName, accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List a cluster available upgrade.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterPoolName The name of the cluster pool.
+ * @param clusterName The name of the HDInsight cluster.
+ * @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 collection of cluster available upgrade along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(String resourceGroupName,
+ String clusterPoolName, String clusterName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (clusterPoolName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter clusterPoolName is required and cannot be null."));
+ }
+ if (clusterName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ this.client.getApiVersion(), clusterPoolName, clusterName, accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+
+ /**
+ * List a cluster available upgrade.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterPoolName The name of the cluster pool.
+ * @param clusterName The name of the HDInsight cluster.
+ * @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 collection of cluster available upgrade as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName, String clusterPoolName,
+ String clusterName) {
+ return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, clusterPoolName, clusterName),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List a cluster available upgrade.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterPoolName The name of the cluster pool.
+ * @param clusterName The name of the HDInsight cluster.
+ * @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 collection of cluster available upgrade as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName, String clusterPoolName,
+ String clusterName, Context context) {
+ return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, clusterPoolName, clusterName, context),
+ nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List a cluster available upgrade.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterPoolName The name of the cluster pool.
+ * @param clusterName The name of the HDInsight cluster.
+ * @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 collection of cluster available upgrade as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String clusterPoolName,
+ String clusterName) {
+ return new PagedIterable<>(listAsync(resourceGroupName, clusterPoolName, clusterName));
+ }
+
+ /**
+ * List a cluster available upgrade.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterPoolName The name of the cluster pool.
+ * @param clusterName The name of the HDInsight cluster.
+ * @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 collection of cluster available upgrade as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String clusterPoolName,
+ String clusterName, Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, clusterPoolName, clusterName, context));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ *
+ * The nextLink parameter.
+ * @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 collection of cluster available upgrade along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ *
+ * The nextLink parameter.
+ * @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 collection of cluster available upgrade along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink,
+ Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.listNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+}
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterAvailableUpgradesImpl.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterAvailableUpgradesImpl.java
new file mode 100644
index 0000000000000..d5ab2fa7a6d96
--- /dev/null
+++ b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterAvailableUpgradesImpl.java
@@ -0,0 +1,49 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hdinsight.containers.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.hdinsight.containers.fluent.ClusterAvailableUpgradesClient;
+import com.azure.resourcemanager.hdinsight.containers.fluent.models.ClusterAvailableUpgradeInner;
+import com.azure.resourcemanager.hdinsight.containers.models.ClusterAvailableUpgrade;
+import com.azure.resourcemanager.hdinsight.containers.models.ClusterAvailableUpgrades;
+
+public final class ClusterAvailableUpgradesImpl implements ClusterAvailableUpgrades {
+ private static final ClientLogger LOGGER = new ClientLogger(ClusterAvailableUpgradesImpl.class);
+
+ private final ClusterAvailableUpgradesClient innerClient;
+
+ private final com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager serviceManager;
+
+ public ClusterAvailableUpgradesImpl(ClusterAvailableUpgradesClient innerClient,
+ com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable list(String resourceGroupName, String clusterPoolName,
+ String clusterName) {
+ PagedIterable inner
+ = this.serviceClient().list(resourceGroupName, clusterPoolName, clusterName);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new ClusterAvailableUpgradeImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(String resourceGroupName, String clusterPoolName,
+ String clusterName, Context context) {
+ PagedIterable inner
+ = this.serviceClient().list(resourceGroupName, clusterPoolName, clusterName, context);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new ClusterAvailableUpgradeImpl(inner1, this.manager()));
+ }
+
+ private ClusterAvailableUpgradesClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterImpl.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterImpl.java
index b69dfe4e51c9d..062392fc0eee3 100644
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterImpl.java
+++ b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterImpl.java
@@ -12,6 +12,7 @@
import com.azure.resourcemanager.hdinsight.containers.models.ClusterPatch;
import com.azure.resourcemanager.hdinsight.containers.models.ClusterProfile;
import com.azure.resourcemanager.hdinsight.containers.models.ClusterResizeData;
+import com.azure.resourcemanager.hdinsight.containers.models.ClusterUpgrade;
import com.azure.resourcemanager.hdinsight.containers.models.ComputeProfile;
import com.azure.resourcemanager.hdinsight.containers.models.ProvisioningStatus;
import com.azure.resourcemanager.hdinsight.containers.models.UpdatableClusterProfile;
@@ -111,20 +112,14 @@ public ClusterImpl withExistingClusterpool(String resourceGroupName, String clus
}
public Cluster create() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getClusters()
- .create(resourceGroupName, clusterPoolName, clusterName, this.innerModel(), Context.NONE);
+ this.innerObject = serviceManager.serviceClient().getClusters().create(resourceGroupName, clusterPoolName,
+ clusterName, this.innerModel(), Context.NONE);
return this;
}
public Cluster create(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getClusters()
- .create(resourceGroupName, clusterPoolName, clusterName, this.innerModel(), context);
+ this.innerObject = serviceManager.serviceClient().getClusters().create(resourceGroupName, clusterPoolName,
+ clusterName, this.innerModel(), context);
return this;
}
@@ -140,61 +135,55 @@ public ClusterImpl update() {
}
public Cluster apply() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getClusters()
- .update(resourceGroupName, clusterPoolName, clusterName, updateClusterPatchRequest, Context.NONE);
+ this.innerObject = serviceManager.serviceClient().getClusters().update(resourceGroupName, clusterPoolName,
+ clusterName, updateClusterPatchRequest, Context.NONE);
return this;
}
public Cluster apply(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getClusters()
- .update(resourceGroupName, clusterPoolName, clusterName, updateClusterPatchRequest, context);
+ this.innerObject = serviceManager.serviceClient().getClusters().update(resourceGroupName, clusterPoolName,
+ clusterName, updateClusterPatchRequest, context);
return this;
}
- ClusterImpl(
- ClusterInner innerObject,
+ ClusterImpl(ClusterInner innerObject,
com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
- this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.clusterPoolName = Utils.getValueFromIdByName(innerObject.id(), "clusterpools");
- this.clusterName = Utils.getValueFromIdByName(innerObject.id(), "clusters");
+ this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.clusterPoolName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "clusterpools");
+ this.clusterName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "clusters");
}
public Cluster refresh() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getClusters()
- .getWithResponse(resourceGroupName, clusterPoolName, clusterName, Context.NONE)
- .getValue();
+ this.innerObject = serviceManager.serviceClient().getClusters()
+ .getWithResponse(resourceGroupName, clusterPoolName, clusterName, Context.NONE).getValue();
return this;
}
public Cluster refresh(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getClusters()
- .getWithResponse(resourceGroupName, clusterPoolName, clusterName, context)
- .getValue();
+ this.innerObject = serviceManager.serviceClient().getClusters()
+ .getWithResponse(resourceGroupName, clusterPoolName, clusterName, context).getValue();
return this;
}
+ public Cluster upgrade(ClusterUpgrade clusterUpgradeRequest) {
+ return serviceManager.clusters().upgrade(resourceGroupName, clusterPoolName, clusterName,
+ clusterUpgradeRequest);
+ }
+
+ public Cluster upgrade(ClusterUpgrade clusterUpgradeRequest, Context context) {
+ return serviceManager.clusters().upgrade(resourceGroupName, clusterPoolName, clusterName, clusterUpgradeRequest,
+ context);
+ }
+
public Cluster resize(ClusterResizeData clusterResizeRequest) {
return serviceManager.clusters().resize(resourceGroupName, clusterPoolName, clusterName, clusterResizeRequest);
}
public Cluster resize(ClusterResizeData clusterResizeRequest, Context context) {
- return serviceManager
- .clusters()
- .resize(resourceGroupName, clusterPoolName, clusterName, clusterResizeRequest, context);
+ return serviceManager.clusters().resize(resourceGroupName, clusterPoolName, clusterName, clusterResizeRequest,
+ context);
}
public ClusterImpl withRegion(Region location) {
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterInstanceViewResultImpl.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterInstanceViewResultImpl.java
index 3bd33e2020c27..56df8092a16a3 100644
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterInstanceViewResultImpl.java
+++ b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterInstanceViewResultImpl.java
@@ -16,8 +16,7 @@ public final class ClusterInstanceViewResultImpl implements ClusterInstanceViewR
private final com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager serviceManager;
- ClusterInstanceViewResultImpl(
- ClusterInstanceViewResultInner innerObject,
+ ClusterInstanceViewResultImpl(ClusterInstanceViewResultInner innerObject,
com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterJobImpl.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterJobImpl.java
index e48a1cd11cdaa..36a6516eae8a8 100644
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterJobImpl.java
+++ b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterJobImpl.java
@@ -14,8 +14,7 @@ public final class ClusterJobImpl implements ClusterJob {
private final com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager serviceManager;
- ClusterJobImpl(
- ClusterJobInner innerObject,
+ ClusterJobImpl(ClusterJobInner innerObject,
com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterJobsClientImpl.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterJobsClientImpl.java
index e28b0fab50bdf..fb98f0c273380 100644
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterJobsClientImpl.java
+++ b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterJobsClientImpl.java
@@ -37,22 +37,28 @@
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
-/** An instance of this class provides access to all the operations defined in ClusterJobsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in ClusterJobsClient.
+ */
public final class ClusterJobsClientImpl implements ClusterJobsClient {
- /** The proxy service used to perform REST calls. */
+ /**
+ * The proxy service used to perform REST calls.
+ */
private final ClusterJobsService service;
- /** The service client containing this operation class. */
+ /**
+ * The service client containing this operation class.
+ */
private final HDInsightContainersManagementClientImpl client;
/**
* Initializes an instance of ClusterJobsClientImpl.
- *
+ *
* @param client the instance of the service client containing this operation class.
*/
ClusterJobsClientImpl(HDInsightContainersManagementClientImpl client) {
- this.service =
- RestProxy.create(ClusterJobsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.service
+ = RestProxy.create(ClusterJobsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
@@ -63,51 +69,38 @@ public final class ClusterJobsClientImpl implements ClusterJobsClient {
@Host("{$host}")
@ServiceInterface(name = "HDInsightContainersM")
public interface ClusterJobsService {
- @Headers({"Content-Type: application/json"})
- @Post(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusterpools/{clusterPoolName}/clusters/{clusterName}/runJob")
- @ExpectedResponses({200, 202})
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusterpools/{clusterPoolName}/clusters/{clusterName}/runJob")
+ @ExpectedResponses({ 200, 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> runJob(
- @HostParam("$host") String endpoint,
+ Mono>> runJob(@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @QueryParam("api-version") String apiVersion,
- @PathParam("clusterPoolName") String clusterPoolName,
- @PathParam("clusterName") String clusterName,
- @BodyParam("application/json") ClusterJobInner clusterJob,
- @HeaderParam("Accept") String accept,
+ @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion,
+ @PathParam("clusterPoolName") String clusterPoolName, @PathParam("clusterName") String clusterName,
+ @BodyParam("application/json") ClusterJobInner clusterJob, @HeaderParam("Accept") String accept,
Context context);
- @Headers({"Content-Type: application/json"})
- @Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusterpools/{clusterPoolName}/clusters/{clusterName}/jobs")
- @ExpectedResponses({200})
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusterpools/{clusterPoolName}/clusters/{clusterName}/jobs")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(
- @HostParam("$host") String endpoint,
+ Mono> list(@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @QueryParam("api-version") String apiVersion,
- @PathParam("clusterPoolName") String clusterPoolName,
- @PathParam("clusterName") String clusterName,
- @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion,
+ @PathParam("clusterPoolName") String clusterPoolName, @PathParam("clusterName") String clusterName,
+ @QueryParam("$filter") String filter, @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
+ @Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
- @ExpectedResponses({200})
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept,
- Context context);
+ Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context);
}
/**
* Operations on jobs of HDInsight on AKS cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
@@ -118,19 +111,15 @@ Mono> listNext(
* @return cluster job along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> runJobWithResponseAsync(
- String resourceGroupName, String clusterPoolName, String clusterName, ClusterJobInner clusterJob) {
+ private Mono>> runJobWithResponseAsync(String resourceGroupName, String clusterPoolName,
+ String clusterName, ClusterJobInner clusterJob) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -151,24 +140,14 @@ private Mono>> runJobWithResponseAsync(
final String accept = "application/json";
return FluxUtil
.withContext(
- context ->
- service
- .runJob(
- this.client.getEndpoint(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- this.client.getApiVersion(),
- clusterPoolName,
- clusterName,
- clusterJob,
- accept,
- context))
+ context -> service.runJob(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ this.client.getApiVersion(), clusterPoolName, clusterName, clusterJob, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
* Operations on jobs of HDInsight on AKS cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
@@ -180,23 +159,15 @@ private Mono>> runJobWithResponseAsync(
* @return cluster job along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> runJobWithResponseAsync(
- String resourceGroupName,
- String clusterPoolName,
- String clusterName,
- ClusterJobInner clusterJob,
- Context context) {
+ private Mono>> runJobWithResponseAsync(String resourceGroupName, String clusterPoolName,
+ String clusterName, ClusterJobInner clusterJob, Context context) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -216,22 +187,13 @@ private Mono>> runJobWithResponseAsync(
}
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service
- .runJob(
- this.client.getEndpoint(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- this.client.getApiVersion(),
- clusterPoolName,
- clusterName,
- clusterJob,
- accept,
- context);
+ return service.runJob(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ this.client.getApiVersion(), clusterPoolName, clusterName, clusterJob, accept, context);
}
/**
* Operations on jobs of HDInsight on AKS cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
@@ -242,23 +204,17 @@ private Mono>> runJobWithResponseAsync(
* @return the {@link PollerFlux} for polling of cluster job.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, ClusterJobInner> beginRunJobAsync(
- String resourceGroupName, String clusterPoolName, String clusterName, ClusterJobInner clusterJob) {
- Mono>> mono =
- runJobWithResponseAsync(resourceGroupName, clusterPoolName, clusterName, clusterJob);
- return this
- .client
- .getLroResult(
- mono,
- this.client.getHttpPipeline(),
- ClusterJobInner.class,
- ClusterJobInner.class,
- this.client.getContext());
+ private PollerFlux, ClusterJobInner> beginRunJobAsync(String resourceGroupName,
+ String clusterPoolName, String clusterName, ClusterJobInner clusterJob) {
+ Mono>> mono
+ = runJobWithResponseAsync(resourceGroupName, clusterPoolName, clusterName, clusterJob);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ ClusterJobInner.class, ClusterJobInner.class, this.client.getContext());
}
/**
* Operations on jobs of HDInsight on AKS cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
@@ -270,24 +226,18 @@ private PollerFlux, ClusterJobInner> beginRunJobAsyn
* @return the {@link PollerFlux} for polling of cluster job.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, ClusterJobInner> beginRunJobAsync(
- String resourceGroupName,
- String clusterPoolName,
- String clusterName,
- ClusterJobInner clusterJob,
- Context context) {
+ private PollerFlux, ClusterJobInner> beginRunJobAsync(String resourceGroupName,
+ String clusterPoolName, String clusterName, ClusterJobInner clusterJob, Context context) {
context = this.client.mergeContext(context);
- Mono>> mono =
- runJobWithResponseAsync(resourceGroupName, clusterPoolName, clusterName, clusterJob, context);
- return this
- .client
- .getLroResult(
- mono, this.client.getHttpPipeline(), ClusterJobInner.class, ClusterJobInner.class, context);
+ Mono>> mono
+ = runJobWithResponseAsync(resourceGroupName, clusterPoolName, clusterName, clusterJob, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ ClusterJobInner.class, ClusterJobInner.class, context);
}
/**
* Operations on jobs of HDInsight on AKS cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
@@ -298,14 +248,14 @@ private PollerFlux, ClusterJobInner> beginRunJobAsyn
* @return the {@link SyncPoller} for polling of cluster job.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, ClusterJobInner> beginRunJob(
- String resourceGroupName, String clusterPoolName, String clusterName, ClusterJobInner clusterJob) {
+ public SyncPoller, ClusterJobInner> beginRunJob(String resourceGroupName,
+ String clusterPoolName, String clusterName, ClusterJobInner clusterJob) {
return this.beginRunJobAsync(resourceGroupName, clusterPoolName, clusterName, clusterJob).getSyncPoller();
}
/**
* Operations on jobs of HDInsight on AKS cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
@@ -317,20 +267,15 @@ public SyncPoller, ClusterJobInner> beginRunJob(
* @return the {@link SyncPoller} for polling of cluster job.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, ClusterJobInner> beginRunJob(
- String resourceGroupName,
- String clusterPoolName,
- String clusterName,
- ClusterJobInner clusterJob,
- Context context) {
- return this
- .beginRunJobAsync(resourceGroupName, clusterPoolName, clusterName, clusterJob, context)
+ public SyncPoller, ClusterJobInner> beginRunJob(String resourceGroupName,
+ String clusterPoolName, String clusterName, ClusterJobInner clusterJob, Context context) {
+ return this.beginRunJobAsync(resourceGroupName, clusterPoolName, clusterName, clusterJob, context)
.getSyncPoller();
}
/**
* Operations on jobs of HDInsight on AKS cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
@@ -341,16 +286,15 @@ public SyncPoller, ClusterJobInner> beginRunJob(
* @return cluster job on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono runJobAsync(
- String resourceGroupName, String clusterPoolName, String clusterName, ClusterJobInner clusterJob) {
- return beginRunJobAsync(resourceGroupName, clusterPoolName, clusterName, clusterJob)
- .last()
+ private Mono runJobAsync(String resourceGroupName, String clusterPoolName, String clusterName,
+ ClusterJobInner clusterJob) {
+ return beginRunJobAsync(resourceGroupName, clusterPoolName, clusterName, clusterJob).last()
.flatMap(this.client::getLroFinalResultOrError);
}
/**
* Operations on jobs of HDInsight on AKS cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
@@ -362,20 +306,15 @@ private Mono runJobAsync(
* @return cluster job on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono runJobAsync(
- String resourceGroupName,
- String clusterPoolName,
- String clusterName,
- ClusterJobInner clusterJob,
- Context context) {
- return beginRunJobAsync(resourceGroupName, clusterPoolName, clusterName, clusterJob, context)
- .last()
+ private Mono runJobAsync(String resourceGroupName, String clusterPoolName, String clusterName,
+ ClusterJobInner clusterJob, Context context) {
+ return beginRunJobAsync(resourceGroupName, clusterPoolName, clusterName, clusterJob, context).last()
.flatMap(this.client::getLroFinalResultOrError);
}
/**
* Operations on jobs of HDInsight on AKS cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
@@ -386,14 +325,14 @@ private Mono runJobAsync(
* @return cluster job.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public ClusterJobInner runJob(
- String resourceGroupName, String clusterPoolName, String clusterName, ClusterJobInner clusterJob) {
+ public ClusterJobInner runJob(String resourceGroupName, String clusterPoolName, String clusterName,
+ ClusterJobInner clusterJob) {
return runJobAsync(resourceGroupName, clusterPoolName, clusterName, clusterJob).block();
}
/**
* Operations on jobs of HDInsight on AKS cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
@@ -405,41 +344,35 @@ public ClusterJobInner runJob(
* @return cluster job.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public ClusterJobInner runJob(
- String resourceGroupName,
- String clusterPoolName,
- String clusterName,
- ClusterJobInner clusterJob,
- Context context) {
+ public ClusterJobInner runJob(String resourceGroupName, String clusterPoolName, String clusterName,
+ ClusterJobInner clusterJob, Context context) {
return runJobAsync(resourceGroupName, clusterPoolName, clusterName, clusterJob, context).block();
}
/**
* Get jobs of HDInsight on AKS cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
+ * @param filter The system query option to filter job returned in the response. Allowed value is 'jobName eq
+ * {jobName}' or 'jarName eq {jarName}'.
* @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 jobs of HDInsight on AKS cluster along with {@link PagedResponse} on successful completion of {@link
- * Mono}.
+ * @return jobs of HDInsight on AKS cluster along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(
- String resourceGroupName, String clusterPoolName, String clusterName) {
+ private Mono> listSinglePageAsync(String resourceGroupName, String clusterPoolName,
+ String clusterName, String filter) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -454,57 +387,38 @@ private Mono> listSinglePageAsync(
}
final String accept = "application/json";
return FluxUtil
- .withContext(
- context ->
- service
- .list(
- this.client.getEndpoint(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- this.client.getApiVersion(),
- clusterPoolName,
- clusterName,
- accept,
- context))
- .>map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null))
+ .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ resourceGroupName, this.client.getApiVersion(), clusterPoolName, clusterName, filter, accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
+ res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
* Get jobs of HDInsight on AKS cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
+ * @param filter The system query option to filter job returned in the response. Allowed value is 'jobName eq
+ * {jobName}' or 'jarName eq {jarName}'.
* @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 jobs of HDInsight on AKS cluster along with {@link PagedResponse} on successful completion of {@link
- * Mono}.
+ * @return jobs of HDInsight on AKS cluster along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(
- String resourceGroupName, String clusterPoolName, String clusterName, Context context) {
+ private Mono> listSinglePageAsync(String resourceGroupName, String clusterPoolName,
+ String clusterName, String filter, Context context) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -520,29 +434,35 @@ private Mono> listSinglePageAsync(
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
- .list(
- this.client.getEndpoint(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- this.client.getApiVersion(),
- clusterPoolName,
- clusterName,
- accept,
- context)
- .map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null));
+ .list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ this.client.getApiVersion(), clusterPoolName, clusterName, filter, accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
}
/**
* Get jobs of HDInsight on AKS cluster.
- *
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterPoolName The name of the cluster pool.
+ * @param clusterName The name of the HDInsight cluster.
+ * @param filter The system query option to filter job returned in the response. Allowed value is 'jobName eq
+ * {jobName}' or 'jarName eq {jarName}'.
+ * @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 jobs of HDInsight on AKS cluster as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName, String clusterPoolName, String clusterName,
+ String filter) {
+ return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, clusterPoolName, clusterName, filter),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Get jobs of HDInsight on AKS cluster.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
@@ -553,17 +473,19 @@ private Mono> listSinglePageAsync(
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(String resourceGroupName, String clusterPoolName, String clusterName) {
- return new PagedFlux<>(
- () -> listSinglePageAsync(resourceGroupName, clusterPoolName, clusterName),
+ final String filter = null;
+ return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, clusterPoolName, clusterName, filter),
nextLink -> listNextSinglePageAsync(nextLink));
}
/**
* Get jobs of HDInsight on AKS cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
+ * @param filter The system query option to filter job returned in the response. Allowed value is 'jobName eq
+ * {jobName}' or 'jarName eq {jarName}'.
* @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.
@@ -571,16 +493,16 @@ private PagedFlux listAsync(String resourceGroupName, String cl
* @return jobs of HDInsight on AKS cluster as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(
- String resourceGroupName, String clusterPoolName, String clusterName, Context context) {
+ private PagedFlux listAsync(String resourceGroupName, String clusterPoolName, String clusterName,
+ String filter, Context context) {
return new PagedFlux<>(
- () -> listSinglePageAsync(resourceGroupName, clusterPoolName, clusterName, context),
+ () -> listSinglePageAsync(resourceGroupName, clusterPoolName, clusterName, filter, context),
nextLink -> listNextSinglePageAsync(nextLink, context));
}
/**
* Get jobs of HDInsight on AKS cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
@@ -591,15 +513,18 @@ private PagedFlux listAsync(
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(String resourceGroupName, String clusterPoolName, String clusterName) {
- return new PagedIterable<>(listAsync(resourceGroupName, clusterPoolName, clusterName));
+ final String filter = null;
+ return new PagedIterable<>(listAsync(resourceGroupName, clusterPoolName, clusterName, filter));
}
/**
* Get jobs of HDInsight on AKS cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterPoolName The name of the cluster pool.
* @param clusterName The name of the HDInsight cluster.
+ * @param filter The system query option to filter job returned in the response. Allowed value is 'jobName eq
+ * {jobName}' or 'jarName eq {jarName}'.
* @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.
@@ -607,16 +532,17 @@ public PagedIterable list(String resourceGroupName, String clus
* @return jobs of HDInsight on AKS cluster as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list(
- String resourceGroupName, String clusterPoolName, String clusterName, Context context) {
- return new PagedIterable<>(listAsync(resourceGroupName, clusterPoolName, clusterName, context));
+ public PagedIterable list(String resourceGroupName, String clusterPoolName, String clusterName,
+ String filter, Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, clusterPoolName, clusterName, filter, context));
}
/**
* Get the next page of items.
- *
+ *
* @param nextLink The URL to get the next list of items
- * The nextLink parameter.
+ *
+ * The nextLink parameter.
* @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.
@@ -628,31 +554,22 @@ private Mono> listNextSinglePageAsync(String next
return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
}
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
- .>map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null))
+ return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
+ res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
* Get the next page of items.
- *
+ *
* @param nextLink The URL to get the next list of items
- * The nextLink parameter.
+ *
+ * The nextLink parameter.
* @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.
@@ -665,23 +582,13 @@ private Mono> listNextSinglePageAsync(String next
return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
}
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service
- .listNext(nextLink, this.client.getEndpoint(), accept, context)
- .map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null));
+ return service.listNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
}
}
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterJobsImpl.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterJobsImpl.java
index 93803afe503f1..f803420f91002 100644
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterJobsImpl.java
+++ b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterJobsImpl.java
@@ -19,17 +19,16 @@ public final class ClusterJobsImpl implements ClusterJobs {
private final com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager serviceManager;
- public ClusterJobsImpl(
- ClusterJobsClient innerClient,
+ public ClusterJobsImpl(ClusterJobsClient innerClient,
com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager serviceManager) {
this.innerClient = innerClient;
this.serviceManager = serviceManager;
}
- public ClusterJob runJob(
- String resourceGroupName, String clusterPoolName, String clusterName, ClusterJobInner clusterJob) {
- ClusterJobInner inner =
- this.serviceClient().runJob(resourceGroupName, clusterPoolName, clusterName, clusterJob);
+ public ClusterJob runJob(String resourceGroupName, String clusterPoolName, String clusterName,
+ ClusterJobInner clusterJob) {
+ ClusterJobInner inner
+ = this.serviceClient().runJob(resourceGroupName, clusterPoolName, clusterName, clusterJob);
if (inner != null) {
return new ClusterJobImpl(inner, this.manager());
} else {
@@ -37,14 +36,10 @@ public ClusterJob runJob(
}
}
- public ClusterJob runJob(
- String resourceGroupName,
- String clusterPoolName,
- String clusterName,
- ClusterJobInner clusterJob,
- Context context) {
- ClusterJobInner inner =
- this.serviceClient().runJob(resourceGroupName, clusterPoolName, clusterName, clusterJob, context);
+ public ClusterJob runJob(String resourceGroupName, String clusterPoolName, String clusterName,
+ ClusterJobInner clusterJob, Context context) {
+ ClusterJobInner inner
+ = this.serviceClient().runJob(resourceGroupName, clusterPoolName, clusterName, clusterJob, context);
if (inner != null) {
return new ClusterJobImpl(inner, this.manager());
} else {
@@ -53,16 +48,16 @@ public ClusterJob runJob(
}
public PagedIterable list(String resourceGroupName, String clusterPoolName, String clusterName) {
- PagedIterable inner =
- this.serviceClient().list(resourceGroupName, clusterPoolName, clusterName);
- return Utils.mapPage(inner, inner1 -> new ClusterJobImpl(inner1, this.manager()));
+ PagedIterable inner
+ = this.serviceClient().list(resourceGroupName, clusterPoolName, clusterName);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new ClusterJobImpl(inner1, this.manager()));
}
- public PagedIterable list(
- String resourceGroupName, String clusterPoolName, String clusterName, Context context) {
- PagedIterable inner =
- this.serviceClient().list(resourceGroupName, clusterPoolName, clusterName, context);
- return Utils.mapPage(inner, inner1 -> new ClusterJobImpl(inner1, this.manager()));
+ public PagedIterable list(String resourceGroupName, String clusterPoolName, String clusterName,
+ String filter, Context context) {
+ PagedIterable inner
+ = this.serviceClient().list(resourceGroupName, clusterPoolName, clusterName, filter, context);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new ClusterJobImpl(inner1, this.manager()));
}
private ClusterJobsClient serviceClient() {
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterPoolAvailableUpgradeImpl.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterPoolAvailableUpgradeImpl.java
new file mode 100644
index 0000000000000..0d6852ee2b307
--- /dev/null
+++ b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterPoolAvailableUpgradeImpl.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.hdinsight.containers.implementation;
+
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.hdinsight.containers.fluent.models.ClusterPoolAvailableUpgradeInner;
+import com.azure.resourcemanager.hdinsight.containers.models.ClusterPoolAvailableUpgrade;
+import com.azure.resourcemanager.hdinsight.containers.models.ClusterPoolAvailableUpgradeProperties;
+
+public final class ClusterPoolAvailableUpgradeImpl implements ClusterPoolAvailableUpgrade {
+ private ClusterPoolAvailableUpgradeInner innerObject;
+
+ private final com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager serviceManager;
+
+ ClusterPoolAvailableUpgradeImpl(ClusterPoolAvailableUpgradeInner innerObject,
+ com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public ClusterPoolAvailableUpgradeProperties properties() {
+ return this.innerModel().properties();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public ClusterPoolAvailableUpgradeInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterPoolAvailableUpgradesClientImpl.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterPoolAvailableUpgradesClientImpl.java
new file mode 100644
index 0000000000000..19df8bc9e9ce7
--- /dev/null
+++ b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterPoolAvailableUpgradesClientImpl.java
@@ -0,0 +1,286 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hdinsight.containers.implementation;
+
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.resourcemanager.hdinsight.containers.fluent.ClusterPoolAvailableUpgradesClient;
+import com.azure.resourcemanager.hdinsight.containers.fluent.models.ClusterPoolAvailableUpgradeInner;
+import com.azure.resourcemanager.hdinsight.containers.models.ClusterPoolAvailableUpgradeList;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in ClusterPoolAvailableUpgradesClient.
+ */
+public final class ClusterPoolAvailableUpgradesClientImpl implements ClusterPoolAvailableUpgradesClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final ClusterPoolAvailableUpgradesService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final HDInsightContainersManagementClientImpl client;
+
+ /**
+ * Initializes an instance of ClusterPoolAvailableUpgradesClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ ClusterPoolAvailableUpgradesClientImpl(HDInsightContainersManagementClientImpl client) {
+ this.service = RestProxy.create(ClusterPoolAvailableUpgradesService.class, client.getHttpPipeline(),
+ client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for HDInsightContainersManagementClientClusterPoolAvailableUpgrades to
+ * be used by the proxy service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "HDInsightContainersM")
+ public interface ClusterPoolAvailableUpgradesService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusterpools/{clusterPoolName}/availableUpgrades")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono