scopes = new ArrayList<>();
- private RetryPolicy retryPolicy;
- private RetryOptions retryOptions;
- private Duration defaultPollInterval;
-
- private Configurable() {
- }
-
- /**
- * Sets the http client.
- *
- * @param httpClient the HTTP client.
- * @return the configurable object itself.
- */
- public Configurable withHttpClient(HttpClient httpClient) {
- this.httpClient = Objects.requireNonNull(httpClient, "'httpClient' cannot be null.");
- return this;
- }
-
- /**
- * Sets the logging options to the HTTP pipeline.
- *
- * @param httpLogOptions the HTTP log options.
- * @return the configurable object itself.
- */
- public Configurable withLogOptions(HttpLogOptions httpLogOptions) {
- this.httpLogOptions = Objects.requireNonNull(httpLogOptions, "'httpLogOptions' cannot be null.");
- return this;
- }
-
- /**
- * Adds the pipeline policy to the HTTP pipeline.
- *
- * @param policy the HTTP pipeline policy.
- * @return the configurable object itself.
- */
- public Configurable withPolicy(HttpPipelinePolicy policy) {
- this.policies.add(Objects.requireNonNull(policy, "'policy' cannot be null."));
- return this;
- }
-
- /**
- * Adds the scope to permission sets.
- *
- * @param scope the scope.
- * @return the configurable object itself.
- */
- public Configurable withScope(String scope) {
- this.scopes.add(Objects.requireNonNull(scope, "'scope' cannot be null."));
- return this;
- }
-
- /**
- * Sets the retry policy to the HTTP pipeline.
- *
- * @param retryPolicy the HTTP pipeline retry policy.
- * @return the configurable object itself.
- */
- public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
- this.retryPolicy = Objects.requireNonNull(retryPolicy, "'retryPolicy' cannot be null.");
- return this;
- }
-
- /**
- * Sets the retry options for the HTTP pipeline retry policy.
- *
- * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
- *
- * @param retryOptions the retry options for the HTTP pipeline retry policy.
- * @return the configurable object itself.
- */
- public Configurable withRetryOptions(RetryOptions retryOptions) {
- this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null.");
- return this;
- }
-
- /**
- * Sets the default poll interval, used when service does not provide "Retry-After" header.
- *
- * @param defaultPollInterval the default poll interval.
- * @return the configurable object itself.
- */
- public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
- this.defaultPollInterval
- = Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
- if (this.defaultPollInterval.isNegative()) {
- throw LOGGER
- .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
- }
- return this;
- }
-
- /**
- * 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.
- */
- public HDInsightContainersManager authenticate(TokenCredential credential, AzureProfile profile) {
- Objects.requireNonNull(credential, "'credential' cannot be null.");
- 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.3");
- 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)");
- } else {
- userAgentBuilder.append(" (auto-generated)");
- }
-
- if (scopes.isEmpty()) {
- scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
- }
- if (retryPolicy == null) {
- if (retryOptions != null) {
- retryPolicy = new RetryPolicy(retryOptions);
- } else {
- retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
- }
- }
- List policies = new ArrayList<>();
- policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
- policies.add(new AddHeadersFromContextPolicy());
- policies.add(new RequestIdPolicy());
- policies.addAll(this.policies.stream()
- .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
- .collect(Collectors.toList()));
- HttpPolicyProviders.addBeforeRetryPolicies(policies);
- policies.add(retryPolicy);
- policies.add(new AddDatePolicy());
- policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
- policies.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();
- 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() {
- if (this.clusterPools == null) {
- this.clusterPools = new ClusterPoolsImpl(clientObject.getClusterPools(), this);
- }
- 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 ClusterPoolUpgradeHistories.
- *
- * @return Resource collection API of ClusterPoolUpgradeHistories.
- */
- public ClusterPoolUpgradeHistories clusterPoolUpgradeHistories() {
- if (this.clusterPoolUpgradeHistories == null) {
- this.clusterPoolUpgradeHistories
- = new ClusterPoolUpgradeHistoriesImpl(clientObject.getClusterPoolUpgradeHistories(), this);
- }
- return clusterPoolUpgradeHistories;
- }
-
- /**
- * Gets the resource collection API of Clusters. It manages Cluster.
- *
- * @return Resource collection API of Clusters.
- */
- public Clusters clusters() {
- if (this.clusters == null) {
- this.clusters = new ClustersImpl(clientObject.getClusters(), this);
- }
- 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 ClusterUpgradeHistories.
- *
- * @return Resource collection API of ClusterUpgradeHistories.
- */
- public ClusterUpgradeHistories clusterUpgradeHistories() {
- if (this.clusterUpgradeHistories == null) {
- this.clusterUpgradeHistories
- = new ClusterUpgradeHistoriesImpl(clientObject.getClusterUpgradeHistories(), this);
- }
- return clusterUpgradeHistories;
- }
-
- /**
- * Gets the resource collection API of ClusterJobs.
- *
- * @return Resource collection API of ClusterJobs.
- */
- public ClusterJobs clusterJobs() {
- if (this.clusterJobs == null) {
- this.clusterJobs = new ClusterJobsImpl(clientObject.getClusterJobs(), this);
- }
- return clusterJobs;
- }
-
- /**
- * Gets the resource collection API of Locations.
- *
- * @return Resource collection API of Locations.
- */
- public Locations locations() {
- if (this.locations == null) {
- this.locations = new LocationsImpl(clientObject.getLocations(), this);
- }
- return locations;
- }
-
- /**
- * Gets the resource collection API of Operations.
- *
- * @return Resource collection API of Operations.
- */
- public Operations operations() {
- if (this.operations == null) {
- this.operations = new OperationsImpl(clientObject.getOperations(), this);
- }
- return operations;
- }
-
- /**
- * Gets the resource collection API of AvailableClusterPoolVersions.
- *
- * @return Resource collection API of AvailableClusterPoolVersions.
- */
- public AvailableClusterPoolVersions availableClusterPoolVersions() {
- if (this.availableClusterPoolVersions == null) {
- 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);
- }
- return availableClusterVersions;
- }
-
- /**
- * Gets the resource collection API of ClusterLibraries.
- *
- * @return Resource collection API of ClusterLibraries.
- */
- public ClusterLibraries clusterLibraries() {
- if (this.clusterLibraries == null) {
- this.clusterLibraries = new ClusterLibrariesImpl(clientObject.getClusterLibraries(), this);
- }
- return clusterLibraries;
- }
-
- /**
- * 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() {
- return this.clientObject;
- }
-}
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
deleted file mode 100644
index c88550abec11..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/AvailableClusterPoolVersionsClient.java
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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.ClusterPoolVersionInner;
-
-/**
- * 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.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return represents a list of cluster pool versions as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- 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.
- * @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 represents a list of cluster pool versions as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByLocation(String location, Context context);
-}
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
deleted file mode 100644
index ade4b45436b0..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/AvailableClusterVersionsClient.java
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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.ClusterVersionInner;
-
-/**
- * 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.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return represents a list of cluster versions as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- 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.
- * @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 represents a list of cluster versions as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByLocation(String location, Context context);
-}
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
deleted file mode 100644
index c4e794b8385a..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/ClusterAvailableUpgradesClient.java
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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
deleted file mode 100644
index 931dd88ea332..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/ClusterJobsClient.java
+++ /dev/null
@@ -1,116 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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.management.polling.PollResult;
-import com.azure.core.util.Context;
-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.
- */
-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.
- * @param clusterJob The Cluster job.
- * @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 job.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- 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.
- * @param clusterJob The Cluster job.
- * @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 job.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- 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.
- * @param clusterJob The Cluster job.
- * @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 job.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- 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.
- * @param clusterJob The Cluster job.
- * @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 job.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- 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.
- * @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 jobs of HDInsight on AKS cluster as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String clusterPoolName, String clusterName);
-
- /**
- * 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.
- * @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 PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- 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/ClusterLibrariesClient.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/ClusterLibrariesClient.java
deleted file mode 100644
index 2f8bb95b769d..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/ClusterLibrariesClient.java
+++ /dev/null
@@ -1,119 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.hdinsight.containers.fluent.models.ClusterLibraryInner;
-import com.azure.resourcemanager.hdinsight.containers.models.Category;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterLibraryManagementOperation;
-
-/**
- * An instance of this class provides access to all the operations defined in ClusterLibrariesClient.
- */
-public interface ClusterLibrariesClient {
- /**
- * Get all libraries 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 category The system query option to filter libraries returned in the response. Allowed value is 'custom'
- * or 'predefined'.
- * @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 all libraries of HDInsight on AKS cluster as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String clusterPoolName, String clusterName,
- Category category);
-
- /**
- * Get all libraries 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 category The system query option to filter libraries returned in the response. Allowed value is 'custom'
- * or 'predefined'.
- * @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 all libraries of HDInsight on AKS cluster as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String clusterPoolName, String clusterName,
- Category category, Context context);
-
- /**
- * Library management operations on 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 operation The library management operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginManageLibraries(String resourceGroupName, String clusterPoolName,
- String clusterName, ClusterLibraryManagementOperation operation);
-
- /**
- * Library management operations on 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 operation The library management operation.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginManageLibraries(String resourceGroupName, String clusterPoolName,
- String clusterName, ClusterLibraryManagementOperation operation, Context context);
-
- /**
- * Library management operations on 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 operation The library management operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void manageLibraries(String resourceGroupName, String clusterPoolName, String clusterName,
- ClusterLibraryManagementOperation operation);
-
- /**
- * Library management operations on 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 operation The library management operation.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void manageLibraries(String resourceGroupName, String clusterPoolName, String clusterName,
- ClusterLibraryManagementOperation operation, 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
deleted file mode 100644
index b6190cf52402..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/ClusterPoolAvailableUpgradesClient.java
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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/ClusterPoolUpgradeHistoriesClient.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/ClusterPoolUpgradeHistoriesClient.java
deleted file mode 100644
index daf1ada193c6..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/ClusterPoolUpgradeHistoriesClient.java
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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.ClusterPoolUpgradeHistoryInner;
-
-/**
- * An instance of this class provides access to all the operations defined in ClusterPoolUpgradeHistoriesClient.
- */
-public interface ClusterPoolUpgradeHistoriesClient {
- /**
- * Returns a list of upgrade history.
- *
- * @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 represents a list of cluster pool upgrade history as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String clusterPoolName);
-
- /**
- * Returns a list of upgrade history.
- *
- * @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 represents a list of cluster pool upgrade history 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
deleted file mode 100644
index 782e4a9fc8f6..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/ClusterPoolsClient.java
+++ /dev/null
@@ -1,332 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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.http.rest.Response;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.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.
- */
-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.
- * @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 cluster pool along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- 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.
- * @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 cluster pool.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ClusterPoolInner getByResourceGroup(String resourceGroupName, String clusterPoolName);
-
- /**
- * 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.
- * @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> 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.
- * @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> 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.
- * @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 createOrUpdate(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.
- * @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 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.
- * @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> 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.
- * @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> 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.
- * @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 updateTags(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.
- * @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 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.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String clusterPoolName);
-
- /**
- * 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.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String clusterPoolName, 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.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String clusterPoolName);
-
- /**
- * 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.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String clusterPoolName, Context context);
-
- /**
- * 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}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * 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.
- * @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}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
-
- /**
- * 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.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list cluster pools operation response as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
-
- /**
- * 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.
- * @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 cluster pools operation response as paginated response with {@link PagedIterable}.
- */
- @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/ClusterUpgradeHistoriesClient.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/ClusterUpgradeHistoriesClient.java
deleted file mode 100644
index 261780804619..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/ClusterUpgradeHistoriesClient.java
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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.ClusterUpgradeHistoryInner;
-
-/**
- * An instance of this class provides access to all the operations defined in ClusterUpgradeHistoriesClient.
- */
-public interface ClusterUpgradeHistoriesClient {
- /**
- * Returns a list of upgrade history.
- *
- * @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 represents a list of cluster upgrade history as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String clusterPoolName,
- String clusterName);
-
- /**
- * Returns a list of upgrade history.
- *
- * @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 represents a list of cluster upgrade history 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/ClustersClient.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/ClustersClient.java
deleted file mode 100644
index 0cdcc92c6cdb..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/ClustersClient.java
+++ /dev/null
@@ -1,565 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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.http.rest.Response;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.hdinsight.containers.fluent.models.ClusterInner;
-import com.azure.resourcemanager.hdinsight.containers.fluent.models.ClusterInstanceViewResultInner;
-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;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterUpgradeRollback;
-
-/**
- * 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.
- * @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 cluster operation response as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByClusterPoolName(String resourceGroupName, String clusterPoolName);
-
- /**
- * 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.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list cluster operation response as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- 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);
-
- /**
- * Manual rollback upgrade for 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 clusterRollbackUpgradeRequest Manual rollback upgrade for 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> beginUpgradeManualRollback(String resourceGroupName,
- String clusterPoolName, String clusterName, ClusterUpgradeRollback clusterRollbackUpgradeRequest);
-
- /**
- * Manual rollback upgrade for 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 clusterRollbackUpgradeRequest Manual rollback upgrade for 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> beginUpgradeManualRollback(String resourceGroupName,
- String clusterPoolName, String clusterName, ClusterUpgradeRollback clusterRollbackUpgradeRequest,
- Context context);
-
- /**
- * Manual rollback upgrade for 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 clusterRollbackUpgradeRequest Manual rollback upgrade for 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 upgradeManualRollback(String resourceGroupName, String clusterPoolName, String clusterName,
- ClusterUpgradeRollback clusterRollbackUpgradeRequest);
-
- /**
- * Manual rollback upgrade for 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 clusterRollbackUpgradeRequest Manual rollback upgrade for 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 upgradeManualRollback(String resourceGroupName, String clusterPoolName, String clusterName,
- ClusterUpgradeRollback clusterRollbackUpgradeRequest, 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.
- * @param clusterResizeRequest Resize 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> 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.
- * @param clusterResizeRequest Resize 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> 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.
- * @param clusterResizeRequest Resize 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 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.
- * @param clusterResizeRequest Resize 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 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.
- * @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 HDInsight cluster along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- 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.
- * @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 HDInsight cluster.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ClusterInner get(String resourceGroupName, String clusterPoolName, String clusterName);
-
- /**
- * 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.
- * @param hDInsightCluster The cluster to create.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return 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);
-
- /**
- * 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.
- * @param hDInsightCluster The cluster to create.
- * @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> 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.
- * @param hDInsightCluster The cluster to create.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the cluster.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- 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.
- * @param hDInsightCluster The cluster to create.
- * @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 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.
- * @param clusterPatchRequest Patch 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> 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.
- * @param clusterPatchRequest Patch 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> 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.
- * @param clusterPatchRequest Patch 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 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.
- * @param clusterPatchRequest Patch 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 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.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String 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.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String 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.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String 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.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String clusterPoolName, String clusterName, Context context);
-
- /**
- * 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.
- * @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 instance service configs api response as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- 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.
- * @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 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);
-
- /**
- * 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.
- * @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 instance view of a HDInsight Cluster as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- 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.
- * @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 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);
-
- /**
- * 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.
- * @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 status of a cluster instance along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- 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.
- * @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 status of a cluster instance.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- 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
deleted file mode 100644
index 751a70d276d8..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/HDInsightContainersManagementClient.java
+++ /dev/null
@@ -1,132 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.hdinsight.containers.fluent;
-
-import com.azure.core.http.HttpPipeline;
-import java.time.Duration;
-
-/**
- * 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 ClusterPoolUpgradeHistoriesClient object to access its operations.
- *
- * @return the ClusterPoolUpgradeHistoriesClient object.
- */
- ClusterPoolUpgradeHistoriesClient getClusterPoolUpgradeHistories();
-
- /**
- * 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 ClusterUpgradeHistoriesClient object to access its operations.
- *
- * @return the ClusterUpgradeHistoriesClient object.
- */
- ClusterUpgradeHistoriesClient getClusterUpgradeHistories();
-
- /**
- * 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();
-
- /**
- * Gets the ClusterLibrariesClient object to access its operations.
- *
- * @return the ClusterLibrariesClient object.
- */
- ClusterLibrariesClient getClusterLibraries();
-}
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
deleted file mode 100644
index 8e02e5edf0fa..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/LocationsClient.java
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.hdinsight.containers.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.Response;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.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.
- */
-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.
- * @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 result of check name availability along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- 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.
- * @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 result of check name availability.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- 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
deleted file mode 100644
index 64495db5f7a3..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/OperationsClient.java
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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.OperationInner;
-
-/**
- * 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}.
- */
- @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}.
- */
- @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
deleted file mode 100644
index 1ffc775adb1e..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterAvailableUpgradeInner.java
+++ /dev/null
@@ -1,167 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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.json.JsonReader;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterAvailableUpgradeProperties;
-import java.io.IOException;
-
-/**
- * Cluster available upgrade.
- */
-@Fluent
-public final class ClusterAvailableUpgradeInner extends ProxyResource {
- /*
- * Gets or sets the properties. Define cluster upgrade specific properties.
- */
- private ClusterAvailableUpgradeProperties properties;
-
- /*
- * Azure Resource Manager metadata containing createdBy and modifiedBy information.
- */
- private SystemData systemData;
-
- /*
- * Fully qualified resource Id for the resource.
- */
- private String id;
-
- /*
- * The name of the resource.
- */
- private String name;
-
- /*
- * The type of the resource.
- */
- private String type;
-
- /**
- * 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;
- }
-
- /**
- * Get the id property: Fully qualified resource Id for the resource.
- *
- * @return the id value.
- */
- @Override
- public String id() {
- return this.id;
- }
-
- /**
- * Get the name property: The name of the resource.
- *
- * @return the name value.
- */
- @Override
- public String name() {
- return this.name;
- }
-
- /**
- * Get the type property: The type of the resource.
- *
- * @return the type value.
- */
- @Override
- public String type() {
- return this.type;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (properties() != null) {
- properties().validate();
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeJsonField("properties", this.properties);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of ClusterAvailableUpgradeInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of ClusterAvailableUpgradeInner if the JsonReader was pointing to an instance of it, or null
- * if it was pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the ClusterAvailableUpgradeInner.
- */
- public static ClusterAvailableUpgradeInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- ClusterAvailableUpgradeInner deserializedClusterAvailableUpgradeInner = new ClusterAvailableUpgradeInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("id".equals(fieldName)) {
- deserializedClusterAvailableUpgradeInner.id = reader.getString();
- } else if ("name".equals(fieldName)) {
- deserializedClusterAvailableUpgradeInner.name = reader.getString();
- } else if ("type".equals(fieldName)) {
- deserializedClusterAvailableUpgradeInner.type = reader.getString();
- } else if ("properties".equals(fieldName)) {
- deserializedClusterAvailableUpgradeInner.properties
- = ClusterAvailableUpgradeProperties.fromJson(reader);
- } else if ("systemData".equals(fieldName)) {
- deserializedClusterAvailableUpgradeInner.systemData = SystemData.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedClusterAvailableUpgradeInner;
- });
- }
-}
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
deleted file mode 100644
index 7292d9e2eb2d..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterInner.java
+++ /dev/null
@@ -1,192 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.hdinsight.containers.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.Resource;
-import com.azure.core.management.SystemData;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterResourceProperties;
-import java.io.IOException;
-import java.util.Map;
-
-/**
- * The cluster.
- */
-@Fluent
-public final class ClusterInner extends Resource {
- /*
- * Gets or sets the properties. Define cluster specific properties.
- */
- private ClusterResourceProperties properties;
-
- /*
- * Azure Resource Manager metadata containing createdBy and modifiedBy information.
- */
- private SystemData systemData;
-
- /*
- * Fully qualified resource Id for the resource.
- */
- private String id;
-
- /*
- * The name of the resource.
- */
- private String name;
-
- /*
- * The type of the resource.
- */
- private String type;
-
- /**
- * Creates an instance of ClusterInner class.
- */
- public ClusterInner() {
- }
-
- /**
- * Get the properties property: Gets or sets the properties. Define cluster specific properties.
- *
- * @return the properties value.
- */
- public ClusterResourceProperties properties() {
- return this.properties;
- }
-
- /**
- * Set the properties property: Gets or sets the properties. Define cluster specific properties.
- *
- * @param properties the properties value to set.
- * @return the ClusterInner object itself.
- */
- public ClusterInner withProperties(ClusterResourceProperties 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;
- }
-
- /**
- * Get the id property: Fully qualified resource Id for the resource.
- *
- * @return the id value.
- */
- @Override
- public String id() {
- return this.id;
- }
-
- /**
- * Get the name property: The name of the resource.
- *
- * @return the name value.
- */
- @Override
- public String name() {
- return this.name;
- }
-
- /**
- * Get the type property: The type of the resource.
- *
- * @return the type value.
- */
- @Override
- public String type() {
- return this.type;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public ClusterInner withLocation(String location) {
- super.withLocation(location);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public ClusterInner withTags(Map tags) {
- super.withTags(tags);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (properties() != null) {
- properties().validate();
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("location", location());
- jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
- jsonWriter.writeJsonField("properties", this.properties);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of ClusterInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of ClusterInner if the JsonReader was pointing to an instance of it, or null if it was
- * pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the ClusterInner.
- */
- public static ClusterInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- ClusterInner deserializedClusterInner = new ClusterInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("id".equals(fieldName)) {
- deserializedClusterInner.id = reader.getString();
- } else if ("name".equals(fieldName)) {
- deserializedClusterInner.name = reader.getString();
- } else if ("type".equals(fieldName)) {
- deserializedClusterInner.type = reader.getString();
- } else if ("location".equals(fieldName)) {
- deserializedClusterInner.withLocation(reader.getString());
- } else if ("tags".equals(fieldName)) {
- Map tags = reader.readMap(reader1 -> reader1.getString());
- deserializedClusterInner.withTags(tags);
- } else if ("properties".equals(fieldName)) {
- deserializedClusterInner.properties = ClusterResourceProperties.fromJson(reader);
- } else if ("systemData".equals(fieldName)) {
- deserializedClusterInner.systemData = SystemData.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedClusterInner;
- });
- }
-}
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
deleted file mode 100644
index fd87f7ddcd50..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterInstanceViewResultInner.java
+++ /dev/null
@@ -1,140 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.hdinsight.containers.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterInstanceViewResultProperties;
-import java.io.IOException;
-
-/**
- * Cluster Instance View.
- */
-@Fluent
-public final class ClusterInstanceViewResultInner implements JsonSerializable {
- /*
- * Name of the instance view.
- */
- private String name;
-
- /*
- * Properties of the instance view.
- */
- private ClusterInstanceViewResultProperties properties;
-
- /**
- * Creates an instance of ClusterInstanceViewResultInner class.
- */
- public ClusterInstanceViewResultInner() {
- }
-
- /**
- * Get the name property: Name of the instance view.
- *
- * @return the name value.
- */
- public String name() {
- return this.name;
- }
-
- /**
- * Set the name property: Name of the instance view.
- *
- * @param name the name value to set.
- * @return the ClusterInstanceViewResultInner object itself.
- */
- public ClusterInstanceViewResultInner withName(String name) {
- this.name = name;
- return this;
- }
-
- /**
- * Get the properties property: Properties of the instance view.
- *
- * @return the properties value.
- */
- public ClusterInstanceViewResultProperties properties() {
- return this.properties;
- }
-
- /**
- * Set the properties property: Properties of the instance view.
- *
- * @param properties the properties value to set.
- * @return the ClusterInstanceViewResultInner object itself.
- */
- public ClusterInstanceViewResultInner withProperties(ClusterInstanceViewResultProperties properties) {
- this.properties = properties;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (name() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property name in model ClusterInstanceViewResultInner"));
- }
- if (properties() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property properties in model ClusterInstanceViewResultInner"));
- } else {
- properties().validate();
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(ClusterInstanceViewResultInner.class);
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("name", this.name);
- jsonWriter.writeJsonField("properties", this.properties);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of ClusterInstanceViewResultInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of ClusterInstanceViewResultInner if the JsonReader was pointing to an instance of it, or
- * null if it was pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the ClusterInstanceViewResultInner.
- */
- public static ClusterInstanceViewResultInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- ClusterInstanceViewResultInner deserializedClusterInstanceViewResultInner
- = new ClusterInstanceViewResultInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("name".equals(fieldName)) {
- deserializedClusterInstanceViewResultInner.name = reader.getString();
- } else if ("properties".equals(fieldName)) {
- deserializedClusterInstanceViewResultInner.properties
- = ClusterInstanceViewResultProperties.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedClusterInstanceViewResultInner;
- });
- }
-}
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterJobInner.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterJobInner.java
deleted file mode 100644
index 241650c87ebb..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterJobInner.java
+++ /dev/null
@@ -1,172 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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.core.util.logging.ClientLogger;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterJobProperties;
-import java.io.IOException;
-
-/**
- * Cluster job.
- */
-@Fluent
-public final class ClusterJobInner extends ProxyResource {
- /*
- * Properties of cluster job.
- */
- private ClusterJobProperties properties;
-
- /*
- * Azure Resource Manager metadata containing createdBy and modifiedBy information.
- */
- private SystemData systemData;
-
- /*
- * Fully qualified resource Id for the resource.
- */
- private String id;
-
- /*
- * The name of the resource.
- */
- private String name;
-
- /*
- * The type of the resource.
- */
- private String type;
-
- /**
- * Creates an instance of ClusterJobInner class.
- */
- public ClusterJobInner() {
- }
-
- /**
- * Get the properties property: Properties of cluster job.
- *
- * @return the properties value.
- */
- public ClusterJobProperties properties() {
- return this.properties;
- }
-
- /**
- * Set the properties property: Properties of cluster job.
- *
- * @param properties the properties value to set.
- * @return the ClusterJobInner object itself.
- */
- public ClusterJobInner withProperties(ClusterJobProperties 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;
- }
-
- /**
- * Get the id property: Fully qualified resource Id for the resource.
- *
- * @return the id value.
- */
- @Override
- public String id() {
- return this.id;
- }
-
- /**
- * Get the name property: The name of the resource.
- *
- * @return the name value.
- */
- @Override
- public String name() {
- return this.name;
- }
-
- /**
- * Get the type property: The type of the resource.
- *
- * @return the type value.
- */
- @Override
- public String type() {
- return this.type;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (properties() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Missing required property properties in model ClusterJobInner"));
- } else {
- properties().validate();
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(ClusterJobInner.class);
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeJsonField("properties", this.properties);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of ClusterJobInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of ClusterJobInner if the JsonReader was pointing to an instance of it, or null if it was
- * pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the ClusterJobInner.
- */
- public static ClusterJobInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- ClusterJobInner deserializedClusterJobInner = new ClusterJobInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("id".equals(fieldName)) {
- deserializedClusterJobInner.id = reader.getString();
- } else if ("name".equals(fieldName)) {
- deserializedClusterJobInner.name = reader.getString();
- } else if ("type".equals(fieldName)) {
- deserializedClusterJobInner.type = reader.getString();
- } else if ("properties".equals(fieldName)) {
- deserializedClusterJobInner.properties = ClusterJobProperties.fromJson(reader);
- } else if ("systemData".equals(fieldName)) {
- deserializedClusterJobInner.systemData = SystemData.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedClusterJobInner;
- });
- }
-}
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterLibraryInner.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterLibraryInner.java
deleted file mode 100644
index 5e974cf7dc7a..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterLibraryInner.java
+++ /dev/null
@@ -1,172 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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.core.util.logging.ClientLogger;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterLibraryProperties;
-import java.io.IOException;
-
-/**
- * Libraries in the cluster.
- */
-@Fluent
-public final class ClusterLibraryInner extends ProxyResource {
- /*
- * Properties of a library in the cluster.
- */
- private ClusterLibraryProperties properties;
-
- /*
- * Azure Resource Manager metadata containing createdBy and modifiedBy information.
- */
- private SystemData systemData;
-
- /*
- * Fully qualified resource Id for the resource.
- */
- private String id;
-
- /*
- * The name of the resource.
- */
- private String name;
-
- /*
- * The type of the resource.
- */
- private String type;
-
- /**
- * Creates an instance of ClusterLibraryInner class.
- */
- public ClusterLibraryInner() {
- }
-
- /**
- * Get the properties property: Properties of a library in the cluster.
- *
- * @return the properties value.
- */
- public ClusterLibraryProperties properties() {
- return this.properties;
- }
-
- /**
- * Set the properties property: Properties of a library in the cluster.
- *
- * @param properties the properties value to set.
- * @return the ClusterLibraryInner object itself.
- */
- public ClusterLibraryInner withProperties(ClusterLibraryProperties 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;
- }
-
- /**
- * Get the id property: Fully qualified resource Id for the resource.
- *
- * @return the id value.
- */
- @Override
- public String id() {
- return this.id;
- }
-
- /**
- * Get the name property: The name of the resource.
- *
- * @return the name value.
- */
- @Override
- public String name() {
- return this.name;
- }
-
- /**
- * Get the type property: The type of the resource.
- *
- * @return the type value.
- */
- @Override
- public String type() {
- return this.type;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (properties() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Missing required property properties in model ClusterLibraryInner"));
- } else {
- properties().validate();
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(ClusterLibraryInner.class);
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeJsonField("properties", this.properties);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of ClusterLibraryInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of ClusterLibraryInner if the JsonReader was pointing to an instance of it, or null if it was
- * pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the ClusterLibraryInner.
- */
- public static ClusterLibraryInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- ClusterLibraryInner deserializedClusterLibraryInner = new ClusterLibraryInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("id".equals(fieldName)) {
- deserializedClusterLibraryInner.id = reader.getString();
- } else if ("name".equals(fieldName)) {
- deserializedClusterLibraryInner.name = reader.getString();
- } else if ("type".equals(fieldName)) {
- deserializedClusterLibraryInner.type = reader.getString();
- } else if ("properties".equals(fieldName)) {
- deserializedClusterLibraryInner.properties = ClusterLibraryProperties.fromJson(reader);
- } else if ("systemData".equals(fieldName)) {
- deserializedClusterLibraryInner.systemData = SystemData.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedClusterLibraryInner;
- });
- }
-}
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterPoolAvailableUpgradeInner.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterPoolAvailableUpgradeInner.java
deleted file mode 100644
index 799614adf89f..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterPoolAvailableUpgradeInner.java
+++ /dev/null
@@ -1,168 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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.json.JsonReader;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterPoolAvailableUpgradeProperties;
-import java.io.IOException;
-
-/**
- * Cluster pool available upgrade.
- */
-@Fluent
-public final class ClusterPoolAvailableUpgradeInner extends ProxyResource {
- /*
- * Gets or sets the properties. Define cluster pool upgrade specific properties.
- */
- private ClusterPoolAvailableUpgradeProperties properties;
-
- /*
- * Azure Resource Manager metadata containing createdBy and modifiedBy information.
- */
- private SystemData systemData;
-
- /*
- * Fully qualified resource Id for the resource.
- */
- private String id;
-
- /*
- * The name of the resource.
- */
- private String name;
-
- /*
- * The type of the resource.
- */
- private String type;
-
- /**
- * Creates an instance of ClusterPoolAvailableUpgradeInner class.
- */
- public ClusterPoolAvailableUpgradeInner() {
- }
-
- /**
- * Get the properties property: Gets or sets the properties. Define cluster pool upgrade specific properties.
- *
- * @return the properties value.
- */
- public ClusterPoolAvailableUpgradeProperties properties() {
- return this.properties;
- }
-
- /**
- * Set the properties property: Gets or sets the properties. Define cluster pool upgrade specific properties.
- *
- * @param properties the properties value to set.
- * @return the ClusterPoolAvailableUpgradeInner object itself.
- */
- public ClusterPoolAvailableUpgradeInner withProperties(ClusterPoolAvailableUpgradeProperties 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;
- }
-
- /**
- * Get the id property: Fully qualified resource Id for the resource.
- *
- * @return the id value.
- */
- @Override
- public String id() {
- return this.id;
- }
-
- /**
- * Get the name property: The name of the resource.
- *
- * @return the name value.
- */
- @Override
- public String name() {
- return this.name;
- }
-
- /**
- * Get the type property: The type of the resource.
- *
- * @return the type value.
- */
- @Override
- public String type() {
- return this.type;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (properties() != null) {
- properties().validate();
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeJsonField("properties", this.properties);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of ClusterPoolAvailableUpgradeInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of ClusterPoolAvailableUpgradeInner if the JsonReader was pointing to an instance of it, or
- * null if it was pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the ClusterPoolAvailableUpgradeInner.
- */
- public static ClusterPoolAvailableUpgradeInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- ClusterPoolAvailableUpgradeInner deserializedClusterPoolAvailableUpgradeInner
- = new ClusterPoolAvailableUpgradeInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("id".equals(fieldName)) {
- deserializedClusterPoolAvailableUpgradeInner.id = reader.getString();
- } else if ("name".equals(fieldName)) {
- deserializedClusterPoolAvailableUpgradeInner.name = reader.getString();
- } else if ("type".equals(fieldName)) {
- deserializedClusterPoolAvailableUpgradeInner.type = reader.getString();
- } else if ("properties".equals(fieldName)) {
- deserializedClusterPoolAvailableUpgradeInner.properties
- = ClusterPoolAvailableUpgradeProperties.fromJson(reader);
- } else if ("systemData".equals(fieldName)) {
- deserializedClusterPoolAvailableUpgradeInner.systemData = SystemData.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedClusterPoolAvailableUpgradeInner;
- });
- }
-}
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterPoolInner.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterPoolInner.java
deleted file mode 100644
index ee1080e15394..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterPoolInner.java
+++ /dev/null
@@ -1,192 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.hdinsight.containers.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.Resource;
-import com.azure.core.management.SystemData;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterPoolResourceProperties;
-import java.io.IOException;
-import java.util.Map;
-
-/**
- * Cluster pool.
- */
-@Fluent
-public final class ClusterPoolInner extends Resource {
- /*
- * Gets or sets the properties. Define cluster pool specific properties.
- */
- private ClusterPoolResourceProperties properties;
-
- /*
- * Azure Resource Manager metadata containing createdBy and modifiedBy information.
- */
- private SystemData systemData;
-
- /*
- * Fully qualified resource Id for the resource.
- */
- private String id;
-
- /*
- * The name of the resource.
- */
- private String name;
-
- /*
- * The type of the resource.
- */
- private String type;
-
- /**
- * Creates an instance of ClusterPoolInner class.
- */
- public ClusterPoolInner() {
- }
-
- /**
- * Get the properties property: Gets or sets the properties. Define cluster pool specific properties.
- *
- * @return the properties value.
- */
- public ClusterPoolResourceProperties properties() {
- return this.properties;
- }
-
- /**
- * Set the properties property: Gets or sets the properties. Define cluster pool specific properties.
- *
- * @param properties the properties value to set.
- * @return the ClusterPoolInner object itself.
- */
- public ClusterPoolInner withProperties(ClusterPoolResourceProperties 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;
- }
-
- /**
- * Get the id property: Fully qualified resource Id for the resource.
- *
- * @return the id value.
- */
- @Override
- public String id() {
- return this.id;
- }
-
- /**
- * Get the name property: The name of the resource.
- *
- * @return the name value.
- */
- @Override
- public String name() {
- return this.name;
- }
-
- /**
- * Get the type property: The type of the resource.
- *
- * @return the type value.
- */
- @Override
- public String type() {
- return this.type;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public ClusterPoolInner withLocation(String location) {
- super.withLocation(location);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public ClusterPoolInner withTags(Map tags) {
- super.withTags(tags);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (properties() != null) {
- properties().validate();
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("location", location());
- jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
- jsonWriter.writeJsonField("properties", this.properties);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of ClusterPoolInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of ClusterPoolInner if the JsonReader was pointing to an instance of it, or null if it was
- * pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the ClusterPoolInner.
- */
- public static ClusterPoolInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- ClusterPoolInner deserializedClusterPoolInner = new ClusterPoolInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("id".equals(fieldName)) {
- deserializedClusterPoolInner.id = reader.getString();
- } else if ("name".equals(fieldName)) {
- deserializedClusterPoolInner.name = reader.getString();
- } else if ("type".equals(fieldName)) {
- deserializedClusterPoolInner.type = reader.getString();
- } else if ("location".equals(fieldName)) {
- deserializedClusterPoolInner.withLocation(reader.getString());
- } else if ("tags".equals(fieldName)) {
- Map tags = reader.readMap(reader1 -> reader1.getString());
- deserializedClusterPoolInner.withTags(tags);
- } else if ("properties".equals(fieldName)) {
- deserializedClusterPoolInner.properties = ClusterPoolResourceProperties.fromJson(reader);
- } else if ("systemData".equals(fieldName)) {
- deserializedClusterPoolInner.systemData = SystemData.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedClusterPoolInner;
- });
- }
-}
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterPoolUpgradeHistoryInner.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterPoolUpgradeHistoryInner.java
deleted file mode 100644
index 72761269ac31..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterPoolUpgradeHistoryInner.java
+++ /dev/null
@@ -1,175 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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.core.util.logging.ClientLogger;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterPoolUpgradeHistoryProperties;
-import java.io.IOException;
-
-/**
- * Cluster pool upgrade history.
- */
-@Fluent
-public final class ClusterPoolUpgradeHistoryInner extends ProxyResource {
- /*
- * Properties of cluster pool upgrade history.
- */
- private ClusterPoolUpgradeHistoryProperties properties;
-
- /*
- * Azure Resource Manager metadata containing createdBy and modifiedBy information.
- */
- private SystemData systemData;
-
- /*
- * Fully qualified resource Id for the resource.
- */
- private String id;
-
- /*
- * The name of the resource.
- */
- private String name;
-
- /*
- * The type of the resource.
- */
- private String type;
-
- /**
- * Creates an instance of ClusterPoolUpgradeHistoryInner class.
- */
- public ClusterPoolUpgradeHistoryInner() {
- }
-
- /**
- * Get the properties property: Properties of cluster pool upgrade history.
- *
- * @return the properties value.
- */
- public ClusterPoolUpgradeHistoryProperties properties() {
- return this.properties;
- }
-
- /**
- * Set the properties property: Properties of cluster pool upgrade history.
- *
- * @param properties the properties value to set.
- * @return the ClusterPoolUpgradeHistoryInner object itself.
- */
- public ClusterPoolUpgradeHistoryInner withProperties(ClusterPoolUpgradeHistoryProperties 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;
- }
-
- /**
- * Get the id property: Fully qualified resource Id for the resource.
- *
- * @return the id value.
- */
- @Override
- public String id() {
- return this.id;
- }
-
- /**
- * Get the name property: The name of the resource.
- *
- * @return the name value.
- */
- @Override
- public String name() {
- return this.name;
- }
-
- /**
- * Get the type property: The type of the resource.
- *
- * @return the type value.
- */
- @Override
- public String type() {
- return this.type;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (properties() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property properties in model ClusterPoolUpgradeHistoryInner"));
- } else {
- properties().validate();
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(ClusterPoolUpgradeHistoryInner.class);
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeJsonField("properties", this.properties);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of ClusterPoolUpgradeHistoryInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of ClusterPoolUpgradeHistoryInner if the JsonReader was pointing to an instance of it, or
- * null if it was pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the ClusterPoolUpgradeHistoryInner.
- */
- public static ClusterPoolUpgradeHistoryInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- ClusterPoolUpgradeHistoryInner deserializedClusterPoolUpgradeHistoryInner
- = new ClusterPoolUpgradeHistoryInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("id".equals(fieldName)) {
- deserializedClusterPoolUpgradeHistoryInner.id = reader.getString();
- } else if ("name".equals(fieldName)) {
- deserializedClusterPoolUpgradeHistoryInner.name = reader.getString();
- } else if ("type".equals(fieldName)) {
- deserializedClusterPoolUpgradeHistoryInner.type = reader.getString();
- } else if ("properties".equals(fieldName)) {
- deserializedClusterPoolUpgradeHistoryInner.properties
- = ClusterPoolUpgradeHistoryProperties.fromJson(reader);
- } else if ("systemData".equals(fieldName)) {
- deserializedClusterPoolUpgradeHistoryInner.systemData = SystemData.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedClusterPoolUpgradeHistoryInner;
- });
- }
-}
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
deleted file mode 100644
index f907a9bf9727..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterPoolVersionInner.java
+++ /dev/null
@@ -1,166 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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.json.JsonReader;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterPoolVersionProperties;
-import java.io.IOException;
-
-/**
- * Available cluster pool version.
- */
-@Fluent
-public final class ClusterPoolVersionInner extends ProxyResource {
- /*
- * Cluster pool version properties.
- */
- private ClusterPoolVersionProperties properties;
-
- /*
- * Azure Resource Manager metadata containing createdBy and modifiedBy information.
- */
- private SystemData systemData;
-
- /*
- * Fully qualified resource Id for the resource.
- */
- private String id;
-
- /*
- * The name of the resource.
- */
- private String name;
-
- /*
- * The type of the resource.
- */
- private String type;
-
- /**
- * Creates an instance of ClusterPoolVersionInner class.
- */
- public ClusterPoolVersionInner() {
- }
-
- /**
- * Get the properties property: Cluster pool version properties.
- *
- * @return the properties value.
- */
- public ClusterPoolVersionProperties properties() {
- return this.properties;
- }
-
- /**
- * Set the properties property: Cluster pool version properties.
- *
- * @param properties the properties value to set.
- * @return the ClusterPoolVersionInner object itself.
- */
- public ClusterPoolVersionInner withProperties(ClusterPoolVersionProperties 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;
- }
-
- /**
- * Get the id property: Fully qualified resource Id for the resource.
- *
- * @return the id value.
- */
- @Override
- public String id() {
- return this.id;
- }
-
- /**
- * Get the name property: The name of the resource.
- *
- * @return the name value.
- */
- @Override
- public String name() {
- return this.name;
- }
-
- /**
- * Get the type property: The type of the resource.
- *
- * @return the type value.
- */
- @Override
- public String type() {
- return this.type;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (properties() != null) {
- properties().validate();
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeJsonField("properties", this.properties);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of ClusterPoolVersionInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of ClusterPoolVersionInner if the JsonReader was pointing to an instance of it, or null if it
- * was pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the ClusterPoolVersionInner.
- */
- public static ClusterPoolVersionInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- ClusterPoolVersionInner deserializedClusterPoolVersionInner = new ClusterPoolVersionInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("id".equals(fieldName)) {
- deserializedClusterPoolVersionInner.id = reader.getString();
- } else if ("name".equals(fieldName)) {
- deserializedClusterPoolVersionInner.name = reader.getString();
- } else if ("type".equals(fieldName)) {
- deserializedClusterPoolVersionInner.type = reader.getString();
- } else if ("properties".equals(fieldName)) {
- deserializedClusterPoolVersionInner.properties = ClusterPoolVersionProperties.fromJson(reader);
- } else if ("systemData".equals(fieldName)) {
- deserializedClusterPoolVersionInner.systemData = SystemData.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedClusterPoolVersionInner;
- });
- }
-}
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterUpgradeHistoryInner.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterUpgradeHistoryInner.java
deleted file mode 100644
index 41ebd3a02274..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterUpgradeHistoryInner.java
+++ /dev/null
@@ -1,174 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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.core.util.logging.ClientLogger;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterUpgradeHistoryProperties;
-import java.io.IOException;
-
-/**
- * Cluster upgrade history.
- */
-@Fluent
-public final class ClusterUpgradeHistoryInner extends ProxyResource {
- /*
- * Properties of cluster upgrade history.
- */
- private ClusterUpgradeHistoryProperties properties;
-
- /*
- * Azure Resource Manager metadata containing createdBy and modifiedBy information.
- */
- private SystemData systemData;
-
- /*
- * Fully qualified resource Id for the resource.
- */
- private String id;
-
- /*
- * The name of the resource.
- */
- private String name;
-
- /*
- * The type of the resource.
- */
- private String type;
-
- /**
- * Creates an instance of ClusterUpgradeHistoryInner class.
- */
- public ClusterUpgradeHistoryInner() {
- }
-
- /**
- * Get the properties property: Properties of cluster upgrade history.
- *
- * @return the properties value.
- */
- public ClusterUpgradeHistoryProperties properties() {
- return this.properties;
- }
-
- /**
- * Set the properties property: Properties of cluster upgrade history.
- *
- * @param properties the properties value to set.
- * @return the ClusterUpgradeHistoryInner object itself.
- */
- public ClusterUpgradeHistoryInner withProperties(ClusterUpgradeHistoryProperties 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;
- }
-
- /**
- * Get the id property: Fully qualified resource Id for the resource.
- *
- * @return the id value.
- */
- @Override
- public String id() {
- return this.id;
- }
-
- /**
- * Get the name property: The name of the resource.
- *
- * @return the name value.
- */
- @Override
- public String name() {
- return this.name;
- }
-
- /**
- * Get the type property: The type of the resource.
- *
- * @return the type value.
- */
- @Override
- public String type() {
- return this.type;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (properties() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property properties in model ClusterUpgradeHistoryInner"));
- } else {
- properties().validate();
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(ClusterUpgradeHistoryInner.class);
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeJsonField("properties", this.properties);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of ClusterUpgradeHistoryInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of ClusterUpgradeHistoryInner if the JsonReader was pointing to an instance of it, or null if
- * it was pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the ClusterUpgradeHistoryInner.
- */
- public static ClusterUpgradeHistoryInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- ClusterUpgradeHistoryInner deserializedClusterUpgradeHistoryInner = new ClusterUpgradeHistoryInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("id".equals(fieldName)) {
- deserializedClusterUpgradeHistoryInner.id = reader.getString();
- } else if ("name".equals(fieldName)) {
- deserializedClusterUpgradeHistoryInner.name = reader.getString();
- } else if ("type".equals(fieldName)) {
- deserializedClusterUpgradeHistoryInner.type = reader.getString();
- } else if ("properties".equals(fieldName)) {
- deserializedClusterUpgradeHistoryInner.properties
- = ClusterUpgradeHistoryProperties.fromJson(reader);
- } else if ("systemData".equals(fieldName)) {
- deserializedClusterUpgradeHistoryInner.systemData = SystemData.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedClusterUpgradeHistoryInner;
- });
- }
-}
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
deleted file mode 100644
index 4b015d370c51..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ClusterVersionInner.java
+++ /dev/null
@@ -1,166 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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.json.JsonReader;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterVersionProperties;
-import java.io.IOException;
-
-/**
- * Available cluster version.
- */
-@Fluent
-public final class ClusterVersionInner extends ProxyResource {
- /*
- * Cluster version properties.
- */
- private ClusterVersionProperties properties;
-
- /*
- * Azure Resource Manager metadata containing createdBy and modifiedBy information.
- */
- private SystemData systemData;
-
- /*
- * Fully qualified resource Id for the resource.
- */
- private String id;
-
- /*
- * The name of the resource.
- */
- private String name;
-
- /*
- * The type of the resource.
- */
- private String type;
-
- /**
- * Creates an instance of ClusterVersionInner class.
- */
- public ClusterVersionInner() {
- }
-
- /**
- * Get the properties property: Cluster version properties.
- *
- * @return the properties value.
- */
- public ClusterVersionProperties properties() {
- return this.properties;
- }
-
- /**
- * Set the properties property: Cluster version properties.
- *
- * @param properties the properties value to set.
- * @return the ClusterVersionInner object itself.
- */
- public ClusterVersionInner withProperties(ClusterVersionProperties 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;
- }
-
- /**
- * Get the id property: Fully qualified resource Id for the resource.
- *
- * @return the id value.
- */
- @Override
- public String id() {
- return this.id;
- }
-
- /**
- * Get the name property: The name of the resource.
- *
- * @return the name value.
- */
- @Override
- public String name() {
- return this.name;
- }
-
- /**
- * Get the type property: The type of the resource.
- *
- * @return the type value.
- */
- @Override
- public String type() {
- return this.type;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (properties() != null) {
- properties().validate();
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeJsonField("properties", this.properties);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of ClusterVersionInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of ClusterVersionInner if the JsonReader was pointing to an instance of it, or null if it was
- * pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the ClusterVersionInner.
- */
- public static ClusterVersionInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- ClusterVersionInner deserializedClusterVersionInner = new ClusterVersionInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("id".equals(fieldName)) {
- deserializedClusterVersionInner.id = reader.getString();
- } else if ("name".equals(fieldName)) {
- deserializedClusterVersionInner.name = reader.getString();
- } else if ("type".equals(fieldName)) {
- deserializedClusterVersionInner.type = reader.getString();
- } else if ("properties".equals(fieldName)) {
- deserializedClusterVersionInner.properties = ClusterVersionProperties.fromJson(reader);
- } else if ("systemData".equals(fieldName)) {
- deserializedClusterVersionInner.systemData = SystemData.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedClusterVersionInner;
- });
- }
-}
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
deleted file mode 100644
index 3ea3123bf188..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/NameAvailabilityResultInner.java
+++ /dev/null
@@ -1,149 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.hdinsight.containers.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import java.io.IOException;
-
-/**
- * Result of check name availability.
- */
-@Fluent
-public final class NameAvailabilityResultInner implements JsonSerializable {
- /*
- * Indicator of availability of the Microsoft.HDInsight resource name.
- */
- private Boolean nameAvailable;
-
- /*
- * The reason of unavailability.
- */
- private String reason;
-
- /*
- * The error message of unavailability.
- */
- private String message;
-
- /**
- * 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() {
- return this.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.
- */
- public NameAvailabilityResultInner withNameAvailable(Boolean nameAvailable) {
- this.nameAvailable = nameAvailable;
- return this;
- }
-
- /**
- * Get the reason property: The reason of unavailability.
- *
- * @return the reason value.
- */
- public String reason() {
- return this.reason;
- }
-
- /**
- * Set the reason property: The reason of unavailability.
- *
- * @param reason the reason value to set.
- * @return the NameAvailabilityResultInner object itself.
- */
- public NameAvailabilityResultInner withReason(String reason) {
- this.reason = reason;
- return this;
- }
-
- /**
- * Get the message property: The error message of unavailability.
- *
- * @return the message value.
- */
- public String message() {
- return this.message;
- }
-
- /**
- * Set the message property: The error message of unavailability.
- *
- * @param message the message value to set.
- * @return the NameAvailabilityResultInner object itself.
- */
- public NameAvailabilityResultInner withMessage(String message) {
- this.message = message;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeBooleanField("nameAvailable", this.nameAvailable);
- jsonWriter.writeStringField("reason", this.reason);
- jsonWriter.writeStringField("message", this.message);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of NameAvailabilityResultInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of NameAvailabilityResultInner if the JsonReader was pointing to an instance of it, or null
- * if it was pointing to JSON null.
- * @throws IOException If an error occurs while reading the NameAvailabilityResultInner.
- */
- public static NameAvailabilityResultInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- NameAvailabilityResultInner deserializedNameAvailabilityResultInner = new NameAvailabilityResultInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("nameAvailable".equals(fieldName)) {
- deserializedNameAvailabilityResultInner.nameAvailable = reader.getNullable(JsonReader::getBoolean);
- } else if ("reason".equals(fieldName)) {
- deserializedNameAvailabilityResultInner.reason = reader.getString();
- } else if ("message".equals(fieldName)) {
- deserializedNameAvailabilityResultInner.message = reader.getString();
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedNameAvailabilityResultInner;
- });
- }
-}
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
deleted file mode 100644
index d4b8c188dc5b..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/OperationInner.java
+++ /dev/null
@@ -1,172 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.hdinsight.containers.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.hdinsight.containers.models.ActionType;
-import com.azure.resourcemanager.hdinsight.containers.models.OperationDisplay;
-import com.azure.resourcemanager.hdinsight.containers.models.Origin;
-import java.io.IOException;
-
-/**
- * REST API Operation
- *
- * Details of a REST API operation, returned from the Resource Provider Operations API.
- */
-@Fluent
-public final class OperationInner implements JsonSerializable {
- /*
- * The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
- * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action"
- */
- private String name;
-
- /*
- * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for
- * ARM/control-plane operations.
- */
- private Boolean isDataAction;
-
- /*
- * Localized display information for this particular operation.
- */
- private OperationDisplay display;
-
- /*
- * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default
- * value is "user,system"
- */
- private Origin origin;
-
- /*
- * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
- */
- private ActionType actionType;
-
- /**
- * 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() {
- return this.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() {
- return this.isDataAction;
- }
-
- /**
- * Get the display property: Localized display information for this particular operation.
- *
- * @return the display value.
- */
- public OperationDisplay display() {
- return this.display;
- }
-
- /**
- * Set the display property: Localized display information for this particular operation.
- *
- * @param display the display value to set.
- * @return the OperationInner object itself.
- */
- public OperationInner withDisplay(OperationDisplay display) {
- this.display = display;
- return this;
- }
-
- /**
- * 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() {
- return this.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() {
- return this.actionType;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (display() != null) {
- display().validate();
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeJsonField("display", this.display);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of OperationInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of OperationInner if the JsonReader was pointing to an instance of it, or null if it was
- * pointing to JSON null.
- * @throws IOException If an error occurs while reading the OperationInner.
- */
- public static OperationInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- OperationInner deserializedOperationInner = new OperationInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("name".equals(fieldName)) {
- deserializedOperationInner.name = reader.getString();
- } else if ("isDataAction".equals(fieldName)) {
- deserializedOperationInner.isDataAction = reader.getNullable(JsonReader::getBoolean);
- } else if ("display".equals(fieldName)) {
- deserializedOperationInner.display = OperationDisplay.fromJson(reader);
- } else if ("origin".equals(fieldName)) {
- deserializedOperationInner.origin = Origin.fromString(reader.getString());
- } else if ("actionType".equals(fieldName)) {
- deserializedOperationInner.actionType = ActionType.fromString(reader.getString());
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedOperationInner;
- });
- }
-}
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
deleted file mode 100644
index e92e2e4a9d85..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/ServiceConfigResultInner.java
+++ /dev/null
@@ -1,97 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.hdinsight.containers.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.hdinsight.containers.models.ServiceConfigResultProperties;
-import java.io.IOException;
-
-/**
- * Cluster instance service config.
- */
-@Fluent
-public final class ServiceConfigResultInner implements JsonSerializable {
- /*
- * Cluster instance service config properties.
- */
- private ServiceConfigResultProperties properties;
-
- /**
- * Creates an instance of ServiceConfigResultInner class.
- */
- public ServiceConfigResultInner() {
- }
-
- /**
- * Get the properties property: Cluster instance service config properties.
- *
- * @return the properties value.
- */
- public ServiceConfigResultProperties properties() {
- return this.properties;
- }
-
- /**
- * Set the properties property: Cluster instance service config properties.
- *
- * @param properties the properties value to set.
- * @return the ServiceConfigResultInner object itself.
- */
- public ServiceConfigResultInner withProperties(ServiceConfigResultProperties properties) {
- this.properties = properties;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (properties() != null) {
- properties().validate();
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeJsonField("properties", this.properties);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of ServiceConfigResultInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of ServiceConfigResultInner if the JsonReader was pointing to an instance of it, or null if
- * it was pointing to JSON null.
- * @throws IOException If an error occurs while reading the ServiceConfigResultInner.
- */
- public static ServiceConfigResultInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- ServiceConfigResultInner deserializedServiceConfigResultInner = new ServiceConfigResultInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("properties".equals(fieldName)) {
- deserializedServiceConfigResultInner.properties = ServiceConfigResultProperties.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedServiceConfigResultInner;
- });
- }
-}
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/package-info.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/package-info.java
deleted file mode 100644
index 4b4833aa2631..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/models/package-info.java
+++ /dev/null
@@ -1,9 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-/**
- * Package containing the inner data models for HDInsightContainersManagementClient.
- * HDInsight Containers Management Client.
- */
-package com.azure.resourcemanager.hdinsight.containers.fluent.models;
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/package-info.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/package-info.java
deleted file mode 100644
index 1bb57f49c2f7..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/fluent/package-info.java
+++ /dev/null
@@ -1,9 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-/**
- * Package containing the service clients for HDInsightContainersManagementClient.
- * HDInsight Containers Management Client.
- */
-package com.azure.resourcemanager.hdinsight.containers.fluent;
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/AvailableClusterPoolVersionsClientImpl.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/AvailableClusterPoolVersionsClientImpl.java
deleted file mode 100644
index 235301d12ad2..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/AvailableClusterPoolVersionsClientImpl.java
+++ /dev/null
@@ -1,262 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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.AvailableClusterPoolVersionsClient;
-import com.azure.resourcemanager.hdinsight.containers.fluent.models.ClusterPoolVersionInner;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterPoolVersionsListResult;
-import reactor.core.publisher.Mono;
-
-/**
- * An instance of this class provides access to all the operations defined in AvailableClusterPoolVersionsClient.
- */
-public final class AvailableClusterPoolVersionsClientImpl implements AvailableClusterPoolVersionsClient {
- /**
- * The proxy service used to perform REST calls.
- */
- private final AvailableClusterPoolVersionsService service;
-
- /**
- * The service client containing this operation class.
- */
- private final HDInsightContainersManagementClientImpl client;
-
- /**
- * Initializes an instance of AvailableClusterPoolVersionsClientImpl.
- *
- * @param client the instance of the service client containing this operation class.
- */
- AvailableClusterPoolVersionsClientImpl(HDInsightContainersManagementClientImpl client) {
- this.service = RestProxy.create(AvailableClusterPoolVersionsService.class, client.getHttpPipeline(),
- client.getSerializerAdapter());
- this.client = client;
- }
-
- /**
- * The interface defining all the services for HDInsightContainersManagementClientAvailableClusterPoolVersions to be
- * used by the proxy service to perform REST calls.
- */
- @Host("{$host}")
- @ServiceInterface(name = "HDInsightContainersM")
- public interface AvailableClusterPoolVersionsService {
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/availableClusterPoolVersions")
- @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);
-
- @Headers({ "Content-Type: application/json" })
- @Get("{nextLink}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByLocationNext(
- @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}.
- */
- @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."));
- }
- if (this.client.getSubscriptionId() == 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))
- .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}.
- */
- @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."));
- }
- if (this.client.getSubscriptionId() == 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";
- 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));
- }
-
- /**
- * 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 as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByLocationAsync(String location) {
- 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.
- * @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 as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByLocationAsync(String location, Context 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.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return represents a list of cluster pool versions as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByLocation(String location) {
- return new PagedIterable<>(listByLocationAsync(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.
- * @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 as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByLocation(String location, Context context) {
- return new PagedIterable<>(listByLocationAsync(location, context));
- }
-
- /**
- * Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items.
- * @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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByLocationNextSinglePageAsync(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.listByLocationNext(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.
- * @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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- 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."));
- }
- 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));
- }
-}
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
deleted file mode 100644
index 6519e0653796..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/AvailableClusterPoolVersionsImpl.java
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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.AvailableClusterPoolVersionsClient;
-import com.azure.resourcemanager.hdinsight.containers.fluent.models.ClusterPoolVersionInner;
-import com.azure.resourcemanager.hdinsight.containers.models.AvailableClusterPoolVersions;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterPoolVersion;
-
-public final class AvailableClusterPoolVersionsImpl implements AvailableClusterPoolVersions {
- private static final ClientLogger LOGGER = new ClientLogger(AvailableClusterPoolVersionsImpl.class);
-
- private final AvailableClusterPoolVersionsClient innerClient;
-
- private final com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager serviceManager;
-
- public AvailableClusterPoolVersionsImpl(AvailableClusterPoolVersionsClient innerClient,
- com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager serviceManager) {
- this.innerClient = innerClient;
- this.serviceManager = serviceManager;
- }
-
- public PagedIterable listByLocation(String location) {
- PagedIterable inner = this.serviceClient().listByLocation(location);
- 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 ResourceManagerUtils.mapPage(inner, inner1 -> new ClusterPoolVersionImpl(inner1, this.manager()));
- }
-
- private AvailableClusterPoolVersionsClient 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/AvailableClusterVersionsClientImpl.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/AvailableClusterVersionsClientImpl.java
deleted file mode 100644
index ddf9d02791e8..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/AvailableClusterVersionsClientImpl.java
+++ /dev/null
@@ -1,261 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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.AvailableClusterVersionsClient;
-import com.azure.resourcemanager.hdinsight.containers.fluent.models.ClusterVersionInner;
-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.
- */
-public final class AvailableClusterVersionsClientImpl implements AvailableClusterVersionsClient {
- /**
- * The proxy service used to perform REST calls.
- */
- private final AvailableClusterVersionsService service;
-
- /**
- * 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.client = client;
- }
-
- /**
- * The interface defining all the services for HDInsightContainersManagementClientAvailableClusterVersions to be
- * used by the proxy service to perform REST calls.
- */
- @Host("{$host}")
- @ServiceInterface(name = "HDInsightContainersM")
- public interface AvailableClusterVersionsService {
- @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);
-
- @Headers({ "Content-Type: application/json" })
- @Get("{nextLink}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByLocationNext(
- @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}.
- */
- @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."));
- }
- if (this.client.getSubscriptionId() == 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))
- .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}.
- */
- @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."));
- }
- if (this.client.getSubscriptionId() == 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";
- 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));
- }
-
- /**
- * 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 as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByLocationAsync(String location) {
- 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.
- * @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 as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByLocationAsync(String location, Context 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.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return represents a list of cluster versions as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByLocation(String location) {
- return new PagedIterable<>(listByLocationAsync(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.
- * @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 as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByLocation(String location, Context context) {
- return new PagedIterable<>(listByLocationAsync(location, context));
- }
-
- /**
- * Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items.
- * @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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByLocationNextSinglePageAsync(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.listByLocationNext(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.
- * @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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- 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."));
- }
- 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));
- }
-}
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
deleted file mode 100644
index db08ea18ee98..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/AvailableClusterVersionsImpl.java
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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.AvailableClusterVersionsClient;
-import com.azure.resourcemanager.hdinsight.containers.fluent.models.ClusterVersionInner;
-import com.azure.resourcemanager.hdinsight.containers.models.AvailableClusterVersions;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterVersion;
-
-public final class AvailableClusterVersionsImpl implements AvailableClusterVersions {
- private static final ClientLogger LOGGER = new ClientLogger(AvailableClusterVersionsImpl.class);
-
- private final AvailableClusterVersionsClient innerClient;
-
- private final com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager serviceManager;
-
- public AvailableClusterVersionsImpl(AvailableClusterVersionsClient innerClient,
- com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager serviceManager) {
- this.innerClient = innerClient;
- this.serviceManager = serviceManager;
- }
-
- public PagedIterable listByLocation(String location) {
- PagedIterable inner = this.serviceClient().listByLocation(location);
- 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 ResourceManagerUtils.mapPage(inner, inner1 -> new ClusterVersionImpl(inner1, this.manager()));
- }
-
- private AvailableClusterVersionsClient 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/ClusterAvailableUpgradeImpl.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterAvailableUpgradeImpl.java
deleted file mode 100644
index ab837db0beb7..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterAvailableUpgradeImpl.java
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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
deleted file mode 100644
index 3bd8ed35be90..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterAvailableUpgradesClientImpl.java
+++ /dev/null
@@ -1,296 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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.
- * @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.
- * @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
deleted file mode 100644
index d5ab2fa7a6d9..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterAvailableUpgradesImpl.java
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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
deleted file mode 100644
index 2b5c228c5610..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterImpl.java
+++ /dev/null
@@ -1,220 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.hdinsight.containers.implementation;
-
-import com.azure.core.management.Region;
-import com.azure.core.management.SystemData;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.hdinsight.containers.fluent.models.ClusterInner;
-import com.azure.resourcemanager.hdinsight.containers.models.Cluster;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterPatch;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterPatchProperties;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterResizeData;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterResourceProperties;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterUpgrade;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterUpgradeRollback;
-import java.util.Collections;
-import java.util.Map;
-
-public final class ClusterImpl implements Cluster, Cluster.Definition, Cluster.Update {
- private ClusterInner innerObject;
-
- private final com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager serviceManager;
-
- public String id() {
- return this.innerModel().id();
- }
-
- public String name() {
- return this.innerModel().name();
- }
-
- public String type() {
- return this.innerModel().type();
- }
-
- public String location() {
- return this.innerModel().location();
- }
-
- public Map tags() {
- Map inner = this.innerModel().tags();
- if (inner != null) {
- return Collections.unmodifiableMap(inner);
- } else {
- return Collections.emptyMap();
- }
- }
-
- public ClusterResourceProperties properties() {
- return this.innerModel().properties();
- }
-
- public SystemData systemData() {
- return this.innerModel().systemData();
- }
-
- public Region region() {
- return Region.fromName(this.regionName());
- }
-
- public String regionName() {
- return this.location();
- }
-
- public String resourceGroupName() {
- return resourceGroupName;
- }
-
- public ClusterInner innerModel() {
- return this.innerObject;
- }
-
- private com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager manager() {
- return this.serviceManager;
- }
-
- private String resourceGroupName;
-
- private String clusterPoolName;
-
- private String clusterName;
-
- private ClusterPatch updateClusterPatchRequest;
-
- public ClusterImpl withExistingClusterpool(String resourceGroupName, String clusterPoolName) {
- this.resourceGroupName = resourceGroupName;
- this.clusterPoolName = clusterPoolName;
- return this;
- }
-
- public Cluster create() {
- 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);
- return this;
- }
-
- ClusterImpl(String name, com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager serviceManager) {
- this.innerObject = new ClusterInner();
- this.serviceManager = serviceManager;
- this.clusterName = name;
- }
-
- public ClusterImpl update() {
- this.updateClusterPatchRequest = new ClusterPatch();
- return this;
- }
-
- public Cluster apply() {
- 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);
- return this;
- }
-
- ClusterImpl(ClusterInner innerObject,
- com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager serviceManager) {
- this.innerObject = innerObject;
- this.serviceManager = serviceManager;
- 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();
- return this;
- }
-
- public Cluster refresh(Context context) {
- 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 upgradeManualRollback(ClusterUpgradeRollback clusterRollbackUpgradeRequest) {
- return serviceManager.clusters()
- .upgradeManualRollback(resourceGroupName, clusterPoolName, clusterName, clusterRollbackUpgradeRequest);
- }
-
- public Cluster upgradeManualRollback(ClusterUpgradeRollback clusterRollbackUpgradeRequest, Context context) {
- return serviceManager.clusters()
- .upgradeManualRollback(resourceGroupName, clusterPoolName, clusterName, clusterRollbackUpgradeRequest,
- 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);
- }
-
- public ClusterImpl withRegion(Region location) {
- this.innerModel().withLocation(location.toString());
- return this;
- }
-
- public ClusterImpl withRegion(String location) {
- this.innerModel().withLocation(location);
- return this;
- }
-
- public ClusterImpl withTags(Map tags) {
- if (isInCreateMode()) {
- this.innerModel().withTags(tags);
- return this;
- } else {
- this.updateClusterPatchRequest.withTags(tags);
- return this;
- }
- }
-
- public ClusterImpl withProperties(ClusterResourceProperties properties) {
- this.innerModel().withProperties(properties);
- return this;
- }
-
- public ClusterImpl withProperties(ClusterPatchProperties properties) {
- this.updateClusterPatchRequest.withProperties(properties);
- return this;
- }
-
- private boolean isInCreateMode() {
- return this.innerModel().id() == null;
- }
-}
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
deleted file mode 100644
index 9ef1674c26f3..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterInstanceViewResultImpl.java
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.hdinsight.containers.implementation;
-
-import com.azure.resourcemanager.hdinsight.containers.fluent.models.ClusterInstanceViewResultInner;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterInstanceViewResult;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterInstanceViewResultProperties;
-
-public final class ClusterInstanceViewResultImpl implements ClusterInstanceViewResult {
- private ClusterInstanceViewResultInner innerObject;
-
- private final com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager serviceManager;
-
- ClusterInstanceViewResultImpl(ClusterInstanceViewResultInner innerObject,
- com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager serviceManager) {
- this.innerObject = innerObject;
- this.serviceManager = serviceManager;
- }
-
- public String name() {
- return this.innerModel().name();
- }
-
- public ClusterInstanceViewResultProperties properties() {
- return this.innerModel().properties();
- }
-
- public ClusterInstanceViewResultInner 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/ClusterJobImpl.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterJobImpl.java
deleted file mode 100644
index 36a6516eae8a..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterJobImpl.java
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.hdinsight.containers.implementation;
-
-import com.azure.core.management.SystemData;
-import com.azure.resourcemanager.hdinsight.containers.fluent.models.ClusterJobInner;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterJob;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterJobProperties;
-
-public final class ClusterJobImpl implements ClusterJob {
- private ClusterJobInner innerObject;
-
- private final com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager serviceManager;
-
- ClusterJobImpl(ClusterJobInner 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 ClusterJobProperties properties() {
- return this.innerModel().properties();
- }
-
- public SystemData systemData() {
- return this.innerModel().systemData();
- }
-
- public ClusterJobInner 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/ClusterJobsClientImpl.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterJobsClientImpl.java
deleted file mode 100644
index be524105d1e8..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterJobsClientImpl.java
+++ /dev/null
@@ -1,590 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.hdinsight.containers.implementation;
-
-import com.azure.core.annotation.BodyParam;
-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.Post;
-import com.azure.core.annotation.QueryParam;
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceInterface;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.annotation.UnexpectedResponseExceptionType;
-import com.azure.core.http.rest.PagedFlux;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.PagedResponse;
-import com.azure.core.http.rest.PagedResponseBase;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.RestProxy;
-import com.azure.core.management.exception.ManagementException;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.FluxUtil;
-import com.azure.core.util.polling.PollerFlux;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.hdinsight.containers.fluent.ClusterJobsClient;
-import com.azure.resourcemanager.hdinsight.containers.fluent.models.ClusterJobInner;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterJobList;
-import java.nio.ByteBuffer;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-/**
- * An instance of this class provides access to all the operations defined in ClusterJobsClient.
- */
-public final class ClusterJobsClientImpl implements ClusterJobsClient {
- /**
- * The proxy service used to perform REST calls.
- */
- private final ClusterJobsService service;
-
- /**
- * 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.client = client;
- }
-
- /**
- * The interface defining all the services for HDInsightContainersManagementClientClusterJobs to be used by the
- * proxy service to perform REST calls.
- */
- @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 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- 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,
- Context context);
-
- @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,
- @PathParam("subscriptionId") String subscriptionId,
- @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" })
- @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);
- }
-
- /**
- * 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.
- * @param clusterJob The Cluster job.
- * @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 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) {
- 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."));
- }
- if (clusterJob == null) {
- return Mono.error(new IllegalArgumentException("Parameter clusterJob is required and cannot be null."));
- } else {
- clusterJob.validate();
- }
- 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))
- .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.
- * @param clusterJob The Cluster job.
- * @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 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) {
- 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."));
- }
- if (clusterJob == null) {
- return Mono.error(new IllegalArgumentException("Parameter clusterJob is required and cannot be null."));
- } else {
- clusterJob.validate();
- }
- 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);
- }
-
- /**
- * 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.
- * @param clusterJob The Cluster job.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@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());
- }
-
- /**
- * 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.
- * @param clusterJob The Cluster job.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@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) {
- 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);
- }
-
- /**
- * 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.
- * @param clusterJob The Cluster job.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@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) {
- 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.
- * @param clusterJob The Cluster job.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@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)
- .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.
- * @param clusterJob The Cluster job.
- * @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 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()
- .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.
- * @param clusterJob The Cluster job.
- * @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 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()
- .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.
- * @param clusterJob The Cluster job.
- * @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 cluster job.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- 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.
- * @param clusterJob The Cluster job.
- * @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 cluster job.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- 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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- 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."));
- }
- 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, 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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- 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."));
- }
- 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, 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.
- * @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) {
- 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.
- * @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, Context context) {
- return new PagedFlux<>(
- () -> 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.
- * @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 PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list(String resourceGroupName, String clusterPoolName, String 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.
- * @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 PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- 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.
- * @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 job 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.
- * @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 job 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/ClusterJobsImpl.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterJobsImpl.java
deleted file mode 100644
index f803420f9100..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterJobsImpl.java
+++ /dev/null
@@ -1,70 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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.ClusterJobsClient;
-import com.azure.resourcemanager.hdinsight.containers.fluent.models.ClusterJobInner;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterJob;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterJobs;
-
-public final class ClusterJobsImpl implements ClusterJobs {
- private static final ClientLogger LOGGER = new ClientLogger(ClusterJobsImpl.class);
-
- private final ClusterJobsClient innerClient;
-
- private final com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager serviceManager;
-
- 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);
- if (inner != null) {
- return new ClusterJobImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- 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 {
- return null;
- }
- }
-
- public PagedIterable list(String resourceGroupName, String clusterPoolName, String clusterName) {
- 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,
- 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() {
- 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/ClusterLibrariesClientImpl.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterLibrariesClientImpl.java
deleted file mode 100644
index d5a3dd18a938..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterLibrariesClientImpl.java
+++ /dev/null
@@ -1,584 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.hdinsight.containers.implementation;
-
-import com.azure.core.annotation.BodyParam;
-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.Post;
-import com.azure.core.annotation.QueryParam;
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceInterface;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.annotation.UnexpectedResponseExceptionType;
-import com.azure.core.http.rest.PagedFlux;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.PagedResponse;
-import com.azure.core.http.rest.PagedResponseBase;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.RestProxy;
-import com.azure.core.management.exception.ManagementException;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.FluxUtil;
-import com.azure.core.util.polling.PollerFlux;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.hdinsight.containers.fluent.ClusterLibrariesClient;
-import com.azure.resourcemanager.hdinsight.containers.fluent.models.ClusterLibraryInner;
-import com.azure.resourcemanager.hdinsight.containers.models.Category;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterLibraryList;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterLibraryManagementOperation;
-import java.nio.ByteBuffer;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-/**
- * An instance of this class provides access to all the operations defined in ClusterLibrariesClient.
- */
-public final class ClusterLibrariesClientImpl implements ClusterLibrariesClient {
- /**
- * The proxy service used to perform REST calls.
- */
- private final ClusterLibrariesService service;
-
- /**
- * The service client containing this operation class.
- */
- private final HDInsightContainersManagementClientImpl client;
-
- /**
- * Initializes an instance of ClusterLibrariesClientImpl.
- *
- * @param client the instance of the service client containing this operation class.
- */
- ClusterLibrariesClientImpl(HDInsightContainersManagementClientImpl client) {
- this.service
- = RestProxy.create(ClusterLibrariesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
- this.client = client;
- }
-
- /**
- * The interface defining all the services for HDInsightContainersManagementClientClusterLibraries to be used by the
- * proxy service to perform REST calls.
- */
- @Host("{$host}")
- @ServiceInterface(name = "HDInsightContainersM")
- public interface ClusterLibrariesService {
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusterpools/{clusterPoolName}/clusters/{clusterName}/libraries")
- @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,
- @QueryParam("$category") Category category, @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusterpools/{clusterPoolName}/clusters/{clusterName}/manageLibraries")
- @ExpectedResponses({ 202 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> manageLibraries(@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") ClusterLibraryManagementOperation operation,
- @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);
- }
-
- /**
- * Get all libraries 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 category The system query option to filter libraries returned in the response. Allowed value is 'custom'
- * or 'predefined'.
- * @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 all libraries 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, Category category) {
- 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."));
- }
- if (category == null) {
- return Mono.error(new IllegalArgumentException("Parameter category 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, category, 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 all libraries 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 category The system query option to filter libraries returned in the response. Allowed value is 'custom'
- * or 'predefined'.
- * @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 all libraries 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, Category category, 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."));
- }
- if (category == null) {
- return Mono.error(new IllegalArgumentException("Parameter category 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, category, accept, context)
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- res.getValue().value(), res.getValue().nextLink(), null));
- }
-
- /**
- * Get all libraries 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 category The system query option to filter libraries returned in the response. Allowed value is 'custom'
- * or 'predefined'.
- * @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 all libraries of HDInsight on AKS cluster as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(String resourceGroupName, String clusterPoolName,
- String clusterName, Category category) {
- return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, clusterPoolName, clusterName, category),
- nextLink -> listNextSinglePageAsync(nextLink));
- }
-
- /**
- * Get all libraries 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 category The system query option to filter libraries returned in the response. Allowed value is 'custom'
- * or 'predefined'.
- * @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 all libraries of HDInsight on AKS cluster as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(String resourceGroupName, String clusterPoolName,
- String clusterName, Category category, Context context) {
- return new PagedFlux<>(
- () -> listSinglePageAsync(resourceGroupName, clusterPoolName, clusterName, category, context),
- nextLink -> listNextSinglePageAsync(nextLink, context));
- }
-
- /**
- * Get all libraries 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 category The system query option to filter libraries returned in the response. Allowed value is 'custom'
- * or 'predefined'.
- * @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 all libraries of HDInsight on AKS cluster as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list(String resourceGroupName, String clusterPoolName, String clusterName,
- Category category) {
- return new PagedIterable<>(listAsync(resourceGroupName, clusterPoolName, clusterName, category));
- }
-
- /**
- * Get all libraries 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 category The system query option to filter libraries returned in the response. Allowed value is 'custom'
- * or 'predefined'.
- * @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 all libraries of HDInsight on AKS cluster as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list(String resourceGroupName, String clusterPoolName, String clusterName,
- Category category, Context context) {
- return new PagedIterable<>(listAsync(resourceGroupName, clusterPoolName, clusterName, category, context));
- }
-
- /**
- * Library management operations on 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 operation The library management operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> manageLibrariesWithResponseAsync(String resourceGroupName,
- String clusterPoolName, String clusterName, ClusterLibraryManagementOperation operation) {
- 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."));
- }
- if (operation == null) {
- return Mono.error(new IllegalArgumentException("Parameter operation is required and cannot be null."));
- } else {
- operation.validate();
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.manageLibraries(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, this.client.getApiVersion(), clusterPoolName, clusterName, operation, accept,
- context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Library management operations on 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 operation The library management operation.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> manageLibrariesWithResponseAsync(String resourceGroupName,
- String clusterPoolName, String clusterName, ClusterLibraryManagementOperation operation, 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."));
- }
- if (operation == null) {
- return Mono.error(new IllegalArgumentException("Parameter operation is required and cannot be null."));
- } else {
- operation.validate();
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.manageLibraries(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- this.client.getApiVersion(), clusterPoolName, clusterName, operation, accept, context);
- }
-
- /**
- * Library management operations on 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 operation The library management operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, Void> beginManageLibrariesAsync(String resourceGroupName,
- String clusterPoolName, String clusterName, ClusterLibraryManagementOperation operation) {
- Mono>> mono
- = manageLibrariesWithResponseAsync(resourceGroupName, clusterPoolName, clusterName, operation);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
- this.client.getContext());
- }
-
- /**
- * Library management operations on 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 operation The library management operation.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, Void> beginManageLibrariesAsync(String resourceGroupName,
- String clusterPoolName, String clusterName, ClusterLibraryManagementOperation operation, Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono
- = manageLibrariesWithResponseAsync(resourceGroupName, clusterPoolName, clusterName, operation, context);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
- context);
- }
-
- /**
- * Library management operations on 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 operation The library management operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, Void> beginManageLibraries(String resourceGroupName, String clusterPoolName,
- String clusterName, ClusterLibraryManagementOperation operation) {
- return this.beginManageLibrariesAsync(resourceGroupName, clusterPoolName, clusterName, operation)
- .getSyncPoller();
- }
-
- /**
- * Library management operations on 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 operation The library management operation.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, Void> beginManageLibraries(String resourceGroupName, String clusterPoolName,
- String clusterName, ClusterLibraryManagementOperation operation, Context context) {
- return this.beginManageLibrariesAsync(resourceGroupName, clusterPoolName, clusterName, operation, context)
- .getSyncPoller();
- }
-
- /**
- * Library management operations on 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 operation The library management 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 A {@link Mono} that completes when a successful response is received.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono manageLibrariesAsync(String resourceGroupName, String clusterPoolName, String clusterName,
- ClusterLibraryManagementOperation operation) {
- return beginManageLibrariesAsync(resourceGroupName, clusterPoolName, clusterName, operation).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Library management operations on 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 operation The library management operation.
- * @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 A {@link Mono} that completes when a successful response is received.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono manageLibrariesAsync(String resourceGroupName, String clusterPoolName, String clusterName,
- ClusterLibraryManagementOperation operation, Context context) {
- return beginManageLibrariesAsync(resourceGroupName, clusterPoolName, clusterName, operation, context).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Library management operations on 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 operation The library management 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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public void manageLibraries(String resourceGroupName, String clusterPoolName, String clusterName,
- ClusterLibraryManagementOperation operation) {
- manageLibrariesAsync(resourceGroupName, clusterPoolName, clusterName, operation).block();
- }
-
- /**
- * Library management operations on 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 operation The library management operation.
- * @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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public void manageLibraries(String resourceGroupName, String clusterPoolName, String clusterName,
- ClusterLibraryManagementOperation operation, Context context) {
- manageLibrariesAsync(resourceGroupName, clusterPoolName, clusterName, operation, context).block();
- }
-
- /**
- * Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items.
- * @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 libraries in the cluster 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.
- * @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 libraries in the cluster 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/ClusterLibrariesImpl.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterLibrariesImpl.java
deleted file mode 100644
index 222a4af2ff69..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterLibrariesImpl.java
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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.ClusterLibrariesClient;
-import com.azure.resourcemanager.hdinsight.containers.fluent.models.ClusterLibraryInner;
-import com.azure.resourcemanager.hdinsight.containers.models.Category;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterLibraries;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterLibrary;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterLibraryManagementOperation;
-
-public final class ClusterLibrariesImpl implements ClusterLibraries {
- private static final ClientLogger LOGGER = new ClientLogger(ClusterLibrariesImpl.class);
-
- private final ClusterLibrariesClient innerClient;
-
- private final com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager serviceManager;
-
- public ClusterLibrariesImpl(ClusterLibrariesClient innerClient,
- com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager serviceManager) {
- this.innerClient = innerClient;
- this.serviceManager = serviceManager;
- }
-
- public PagedIterable list(String resourceGroupName, String clusterPoolName, String clusterName,
- Category category) {
- PagedIterable inner
- = this.serviceClient().list(resourceGroupName, clusterPoolName, clusterName, category);
- return ResourceManagerUtils.mapPage(inner, inner1 -> new ClusterLibraryImpl(inner1, this.manager()));
- }
-
- public PagedIterable list(String resourceGroupName, String clusterPoolName, String clusterName,
- Category category, Context context) {
- PagedIterable inner
- = this.serviceClient().list(resourceGroupName, clusterPoolName, clusterName, category, context);
- return ResourceManagerUtils.mapPage(inner, inner1 -> new ClusterLibraryImpl(inner1, this.manager()));
- }
-
- public void manageLibraries(String resourceGroupName, String clusterPoolName, String clusterName,
- ClusterLibraryManagementOperation operation) {
- this.serviceClient().manageLibraries(resourceGroupName, clusterPoolName, clusterName, operation);
- }
-
- public void manageLibraries(String resourceGroupName, String clusterPoolName, String clusterName,
- ClusterLibraryManagementOperation operation, Context context) {
- this.serviceClient().manageLibraries(resourceGroupName, clusterPoolName, clusterName, operation, context);
- }
-
- private ClusterLibrariesClient 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/ClusterLibraryImpl.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterLibraryImpl.java
deleted file mode 100644
index 3dd0e1b92b49..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterLibraryImpl.java
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.hdinsight.containers.implementation;
-
-import com.azure.core.management.SystemData;
-import com.azure.resourcemanager.hdinsight.containers.fluent.models.ClusterLibraryInner;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterLibrary;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterLibraryProperties;
-
-public final class ClusterLibraryImpl implements ClusterLibrary {
- private ClusterLibraryInner innerObject;
-
- private final com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager serviceManager;
-
- ClusterLibraryImpl(ClusterLibraryInner 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 ClusterLibraryProperties properties() {
- return this.innerModel().properties();
- }
-
- public SystemData systemData() {
- return this.innerModel().systemData();
- }
-
- public ClusterLibraryInner 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/ClusterPoolAvailableUpgradeImpl.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterPoolAvailableUpgradeImpl.java
deleted file mode 100644
index 0d6852ee2b30..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterPoolAvailableUpgradeImpl.java
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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
deleted file mode 100644
index 913f9216790f..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterPoolAvailableUpgradesClientImpl.java
+++ /dev/null
@@ -1,282 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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> list(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion,
- @PathParam("clusterPoolName") String clusterPoolName, @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 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 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 along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(String resourceGroupName,
- String clusterPoolName) {
- 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."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, this.client.getApiVersion(), clusterPoolName, 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 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 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 along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(String resourceGroupName,
- String clusterPoolName, 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."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- this.client.getApiVersion(), clusterPoolName, accept, context)
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- res.getValue().value(), res.getValue().nextLink(), null));
- }
-
- /**
- * 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 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 PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(String resourceGroupName, String clusterPoolName) {
- return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, clusterPoolName),
- nextLink -> listNextSinglePageAsync(nextLink));
- }
-
- /**
- * 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 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 PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(String resourceGroupName, String clusterPoolName,
- Context context) {
- return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, clusterPoolName, context),
- nextLink -> listNextSinglePageAsync(nextLink, context));
- }
-
- /**
- * 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 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)
- public PagedIterable list(String resourceGroupName, String clusterPoolName) {
- return new PagedIterable<>(listAsync(resourceGroupName, 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 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)
- public PagedIterable list(String resourceGroupName, String clusterPoolName,
- Context context) {
- return new PagedIterable<>(listAsync(resourceGroupName, clusterPoolName, context));
- }
-
- /**
- * Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items.
- * @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 pool 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.
- * @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 pool 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/ClusterPoolAvailableUpgradesImpl.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterPoolAvailableUpgradesImpl.java
deleted file mode 100644
index 5e746ced82ea..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterPoolAvailableUpgradesImpl.java
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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.ClusterPoolAvailableUpgradesClient;
-import com.azure.resourcemanager.hdinsight.containers.fluent.models.ClusterPoolAvailableUpgradeInner;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterPoolAvailableUpgrade;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterPoolAvailableUpgrades;
-
-public final class ClusterPoolAvailableUpgradesImpl implements ClusterPoolAvailableUpgrades {
- private static final ClientLogger LOGGER = new ClientLogger(ClusterPoolAvailableUpgradesImpl.class);
-
- private final ClusterPoolAvailableUpgradesClient innerClient;
-
- private final com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager serviceManager;
-
- public ClusterPoolAvailableUpgradesImpl(ClusterPoolAvailableUpgradesClient innerClient,
- com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager serviceManager) {
- this.innerClient = innerClient;
- this.serviceManager = serviceManager;
- }
-
- public PagedIterable list(String resourceGroupName, String clusterPoolName) {
- PagedIterable inner
- = this.serviceClient().list(resourceGroupName, clusterPoolName);
- return ResourceManagerUtils.mapPage(inner,
- inner1 -> new ClusterPoolAvailableUpgradeImpl(inner1, this.manager()));
- }
-
- public PagedIterable list(String resourceGroupName, String clusterPoolName,
- Context context) {
- PagedIterable inner
- = this.serviceClient().list(resourceGroupName, clusterPoolName, context);
- return ResourceManagerUtils.mapPage(inner,
- inner1 -> new ClusterPoolAvailableUpgradeImpl(inner1, this.manager()));
- }
-
- private ClusterPoolAvailableUpgradesClient 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/ClusterPoolImpl.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterPoolImpl.java
deleted file mode 100644
index cd69adf8c319..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterPoolImpl.java
+++ /dev/null
@@ -1,188 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.hdinsight.containers.implementation;
-
-import com.azure.core.management.Region;
-import com.azure.core.management.SystemData;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.hdinsight.containers.fluent.models.ClusterPoolInner;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterPool;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterPoolResourceProperties;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterPoolUpgrade;
-import com.azure.resourcemanager.hdinsight.containers.models.TagsObject;
-import java.util.Collections;
-import java.util.Map;
-
-public final class ClusterPoolImpl implements ClusterPool, ClusterPool.Definition, ClusterPool.Update {
- private ClusterPoolInner innerObject;
-
- private final com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager serviceManager;
-
- public String id() {
- return this.innerModel().id();
- }
-
- public String name() {
- return this.innerModel().name();
- }
-
- public String type() {
- return this.innerModel().type();
- }
-
- public String location() {
- return this.innerModel().location();
- }
-
- public Map tags() {
- Map inner = this.innerModel().tags();
- if (inner != null) {
- return Collections.unmodifiableMap(inner);
- } else {
- return Collections.emptyMap();
- }
- }
-
- public ClusterPoolResourceProperties properties() {
- return this.innerModel().properties();
- }
-
- public SystemData systemData() {
- return this.innerModel().systemData();
- }
-
- public Region region() {
- return Region.fromName(this.regionName());
- }
-
- public String regionName() {
- return this.location();
- }
-
- public String resourceGroupName() {
- return resourceGroupName;
- }
-
- public ClusterPoolInner innerModel() {
- return this.innerObject;
- }
-
- private com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager manager() {
- return this.serviceManager;
- }
-
- private String resourceGroupName;
-
- private String clusterPoolName;
-
- private TagsObject updateClusterPoolTags;
-
- public ClusterPoolImpl withExistingResourceGroup(String resourceGroupName) {
- this.resourceGroupName = resourceGroupName;
- return this;
- }
-
- public ClusterPool create() {
- this.innerObject = serviceManager.serviceClient()
- .getClusterPools()
- .createOrUpdate(resourceGroupName, clusterPoolName, this.innerModel(), Context.NONE);
- return this;
- }
-
- public ClusterPool create(Context context) {
- this.innerObject = serviceManager.serviceClient()
- .getClusterPools()
- .createOrUpdate(resourceGroupName, clusterPoolName, this.innerModel(), context);
- return this;
- }
-
- ClusterPoolImpl(String name,
- com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager serviceManager) {
- this.innerObject = new ClusterPoolInner();
- this.serviceManager = serviceManager;
- this.clusterPoolName = name;
- }
-
- public ClusterPoolImpl update() {
- this.updateClusterPoolTags = new TagsObject();
- return this;
- }
-
- public ClusterPool apply() {
- this.innerObject = serviceManager.serviceClient()
- .getClusterPools()
- .updateTags(resourceGroupName, clusterPoolName, updateClusterPoolTags, Context.NONE);
- return this;
- }
-
- public ClusterPool apply(Context context) {
- this.innerObject = serviceManager.serviceClient()
- .getClusterPools()
- .updateTags(resourceGroupName, clusterPoolName, updateClusterPoolTags, context);
- return this;
- }
-
- ClusterPoolImpl(ClusterPoolInner innerObject,
- com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager serviceManager) {
- this.innerObject = innerObject;
- this.serviceManager = serviceManager;
- this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.clusterPoolName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "clusterpools");
- }
-
- public ClusterPool refresh() {
- this.innerObject = serviceManager.serviceClient()
- .getClusterPools()
- .getByResourceGroupWithResponse(resourceGroupName, clusterPoolName, Context.NONE)
- .getValue();
- return this;
- }
-
- public ClusterPool refresh(Context context) {
- this.innerObject = serviceManager.serviceClient()
- .getClusterPools()
- .getByResourceGroupWithResponse(resourceGroupName, clusterPoolName, context)
- .getValue();
- return this;
- }
-
- public ClusterPool upgrade(ClusterPoolUpgrade clusterPoolUpgradeRequest) {
- return serviceManager.clusterPools().upgrade(resourceGroupName, clusterPoolName, clusterPoolUpgradeRequest);
- }
-
- public ClusterPool upgrade(ClusterPoolUpgrade clusterPoolUpgradeRequest, Context context) {
- return serviceManager.clusterPools()
- .upgrade(resourceGroupName, clusterPoolName, clusterPoolUpgradeRequest, context);
- }
-
- public ClusterPoolImpl withRegion(Region location) {
- this.innerModel().withLocation(location.toString());
- return this;
- }
-
- public ClusterPoolImpl withRegion(String location) {
- this.innerModel().withLocation(location);
- return this;
- }
-
- public ClusterPoolImpl withTags(Map tags) {
- if (isInCreateMode()) {
- this.innerModel().withTags(tags);
- return this;
- } else {
- this.updateClusterPoolTags.withTags(tags);
- return this;
- }
- }
-
- public ClusterPoolImpl withProperties(ClusterPoolResourceProperties properties) {
- this.innerModel().withProperties(properties);
- return this;
- }
-
- private boolean isInCreateMode() {
- return this.innerModel().id() == null;
- }
-}
diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterPoolUpgradeHistoriesClientImpl.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterPoolUpgradeHistoriesClientImpl.java
deleted file mode 100644
index d09bc5b3c91d..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterPoolUpgradeHistoriesClientImpl.java
+++ /dev/null
@@ -1,282 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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.ClusterPoolUpgradeHistoriesClient;
-import com.azure.resourcemanager.hdinsight.containers.fluent.models.ClusterPoolUpgradeHistoryInner;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterPoolUpgradeHistoryListResult;
-import reactor.core.publisher.Mono;
-
-/**
- * An instance of this class provides access to all the operations defined in ClusterPoolUpgradeHistoriesClient.
- */
-public final class ClusterPoolUpgradeHistoriesClientImpl implements ClusterPoolUpgradeHistoriesClient {
- /**
- * The proxy service used to perform REST calls.
- */
- private final ClusterPoolUpgradeHistoriesService service;
-
- /**
- * The service client containing this operation class.
- */
- private final HDInsightContainersManagementClientImpl client;
-
- /**
- * Initializes an instance of ClusterPoolUpgradeHistoriesClientImpl.
- *
- * @param client the instance of the service client containing this operation class.
- */
- ClusterPoolUpgradeHistoriesClientImpl(HDInsightContainersManagementClientImpl client) {
- this.service = RestProxy.create(ClusterPoolUpgradeHistoriesService.class, client.getHttpPipeline(),
- client.getSerializerAdapter());
- this.client = client;
- }
-
- /**
- * The interface defining all the services for HDInsightContainersManagementClientClusterPoolUpgradeHistories to be
- * used by the proxy service to perform REST calls.
- */
- @Host("{$host}")
- @ServiceInterface(name = "HDInsightContainersM")
- public interface ClusterPoolUpgradeHistoriesService {
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusterpools/{clusterPoolName}/upgradeHistories")
- @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, @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);
- }
-
- /**
- * Returns a list of upgrade history.
- *
- * @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 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 upgrade history along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(String resourceGroupName,
- String clusterPoolName) {
- 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."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, this.client.getApiVersion(), clusterPoolName, 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 upgrade history.
- *
- * @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 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 upgrade history along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(String resourceGroupName,
- String clusterPoolName, 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."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- this.client.getApiVersion(), clusterPoolName, accept, context)
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- res.getValue().value(), res.getValue().nextLink(), null));
- }
-
- /**
- * Returns a list of upgrade history.
- *
- * @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 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 upgrade history as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(String resourceGroupName, String clusterPoolName) {
- return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, clusterPoolName),
- nextLink -> listNextSinglePageAsync(nextLink));
- }
-
- /**
- * Returns a list of upgrade history.
- *
- * @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 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 upgrade history as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(String resourceGroupName, String clusterPoolName,
- Context context) {
- return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, clusterPoolName, context),
- nextLink -> listNextSinglePageAsync(nextLink, context));
- }
-
- /**
- * Returns a list of upgrade history.
- *
- * @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 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 upgrade history as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list(String resourceGroupName, String clusterPoolName) {
- return new PagedIterable<>(listAsync(resourceGroupName, clusterPoolName));
- }
-
- /**
- * Returns a list of upgrade history.
- *
- * @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 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 upgrade history as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list(String resourceGroupName, String clusterPoolName,
- Context context) {
- return new PagedIterable<>(listAsync(resourceGroupName, clusterPoolName, context));
- }
-
- /**
- * Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items.
- * @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 upgrade history 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.
- * @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 upgrade history 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/ClusterPoolUpgradeHistoriesImpl.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterPoolUpgradeHistoriesImpl.java
deleted file mode 100644
index 340da3bbdfe3..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterPoolUpgradeHistoriesImpl.java
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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.ClusterPoolUpgradeHistoriesClient;
-import com.azure.resourcemanager.hdinsight.containers.fluent.models.ClusterPoolUpgradeHistoryInner;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterPoolUpgradeHistories;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterPoolUpgradeHistory;
-
-public final class ClusterPoolUpgradeHistoriesImpl implements ClusterPoolUpgradeHistories {
- private static final ClientLogger LOGGER = new ClientLogger(ClusterPoolUpgradeHistoriesImpl.class);
-
- private final ClusterPoolUpgradeHistoriesClient innerClient;
-
- private final com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager serviceManager;
-
- public ClusterPoolUpgradeHistoriesImpl(ClusterPoolUpgradeHistoriesClient innerClient,
- com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager serviceManager) {
- this.innerClient = innerClient;
- this.serviceManager = serviceManager;
- }
-
- public PagedIterable list(String resourceGroupName, String clusterPoolName) {
- PagedIterable inner
- = this.serviceClient().list(resourceGroupName, clusterPoolName);
- return ResourceManagerUtils.mapPage(inner, inner1 -> new ClusterPoolUpgradeHistoryImpl(inner1, this.manager()));
- }
-
- public PagedIterable list(String resourceGroupName, String clusterPoolName,
- Context context) {
- PagedIterable inner
- = this.serviceClient().list(resourceGroupName, clusterPoolName, context);
- return ResourceManagerUtils.mapPage(inner, inner1 -> new ClusterPoolUpgradeHistoryImpl(inner1, this.manager()));
- }
-
- private ClusterPoolUpgradeHistoriesClient 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/ClusterPoolUpgradeHistoryImpl.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterPoolUpgradeHistoryImpl.java
deleted file mode 100644
index f180c9f09d60..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterPoolUpgradeHistoryImpl.java
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.hdinsight.containers.implementation;
-
-import com.azure.core.management.SystemData;
-import com.azure.resourcemanager.hdinsight.containers.fluent.models.ClusterPoolUpgradeHistoryInner;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterPoolUpgradeHistory;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterPoolUpgradeHistoryProperties;
-
-public final class ClusterPoolUpgradeHistoryImpl implements ClusterPoolUpgradeHistory {
- private ClusterPoolUpgradeHistoryInner innerObject;
-
- private final com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager serviceManager;
-
- ClusterPoolUpgradeHistoryImpl(ClusterPoolUpgradeHistoryInner 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 ClusterPoolUpgradeHistoryProperties properties() {
- return this.innerModel().properties();
- }
-
- public SystemData systemData() {
- return this.innerModel().systemData();
- }
-
- public ClusterPoolUpgradeHistoryInner 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/ClusterPoolVersionImpl.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterPoolVersionImpl.java
deleted file mode 100644
index 26db050ef559..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterPoolVersionImpl.java
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.hdinsight.containers.implementation;
-
-import com.azure.core.management.SystemData;
-import com.azure.resourcemanager.hdinsight.containers.fluent.models.ClusterPoolVersionInner;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterPoolVersion;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterPoolVersionProperties;
-
-public final class ClusterPoolVersionImpl implements ClusterPoolVersion {
- private ClusterPoolVersionInner innerObject;
-
- private final com.azure.resourcemanager.hdinsight.containers.HDInsightContainersManager serviceManager;
-
- ClusterPoolVersionImpl(ClusterPoolVersionInner 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 ClusterPoolVersionProperties properties() {
- return this.innerModel().properties();
- }
-
- public SystemData systemData() {
- return this.innerModel().systemData();
- }
-
- public ClusterPoolVersionInner 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/ClusterPoolsClientImpl.java b/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterPoolsClientImpl.java
deleted file mode 100644
index 0c7a34d67ce0..000000000000
--- a/sdk/hdinsight/azure-resourcemanager-hdinsight-containers/src/main/java/com/azure/resourcemanager/hdinsight/containers/implementation/ClusterPoolsClientImpl.java
+++ /dev/null
@@ -1,1539 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.hdinsight.containers.implementation;
-
-import com.azure.core.annotation.BodyParam;
-import com.azure.core.annotation.Delete;
-import com.azure.core.annotation.ExpectedResponses;
-import com.azure.core.annotation.Get;
-import com.azure.core.annotation.HeaderParam;
-import com.azure.core.annotation.Headers;
-import com.azure.core.annotation.Host;
-import com.azure.core.annotation.HostParam;
-import com.azure.core.annotation.Patch;
-import com.azure.core.annotation.PathParam;
-import com.azure.core.annotation.Post;
-import com.azure.core.annotation.Put;
-import com.azure.core.annotation.QueryParam;
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceInterface;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.annotation.UnexpectedResponseExceptionType;
-import com.azure.core.http.rest.PagedFlux;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.PagedResponse;
-import com.azure.core.http.rest.PagedResponseBase;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.RestProxy;
-import com.azure.core.management.exception.ManagementException;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.FluxUtil;
-import com.azure.core.util.polling.PollerFlux;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.hdinsight.containers.fluent.ClusterPoolsClient;
-import com.azure.resourcemanager.hdinsight.containers.fluent.models.ClusterPoolInner;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterPoolListResult;
-import com.azure.resourcemanager.hdinsight.containers.models.ClusterPoolUpgrade;
-import com.azure.resourcemanager.hdinsight.containers.models.TagsObject;
-import java.nio.ByteBuffer;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-/**
- * An instance of this class provides access to all the operations defined in ClusterPoolsClient.
- */
-public final class ClusterPoolsClientImpl implements ClusterPoolsClient {
- /**
- * The proxy service used to perform REST calls.
- */
- private final ClusterPoolsService service;
-
- /**
- * The service client containing this operation class.
- */
- private final HDInsightContainersManagementClientImpl client;
-
- /**
- * Initializes an instance of ClusterPoolsClientImpl.
- *
- * @param client the instance of the service client containing this operation class.
- */
- ClusterPoolsClientImpl(HDInsightContainersManagementClientImpl client) {
- this.service
- = RestProxy.create(ClusterPoolsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
- this.client = client;
- }
-
- /**
- * The interface defining all the services for HDInsightContainersManagementClientClusterPools to be used by the
- * proxy service to perform REST calls.
- */
- @Host("{$host}")
- @ServiceInterface(name = "HDInsightContainersM")
- public interface ClusterPoolsService {
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusterpools/{clusterPoolName}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> getByResourceGroup(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion,
- @PathParam("clusterPoolName") String clusterPoolName, @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusterpools/{clusterPoolName}")
- @ExpectedResponses({ 200, 201 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> createOrUpdate(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion,
- @PathParam("clusterPoolName") String clusterPoolName,
- @BodyParam("application/json") ClusterPoolInner clusterPool, @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusterpools/{clusterPoolName}")
- @ExpectedResponses({ 200, 202 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> updateTags(@HostParam("$host") String endpoint,
- @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId, @PathParam("clusterPoolName") String clusterPoolName,
- @BodyParam("application/json") TagsObject clusterPoolTags, @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusterpools/{clusterPoolName}")
- @ExpectedResponses({ 200, 202, 204 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> delete(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion,
- @PathParam("clusterPoolName") String clusterPoolName, @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/clusterpools")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(@HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusterpools")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByResourceGroup(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusterpools/{clusterPoolName}/upgrade")
- @ExpectedResponses({ 200, 202 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> upgrade(@HostParam("$host") String endpoint,
- @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId, @PathParam("clusterPoolName") String clusterPoolName,
- @BodyParam("application/json") ClusterPoolUpgrade clusterPoolUpgradeRequest,
- @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("{nextLink}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listBySubscriptionNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("{nextLink}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByResourceGroupNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept, 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.
- * @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 a cluster pool along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
- String clusterPoolName) {
- 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."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, this.client.getApiVersion(), clusterPoolName, accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * 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.
- * @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 a cluster pool along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
- String clusterPoolName, 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."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.getByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- this.client.getApiVersion(), clusterPoolName, accept, 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.
- * @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 a cluster pool on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono getByResourceGroupAsync(String resourceGroupName, String clusterPoolName) {
- return getByResourceGroupWithResponseAsync(resourceGroupName, clusterPoolName)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
- }
-
- /**
- * 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.
- * @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 a cluster pool along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response getByResourceGroupWithResponse(String resourceGroupName, String clusterPoolName,
- Context context) {
- return getByResourceGroupWithResponseAsync(resourceGroupName, clusterPoolName, context).block();
- }
-
- /**
- * 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.
- * @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 a cluster pool.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public ClusterPoolInner getByResourceGroup(String resourceGroupName, String clusterPoolName) {
- return getByResourceGroupWithResponse(resourceGroupName, clusterPoolName, Context.NONE).getValue();
- }
-
- /**
- * 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.
- * @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 cluster pool along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
- String clusterPoolName, ClusterPoolInner clusterPool) {
- 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 (clusterPool == null) {
- return Mono.error(new IllegalArgumentException("Parameter clusterPool is required and cannot be null."));
- } else {
- clusterPool.validate();
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, this.client.getApiVersion(), clusterPoolName, clusterPool, accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * 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.
- * @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 cluster pool along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
- String clusterPoolName, ClusterPoolInner clusterPool, 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 (clusterPool == null) {
- return Mono.error(new IllegalArgumentException("Parameter clusterPool is required and cannot be null."));
- } else {
- clusterPool.validate();
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- this.client.getApiVersion(), clusterPoolName, clusterPool, accept, 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.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of cluster pool.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, ClusterPoolInner>
- beginCreateOrUpdateAsync(String resourceGroupName, String clusterPoolName, ClusterPoolInner clusterPool) {
- Mono>> mono
- = createOrUpdateWithResponseAsync(resourceGroupName, clusterPoolName, clusterPool);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(),
- ClusterPoolInner.class, ClusterPoolInner.class, this.client.getContext());
- }
-
- /**
- * 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.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of cluster pool.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, ClusterPoolInner> beginCreateOrUpdateAsync(
- String resourceGroupName, String clusterPoolName, ClusterPoolInner clusterPool, Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono
- = createOrUpdateWithResponseAsync(resourceGroupName, clusterPoolName, clusterPool, context);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(),
- ClusterPoolInner.class, ClusterPoolInner.class, 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.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of cluster pool.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, ClusterPoolInner> beginCreateOrUpdate(String resourceGroupName,
- String clusterPoolName, ClusterPoolInner clusterPool) {
- return this.beginCreateOrUpdateAsync(resourceGroupName, clusterPoolName, clusterPool).getSyncPoller();
- }
-
- /**
- * 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.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of cluster pool.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, ClusterPoolInner> beginCreateOrUpdate(String resourceGroupName,
- String clusterPoolName, ClusterPoolInner clusterPool, Context context) {
- return this.beginCreateOrUpdateAsync(resourceGroupName, clusterPoolName, clusterPool, context).getSyncPoller();
- }
-
- /**
- * 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.
- * @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 cluster pool on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createOrUpdateAsync(String resourceGroupName, String clusterPoolName,
- ClusterPoolInner clusterPool) {
- return beginCreateOrUpdateAsync(resourceGroupName, clusterPoolName, clusterPool).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * 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.
- * @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 cluster pool on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createOrUpdateAsync(String resourceGroupName, String clusterPoolName,
- ClusterPoolInner clusterPool, Context context) {
- return beginCreateOrUpdateAsync(resourceGroupName, clusterPoolName, clusterPool, context).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * 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.
- * @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 cluster pool.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public ClusterPoolInner createOrUpdate(String resourceGroupName, String clusterPoolName,
- ClusterPoolInner clusterPool) {
- return createOrUpdateAsync(resourceGroupName, clusterPoolName, clusterPool).block();
- }
-
- /**
- * 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.
- * @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 cluster pool.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public ClusterPoolInner createOrUpdate(String resourceGroupName, String clusterPoolName,
- ClusterPoolInner clusterPool, Context context) {
- return createOrUpdateAsync(resourceGroupName, clusterPoolName, clusterPool, context).block();
- }
-
- /**
- * 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.
- * @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 cluster pool along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> updateTagsWithResponseAsync(String resourceGroupName,
- String clusterPoolName, TagsObject clusterPoolTags) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName 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 (clusterPoolName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter clusterPoolName is required and cannot be null."));
- }
- if (clusterPoolTags == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter clusterPoolTags is required and cannot be null."));
- } else {
- clusterPoolTags.validate();
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, this.client.getApiVersion(),
- this.client.getSubscriptionId(), clusterPoolName, clusterPoolTags, accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * 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.
- * @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 cluster pool along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> updateTagsWithResponseAsync(String resourceGroupName,
- String clusterPoolName, TagsObject clusterPoolTags, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName 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 (clusterPoolName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter clusterPoolName is required and cannot be null."));
- }
- if (clusterPoolTags == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter clusterPoolTags is required and cannot be null."));
- } else {
- clusterPoolTags.validate();
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.updateTags(this.client.getEndpoint(), resourceGroupName, this.client.getApiVersion(),
- this.client.getSubscriptionId(), clusterPoolName, clusterPoolTags, accept, 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.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of cluster pool.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux