diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 3202d3b0f215f..c4f4477e53146 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -210,6 +210,7 @@ com.azure.resourcemanager:azure-resourcemanager-redisenterprise;1.0.0-beta.2;1.0
com.azure.resourcemanager:azure-resourcemanager-hybridkubernetes;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-iothub;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-datadog;1.0.0-beta.1;1.0.0-beta.2
+com.azure.resourcemanager:azure-resourcemanager-elastic;1.0.0-beta.1;1.0.0-beta.1
# Unreleased dependencies: Copy the entry from above, prepend "unreleased_" and remove the current
# version. Unreleased dependencies are only valid for dependency versions.
diff --git a/pom.xml b/pom.xml
index f511c48002b32..bbe6f17d53a9d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -593,9 +593,10 @@
sdk/coresdk/cosmossdk/costmanagement
- sdk/deviceupdatesdk/datadog
+ sdk/deviceupdatesdk/digitaltwins
+ sdk/elasticsdk/eventgridsdk/eventhubssdk/formrecognizer
diff --git a/sdk/elastic/azure-resourcemanager-elastic/CHANGELOG.md b/sdk/elastic/azure-resourcemanager-elastic/CHANGELOG.md
new file mode 100644
index 0000000000000..2146a42147567
--- /dev/null
+++ b/sdk/elastic/azure-resourcemanager-elastic/CHANGELOG.md
@@ -0,0 +1,5 @@
+# Release History
+
+## 1.0.0-beta.1 (2021-03-16)
+
+- Azure Resource Manager Elastic client library for Java. This package contains Microsoft Azure SDK for Elastic Management SDK. Package tag package-2020-07-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
diff --git a/sdk/elastic/azure-resourcemanager-elastic/README.md b/sdk/elastic/azure-resourcemanager-elastic/README.md
new file mode 100644
index 0000000000000..c438e4155f976
--- /dev/null
+++ b/sdk/elastic/azure-resourcemanager-elastic/README.md
@@ -0,0 +1,99 @@
+# Azure Resource Manager Elastic client library for Java
+
+Azure Resource Manager Elastic client library for Java.
+
+This package contains Microsoft Azure SDK for Elastic Management SDK. Package tag package-2020-07-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+
+## We'd love to hear your feedback
+
+We're always working on improving our products and the way we communicate with our users. So we'd love to learn what's working and how we can do better.
+
+If you haven't already, please take a few minutes to [complete this short survey][survey] we have put together.
+
+Thank you in advance for your collaboration. We really appreciate your time!
+
+## Documentation
+
+Various documentation is available to help you get started
+
+- [API reference documentation][docs]
+
+## Getting started
+
+### Prerequisites
+
+- [Java Development Kit (JDK)][jdk] with version 8 or above
+- [Azure Subscription][azure_subscription]
+
+### Adding the package to your product
+
+[//]: # ({x-version-update-start;com.azure.resourcemanager:azure-resourcemanager-elastic;current})
+```xml
+
+ com.azure.resourcemanager
+ azure-resourcemanager-elastic
+ 1.0.0-beta.1
+
+```
+[//]: # ({x-version-update-end})
+
+### Include the recommended packages
+
+Azure Management Libraries require a `TokenCredential` implementation for authentication and an `HttpClient` implementation for HTTP client.
+
+[Azure Identity][azure_identity] package and [Azure Core Netty HTTP][azure_core_http_netty] package provide the default implementation.
+
+### Authentication
+
+By default, Azure Active Directory token authentication depends on correct configure of following environment variables.
+
+- `AZURE_CLIENT_ID` for Azure client ID.
+- `AZURE_TENANT_ID` for Azure tenant ID.
+- `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate.
+
+In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.
+
+With above configuration, `azure` client can be authenticated by following code:
+
+```java
+AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
+TokenCredential credential = new DefaultAzureCredentialBuilder()
+ .authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
+ .build();
+ElasticManager manager = ElasticManager
+ .authenticate(credential, profile);
+```
+
+The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
+
+See [Authentication][authenticate] for more options.
+
+## Key concepts
+
+See [API design][design] for general introduction on design and key concepts on Azure Management Libraries.
+
+## Examples
+
+## Troubleshooting
+
+## Next steps
+
+## Contributing
+
+For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/master/CONTRIBUTING.md).
+
+1. Fork it
+1. Create your feature branch (`git checkout -b my-new-feature`)
+1. Commit your changes (`git commit -am 'Add some feature'`)
+1. Push to the branch (`git push origin my-new-feature`)
+1. Create new Pull Request
+
+
+[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
+[docs]: https://azure.github.io/azure-sdk-for-java/
+[jdk]: https://docs.microsoft.com/java/azure/jdk/
+[azure_subscription]: https://azure.microsoft.com/free/
+[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/identity/azure-identity
+[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/core/azure-core-http-netty
+[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/resourcemanager/docs/AUTH.md
+[design]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/resourcemanager/docs/DESIGN.md
diff --git a/sdk/elastic/azure-resourcemanager-elastic/pom.xml b/sdk/elastic/azure-resourcemanager-elastic/pom.xml
new file mode 100644
index 0000000000000..d02f97a29f0a7
--- /dev/null
+++ b/sdk/elastic/azure-resourcemanager-elastic/pom.xml
@@ -0,0 +1,67 @@
+
+ 4.0.0
+
+ com.azure
+ azure-client-sdk-parent
+ 1.7.0
+ ../../parents/azure-client-sdk-parent
+
+
+ com.azure.resourcemanager
+ azure-resourcemanager-elastic
+ 1.0.0-beta.1
+ jar
+
+ Microsoft Azure SDK for Elastic Management
+ This package contains Microsoft Azure SDK for Elastic Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2020-07-01-preview.
+ https://github.com/Azure/azure-sdk-for-java
+
+
+
+ The MIT License (MIT)
+ http://opensource.org/licenses/MIT
+ repo
+
+
+
+
+ https://github.com/Azure/azure-sdk-for-java
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ HEAD
+
+
+
+ microsoft
+ Microsoft
+
+
+
+ UTF-8
+
+
+
+
+ com.azure
+ azure-core
+ 1.14.0
+
+
+ com.azure
+ azure-core-management
+ 1.2.0
+
+
+
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.8.5
+
+ true
+
+
+
+
+
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/ElasticManager.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/ElasticManager.java
new file mode 100644
index 0000000000000..919685d0974e7
--- /dev/null
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/ElasticManager.java
@@ -0,0 +1,262 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.elastic;
+
+import com.azure.core.credential.TokenCredential;
+import com.azure.core.http.HttpClient;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.policy.AddDatePolicy;
+import com.azure.core.http.policy.BearerTokenAuthenticationPolicy;
+import com.azure.core.http.policy.HttpLogOptions;
+import com.azure.core.http.policy.HttpLoggingPolicy;
+import com.azure.core.http.policy.HttpPipelinePolicy;
+import com.azure.core.http.policy.HttpPolicyProviders;
+import com.azure.core.http.policy.RequestIdPolicy;
+import com.azure.core.http.policy.RetryPolicy;
+import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.profile.AzureProfile;
+import com.azure.core.util.Configuration;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.elastic.fluent.MicrosoftElastic;
+import com.azure.resourcemanager.elastic.implementation.DeploymentInfoesImpl;
+import com.azure.resourcemanager.elastic.implementation.MicrosoftElasticBuilder;
+import com.azure.resourcemanager.elastic.implementation.MonitoredResourcesImpl;
+import com.azure.resourcemanager.elastic.implementation.MonitorsImpl;
+import com.azure.resourcemanager.elastic.implementation.OperationsImpl;
+import com.azure.resourcemanager.elastic.implementation.TagRulesImpl;
+import com.azure.resourcemanager.elastic.models.DeploymentInfoes;
+import com.azure.resourcemanager.elastic.models.MonitoredResources;
+import com.azure.resourcemanager.elastic.models.Monitors;
+import com.azure.resourcemanager.elastic.models.Operations;
+import com.azure.resourcemanager.elastic.models.TagRules;
+import java.time.Duration;
+import java.time.temporal.ChronoUnit;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Objects;
+
+/** Entry point to ElasticManager. */
+public final class ElasticManager {
+ private Operations operations;
+
+ private Monitors monitors;
+
+ private MonitoredResources monitoredResources;
+
+ private DeploymentInfoes deploymentInfoes;
+
+ private TagRules tagRules;
+
+ private final MicrosoftElastic clientObject;
+
+ private ElasticManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
+ Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ this.clientObject =
+ new MicrosoftElasticBuilder()
+ .pipeline(httpPipeline)
+ .endpoint(profile.getEnvironment().getResourceManagerEndpoint())
+ .subscriptionId(profile.getSubscriptionId())
+ .defaultPollInterval(defaultPollInterval)
+ .buildClient();
+ }
+
+ /**
+ * Creates an instance of Elastic service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the Elastic service API instance.
+ */
+ public static ElasticManager authenticate(TokenCredential credential, AzureProfile profile) {
+ Objects.requireNonNull(credential, "'credential' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ return configure().authenticate(credential, profile);
+ }
+
+ /**
+ * Gets a Configurable instance that can be used to create ElasticManager with optional configuration.
+ *
+ * @return the Configurable instance allowing configurations.
+ */
+ public static Configurable configure() {
+ return new ElasticManager.Configurable();
+ }
+
+ /** The Configurable allowing configurations to be set. */
+ public static final class Configurable {
+ private final ClientLogger logger = new ClientLogger(Configurable.class);
+
+ private HttpClient httpClient;
+ private HttpLogOptions httpLogOptions;
+ private final List policies = new ArrayList<>();
+ private RetryPolicy retryPolicy;
+ 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;
+ }
+
+ /**
+ * 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 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, "'retryPolicy' cannot be null.");
+ if (this.defaultPollInterval.isNegative()) {
+ throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
+ }
+ return this;
+ }
+
+ /**
+ * Creates an instance of Elastic service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the Elastic service API instance.
+ */
+ public ElasticManager 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.elastic")
+ .append("/")
+ .append("1.0.0-beta.1");
+ if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
+ userAgentBuilder
+ .append(" (")
+ .append(Configuration.getGlobalConfiguration().get("java.version"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.name"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.version"))
+ .append("; auto-generated)");
+ } else {
+ userAgentBuilder.append(" (auto-generated)");
+ }
+
+ if (retryPolicy == null) {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
+ List policies = new ArrayList<>();
+ policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new RequestIdPolicy());
+ HttpPolicyProviders.addBeforeRetryPolicies(policies);
+ policies.add(retryPolicy);
+ policies.add(new AddDatePolicy());
+ policies
+ .add(
+ new BearerTokenAuthenticationPolicy(
+ credential, profile.getEnvironment().getManagementEndpoint() + "/.default"));
+ HttpPolicyProviders.addAfterRetryPolicies(policies);
+ policies.add(new HttpLoggingPolicy(httpLogOptions));
+ HttpPipeline httpPipeline =
+ new HttpPipelineBuilder()
+ .httpClient(httpClient)
+ .policies(policies.toArray(new HttpPipelinePolicy[0]))
+ .build();
+ return new ElasticManager(httpPipeline, profile, defaultPollInterval);
+ }
+ }
+
+ /** @return Resource collection API of Operations. */
+ public Operations operations() {
+ if (this.operations == null) {
+ this.operations = new OperationsImpl(clientObject.getOperations(), this);
+ }
+ return operations;
+ }
+
+ /** @return Resource collection API of Monitors. */
+ public Monitors monitors() {
+ if (this.monitors == null) {
+ this.monitors = new MonitorsImpl(clientObject.getMonitors(), this);
+ }
+ return monitors;
+ }
+
+ /** @return Resource collection API of MonitoredResources. */
+ public MonitoredResources monitoredResources() {
+ if (this.monitoredResources == null) {
+ this.monitoredResources = new MonitoredResourcesImpl(clientObject.getMonitoredResources(), this);
+ }
+ return monitoredResources;
+ }
+
+ /** @return Resource collection API of DeploymentInfoes. */
+ public DeploymentInfoes deploymentInfoes() {
+ if (this.deploymentInfoes == null) {
+ this.deploymentInfoes = new DeploymentInfoesImpl(clientObject.getDeploymentInfoes(), this);
+ }
+ return deploymentInfoes;
+ }
+
+ /** @return Resource collection API of TagRules. */
+ public TagRules tagRules() {
+ if (this.tagRules == null) {
+ this.tagRules = new TagRulesImpl(clientObject.getTagRules(), this);
+ }
+ return tagRules;
+ }
+
+ /**
+ * @return Wrapped service client MicrosoftElastic providing direct access to the underlying auto-generated API
+ * implementation, based on Azure REST API.
+ */
+ public MicrosoftElastic serviceClient() {
+ return this.clientObject;
+ }
+}
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/DeploymentInfoesClient.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/DeploymentInfoesClient.java
new file mode 100644
index 0000000000000..c027f56d2d6c8
--- /dev/null
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/DeploymentInfoesClient.java
@@ -0,0 +1,42 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.elastic.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.elastic.fluent.models.DeploymentInfoResponseInner;
+
+/** An instance of this class provides access to all the operations defined in DeploymentInfoesClient. */
+public interface DeploymentInfoesClient {
+ /**
+ * Fetch information regarding Elastic cloud deployment corresponding to the Elastic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
+ * @param monitorName Monitor resource name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of deployment in Elastic cloud corresponding to the Elastic monitor resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentInfoResponseInner list(String resourceGroupName, String monitorName);
+
+ /**
+ * Fetch information regarding Elastic cloud deployment corresponding to the Elastic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
+ * @param monitorName Monitor resource name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of deployment in Elastic cloud corresponding to the Elastic monitor resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listWithResponse(
+ String resourceGroupName, String monitorName, Context context);
+}
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/MicrosoftElastic.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/MicrosoftElastic.java
new file mode 100644
index 0000000000000..d08470156bd27
--- /dev/null
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/MicrosoftElastic.java
@@ -0,0 +1,81 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.elastic.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/** The interface for MicrosoftElastic class. */
+public interface MicrosoftElastic {
+ /**
+ * Gets The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).
+ *
+ * @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 OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
+
+ /**
+ * Gets the MonitorsClient object to access its operations.
+ *
+ * @return the MonitorsClient object.
+ */
+ MonitorsClient getMonitors();
+
+ /**
+ * Gets the MonitoredResourcesClient object to access its operations.
+ *
+ * @return the MonitoredResourcesClient object.
+ */
+ MonitoredResourcesClient getMonitoredResources();
+
+ /**
+ * Gets the DeploymentInfoesClient object to access its operations.
+ *
+ * @return the DeploymentInfoesClient object.
+ */
+ DeploymentInfoesClient getDeploymentInfoes();
+
+ /**
+ * Gets the TagRulesClient object to access its operations.
+ *
+ * @return the TagRulesClient object.
+ */
+ TagRulesClient getTagRules();
+}
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/MonitoredResourcesClient.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/MonitoredResourcesClient.java
new file mode 100644
index 0000000000000..7f195abd1304b
--- /dev/null
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/MonitoredResourcesClient.java
@@ -0,0 +1,41 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.elastic.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.elastic.fluent.models.MonitoredResourceInner;
+
+/** An instance of this class provides access to all the operations defined in MonitoredResourcesClient. */
+public interface MonitoredResourcesClient {
+ /**
+ * List the resources currently being monitored by the Elastic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
+ * @param monitorName Monitor resource name.
+ * @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 response of a list operation.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String monitorName);
+
+ /**
+ * List the resources currently being monitored by the Elastic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
+ * @param monitorName Monitor resource name.
+ * @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 response of a list operation.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String monitorName, Context context);
+}
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/MonitorsClient.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/MonitorsClient.java
new file mode 100644
index 0000000000000..9a354fb207f21
--- /dev/null
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/MonitorsClient.java
@@ -0,0 +1,248 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.elastic.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.elastic.fluent.models.ElasticMonitorResourceInner;
+import com.azure.resourcemanager.elastic.models.ElasticMonitorResourceUpdateParameters;
+
+/** An instance of this class provides access to all the operations defined in MonitorsClient. */
+public interface MonitorsClient {
+ /**
+ * List all monitors under the specified 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 response of a list operation.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List all monitors under the specified 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 response of a list operation.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * List all monitors under the specified resource group.
+ *
+ * @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
+ * @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 response of a list operation.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * List all monitors under the specified resource group.
+ *
+ * @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
+ * @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 response of a list operation.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Get the properties of a specific monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
+ * @param monitorName Monitor resource name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of a specific monitor resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticMonitorResourceInner getByResourceGroup(String resourceGroupName, String monitorName);
+
+ /**
+ * Get the properties of a specific monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
+ * @param monitorName Monitor resource name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of a specific monitor resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String monitorName, Context context);
+
+ /**
+ * Create a monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
+ * @param monitorName Monitor resource name.
+ * @param body Elastic monitor resource model.
+ * @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 monitor resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ElasticMonitorResourceInner> beginCreate(
+ String resourceGroupName, String monitorName, ElasticMonitorResourceInner body);
+
+ /**
+ * Create a monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
+ * @param monitorName Monitor resource name.
+ * @param body Elastic monitor resource model.
+ * @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 monitor resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ElasticMonitorResourceInner> beginCreate(
+ String resourceGroupName, String monitorName, ElasticMonitorResourceInner body, Context context);
+
+ /**
+ * Create a monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
+ * @param monitorName Monitor resource name.
+ * @param body Elastic monitor resource model.
+ * @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 monitor resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticMonitorResourceInner create(String resourceGroupName, String monitorName, ElasticMonitorResourceInner body);
+
+ /**
+ * Create a monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
+ * @param monitorName Monitor resource name.
+ * @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 monitor resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticMonitorResourceInner create(String resourceGroupName, String monitorName);
+
+ /**
+ * Create a monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
+ * @param monitorName Monitor resource name.
+ * @param body Elastic monitor resource model.
+ * @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 monitor resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticMonitorResourceInner create(
+ String resourceGroupName, String monitorName, ElasticMonitorResourceInner body, Context context);
+
+ /**
+ * Update a monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
+ * @param monitorName Monitor resource name.
+ * @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 monitor resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ElasticMonitorResourceInner update(String resourceGroupName, String monitorName);
+
+ /**
+ * Update a monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
+ * @param monitorName Monitor resource name.
+ * @param body Elastic resource model update parameters.
+ * @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 monitor resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName, String monitorName, ElasticMonitorResourceUpdateParameters body, Context context);
+
+ /**
+ * Delete a monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
+ * @param monitorName Monitor resource name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String monitorName);
+
+ /**
+ * Delete a monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
+ * @param monitorName Monitor resource name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String monitorName, Context context);
+
+ /**
+ * Delete a monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
+ * @param monitorName Monitor resource name.
+ * @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 monitorName);
+
+ /**
+ * Delete a monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
+ * @param monitorName Monitor resource name.
+ * @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 monitorName, Context context);
+}
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/OperationsClient.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/OperationsClient.java
new file mode 100644
index 0000000000000..94862fd1bb962
--- /dev/null
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/OperationsClient.java
@@ -0,0 +1,36 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.elastic.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.elastic.fluent.models.OperationResultInner;
+
+/** An instance of this class provides access to all the operations defined in OperationsClient. */
+public interface OperationsClient {
+ /**
+ * List all operations provided by Microsoft.Elastic.
+ *
+ * @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 GET request to list the Microsoft.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List all operations provided by Microsoft.Elastic.
+ *
+ * @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 GET request to list the Microsoft.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/TagRulesClient.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/TagRulesClient.java
new file mode 100644
index 0000000000000..03c5d68403002
--- /dev/null
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/TagRulesClient.java
@@ -0,0 +1,166 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.elastic.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.elastic.fluent.models.MonitoringTagRulesInner;
+
+/** An instance of this class provides access to all the operations defined in TagRulesClient. */
+public interface TagRulesClient {
+ /**
+ * List the tag rules for a given monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
+ * @param monitorName Monitor resource name.
+ * @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 response of a list operation.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String monitorName);
+
+ /**
+ * List the tag rules for a given monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
+ * @param monitorName Monitor resource name.
+ * @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 response of a list operation.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String monitorName, Context context);
+
+ /**
+ * Create or update a tag rule set for a given monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
+ * @param monitorName Monitor resource name.
+ * @param ruleSetName Tag Rule Set resource name.
+ * @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 capture logs and metrics of Azure resources based on ARM tags.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MonitoringTagRulesInner createOrUpdate(String resourceGroupName, String monitorName, String ruleSetName);
+
+ /**
+ * Create or update a tag rule set for a given monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
+ * @param monitorName Monitor resource name.
+ * @param ruleSetName Tag Rule Set resource name.
+ * @param body request body of MonitoringTagRules.
+ * @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 capture logs and metrics of Azure resources based on ARM tags.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String monitorName,
+ String ruleSetName,
+ MonitoringTagRulesInner body,
+ Context context);
+
+ /**
+ * Get a tag rule set for a given monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
+ * @param monitorName Monitor resource name.
+ * @param ruleSetName Tag Rule Set resource name.
+ * @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 tag rule set for a given monitor resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MonitoringTagRulesInner get(String resourceGroupName, String monitorName, String ruleSetName);
+
+ /**
+ * Get a tag rule set for a given monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
+ * @param monitorName Monitor resource name.
+ * @param ruleSetName Tag Rule Set resource name.
+ * @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 tag rule set for a given monitor resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String monitorName, String ruleSetName, Context context);
+
+ /**
+ * Delete a tag rule set for a given monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
+ * @param monitorName Monitor resource name.
+ * @param ruleSetName Tag Rule Set resource name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String monitorName, String ruleSetName);
+
+ /**
+ * Delete a tag rule set for a given monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
+ * @param monitorName Monitor resource name.
+ * @param ruleSetName Tag Rule Set resource name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String monitorName, String ruleSetName, Context context);
+
+ /**
+ * Delete a tag rule set for a given monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
+ * @param monitorName Monitor resource name.
+ * @param ruleSetName Tag Rule Set resource name.
+ * @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 monitorName, String ruleSetName);
+
+ /**
+ * Delete a tag rule set for a given monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
+ * @param monitorName Monitor resource name.
+ * @param ruleSetName Tag Rule Set resource name.
+ * @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 monitorName, String ruleSetName, Context context);
+}
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/models/DeploymentInfoResponseInner.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/models/DeploymentInfoResponseInner.java
new file mode 100644
index 0000000000000..4294c587e4bb5
--- /dev/null
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/models/DeploymentInfoResponseInner.java
@@ -0,0 +1,85 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.elastic.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.elastic.models.ElasticDeploymentStatus;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The properties of deployment in Elastic cloud corresponding to the Elastic monitor resource. */
+@Immutable
+public final class DeploymentInfoResponseInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DeploymentInfoResponseInner.class);
+
+ /*
+ * The Elastic deployment status.
+ */
+ @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY)
+ private ElasticDeploymentStatus status;
+
+ /*
+ * Version of the elasticsearch in Elastic cloud deployment.
+ */
+ @JsonProperty(value = "version", access = JsonProperty.Access.WRITE_ONLY)
+ private String version;
+
+ /*
+ * RAM capacity of the elasticsearch in Elastic cloud deployment.
+ */
+ @JsonProperty(value = "memoryCapacity", access = JsonProperty.Access.WRITE_ONLY)
+ private String memoryCapacity;
+
+ /*
+ * Disk capacity of the elasticsearch in Elastic cloud deployment.
+ */
+ @JsonProperty(value = "diskCapacity", access = JsonProperty.Access.WRITE_ONLY)
+ private String diskCapacity;
+
+ /**
+ * Get the status property: The Elastic deployment status.
+ *
+ * @return the status value.
+ */
+ public ElasticDeploymentStatus status() {
+ return this.status;
+ }
+
+ /**
+ * Get the version property: Version of the elasticsearch in Elastic cloud deployment.
+ *
+ * @return the version value.
+ */
+ public String version() {
+ return this.version;
+ }
+
+ /**
+ * Get the memoryCapacity property: RAM capacity of the elasticsearch in Elastic cloud deployment.
+ *
+ * @return the memoryCapacity value.
+ */
+ public String memoryCapacity() {
+ return this.memoryCapacity;
+ }
+
+ /**
+ * Get the diskCapacity property: Disk capacity of the elasticsearch in Elastic cloud deployment.
+ *
+ * @return the diskCapacity value.
+ */
+ public String diskCapacity() {
+ return this.diskCapacity;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/models/ElasticMonitorResourceInner.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/models/ElasticMonitorResourceInner.java
new file mode 100644
index 0000000000000..e13ebb3f8d72c
--- /dev/null
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/models/ElasticMonitorResourceInner.java
@@ -0,0 +1,146 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.elastic.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.elastic.models.IdentityProperties;
+import com.azure.resourcemanager.elastic.models.MonitorProperties;
+import com.azure.resourcemanager.elastic.models.ResourceSku;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** Monitor resource. */
+@Fluent
+public final class ElasticMonitorResourceInner extends Resource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ElasticMonitorResourceInner.class);
+
+ /*
+ * SKU of the monitor resource.
+ */
+ @JsonProperty(value = "sku")
+ private ResourceSku sku;
+
+ /*
+ * Properties of the monitor resource.
+ */
+ @JsonProperty(value = "properties")
+ private MonitorProperties properties;
+
+ /*
+ * Identity properties of the monitor resource.
+ */
+ @JsonProperty(value = "identity")
+ private IdentityProperties identity;
+
+ /*
+ * The system metadata relating to this resource
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the sku property: SKU of the monitor resource.
+ *
+ * @return the sku value.
+ */
+ public ResourceSku sku() {
+ return this.sku;
+ }
+
+ /**
+ * Set the sku property: SKU of the monitor resource.
+ *
+ * @param sku the sku value to set.
+ * @return the ElasticMonitorResourceInner object itself.
+ */
+ public ElasticMonitorResourceInner withSku(ResourceSku sku) {
+ this.sku = sku;
+ return this;
+ }
+
+ /**
+ * Get the properties property: Properties of the monitor resource.
+ *
+ * @return the properties value.
+ */
+ public MonitorProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Properties of the monitor resource.
+ *
+ * @param properties the properties value to set.
+ * @return the ElasticMonitorResourceInner object itself.
+ */
+ public ElasticMonitorResourceInner withProperties(MonitorProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the identity property: Identity properties of the monitor resource.
+ *
+ * @return the identity value.
+ */
+ public IdentityProperties identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: Identity properties of the monitor resource.
+ *
+ * @param identity the identity value to set.
+ * @return the ElasticMonitorResourceInner object itself.
+ */
+ public ElasticMonitorResourceInner withIdentity(IdentityProperties identity) {
+ this.identity = identity;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: The system metadata relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public ElasticMonitorResourceInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public ElasticMonitorResourceInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (sku() != null) {
+ sku().validate();
+ }
+ if (properties() != null) {
+ properties().validate();
+ }
+ if (identity() != null) {
+ identity().validate();
+ }
+ }
+}
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/models/MonitoredResourceInner.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/models/MonitoredResourceInner.java
new file mode 100644
index 0000000000000..a8a92699d6f0f
--- /dev/null
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/models/MonitoredResourceInner.java
@@ -0,0 +1,104 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.elastic.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.elastic.models.SendingLogs;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The properties of a resource currently being monitored by the Elastic monitor resource. */
+@Fluent
+public final class MonitoredResourceInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(MonitoredResourceInner.class);
+
+ /*
+ * The ARM id of the resource.
+ */
+ @JsonProperty(value = "id")
+ private String id;
+
+ /*
+ * Flag indicating the status of the resource for sending logs operation to
+ * Elastic.
+ */
+ @JsonProperty(value = "sendingLogs")
+ private SendingLogs sendingLogs;
+
+ /*
+ * Reason for why the resource is sending logs (or why it is not sending).
+ */
+ @JsonProperty(value = "reasonForLogsStatus")
+ private String reasonForLogsStatus;
+
+ /**
+ * Get the id property: The ARM id of the resource.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Set the id property: The ARM id of the resource.
+ *
+ * @param id the id value to set.
+ * @return the MonitoredResourceInner object itself.
+ */
+ public MonitoredResourceInner withId(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Get the sendingLogs property: Flag indicating the status of the resource for sending logs operation to Elastic.
+ *
+ * @return the sendingLogs value.
+ */
+ public SendingLogs sendingLogs() {
+ return this.sendingLogs;
+ }
+
+ /**
+ * Set the sendingLogs property: Flag indicating the status of the resource for sending logs operation to Elastic.
+ *
+ * @param sendingLogs the sendingLogs value to set.
+ * @return the MonitoredResourceInner object itself.
+ */
+ public MonitoredResourceInner withSendingLogs(SendingLogs sendingLogs) {
+ this.sendingLogs = sendingLogs;
+ return this;
+ }
+
+ /**
+ * Get the reasonForLogsStatus property: Reason for why the resource is sending logs (or why it is not sending).
+ *
+ * @return the reasonForLogsStatus value.
+ */
+ public String reasonForLogsStatus() {
+ return this.reasonForLogsStatus;
+ }
+
+ /**
+ * Set the reasonForLogsStatus property: Reason for why the resource is sending logs (or why it is not sending).
+ *
+ * @param reasonForLogsStatus the reasonForLogsStatus value to set.
+ * @return the MonitoredResourceInner object itself.
+ */
+ public MonitoredResourceInner withReasonForLogsStatus(String reasonForLogsStatus) {
+ this.reasonForLogsStatus = reasonForLogsStatus;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/models/MonitoringTagRulesInner.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/models/MonitoringTagRulesInner.java
new file mode 100644
index 0000000000000..dafad0b8105e0
--- /dev/null
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/models/MonitoringTagRulesInner.java
@@ -0,0 +1,71 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.elastic.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.resourcemanager.elastic.models.MonitoringTagRulesProperties;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Capture logs and metrics of Azure resources based on ARM tags. */
+@Fluent
+public final class MonitoringTagRulesInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(MonitoringTagRulesInner.class);
+
+ /*
+ * Properties of the monitoring tag rules.
+ */
+ @JsonProperty(value = "properties")
+ private MonitoringTagRulesProperties properties;
+
+ /*
+ * The system metadata relating to this resource
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the properties property: Properties of the monitoring tag rules.
+ *
+ * @return the properties value.
+ */
+ public MonitoringTagRulesProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Properties of the monitoring tag rules.
+ *
+ * @param properties the properties value to set.
+ * @return the MonitoringTagRulesInner object itself.
+ */
+ public MonitoringTagRulesInner withProperties(MonitoringTagRulesProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: The system metadata relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/models/OperationResultInner.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/models/OperationResultInner.java
new file mode 100644
index 0000000000000..2dd5a884ac17a
--- /dev/null
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/models/OperationResultInner.java
@@ -0,0 +1,132 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.elastic.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.elastic.models.OperationDisplay;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** A Microsoft.Elastic REST API operation. */
+@Fluent
+public final class OperationResultInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationResultInner.class);
+
+ /*
+ * Operation name, i.e., {provider}/{resource}/{operation}.
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /*
+ * Indicates whether the operation is a data action
+ */
+ @JsonProperty(value = "isDataAction")
+ private Boolean isDataAction;
+
+ /*
+ * The object that represents the operation.
+ */
+ @JsonProperty(value = "display")
+ private OperationDisplay display;
+
+ /*
+ * Origin of the operation
+ */
+ @JsonProperty(value = "origin")
+ private String origin;
+
+ /**
+ * Get the name property: Operation name, i.e., {provider}/{resource}/{operation}.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: Operation name, i.e., {provider}/{resource}/{operation}.
+ *
+ * @param name the name value to set.
+ * @return the OperationResultInner object itself.
+ */
+ public OperationResultInner withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the isDataAction property: Indicates whether the operation is a data action.
+ *
+ * @return the isDataAction value.
+ */
+ public Boolean isDataAction() {
+ return this.isDataAction;
+ }
+
+ /**
+ * Set the isDataAction property: Indicates whether the operation is a data action.
+ *
+ * @param isDataAction the isDataAction value to set.
+ * @return the OperationResultInner object itself.
+ */
+ public OperationResultInner withIsDataAction(Boolean isDataAction) {
+ this.isDataAction = isDataAction;
+ return this;
+ }
+
+ /**
+ * Get the display property: The object that represents the operation.
+ *
+ * @return the display value.
+ */
+ public OperationDisplay display() {
+ return this.display;
+ }
+
+ /**
+ * Set the display property: The object that represents the operation.
+ *
+ * @param display the display value to set.
+ * @return the OperationResultInner object itself.
+ */
+ public OperationResultInner withDisplay(OperationDisplay display) {
+ this.display = display;
+ return this;
+ }
+
+ /**
+ * Get the origin property: Origin of the operation.
+ *
+ * @return the origin value.
+ */
+ public String origin() {
+ return this.origin;
+ }
+
+ /**
+ * Set the origin property: Origin of the operation.
+ *
+ * @param origin the origin value to set.
+ * @return the OperationResultInner object itself.
+ */
+ public OperationResultInner withOrigin(String origin) {
+ this.origin = origin;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (display() != null) {
+ display().validate();
+ }
+ }
+}
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/models/package-info.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/models/package-info.java
new file mode 100644
index 0000000000000..ddaf94ccb52fd
--- /dev/null
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/models/package-info.java
@@ -0,0 +1,6 @@
+// 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 MicrosoftElastic. null. */
+package com.azure.resourcemanager.elastic.fluent.models;
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/package-info.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/package-info.java
new file mode 100644
index 0000000000000..e3ed03980e5fe
--- /dev/null
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/package-info.java
@@ -0,0 +1,6 @@
+// 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 MicrosoftElastic. null. */
+package com.azure.resourcemanager.elastic.fluent;
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/DeploymentInfoResponseImpl.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/DeploymentInfoResponseImpl.java
new file mode 100644
index 0000000000000..89cd8dd01d9d6
--- /dev/null
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/DeploymentInfoResponseImpl.java
@@ -0,0 +1,45 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.elastic.implementation;
+
+import com.azure.resourcemanager.elastic.fluent.models.DeploymentInfoResponseInner;
+import com.azure.resourcemanager.elastic.models.DeploymentInfoResponse;
+import com.azure.resourcemanager.elastic.models.ElasticDeploymentStatus;
+
+public final class DeploymentInfoResponseImpl implements DeploymentInfoResponse {
+ private DeploymentInfoResponseInner innerObject;
+
+ private final com.azure.resourcemanager.elastic.ElasticManager serviceManager;
+
+ DeploymentInfoResponseImpl(
+ DeploymentInfoResponseInner innerObject, com.azure.resourcemanager.elastic.ElasticManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public ElasticDeploymentStatus status() {
+ return this.innerModel().status();
+ }
+
+ public String version() {
+ return this.innerModel().version();
+ }
+
+ public String memoryCapacity() {
+ return this.innerModel().memoryCapacity();
+ }
+
+ public String diskCapacity() {
+ return this.innerModel().diskCapacity();
+ }
+
+ public DeploymentInfoResponseInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.elastic.ElasticManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/DeploymentInfoesClientImpl.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/DeploymentInfoesClientImpl.java
new file mode 100644
index 0000000000000..01df16ef2bd46
--- /dev/null
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/DeploymentInfoesClientImpl.java
@@ -0,0 +1,221 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.elastic.implementation;
+
+import com.azure.core.annotation.ExpectedResponses;
+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.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.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.elastic.fluent.DeploymentInfoesClient;
+import com.azure.resourcemanager.elastic.fluent.models.DeploymentInfoResponseInner;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in DeploymentInfoesClient. */
+public final class DeploymentInfoesClientImpl implements DeploymentInfoesClient {
+ private final ClientLogger logger = new ClientLogger(DeploymentInfoesClientImpl.class);
+
+ /** The proxy service used to perform REST calls. */
+ private final DeploymentInfoesService service;
+
+ /** The service client containing this operation class. */
+ private final MicrosoftElasticImpl client;
+
+ /**
+ * Initializes an instance of DeploymentInfoesClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ DeploymentInfoesClientImpl(MicrosoftElasticImpl client) {
+ this.service =
+ RestProxy.create(DeploymentInfoesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for MicrosoftElasticDeploymentInfoes to be used by the proxy service to
+ * perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "MicrosoftElasticDepl")
+ private interface DeploymentInfoesService {
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Elastic/monitors"
+ + "/{monitorName}/listDeploymentInfo")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("monitorName") String monitorName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Fetch information regarding Elastic cloud deployment corresponding to the Elastic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
+ * @param monitorName Monitor resource name.
+ * @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 properties of deployment in Elastic cloud corresponding to the Elastic monitor resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listWithResponseAsync(
+ String resourceGroupName, String monitorName) {
+ 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 (monitorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter monitorName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ monitorName,
+ accept,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Fetch information regarding Elastic cloud deployment corresponding to the Elastic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
+ * @param monitorName Monitor resource name.
+ * @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 properties of deployment in Elastic cloud corresponding to the Elastic monitor resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listWithResponseAsync(
+ String resourceGroupName, String monitorName, 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 (monitorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter monitorName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ monitorName,
+ accept,
+ context);
+ }
+
+ /**
+ * Fetch information regarding Elastic cloud deployment corresponding to the Elastic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
+ * @param monitorName Monitor resource name.
+ * @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 properties of deployment in Elastic cloud corresponding to the Elastic monitor resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono listAsync(String resourceGroupName, String monitorName) {
+ return listWithResponseAsync(resourceGroupName, monitorName)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Fetch information regarding Elastic cloud deployment corresponding to the Elastic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
+ * @param monitorName Monitor resource name.
+ * @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 properties of deployment in Elastic cloud corresponding to the Elastic monitor resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DeploymentInfoResponseInner list(String resourceGroupName, String monitorName) {
+ return listAsync(resourceGroupName, monitorName).block();
+ }
+
+ /**
+ * Fetch information regarding Elastic cloud deployment corresponding to the Elastic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
+ * @param monitorName Monitor resource name.
+ * @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 properties of deployment in Elastic cloud corresponding to the Elastic monitor resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response listWithResponse(
+ String resourceGroupName, String monitorName, Context context) {
+ return listWithResponseAsync(resourceGroupName, monitorName, context).block();
+ }
+}
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/DeploymentInfoesImpl.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/DeploymentInfoesImpl.java
new file mode 100644
index 0000000000000..53ccb8f9bac81
--- /dev/null
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/DeploymentInfoesImpl.java
@@ -0,0 +1,61 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.elastic.implementation;
+
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.elastic.fluent.DeploymentInfoesClient;
+import com.azure.resourcemanager.elastic.fluent.models.DeploymentInfoResponseInner;
+import com.azure.resourcemanager.elastic.models.DeploymentInfoResponse;
+import com.azure.resourcemanager.elastic.models.DeploymentInfoes;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+
+public final class DeploymentInfoesImpl implements DeploymentInfoes {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DeploymentInfoesImpl.class);
+
+ private final DeploymentInfoesClient innerClient;
+
+ private final com.azure.resourcemanager.elastic.ElasticManager serviceManager;
+
+ public DeploymentInfoesImpl(
+ DeploymentInfoesClient innerClient, com.azure.resourcemanager.elastic.ElasticManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public DeploymentInfoResponse list(String resourceGroupName, String monitorName) {
+ DeploymentInfoResponseInner inner = this.serviceClient().list(resourceGroupName, monitorName);
+ if (inner != null) {
+ return new DeploymentInfoResponseImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response listWithResponse(
+ String resourceGroupName, String monitorName, Context context) {
+ Response inner =
+ this.serviceClient().listWithResponse(resourceGroupName, monitorName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new DeploymentInfoResponseImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ private DeploymentInfoesClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.elastic.ElasticManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/ElasticMonitorResourceImpl.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/ElasticMonitorResourceImpl.java
new file mode 100644
index 0000000000000..7572db6dafac0
--- /dev/null
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/ElasticMonitorResourceImpl.java
@@ -0,0 +1,208 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.elastic.implementation;
+
+import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.elastic.fluent.models.ElasticMonitorResourceInner;
+import com.azure.resourcemanager.elastic.models.ElasticMonitorResource;
+import com.azure.resourcemanager.elastic.models.ElasticMonitorResourceUpdateParameters;
+import com.azure.resourcemanager.elastic.models.IdentityProperties;
+import com.azure.resourcemanager.elastic.models.MonitorProperties;
+import com.azure.resourcemanager.elastic.models.ResourceSku;
+import java.util.Collections;
+import java.util.Map;
+
+public final class ElasticMonitorResourceImpl
+ implements ElasticMonitorResource, ElasticMonitorResource.Definition, ElasticMonitorResource.Update {
+ private ElasticMonitorResourceInner innerObject;
+
+ private final com.azure.resourcemanager.elastic.ElasticManager 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 ResourceSku sku() {
+ return this.innerModel().sku();
+ }
+
+ public MonitorProperties properties() {
+ return this.innerModel().properties();
+ }
+
+ public IdentityProperties identity() {
+ return this.innerModel().identity();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public Region region() {
+ return Region.fromName(this.regionName());
+ }
+
+ public String regionName() {
+ return this.location();
+ }
+
+ public ElasticMonitorResourceInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.elastic.ElasticManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String monitorName;
+
+ private ElasticMonitorResourceUpdateParameters updateBody;
+
+ public ElasticMonitorResourceImpl withExistingResourceGroup(String resourceGroupName) {
+ this.resourceGroupName = resourceGroupName;
+ return this;
+ }
+
+ public ElasticMonitorResource create() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getMonitors()
+ .create(resourceGroupName, monitorName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public ElasticMonitorResource create(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getMonitors()
+ .create(resourceGroupName, monitorName, this.innerModel(), context);
+ return this;
+ }
+
+ ElasticMonitorResourceImpl(String name, com.azure.resourcemanager.elastic.ElasticManager serviceManager) {
+ this.innerObject = new ElasticMonitorResourceInner();
+ this.serviceManager = serviceManager;
+ this.monitorName = name;
+ }
+
+ public ElasticMonitorResourceImpl update() {
+ this.updateBody = new ElasticMonitorResourceUpdateParameters();
+ return this;
+ }
+
+ public ElasticMonitorResource apply() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getMonitors()
+ .updateWithResponse(resourceGroupName, monitorName, updateBody, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ElasticMonitorResource apply(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getMonitors()
+ .updateWithResponse(resourceGroupName, monitorName, updateBody, context)
+ .getValue();
+ return this;
+ }
+
+ ElasticMonitorResourceImpl(
+ ElasticMonitorResourceInner innerObject, com.azure.resourcemanager.elastic.ElasticManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.monitorName = Utils.getValueFromIdByName(innerObject.id(), "monitors");
+ }
+
+ public ElasticMonitorResource refresh() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getMonitors()
+ .getByResourceGroupWithResponse(resourceGroupName, monitorName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ElasticMonitorResource refresh(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getMonitors()
+ .getByResourceGroupWithResponse(resourceGroupName, monitorName, context)
+ .getValue();
+ return this;
+ }
+
+ public ElasticMonitorResourceImpl withRegion(Region location) {
+ this.innerModel().withLocation(location.toString());
+ return this;
+ }
+
+ public ElasticMonitorResourceImpl withRegion(String location) {
+ this.innerModel().withLocation(location);
+ return this;
+ }
+
+ public ElasticMonitorResourceImpl withTags(Map tags) {
+ if (isInCreateMode()) {
+ this.innerModel().withTags(tags);
+ return this;
+ } else {
+ this.updateBody.withTags(tags);
+ return this;
+ }
+ }
+
+ public ElasticMonitorResourceImpl withSku(ResourceSku sku) {
+ this.innerModel().withSku(sku);
+ return this;
+ }
+
+ public ElasticMonitorResourceImpl withProperties(MonitorProperties properties) {
+ this.innerModel().withProperties(properties);
+ return this;
+ }
+
+ public ElasticMonitorResourceImpl withIdentity(IdentityProperties identity) {
+ this.innerModel().withIdentity(identity);
+ return this;
+ }
+
+ private boolean isInCreateMode() {
+ return this.innerModel().id() == null;
+ }
+}
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/MicrosoftElasticBuilder.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/MicrosoftElasticBuilder.java
new file mode 100644
index 0000000000000..f9c2a3fc8d5be
--- /dev/null
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/MicrosoftElasticBuilder.java
@@ -0,0 +1,147 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.elastic.implementation;
+
+import com.azure.core.annotation.ServiceClientBuilder;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.policy.CookiePolicy;
+import com.azure.core.http.policy.RetryPolicy;
+import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.AzureEnvironment;
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerAdapter;
+import java.time.Duration;
+
+/** A builder for creating a new instance of the MicrosoftElasticImpl type. */
+@ServiceClientBuilder(serviceClients = {MicrosoftElasticImpl.class})
+public final class MicrosoftElasticBuilder {
+ /*
+ * The Azure subscription ID. This is a GUID-formatted string (e.g.
+ * 00000000-0000-0000-0000-000000000000)
+ */
+ private String subscriptionId;
+
+ /**
+ * Sets The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).
+ *
+ * @param subscriptionId the subscriptionId value.
+ * @return the MicrosoftElasticBuilder.
+ */
+ public MicrosoftElasticBuilder subscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
+ return this;
+ }
+
+ /*
+ * server parameter
+ */
+ private String endpoint;
+
+ /**
+ * Sets server parameter.
+ *
+ * @param endpoint the endpoint value.
+ * @return the MicrosoftElasticBuilder.
+ */
+ public MicrosoftElasticBuilder endpoint(String endpoint) {
+ this.endpoint = endpoint;
+ return this;
+ }
+
+ /*
+ * The environment to connect to
+ */
+ private AzureEnvironment environment;
+
+ /**
+ * Sets The environment to connect to.
+ *
+ * @param environment the environment value.
+ * @return the MicrosoftElasticBuilder.
+ */
+ public MicrosoftElasticBuilder environment(AzureEnvironment environment) {
+ this.environment = environment;
+ return this;
+ }
+
+ /*
+ * The default poll interval for long-running operation
+ */
+ private Duration defaultPollInterval;
+
+ /**
+ * Sets The default poll interval for long-running operation.
+ *
+ * @param defaultPollInterval the defaultPollInterval value.
+ * @return the MicrosoftElasticBuilder.
+ */
+ public MicrosoftElasticBuilder defaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval = defaultPollInterval;
+ return this;
+ }
+
+ /*
+ * The HTTP pipeline to send requests through
+ */
+ private HttpPipeline pipeline;
+
+ /**
+ * Sets The HTTP pipeline to send requests through.
+ *
+ * @param pipeline the pipeline value.
+ * @return the MicrosoftElasticBuilder.
+ */
+ public MicrosoftElasticBuilder pipeline(HttpPipeline pipeline) {
+ this.pipeline = pipeline;
+ return this;
+ }
+
+ /*
+ * The serializer to serialize an object into a string
+ */
+ private SerializerAdapter serializerAdapter;
+
+ /**
+ * Sets The serializer to serialize an object into a string.
+ *
+ * @param serializerAdapter the serializerAdapter value.
+ * @return the MicrosoftElasticBuilder.
+ */
+ public MicrosoftElasticBuilder serializerAdapter(SerializerAdapter serializerAdapter) {
+ this.serializerAdapter = serializerAdapter;
+ return this;
+ }
+
+ /**
+ * Builds an instance of MicrosoftElasticImpl with the provided parameters.
+ *
+ * @return an instance of MicrosoftElasticImpl.
+ */
+ public MicrosoftElasticImpl buildClient() {
+ if (endpoint == null) {
+ this.endpoint = "https://management.azure.com";
+ }
+ if (environment == null) {
+ this.environment = AzureEnvironment.AZURE;
+ }
+ if (defaultPollInterval == null) {
+ this.defaultPollInterval = Duration.ofSeconds(30);
+ }
+ if (pipeline == null) {
+ this.pipeline =
+ new HttpPipelineBuilder()
+ .policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy())
+ .build();
+ }
+ if (serializerAdapter == null) {
+ this.serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter();
+ }
+ MicrosoftElasticImpl client =
+ new MicrosoftElasticImpl(
+ pipeline, serializerAdapter, defaultPollInterval, environment, subscriptionId, endpoint);
+ return client;
+ }
+}
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/MicrosoftElasticImpl.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/MicrosoftElasticImpl.java
new file mode 100644
index 0000000000000..c8a40fd03e9f0
--- /dev/null
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/MicrosoftElasticImpl.java
@@ -0,0 +1,350 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.elastic.implementation;
+
+import com.azure.core.annotation.ServiceClient;
+import com.azure.core.http.HttpHeaders;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpResponse;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.AzureEnvironment;
+import com.azure.core.management.exception.ManagementError;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.management.polling.PollerFactory;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.core.util.polling.AsyncPollResponse;
+import com.azure.core.util.polling.LongRunningOperationStatus;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.serializer.SerializerAdapter;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.elastic.fluent.DeploymentInfoesClient;
+import com.azure.resourcemanager.elastic.fluent.MicrosoftElastic;
+import com.azure.resourcemanager.elastic.fluent.MonitoredResourcesClient;
+import com.azure.resourcemanager.elastic.fluent.MonitorsClient;
+import com.azure.resourcemanager.elastic.fluent.OperationsClient;
+import com.azure.resourcemanager.elastic.fluent.TagRulesClient;
+import java.io.IOException;
+import java.lang.reflect.Type;
+import java.nio.ByteBuffer;
+import java.nio.charset.Charset;
+import java.nio.charset.StandardCharsets;
+import java.time.Duration;
+import java.util.Map;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** Initializes a new instance of the MicrosoftElasticImpl type. */
+@ServiceClient(builder = MicrosoftElasticBuilder.class)
+public final class MicrosoftElasticImpl implements MicrosoftElastic {
+ private final ClientLogger logger = new ClientLogger(MicrosoftElasticImpl.class);
+
+ /** The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). */
+ private final String subscriptionId;
+
+ /**
+ * Gets The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).
+ *
+ * @return the subscriptionId value.
+ */
+ public String getSubscriptionId() {
+ return this.subscriptionId;
+ }
+
+ /** server parameter. */
+ private final String endpoint;
+
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ public String getEndpoint() {
+ return this.endpoint;
+ }
+
+ /** Api Version. */
+ private final String apiVersion;
+
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ public String getApiVersion() {
+ return this.apiVersion;
+ }
+
+ /** The HTTP pipeline to send requests through. */
+ private final HttpPipeline httpPipeline;
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ public HttpPipeline getHttpPipeline() {
+ return this.httpPipeline;
+ }
+
+ /** The serializer to serialize an object into a string. */
+ private final SerializerAdapter serializerAdapter;
+
+ /**
+ * Gets The serializer to serialize an object into a string.
+ *
+ * @return the serializerAdapter value.
+ */
+ SerializerAdapter getSerializerAdapter() {
+ return this.serializerAdapter;
+ }
+
+ /** The default poll interval for long-running operation. */
+ private final Duration defaultPollInterval;
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ public Duration getDefaultPollInterval() {
+ return this.defaultPollInterval;
+ }
+
+ /** The OperationsClient object to access its operations. */
+ private final OperationsClient operations;
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ public OperationsClient getOperations() {
+ return this.operations;
+ }
+
+ /** The MonitorsClient object to access its operations. */
+ private final MonitorsClient monitors;
+
+ /**
+ * Gets the MonitorsClient object to access its operations.
+ *
+ * @return the MonitorsClient object.
+ */
+ public MonitorsClient getMonitors() {
+ return this.monitors;
+ }
+
+ /** The MonitoredResourcesClient object to access its operations. */
+ private final MonitoredResourcesClient monitoredResources;
+
+ /**
+ * Gets the MonitoredResourcesClient object to access its operations.
+ *
+ * @return the MonitoredResourcesClient object.
+ */
+ public MonitoredResourcesClient getMonitoredResources() {
+ return this.monitoredResources;
+ }
+
+ /** The DeploymentInfoesClient object to access its operations. */
+ private final DeploymentInfoesClient deploymentInfoes;
+
+ /**
+ * Gets the DeploymentInfoesClient object to access its operations.
+ *
+ * @return the DeploymentInfoesClient object.
+ */
+ public DeploymentInfoesClient getDeploymentInfoes() {
+ return this.deploymentInfoes;
+ }
+
+ /** The TagRulesClient object to access its operations. */
+ private final TagRulesClient tagRules;
+
+ /**
+ * Gets the TagRulesClient object to access its operations.
+ *
+ * @return the TagRulesClient object.
+ */
+ public TagRulesClient getTagRules() {
+ return this.tagRules;
+ }
+
+ /**
+ * Initializes an instance of MicrosoftElastic client.
+ *
+ * @param httpPipeline The HTTP pipeline to send requests through.
+ * @param serializerAdapter The serializer to serialize an object into a string.
+ * @param defaultPollInterval The default poll interval for long-running operation.
+ * @param environment The Azure environment.
+ * @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g.
+ * 00000000-0000-0000-0000-000000000000).
+ * @param endpoint server parameter.
+ */
+ MicrosoftElasticImpl(
+ HttpPipeline httpPipeline,
+ SerializerAdapter serializerAdapter,
+ Duration defaultPollInterval,
+ AzureEnvironment environment,
+ String subscriptionId,
+ String endpoint) {
+ this.httpPipeline = httpPipeline;
+ this.serializerAdapter = serializerAdapter;
+ this.defaultPollInterval = defaultPollInterval;
+ this.subscriptionId = subscriptionId;
+ this.endpoint = endpoint;
+ this.apiVersion = "2020-07-01-preview";
+ this.operations = new OperationsClientImpl(this);
+ this.monitors = new MonitorsClientImpl(this);
+ this.monitoredResources = new MonitoredResourcesClientImpl(this);
+ this.deploymentInfoes = new DeploymentInfoesClientImpl(this);
+ this.tagRules = new TagRulesClientImpl(this);
+ }
+
+ /**
+ * Gets default client context.
+ *
+ * @return the default client context.
+ */
+ public Context getContext() {
+ return Context.NONE;
+ }
+
+ /**
+ * Merges default client context with provided context.
+ *
+ * @param context the context to be merged with default client context.
+ * @return the merged context.
+ */
+ public Context mergeContext(Context context) {
+ for (Map.Entry