diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index c264809e6f64..6476033202f1 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -191,6 +191,7 @@ com.azure.resourcemanager:azure-resourcemanager-kusto;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-loganalytics;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-eventgrid;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-healthbot;1.0.0-beta.1;1.0.0-beta.1
+com.azure.resourcemanager:azure-resourcemanager-datadog;1.0.0-beta.1;1.0.0-beta.1
# Unreleased dependencies: Copy the entry from above, prepend "unreleased_" and remove the current
diff --git a/sdk/datadog/azure-resourcemanager-datadog/CHANGELOG.md b/sdk/datadog/azure-resourcemanager-datadog/CHANGELOG.md
new file mode 100644
index 000000000000..70f12f996f0e
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/CHANGELOG.md
@@ -0,0 +1,5 @@
+# Release History
+
+## 1.0.0-beta.1 (2021-01-08)
+
+- Azure Resource Manager MicrosoftDatadog client library for Java. This package contains Microsoft Azure SDK for MicrosoftDatadog Management SDK. Package tag package-2020-02-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
\ No newline at end of file
diff --git a/sdk/datadog/azure-resourcemanager-datadog/README.md b/sdk/datadog/azure-resourcemanager-datadog/README.md
new file mode 100644
index 000000000000..f343624985da
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/README.md
@@ -0,0 +1,83 @@
+# Azure Resource Manager MicrosoftDatadog client library for Java
+
+Azure Resource Manager MicrosoftDatadog client library for Java.
+
+This package contains Microsoft Azure SDK for MicrosoftDatadog Management SDK. Package tag package-2020-02-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+
+## 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-datadog;current})
+```xml
+
+ com.azure.resourcemanager
+ azure-resourcemanager-datadog
+ 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();
+MicrosoftDatadogManager manager = MicrosoftDatadogManager
+ .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
+
+
+[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/datadog/azure-resourcemanager-datadog/pom.xml b/sdk/datadog/azure-resourcemanager-datadog/pom.xml
new file mode 100644
index 000000000000..07f43c584759
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/pom.xml
@@ -0,0 +1,62 @@
+
+ 4.0.0
+
+ com.azure
+ azure-client-sdk-parent
+ 1.7.0
+ ../../parents/azure-client-sdk-parent
+
+
+ com.azure.resourcemanager
+ azure-resourcemanager-datadog
+ 1.0.0-beta.1
+ jar
+
+ Microsoft Azure SDK for MicrosoftDatadog Management
+ This package contains Microsoft Azure SDK for MicrosoftDatadog Management SDK. Package tag package-2020-02-preview. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt
+ 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-management
+ 1.0.0
+
+
+
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.8.5
+
+ true
+
+
+
+
+
diff --git a/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/MicrosoftDatadogManager.java b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/MicrosoftDatadogManager.java
new file mode 100644
index 000000000000..ed710945ad8b
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/MicrosoftDatadogManager.java
@@ -0,0 +1,309 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datadog;
+
+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.datadog.fluent.MicrosoftDatadogClient;
+import com.azure.resourcemanager.datadog.implementation.ApiKeysImpl;
+import com.azure.resourcemanager.datadog.implementation.HostsImpl;
+import com.azure.resourcemanager.datadog.implementation.LinkedResourcesImpl;
+import com.azure.resourcemanager.datadog.implementation.MarketplaceAgreementsImpl;
+import com.azure.resourcemanager.datadog.implementation.MicrosoftDatadogClientBuilder;
+import com.azure.resourcemanager.datadog.implementation.MonitoredResourcesImpl;
+import com.azure.resourcemanager.datadog.implementation.MonitorsImpl;
+import com.azure.resourcemanager.datadog.implementation.OperationsImpl;
+import com.azure.resourcemanager.datadog.implementation.RefreshSetPasswordsImpl;
+import com.azure.resourcemanager.datadog.implementation.SingleSignOnConfigurationsImpl;
+import com.azure.resourcemanager.datadog.implementation.TagRulesImpl;
+import com.azure.resourcemanager.datadog.models.ApiKeys;
+import com.azure.resourcemanager.datadog.models.Hosts;
+import com.azure.resourcemanager.datadog.models.LinkedResources;
+import com.azure.resourcemanager.datadog.models.MarketplaceAgreements;
+import com.azure.resourcemanager.datadog.models.MonitoredResources;
+import com.azure.resourcemanager.datadog.models.Monitors;
+import com.azure.resourcemanager.datadog.models.Operations;
+import com.azure.resourcemanager.datadog.models.RefreshSetPasswords;
+import com.azure.resourcemanager.datadog.models.SingleSignOnConfigurations;
+import com.azure.resourcemanager.datadog.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 MicrosoftDatadogManager. */
+public final class MicrosoftDatadogManager {
+ private MarketplaceAgreements marketplaceAgreements;
+
+ private ApiKeys apiKeys;
+
+ private Hosts hosts;
+
+ private LinkedResources linkedResources;
+
+ private MonitoredResources monitoredResources;
+
+ private Operations operations;
+
+ private Monitors monitors;
+
+ private RefreshSetPasswords refreshSetPasswords;
+
+ private TagRules tagRules;
+
+ private SingleSignOnConfigurations singleSignOnConfigurations;
+
+ private final MicrosoftDatadogClient clientObject;
+
+ private MicrosoftDatadogManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
+ Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ this.clientObject =
+ new MicrosoftDatadogClientBuilder()
+ .pipeline(httpPipeline)
+ .endpoint(profile.getEnvironment().getResourceManagerEndpoint())
+ .subscriptionId(profile.getSubscriptionId())
+ .defaultPollInterval(defaultPollInterval)
+ .buildClient();
+ }
+
+ /**
+ * Creates an instance of MicrosoftDatadog service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the MicrosoftDatadog service API instance.
+ */
+ public static MicrosoftDatadogManager 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 MicrosoftDatadogManager with optional configuration.
+ *
+ * @return the Configurable instance allowing configurations.
+ */
+ public static Configurable configure() {
+ return new MicrosoftDatadogManager.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 MicrosoftDatadog service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the MicrosoftDatadog service API instance.
+ */
+ public MicrosoftDatadogManager authenticate(TokenCredential credential, AzureProfile profile) {
+ Objects.requireNonNull(credential, "'credential' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+
+ if (retryPolicy == null) {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
+ List policies = new ArrayList<>();
+ policies
+ .add(
+ new UserAgentPolicy(
+ null,
+ "com.azure.resourcemanager.datadog",
+ "1.0.0-beta.1",
+ Configuration.getGlobalConfiguration()));
+ 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 MicrosoftDatadogManager(httpPipeline, profile, defaultPollInterval);
+ }
+ }
+
+ /** @return Resource collection API of MarketplaceAgreements. */
+ public MarketplaceAgreements marketplaceAgreements() {
+ if (this.marketplaceAgreements == null) {
+ this.marketplaceAgreements = new MarketplaceAgreementsImpl(clientObject.getMarketplaceAgreements(), this);
+ }
+ return marketplaceAgreements;
+ }
+
+ /** @return Resource collection API of ApiKeys. */
+ public ApiKeys apiKeys() {
+ if (this.apiKeys == null) {
+ this.apiKeys = new ApiKeysImpl(clientObject.getApiKeys(), this);
+ }
+ return apiKeys;
+ }
+
+ /** @return Resource collection API of Hosts. */
+ public Hosts hosts() {
+ if (this.hosts == null) {
+ this.hosts = new HostsImpl(clientObject.getHosts(), this);
+ }
+ return hosts;
+ }
+
+ /** @return Resource collection API of LinkedResources. */
+ public LinkedResources linkedResources() {
+ if (this.linkedResources == null) {
+ this.linkedResources = new LinkedResourcesImpl(clientObject.getLinkedResources(), this);
+ }
+ return linkedResources;
+ }
+
+ /** @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 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 RefreshSetPasswords. */
+ public RefreshSetPasswords refreshSetPasswords() {
+ if (this.refreshSetPasswords == null) {
+ this.refreshSetPasswords = new RefreshSetPasswordsImpl(clientObject.getRefreshSetPasswords(), this);
+ }
+ return refreshSetPasswords;
+ }
+
+ /** @return Resource collection API of TagRules. */
+ public TagRules tagRules() {
+ if (this.tagRules == null) {
+ this.tagRules = new TagRulesImpl(clientObject.getTagRules(), this);
+ }
+ return tagRules;
+ }
+
+ /** @return Resource collection API of SingleSignOnConfigurations. */
+ public SingleSignOnConfigurations singleSignOnConfigurations() {
+ if (this.singleSignOnConfigurations == null) {
+ this.singleSignOnConfigurations =
+ new SingleSignOnConfigurationsImpl(clientObject.getSingleSignOnConfigurations(), this);
+ }
+ return singleSignOnConfigurations;
+ }
+
+ /**
+ * @return Wrapped service client MicrosoftDatadogClient providing direct access to the underlying auto-generated
+ * API implementation, based on Azure REST API.
+ */
+ public MicrosoftDatadogClient serviceClient() {
+ return this.clientObject;
+ }
+}
diff --git a/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/ApiKeysClient.java b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/ApiKeysClient.java
new file mode 100644
index 000000000000..7db5ba4b103d
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/ApiKeysClient.java
@@ -0,0 +1,98 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datadog.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.util.Context;
+import com.azure.resourcemanager.datadog.fluent.models.DatadogApiKeyInner;
+
+/** An instance of this class provides access to all the operations defined in ApiKeysClient. */
+public interface ApiKeysClient {
+ /**
+ * List the api keys for a given monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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 api keys for a given monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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);
+
+ /**
+ * Get the default api key.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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 default api key.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DatadogApiKeyInner getDefaultKey(String resourceGroupName, String monitorName);
+
+ /**
+ * Get the default api key.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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 default api key.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getDefaultKeyWithResponse(
+ String resourceGroupName, String monitorName, Context context);
+
+ /**
+ * Set the default api key.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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 setDefaultKey(String resourceGroupName, String monitorName);
+
+ /**
+ * Set the default api key.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog resource belongs.
+ * @param monitorName Monitor resource name.
+ * @param body The body parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response setDefaultKeyWithResponse(
+ String resourceGroupName, String monitorName, DatadogApiKeyInner body, Context context);
+}
diff --git a/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/HostsClient.java b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/HostsClient.java
new file mode 100644
index 000000000000..f3f00bcfb630
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/HostsClient.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.datadog.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.datadog.fluent.models.DatadogHostInner;
+
+/** An instance of this class provides access to all the operations defined in HostsClient. */
+public interface HostsClient {
+ /**
+ * List the hosts for a given monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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 hosts for a given monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/LinkedResourcesClient.java b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/LinkedResourcesClient.java
new file mode 100644
index 000000000000..c5a6f14436c1
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/LinkedResourcesClient.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.datadog.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.datadog.fluent.models.LinkedResourceInner;
+
+/** An instance of this class provides access to all the operations defined in LinkedResourcesClient. */
+public interface LinkedResourcesClient {
+ /**
+ * List all Azure resources associated to the same Datadog organization as the target resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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 all Azure resources associated to the same Datadog organization as the target resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/MarketplaceAgreementsClient.java b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/MarketplaceAgreementsClient.java
new file mode 100644
index 000000000000..35ee9452ab41
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/MarketplaceAgreementsClient.java
@@ -0,0 +1,60 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datadog.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.util.Context;
+import com.azure.resourcemanager.datadog.fluent.models.DatadogAgreementResourceInner;
+
+/** An instance of this class provides access to all the operations defined in MarketplaceAgreementsClient. */
+public interface MarketplaceAgreementsClient {
+ /**
+ * List Datadog marketplace agreements in the 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 Datadog marketplace agreements in the 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);
+
+ /**
+ * Create Datadog marketplace agreement in the subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DatadogAgreementResourceInner create();
+
+ /**
+ * Create Datadog marketplace agreement in the subscription.
+ *
+ * @param body The body parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createWithResponse(DatadogAgreementResourceInner body, Context context);
+}
diff --git a/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/MicrosoftDatadogClient.java b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/MicrosoftDatadogClient.java
new file mode 100644
index 000000000000..6d2e0e110376
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/MicrosoftDatadogClient.java
@@ -0,0 +1,116 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datadog.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/** The interface for MicrosoftDatadogClient class. */
+public interface MicrosoftDatadogClient {
+ /**
+ * Gets The Microsoft Azure subscription ID.
+ *
+ * @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 MarketplaceAgreementsClient object to access its operations.
+ *
+ * @return the MarketplaceAgreementsClient object.
+ */
+ MarketplaceAgreementsClient getMarketplaceAgreements();
+
+ /**
+ * Gets the ApiKeysClient object to access its operations.
+ *
+ * @return the ApiKeysClient object.
+ */
+ ApiKeysClient getApiKeys();
+
+ /**
+ * Gets the HostsClient object to access its operations.
+ *
+ * @return the HostsClient object.
+ */
+ HostsClient getHosts();
+
+ /**
+ * Gets the LinkedResourcesClient object to access its operations.
+ *
+ * @return the LinkedResourcesClient object.
+ */
+ LinkedResourcesClient getLinkedResources();
+
+ /**
+ * Gets the MonitoredResourcesClient object to access its operations.
+ *
+ * @return the MonitoredResourcesClient object.
+ */
+ MonitoredResourcesClient getMonitoredResources();
+
+ /**
+ * 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 RefreshSetPasswordsClient object to access its operations.
+ *
+ * @return the RefreshSetPasswordsClient object.
+ */
+ RefreshSetPasswordsClient getRefreshSetPasswords();
+
+ /**
+ * Gets the TagRulesClient object to access its operations.
+ *
+ * @return the TagRulesClient object.
+ */
+ TagRulesClient getTagRules();
+
+ /**
+ * Gets the SingleSignOnConfigurationsClient object to access its operations.
+ *
+ * @return the SingleSignOnConfigurationsClient object.
+ */
+ SingleSignOnConfigurationsClient getSingleSignOnConfigurations();
+}
diff --git a/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/MonitoredResourcesClient.java b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/MonitoredResourcesClient.java
new file mode 100644
index 000000000000..d97a96572ea0
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/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.datadog.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.datadog.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 Datadog monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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 Datadog monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/MonitorsClient.java b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/MonitorsClient.java
new file mode 100644
index 000000000000..d480fcdce89e
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/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.datadog.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.datadog.fluent.models.DatadogMonitorResourceInner;
+import com.azure.resourcemanager.datadog.models.DatadogMonitorResourceUpdateParameters;
+
+/** 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 Datadog 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 Datadog 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 Datadog 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)
+ DatadogMonitorResourceInner getByResourceGroup(String resourceGroupName, String monitorName);
+
+ /**
+ * Get the properties of a specific monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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 Datadog resource belongs.
+ * @param monitorName Monitor resource name.
+ * @param body The body parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, DatadogMonitorResourceInner> beginCreate(
+ String resourceGroupName, String monitorName, DatadogMonitorResourceInner body);
+
+ /**
+ * Create a monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog resource belongs.
+ * @param monitorName Monitor resource name.
+ * @param body The body parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, DatadogMonitorResourceInner> beginCreate(
+ String resourceGroupName, String monitorName, DatadogMonitorResourceInner body, Context context);
+
+ /**
+ * Create a monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog resource belongs.
+ * @param monitorName Monitor resource name.
+ * @param body The body parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DatadogMonitorResourceInner create(String resourceGroupName, String monitorName, DatadogMonitorResourceInner body);
+
+ /**
+ * Create a monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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 response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DatadogMonitorResourceInner create(String resourceGroupName, String monitorName);
+
+ /**
+ * Create a monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog resource belongs.
+ * @param monitorName Monitor resource name.
+ * @param body The body parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DatadogMonitorResourceInner create(
+ String resourceGroupName, String monitorName, DatadogMonitorResourceInner body, Context context);
+
+ /**
+ * Update a monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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 response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DatadogMonitorResourceInner update(String resourceGroupName, String monitorName);
+
+ /**
+ * Update a monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog resource belongs.
+ * @param monitorName Monitor resource name.
+ * @param body The parameters for a PATCH request to a monitor resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName, String monitorName, DatadogMonitorResourceUpdateParameters body, Context context);
+
+ /**
+ * Delete a monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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 Datadog 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 Datadog 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 Datadog 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/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/OperationsClient.java b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/OperationsClient.java
new file mode 100644
index 000000000000..1e6286ea8093
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/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.datadog.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.datadog.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.Datadog for the 2020-02-01-preview api version.
+ *
+ * @throws com.azure.core.management.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.Datadog for the 2020-02-01-preview api version.
+ *
+ * @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/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/RefreshSetPasswordsClient.java b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/RefreshSetPasswordsClient.java
new file mode 100644
index 000000000000..c0001dbbcc47
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/RefreshSetPasswordsClient.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.datadog.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.datadog.fluent.models.DatadogSetPasswordLinkInner;
+
+/** An instance of this class provides access to all the operations defined in RefreshSetPasswordsClient. */
+public interface RefreshSetPasswordsClient {
+ /**
+ * Refresh the set password link and return a latest one.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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 response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DatadogSetPasswordLinkInner get(String resourceGroupName, String monitorName);
+
+ /**
+ * Refresh the set password link and return a latest one.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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 response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String monitorName, Context context);
+}
diff --git a/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/SingleSignOnConfigurationsClient.java b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/SingleSignOnConfigurationsClient.java
new file mode 100644
index 000000000000..49157b22cc87
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/SingleSignOnConfigurationsClient.java
@@ -0,0 +1,163 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datadog.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.datadog.fluent.models.DatadogSingleSignOnResourceInner;
+
+/** An instance of this class provides access to all the operations defined in SingleSignOnConfigurationsClient. */
+public interface SingleSignOnConfigurationsClient {
+ /**
+ * List the single sign-on configurations for a given monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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 single sign-on configurations for a given monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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);
+
+ /**
+ * Configures single-sign-on for this resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog resource belongs.
+ * @param monitorName Monitor resource name.
+ * @param configurationName Configuration name.
+ * @param body The body parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, DatadogSingleSignOnResourceInner> beginCreateOrUpdate(
+ String resourceGroupName, String monitorName, String configurationName, DatadogSingleSignOnResourceInner body);
+
+ /**
+ * Configures single-sign-on for this resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog resource belongs.
+ * @param monitorName Monitor resource name.
+ * @param configurationName Configuration name.
+ * @param body The body parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, DatadogSingleSignOnResourceInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String monitorName,
+ String configurationName,
+ DatadogSingleSignOnResourceInner body,
+ Context context);
+
+ /**
+ * Configures single-sign-on for this resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog resource belongs.
+ * @param monitorName Monitor resource name.
+ * @param configurationName Configuration name.
+ * @param body The body parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DatadogSingleSignOnResourceInner createOrUpdate(
+ String resourceGroupName, String monitorName, String configurationName, DatadogSingleSignOnResourceInner body);
+
+ /**
+ * Configures single-sign-on for this resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog resource belongs.
+ * @param monitorName Monitor resource name.
+ * @param configurationName Configuration 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 response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DatadogSingleSignOnResourceInner createOrUpdate(
+ String resourceGroupName, String monitorName, String configurationName);
+
+ /**
+ * Configures single-sign-on for this resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog resource belongs.
+ * @param monitorName Monitor resource name.
+ * @param configurationName Configuration name.
+ * @param body The body parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DatadogSingleSignOnResourceInner createOrUpdate(
+ String resourceGroupName,
+ String monitorName,
+ String configurationName,
+ DatadogSingleSignOnResourceInner body,
+ Context context);
+
+ /**
+ * Gets the datadog single sign-on resource for the given Monitor.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog resource belongs.
+ * @param monitorName Monitor resource name.
+ * @param configurationName Configuration 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 datadog single sign-on resource for the given Monitor.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DatadogSingleSignOnResourceInner get(String resourceGroupName, String monitorName, String configurationName);
+
+ /**
+ * Gets the datadog single sign-on resource for the given Monitor.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog resource belongs.
+ * @param monitorName Monitor resource name.
+ * @param configurationName Configuration 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 datadog single sign-on resource for the given Monitor.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String monitorName, String configurationName, Context context);
+}
diff --git a/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/TagRulesClient.java b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/TagRulesClient.java
new file mode 100644
index 000000000000..8fb32643f99e
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/TagRulesClient.java
@@ -0,0 +1,107 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datadog.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.util.Context;
+import com.azure.resourcemanager.datadog.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 Datadog 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 Datadog 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 Datadog resource belongs.
+ * @param monitorName Monitor resource name.
+ * @param ruleSetName Rule set 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 Datadog resource belongs.
+ * @param monitorName Monitor resource name.
+ * @param ruleSetName Rule set name.
+ * @param body Capture logs and metrics of Azure resources based on ARM tags.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return 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 Datadog resource belongs.
+ * @param monitorName Monitor resource name.
+ * @param ruleSetName Rule set 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 Datadog resource belongs.
+ * @param monitorName Monitor resource name.
+ * @param ruleSetName Rule set 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);
+}
diff --git a/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/models/DatadogAgreementResourceInner.java b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/models/DatadogAgreementResourceInner.java
new file mode 100644
index 000000000000..4eb5aefeb5c6
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/models/DatadogAgreementResourceInner.java
@@ -0,0 +1,55 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datadog.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.datadog.models.DatadogAgreementProperties;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The DatadogAgreementResource model. */
+@Fluent
+public final class DatadogAgreementResourceInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DatadogAgreementResourceInner.class);
+
+ /*
+ * Represents the properties of the resource.
+ */
+ @JsonProperty(value = "properties")
+ private DatadogAgreementProperties properties;
+
+ /**
+ * Get the properties property: Represents the properties of the resource.
+ *
+ * @return the properties value.
+ */
+ public DatadogAgreementProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Represents the properties of the resource.
+ *
+ * @param properties the properties value to set.
+ * @return the DatadogAgreementResourceInner object itself.
+ */
+ public DatadogAgreementResourceInner withProperties(DatadogAgreementProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
diff --git a/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/models/DatadogApiKeyInner.java b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/models/DatadogApiKeyInner.java
new file mode 100644
index 000000000000..be5bfea12dee
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/models/DatadogApiKeyInner.java
@@ -0,0 +1,133 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datadog.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The DatadogApiKey model. */
+@Fluent
+public final class DatadogApiKeyInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DatadogApiKeyInner.class);
+
+ /*
+ * The user that created the API key.
+ */
+ @JsonProperty(value = "createdBy")
+ private String createdBy;
+
+ /*
+ * The name of the API key.
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /*
+ * The value of the API key.
+ */
+ @JsonProperty(value = "key", required = true)
+ private String key;
+
+ /*
+ * The time of creation of the API key.
+ */
+ @JsonProperty(value = "created")
+ private String created;
+
+ /**
+ * Get the createdBy property: The user that created the API key.
+ *
+ * @return the createdBy value.
+ */
+ public String createdBy() {
+ return this.createdBy;
+ }
+
+ /**
+ * Set the createdBy property: The user that created the API key.
+ *
+ * @param createdBy the createdBy value to set.
+ * @return the DatadogApiKeyInner object itself.
+ */
+ public DatadogApiKeyInner withCreatedBy(String createdBy) {
+ this.createdBy = createdBy;
+ return this;
+ }
+
+ /**
+ * Get the name property: The name of the API key.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: The name of the API key.
+ *
+ * @param name the name value to set.
+ * @return the DatadogApiKeyInner object itself.
+ */
+ public DatadogApiKeyInner withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the key property: The value of the API key.
+ *
+ * @return the key value.
+ */
+ public String key() {
+ return this.key;
+ }
+
+ /**
+ * Set the key property: The value of the API key.
+ *
+ * @param key the key value to set.
+ * @return the DatadogApiKeyInner object itself.
+ */
+ public DatadogApiKeyInner withKey(String key) {
+ this.key = key;
+ return this;
+ }
+
+ /**
+ * Get the created property: The time of creation of the API key.
+ *
+ * @return the created value.
+ */
+ public String created() {
+ return this.created;
+ }
+
+ /**
+ * Set the created property: The time of creation of the API key.
+ *
+ * @param created the created value to set.
+ * @return the DatadogApiKeyInner object itself.
+ */
+ public DatadogApiKeyInner withCreated(String created) {
+ this.created = created;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (key() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property key in model DatadogApiKeyInner"));
+ }
+ }
+}
diff --git a/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/models/DatadogHostInner.java b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/models/DatadogHostInner.java
new file mode 100644
index 000000000000..4716b699cc4c
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/models/DatadogHostInner.java
@@ -0,0 +1,133 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datadog.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.datadog.models.DatadogHostMetadata;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** The DatadogHost model. */
+@Fluent
+public final class DatadogHostInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DatadogHostInner.class);
+
+ /*
+ * The name of the host.
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /*
+ * The aliases for the host.
+ */
+ @JsonProperty(value = "aliases")
+ private List aliases;
+
+ /*
+ * The Datadog integrations reporting metrics for the host.
+ */
+ @JsonProperty(value = "apps")
+ private List apps;
+
+ /*
+ * The meta property.
+ */
+ @JsonProperty(value = "meta")
+ private DatadogHostMetadata meta;
+
+ /**
+ * Get the name property: The name of the host.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: The name of the host.
+ *
+ * @param name the name value to set.
+ * @return the DatadogHostInner object itself.
+ */
+ public DatadogHostInner withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the aliases property: The aliases for the host.
+ *
+ * @return the aliases value.
+ */
+ public List aliases() {
+ return this.aliases;
+ }
+
+ /**
+ * Set the aliases property: The aliases for the host.
+ *
+ * @param aliases the aliases value to set.
+ * @return the DatadogHostInner object itself.
+ */
+ public DatadogHostInner withAliases(List aliases) {
+ this.aliases = aliases;
+ return this;
+ }
+
+ /**
+ * Get the apps property: The Datadog integrations reporting metrics for the host.
+ *
+ * @return the apps value.
+ */
+ public List apps() {
+ return this.apps;
+ }
+
+ /**
+ * Set the apps property: The Datadog integrations reporting metrics for the host.
+ *
+ * @param apps the apps value to set.
+ * @return the DatadogHostInner object itself.
+ */
+ public DatadogHostInner withApps(List apps) {
+ this.apps = apps;
+ return this;
+ }
+
+ /**
+ * Get the meta property: The meta property.
+ *
+ * @return the meta value.
+ */
+ public DatadogHostMetadata meta() {
+ return this.meta;
+ }
+
+ /**
+ * Set the meta property: The meta property.
+ *
+ * @param meta the meta value to set.
+ * @return the DatadogHostInner object itself.
+ */
+ public DatadogHostInner withMeta(DatadogHostMetadata meta) {
+ this.meta = meta;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (meta() != null) {
+ meta().validate();
+ }
+ }
+}
diff --git a/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/models/DatadogMonitorResourceInner.java b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/models/DatadogMonitorResourceInner.java
new file mode 100644
index 000000000000..b42b323a2cfb
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/models/DatadogMonitorResourceInner.java
@@ -0,0 +1,130 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datadog.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.datadog.models.IdentityProperties;
+import com.azure.resourcemanager.datadog.models.MonitorProperties;
+import com.azure.resourcemanager.datadog.models.ResourceSku;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** The DatadogMonitorResource model. */
+@Fluent
+public final class DatadogMonitorResourceInner extends Resource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DatadogMonitorResourceInner.class);
+
+ /*
+ * The sku property.
+ */
+ @JsonProperty(value = "sku")
+ private ResourceSku sku;
+
+ /*
+ * Properties specific to the monitor resource.
+ */
+ @JsonProperty(value = "properties")
+ private MonitorProperties properties;
+
+ /*
+ * The identity property.
+ */
+ @JsonProperty(value = "identity")
+ private IdentityProperties identity;
+
+ /**
+ * Get the sku property: The sku property.
+ *
+ * @return the sku value.
+ */
+ public ResourceSku sku() {
+ return this.sku;
+ }
+
+ /**
+ * Set the sku property: The sku property.
+ *
+ * @param sku the sku value to set.
+ * @return the DatadogMonitorResourceInner object itself.
+ */
+ public DatadogMonitorResourceInner withSku(ResourceSku sku) {
+ this.sku = sku;
+ return this;
+ }
+
+ /**
+ * Get the properties property: Properties specific to the monitor resource.
+ *
+ * @return the properties value.
+ */
+ public MonitorProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Properties specific to the monitor resource.
+ *
+ * @param properties the properties value to set.
+ * @return the DatadogMonitorResourceInner object itself.
+ */
+ public DatadogMonitorResourceInner withProperties(MonitorProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the identity property: The identity property.
+ *
+ * @return the identity value.
+ */
+ public IdentityProperties identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: The identity property.
+ *
+ * @param identity the identity value to set.
+ * @return the DatadogMonitorResourceInner object itself.
+ */
+ public DatadogMonitorResourceInner withIdentity(IdentityProperties identity) {
+ this.identity = identity;
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public DatadogMonitorResourceInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public DatadogMonitorResourceInner 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/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/models/DatadogSetPasswordLinkInner.java b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/models/DatadogSetPasswordLinkInner.java
new file mode 100644
index 000000000000..5118e4d80bae
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/models/DatadogSetPasswordLinkInner.java
@@ -0,0 +1,50 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datadog.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The DatadogSetPasswordLink model. */
+@Fluent
+public final class DatadogSetPasswordLinkInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DatadogSetPasswordLinkInner.class);
+
+ /*
+ * The setPasswordLink property.
+ */
+ @JsonProperty(value = "setPasswordLink")
+ private String setPasswordLink;
+
+ /**
+ * Get the setPasswordLink property: The setPasswordLink property.
+ *
+ * @return the setPasswordLink value.
+ */
+ public String setPasswordLink() {
+ return this.setPasswordLink;
+ }
+
+ /**
+ * Set the setPasswordLink property: The setPasswordLink property.
+ *
+ * @param setPasswordLink the setPasswordLink value to set.
+ * @return the DatadogSetPasswordLinkInner object itself.
+ */
+ public DatadogSetPasswordLinkInner withSetPasswordLink(String setPasswordLink) {
+ this.setPasswordLink = setPasswordLink;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/models/DatadogSingleSignOnResourceInner.java b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/models/DatadogSingleSignOnResourceInner.java
new file mode 100644
index 000000000000..a3a58bc00d2c
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/models/DatadogSingleSignOnResourceInner.java
@@ -0,0 +1,55 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datadog.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.datadog.models.DatadogSingleSignOnProperties;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The DatadogSingleSignOnResource model. */
+@Fluent
+public final class DatadogSingleSignOnResourceInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DatadogSingleSignOnResourceInner.class);
+
+ /*
+ * The properties property.
+ */
+ @JsonProperty(value = "properties")
+ private DatadogSingleSignOnProperties properties;
+
+ /**
+ * Get the properties property: The properties property.
+ *
+ * @return the properties value.
+ */
+ public DatadogSingleSignOnProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The properties property.
+ *
+ * @param properties the properties value to set.
+ * @return the DatadogSingleSignOnResourceInner object itself.
+ */
+ public DatadogSingleSignOnResourceInner withProperties(DatadogSingleSignOnProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
diff --git a/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/models/LinkedResourceInner.java b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/models/LinkedResourceInner.java
new file mode 100644
index 000000000000..ae48846edbcb
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/models/LinkedResourceInner.java
@@ -0,0 +1,50 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datadog.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The definition of a linked resource. */
+@Fluent
+public final class LinkedResourceInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(LinkedResourceInner.class);
+
+ /*
+ * The ARM id of the linked resource.
+ */
+ @JsonProperty(value = "id")
+ private String id;
+
+ /**
+ * Get the id property: The ARM id of the linked resource.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Set the id property: The ARM id of the linked resource.
+ *
+ * @param id the id value to set.
+ * @return the LinkedResourceInner object itself.
+ */
+ public LinkedResourceInner withId(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/models/MonitoredResourceInner.java b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/models/MonitoredResourceInner.java
new file mode 100644
index 000000000000..a1ba8aa1858d
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/models/MonitoredResourceInner.java
@@ -0,0 +1,157 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datadog.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The properties of a resource currently being monitored by the Datadog 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 if resource is sending metrics to Datadog.
+ */
+ @JsonProperty(value = "sendingMetrics")
+ private Boolean sendingMetrics;
+
+ /*
+ * Reason for why the resource is sending metrics (or why it is not
+ * sending).
+ */
+ @JsonProperty(value = "reasonForMetricsStatus")
+ private String reasonForMetricsStatus;
+
+ /*
+ * Flag indicating if resource is sending logs to Datadog.
+ */
+ @JsonProperty(value = "sendingLogs")
+ private Boolean 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 sendingMetrics property: Flag indicating if resource is sending metrics to Datadog.
+ *
+ * @return the sendingMetrics value.
+ */
+ public Boolean sendingMetrics() {
+ return this.sendingMetrics;
+ }
+
+ /**
+ * Set the sendingMetrics property: Flag indicating if resource is sending metrics to Datadog.
+ *
+ * @param sendingMetrics the sendingMetrics value to set.
+ * @return the MonitoredResourceInner object itself.
+ */
+ public MonitoredResourceInner withSendingMetrics(Boolean sendingMetrics) {
+ this.sendingMetrics = sendingMetrics;
+ return this;
+ }
+
+ /**
+ * Get the reasonForMetricsStatus property: Reason for why the resource is sending metrics (or why it is not
+ * sending).
+ *
+ * @return the reasonForMetricsStatus value.
+ */
+ public String reasonForMetricsStatus() {
+ return this.reasonForMetricsStatus;
+ }
+
+ /**
+ * Set the reasonForMetricsStatus property: Reason for why the resource is sending metrics (or why it is not
+ * sending).
+ *
+ * @param reasonForMetricsStatus the reasonForMetricsStatus value to set.
+ * @return the MonitoredResourceInner object itself.
+ */
+ public MonitoredResourceInner withReasonForMetricsStatus(String reasonForMetricsStatus) {
+ this.reasonForMetricsStatus = reasonForMetricsStatus;
+ return this;
+ }
+
+ /**
+ * Get the sendingLogs property: Flag indicating if resource is sending logs to Datadog.
+ *
+ * @return the sendingLogs value.
+ */
+ public Boolean sendingLogs() {
+ return this.sendingLogs;
+ }
+
+ /**
+ * Set the sendingLogs property: Flag indicating if resource is sending logs to Datadog.
+ *
+ * @param sendingLogs the sendingLogs value to set.
+ * @return the MonitoredResourceInner object itself.
+ */
+ public MonitoredResourceInner withSendingLogs(Boolean 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/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/models/MonitoringTagRulesInner.java b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/models/MonitoringTagRulesInner.java
new file mode 100644
index 000000000000..37974a644fef
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/models/MonitoringTagRulesInner.java
@@ -0,0 +1,55 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datadog.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.datadog.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);
+
+ /*
+ * Definition of the properties for a TagRules resource.
+ */
+ @JsonProperty(value = "properties")
+ private MonitoringTagRulesProperties properties;
+
+ /**
+ * Get the properties property: Definition of the properties for a TagRules resource.
+ *
+ * @return the properties value.
+ */
+ public MonitoringTagRulesProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Definition of the properties for a TagRules resource.
+ *
+ * @param properties the properties value to set.
+ * @return the MonitoringTagRulesInner object itself.
+ */
+ public MonitoringTagRulesInner withProperties(MonitoringTagRulesProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
diff --git a/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/models/OperationResultInner.java b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/models/OperationResultInner.java
new file mode 100644
index 000000000000..e6102965aeb4
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/models/OperationResultInner.java
@@ -0,0 +1,106 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datadog.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.datadog.models.OperationDisplay;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** A Microsoft.Datadog 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;
+
+ /*
+ * The object that represents the operation.
+ */
+ @JsonProperty(value = "display")
+ private OperationDisplay display;
+
+ /*
+ * Indicates whether the operation is a data action
+ */
+ @JsonProperty(value = "isDataAction")
+ private Boolean isDataAction;
+
+ /**
+ * 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 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 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;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (display() != null) {
+ display().validate();
+ }
+ }
+}
diff --git a/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/models/package-info.java b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/models/package-info.java
new file mode 100644
index 000000000000..c35ae039fb6d
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/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 MicrosoftDatadogClient. null. */
+package com.azure.resourcemanager.datadog.fluent.models;
diff --git a/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/package-info.java b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/fluent/package-info.java
new file mode 100644
index 000000000000..2dbed393cf6a
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/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 MicrosoftDatadogClient. null. */
+package com.azure.resourcemanager.datadog.fluent;
diff --git a/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/ApiKeysClientImpl.java b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/ApiKeysClientImpl.java
new file mode 100644
index 000000000000..81215e5de520
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/ApiKeysClientImpl.java
@@ -0,0 +1,686 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datadog.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.datadog.fluent.ApiKeysClient;
+import com.azure.resourcemanager.datadog.fluent.models.DatadogApiKeyInner;
+import com.azure.resourcemanager.datadog.models.DatadogApiKeyListResponse;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in ApiKeysClient. */
+public final class ApiKeysClientImpl implements ApiKeysClient {
+ private final ClientLogger logger = new ClientLogger(ApiKeysClientImpl.class);
+
+ /** The proxy service used to perform REST calls. */
+ private final ApiKeysService service;
+
+ /** The service client containing this operation class. */
+ private final MicrosoftDatadogClientImpl client;
+
+ /**
+ * Initializes an instance of ApiKeysClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ ApiKeysClientImpl(MicrosoftDatadogClientImpl client) {
+ this.service = RestProxy.create(ApiKeysService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for MicrosoftDatadogClientApiKeys to be used by the proxy service to
+ * perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "MicrosoftDatadogClie")
+ private interface ApiKeysService {
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors"
+ + "/{monitorName}/listApiKeys")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("monitorName") String monitorName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors"
+ + "/{monitorName}/getDefaultKey")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getDefaultKey(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("monitorName") String monitorName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors"
+ + "/{monitorName}/setDefaultKey")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> setDefaultKey(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("monitorName") String monitorName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") DatadogApiKeyInner body,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * List the api keys for a given monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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 response of a list operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(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.getSubscriptionId(),
+ resourceGroupName,
+ monitorName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * List the api keys for a given monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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 response of a list operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ 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.getSubscriptionId(),
+ resourceGroupName,
+ monitorName,
+ this.client.getApiVersion(),
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * List the api keys for a given monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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 response of a list operation.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName, String monitorName) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, monitorName), nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List the api keys for a given monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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 response of a list operation.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName, String monitorName, Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, monitorName, context),
+ nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List the api keys for a given monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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 response of a list operation.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String monitorName) {
+ return new PagedIterable<>(listAsync(resourceGroupName, monitorName));
+ }
+
+ /**
+ * List the api keys for a given monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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 response of a list operation.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String monitorName, Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, monitorName, context));
+ }
+
+ /**
+ * Get the default api key.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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 default api key.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getDefaultKeyWithResponseAsync(
+ 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
+ .getDefaultKey(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ monitorName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Get the default api key.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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 default api key.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getDefaultKeyWithResponseAsync(
+ 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
+ .getDefaultKey(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ monitorName,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Get the default api key.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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 default api key.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getDefaultKeyAsync(String resourceGroupName, String monitorName) {
+ return getDefaultKeyWithResponseAsync(resourceGroupName, monitorName)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Get the default api key.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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 default api key.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DatadogApiKeyInner getDefaultKey(String resourceGroupName, String monitorName) {
+ return getDefaultKeyAsync(resourceGroupName, monitorName).block();
+ }
+
+ /**
+ * Get the default api key.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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 default api key.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getDefaultKeyWithResponse(
+ String resourceGroupName, String monitorName, Context context) {
+ return getDefaultKeyWithResponseAsync(resourceGroupName, monitorName, context).block();
+ }
+
+ /**
+ * Set the default api key.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog resource belongs.
+ * @param monitorName Monitor resource name.
+ * @param body The body parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> setDefaultKeyWithResponseAsync(
+ String resourceGroupName, String monitorName, DatadogApiKeyInner body) {
+ 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."));
+ }
+ if (body != null) {
+ body.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .setDefaultKey(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ monitorName,
+ this.client.getApiVersion(),
+ body,
+ accept,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Set the default api key.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog resource belongs.
+ * @param monitorName Monitor resource name.
+ * @param body The body parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> setDefaultKeyWithResponseAsync(
+ String resourceGroupName, String monitorName, DatadogApiKeyInner body, 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."));
+ }
+ if (body != null) {
+ body.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .setDefaultKey(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ monitorName,
+ this.client.getApiVersion(),
+ body,
+ accept,
+ context);
+ }
+
+ /**
+ * Set the default api key.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog resource belongs.
+ * @param monitorName Monitor resource name.
+ * @param body The body parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono setDefaultKeyAsync(String resourceGroupName, String monitorName, DatadogApiKeyInner body) {
+ return setDefaultKeyWithResponseAsync(resourceGroupName, monitorName, body)
+ .flatMap((Response res) -> Mono.empty());
+ }
+
+ /**
+ * Set the default api key.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono setDefaultKeyAsync(String resourceGroupName, String monitorName) {
+ final DatadogApiKeyInner body = null;
+ return setDefaultKeyWithResponseAsync(resourceGroupName, monitorName, body)
+ .flatMap((Response res) -> Mono.empty());
+ }
+
+ /**
+ * Set the default api key.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void setDefaultKey(String resourceGroupName, String monitorName) {
+ final DatadogApiKeyInner body = null;
+ setDefaultKeyAsync(resourceGroupName, monitorName, body).block();
+ }
+
+ /**
+ * Set the default api key.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog resource belongs.
+ * @param monitorName Monitor resource name.
+ * @param body The body parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response setDefaultKeyWithResponse(
+ String resourceGroupName, String monitorName, DatadogApiKeyInner body, Context context) {
+ return setDefaultKeyWithResponseAsync(resourceGroupName, monitorName, body, context).block();
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return response of a list operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return response of a list operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/ApiKeysImpl.java b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/ApiKeysImpl.java
new file mode 100644
index 000000000000..f0db23db00ab
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/ApiKeysImpl.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.datadog.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+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.datadog.MicrosoftDatadogManager;
+import com.azure.resourcemanager.datadog.fluent.ApiKeysClient;
+import com.azure.resourcemanager.datadog.fluent.models.DatadogApiKeyInner;
+import com.azure.resourcemanager.datadog.models.ApiKeys;
+import com.azure.resourcemanager.datadog.models.DatadogApiKey;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+
+public final class ApiKeysImpl implements ApiKeys {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ApiKeysImpl.class);
+
+ private final ApiKeysClient innerClient;
+
+ private final MicrosoftDatadogManager serviceManager;
+
+ public ApiKeysImpl(ApiKeysClient innerClient, MicrosoftDatadogManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable list(String resourceGroupName, String monitorName) {
+ PagedIterable inner = this.serviceClient().list(resourceGroupName, monitorName);
+ return inner.mapPage(inner1 -> new DatadogApiKeyImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(String resourceGroupName, String monitorName, Context context) {
+ PagedIterable inner = this.serviceClient().list(resourceGroupName, monitorName, context);
+ return inner.mapPage(inner1 -> new DatadogApiKeyImpl(inner1, this.manager()));
+ }
+
+ public DatadogApiKey getDefaultKey(String resourceGroupName, String monitorName) {
+ DatadogApiKeyInner inner = this.serviceClient().getDefaultKey(resourceGroupName, monitorName);
+ if (inner != null) {
+ return new DatadogApiKeyImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response getDefaultKeyWithResponse(
+ String resourceGroupName, String monitorName, Context context) {
+ Response inner =
+ this.serviceClient().getDefaultKeyWithResponse(resourceGroupName, monitorName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new DatadogApiKeyImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public void setDefaultKey(String resourceGroupName, String monitorName) {
+ this.serviceClient().setDefaultKey(resourceGroupName, monitorName);
+ }
+
+ public Response setDefaultKeyWithResponse(
+ String resourceGroupName, String monitorName, DatadogApiKeyInner body, Context context) {
+ return this.serviceClient().setDefaultKeyWithResponse(resourceGroupName, monitorName, body, context);
+ }
+
+ private ApiKeysClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private MicrosoftDatadogManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/DatadogAgreementResourceImpl.java b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/DatadogAgreementResourceImpl.java
new file mode 100644
index 000000000000..faabad8af840
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/DatadogAgreementResourceImpl.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.datadog.implementation;
+
+import com.azure.resourcemanager.datadog.MicrosoftDatadogManager;
+import com.azure.resourcemanager.datadog.fluent.models.DatadogAgreementResourceInner;
+import com.azure.resourcemanager.datadog.models.DatadogAgreementProperties;
+import com.azure.resourcemanager.datadog.models.DatadogAgreementResource;
+
+public final class DatadogAgreementResourceImpl implements DatadogAgreementResource {
+ private DatadogAgreementResourceInner innerObject;
+
+ private final MicrosoftDatadogManager serviceManager;
+
+ DatadogAgreementResourceImpl(DatadogAgreementResourceInner innerObject, MicrosoftDatadogManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public DatadogAgreementProperties properties() {
+ return this.innerModel().properties();
+ }
+
+ public DatadogAgreementResourceInner innerModel() {
+ return this.innerObject;
+ }
+
+ private MicrosoftDatadogManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/DatadogApiKeyImpl.java b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/DatadogApiKeyImpl.java
new file mode 100644
index 000000000000..5e1ddbe27355
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/DatadogApiKeyImpl.java
@@ -0,0 +1,44 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datadog.implementation;
+
+import com.azure.resourcemanager.datadog.MicrosoftDatadogManager;
+import com.azure.resourcemanager.datadog.fluent.models.DatadogApiKeyInner;
+import com.azure.resourcemanager.datadog.models.DatadogApiKey;
+
+public final class DatadogApiKeyImpl implements DatadogApiKey {
+ private DatadogApiKeyInner innerObject;
+
+ private final MicrosoftDatadogManager serviceManager;
+
+ DatadogApiKeyImpl(DatadogApiKeyInner innerObject, MicrosoftDatadogManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String createdBy() {
+ return this.innerModel().createdBy();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String key() {
+ return this.innerModel().key();
+ }
+
+ public String created() {
+ return this.innerModel().created();
+ }
+
+ public DatadogApiKeyInner innerModel() {
+ return this.innerObject;
+ }
+
+ private MicrosoftDatadogManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/DatadogHostImpl.java b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/DatadogHostImpl.java
new file mode 100644
index 000000000000..303884151dd2
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/DatadogHostImpl.java
@@ -0,0 +1,57 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datadog.implementation;
+
+import com.azure.resourcemanager.datadog.MicrosoftDatadogManager;
+import com.azure.resourcemanager.datadog.fluent.models.DatadogHostInner;
+import com.azure.resourcemanager.datadog.models.DatadogHost;
+import com.azure.resourcemanager.datadog.models.DatadogHostMetadata;
+import java.util.Collections;
+import java.util.List;
+
+public final class DatadogHostImpl implements DatadogHost {
+ private DatadogHostInner innerObject;
+
+ private final MicrosoftDatadogManager serviceManager;
+
+ DatadogHostImpl(DatadogHostInner innerObject, MicrosoftDatadogManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public List aliases() {
+ List inner = this.innerModel().aliases();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public List apps() {
+ List inner = this.innerModel().apps();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public DatadogHostMetadata meta() {
+ return this.innerModel().meta();
+ }
+
+ public DatadogHostInner innerModel() {
+ return this.innerObject;
+ }
+
+ private MicrosoftDatadogManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/DatadogMonitorResourceImpl.java b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/DatadogMonitorResourceImpl.java
new file mode 100644
index 000000000000..da15d3481dc7
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/DatadogMonitorResourceImpl.java
@@ -0,0 +1,209 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datadog.implementation;
+
+import com.azure.core.management.Region;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.datadog.MicrosoftDatadogManager;
+import com.azure.resourcemanager.datadog.fluent.models.DatadogMonitorResourceInner;
+import com.azure.resourcemanager.datadog.models.DatadogMonitorResource;
+import com.azure.resourcemanager.datadog.models.DatadogMonitorResourceUpdateParameters;
+import com.azure.resourcemanager.datadog.models.IdentityProperties;
+import com.azure.resourcemanager.datadog.models.MonitorProperties;
+import com.azure.resourcemanager.datadog.models.MonitorUpdateProperties;
+import com.azure.resourcemanager.datadog.models.ResourceSku;
+import java.util.Collections;
+import java.util.Map;
+
+public final class DatadogMonitorResourceImpl
+ implements DatadogMonitorResource, DatadogMonitorResource.Definition, DatadogMonitorResource.Update {
+ private DatadogMonitorResourceInner innerObject;
+
+ private final MicrosoftDatadogManager 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 Region region() {
+ return Region.fromName(this.regionName());
+ }
+
+ public String regionName() {
+ return this.location();
+ }
+
+ public DatadogMonitorResourceInner innerModel() {
+ return this.innerObject;
+ }
+
+ private MicrosoftDatadogManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String monitorName;
+
+ private DatadogMonitorResourceUpdateParameters updateBody;
+
+ public DatadogMonitorResourceImpl withExistingResourceGroup(String resourceGroupName) {
+ this.resourceGroupName = resourceGroupName;
+ return this;
+ }
+
+ public DatadogMonitorResource create() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getMonitors()
+ .create(resourceGroupName, monitorName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public DatadogMonitorResource create(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getMonitors()
+ .create(resourceGroupName, monitorName, this.innerModel(), context);
+ return this;
+ }
+
+ DatadogMonitorResourceImpl(String name, MicrosoftDatadogManager serviceManager) {
+ this.innerObject = new DatadogMonitorResourceInner();
+ this.serviceManager = serviceManager;
+ this.monitorName = name;
+ }
+
+ public DatadogMonitorResourceImpl update() {
+ this.updateBody = new DatadogMonitorResourceUpdateParameters();
+ return this;
+ }
+
+ public DatadogMonitorResource apply() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getMonitors()
+ .updateWithResponse(resourceGroupName, monitorName, updateBody, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public DatadogMonitorResource apply(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getMonitors()
+ .updateWithResponse(resourceGroupName, monitorName, updateBody, context)
+ .getValue();
+ return this;
+ }
+
+ DatadogMonitorResourceImpl(DatadogMonitorResourceInner innerObject, MicrosoftDatadogManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.monitorName = Utils.getValueFromIdByName(innerObject.id(), "monitors");
+ }
+
+ public DatadogMonitorResource refresh() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getMonitors()
+ .getByResourceGroupWithResponse(resourceGroupName, monitorName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public DatadogMonitorResource refresh(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getMonitors()
+ .getByResourceGroupWithResponse(resourceGroupName, monitorName, context)
+ .getValue();
+ return this;
+ }
+
+ public DatadogMonitorResourceImpl withRegion(Region location) {
+ this.innerModel().withLocation(location.toString());
+ return this;
+ }
+
+ public DatadogMonitorResourceImpl withRegion(String location) {
+ this.innerModel().withLocation(location);
+ return this;
+ }
+
+ public DatadogMonitorResourceImpl withTags(Map tags) {
+ if (isInCreateMode()) {
+ this.innerModel().withTags(tags);
+ return this;
+ } else {
+ this.updateBody.withTags(tags);
+ return this;
+ }
+ }
+
+ public DatadogMonitorResourceImpl withSku(ResourceSku sku) {
+ this.innerModel().withSku(sku);
+ return this;
+ }
+
+ public DatadogMonitorResourceImpl withProperties(MonitorProperties properties) {
+ this.innerModel().withProperties(properties);
+ return this;
+ }
+
+ public DatadogMonitorResourceImpl withIdentity(IdentityProperties identity) {
+ this.innerModel().withIdentity(identity);
+ return this;
+ }
+
+ public DatadogMonitorResourceImpl withProperties(MonitorUpdateProperties properties) {
+ this.updateBody.withProperties(properties);
+ return this;
+ }
+
+ private boolean isInCreateMode() {
+ return this.innerModel().id() == null;
+ }
+}
diff --git a/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/DatadogSetPasswordLinkImpl.java b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/DatadogSetPasswordLinkImpl.java
new file mode 100644
index 000000000000..f4c2a46ce296
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/DatadogSetPasswordLinkImpl.java
@@ -0,0 +1,32 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datadog.implementation;
+
+import com.azure.resourcemanager.datadog.MicrosoftDatadogManager;
+import com.azure.resourcemanager.datadog.fluent.models.DatadogSetPasswordLinkInner;
+import com.azure.resourcemanager.datadog.models.DatadogSetPasswordLink;
+
+public final class DatadogSetPasswordLinkImpl implements DatadogSetPasswordLink {
+ private DatadogSetPasswordLinkInner innerObject;
+
+ private final MicrosoftDatadogManager serviceManager;
+
+ DatadogSetPasswordLinkImpl(DatadogSetPasswordLinkInner innerObject, MicrosoftDatadogManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String setPasswordLink() {
+ return this.innerModel().setPasswordLink();
+ }
+
+ public DatadogSetPasswordLinkInner innerModel() {
+ return this.innerObject;
+ }
+
+ private MicrosoftDatadogManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/DatadogSingleSignOnResourceImpl.java b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/DatadogSingleSignOnResourceImpl.java
new file mode 100644
index 000000000000..66621eff203f
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/DatadogSingleSignOnResourceImpl.java
@@ -0,0 +1,134 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datadog.implementation;
+
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.datadog.MicrosoftDatadogManager;
+import com.azure.resourcemanager.datadog.fluent.models.DatadogSingleSignOnResourceInner;
+import com.azure.resourcemanager.datadog.models.DatadogSingleSignOnProperties;
+import com.azure.resourcemanager.datadog.models.DatadogSingleSignOnResource;
+
+public final class DatadogSingleSignOnResourceImpl
+ implements DatadogSingleSignOnResource, DatadogSingleSignOnResource.Definition, DatadogSingleSignOnResource.Update {
+ private DatadogSingleSignOnResourceInner innerObject;
+
+ private final MicrosoftDatadogManager serviceManager;
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public DatadogSingleSignOnProperties properties() {
+ return this.innerModel().properties();
+ }
+
+ public DatadogSingleSignOnResourceInner innerModel() {
+ return this.innerObject;
+ }
+
+ private MicrosoftDatadogManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String monitorName;
+
+ private String configurationName;
+
+ public DatadogSingleSignOnResourceImpl withExistingMonitor(String resourceGroupName, String monitorName) {
+ this.resourceGroupName = resourceGroupName;
+ this.monitorName = monitorName;
+ return this;
+ }
+
+ public DatadogSingleSignOnResource create() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getSingleSignOnConfigurations()
+ .createOrUpdate(resourceGroupName, monitorName, configurationName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public DatadogSingleSignOnResource create(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getSingleSignOnConfigurations()
+ .createOrUpdate(resourceGroupName, monitorName, configurationName, this.innerModel(), context);
+ return this;
+ }
+
+ DatadogSingleSignOnResourceImpl(String name, MicrosoftDatadogManager serviceManager) {
+ this.innerObject = new DatadogSingleSignOnResourceInner();
+ this.serviceManager = serviceManager;
+ this.configurationName = name;
+ }
+
+ public DatadogSingleSignOnResourceImpl update() {
+ return this;
+ }
+
+ public DatadogSingleSignOnResource apply() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getSingleSignOnConfigurations()
+ .createOrUpdate(resourceGroupName, monitorName, configurationName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public DatadogSingleSignOnResource apply(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getSingleSignOnConfigurations()
+ .createOrUpdate(resourceGroupName, monitorName, configurationName, this.innerModel(), context);
+ return this;
+ }
+
+ DatadogSingleSignOnResourceImpl(
+ DatadogSingleSignOnResourceInner innerObject, MicrosoftDatadogManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.monitorName = Utils.getValueFromIdByName(innerObject.id(), "monitors");
+ this.configurationName = Utils.getValueFromIdByName(innerObject.id(), "singleSignOnConfigurations");
+ }
+
+ public DatadogSingleSignOnResource refresh() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getSingleSignOnConfigurations()
+ .getWithResponse(resourceGroupName, monitorName, configurationName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public DatadogSingleSignOnResource refresh(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getSingleSignOnConfigurations()
+ .getWithResponse(resourceGroupName, monitorName, configurationName, context)
+ .getValue();
+ return this;
+ }
+
+ public DatadogSingleSignOnResourceImpl withProperties(DatadogSingleSignOnProperties properties) {
+ this.innerModel().withProperties(properties);
+ return this;
+ }
+}
diff --git a/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/HostsClientImpl.java b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/HostsClientImpl.java
new file mode 100644
index 000000000000..2cf89bfb13f8
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/HostsClientImpl.java
@@ -0,0 +1,334 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datadog.implementation;
+
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.datadog.fluent.HostsClient;
+import com.azure.resourcemanager.datadog.fluent.models.DatadogHostInner;
+import com.azure.resourcemanager.datadog.models.DatadogHostListResponse;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in HostsClient. */
+public final class HostsClientImpl implements HostsClient {
+ private final ClientLogger logger = new ClientLogger(HostsClientImpl.class);
+
+ /** The proxy service used to perform REST calls. */
+ private final HostsService service;
+
+ /** The service client containing this operation class. */
+ private final MicrosoftDatadogClientImpl client;
+
+ /**
+ * Initializes an instance of HostsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ HostsClientImpl(MicrosoftDatadogClientImpl client) {
+ this.service = RestProxy.create(HostsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for MicrosoftDatadogClientHosts to be used by the proxy service to
+ * perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "MicrosoftDatadogClie")
+ private interface HostsService {
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors"
+ + "/{monitorName}/listHosts")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("monitorName") String monitorName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * List the hosts for a given monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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 response of a list operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(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.getSubscriptionId(),
+ resourceGroupName,
+ monitorName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * List the hosts for a given monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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 response of a list operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ 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.getSubscriptionId(),
+ resourceGroupName,
+ monitorName,
+ this.client.getApiVersion(),
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * List the hosts for a given monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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 response of a list operation.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName, String monitorName) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, monitorName), nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List the hosts for a given monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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 response of a list operation.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName, String monitorName, Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, monitorName, context),
+ nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List the hosts for a given monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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 response of a list operation.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String monitorName) {
+ return new PagedIterable<>(listAsync(resourceGroupName, monitorName));
+ }
+
+ /**
+ * List the hosts for a given monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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 response of a list operation.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String monitorName, Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, monitorName, context));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return response of a list operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return response of a list operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/HostsImpl.java b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/HostsImpl.java
new file mode 100644
index 000000000000..c1fdb59cbeb9
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/HostsImpl.java
@@ -0,0 +1,46 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datadog.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.datadog.MicrosoftDatadogManager;
+import com.azure.resourcemanager.datadog.fluent.HostsClient;
+import com.azure.resourcemanager.datadog.fluent.models.DatadogHostInner;
+import com.azure.resourcemanager.datadog.models.DatadogHost;
+import com.azure.resourcemanager.datadog.models.Hosts;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+
+public final class HostsImpl implements Hosts {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(HostsImpl.class);
+
+ private final HostsClient innerClient;
+
+ private final MicrosoftDatadogManager serviceManager;
+
+ public HostsImpl(HostsClient innerClient, MicrosoftDatadogManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable list(String resourceGroupName, String monitorName) {
+ PagedIterable inner = this.serviceClient().list(resourceGroupName, monitorName);
+ return inner.mapPage(inner1 -> new DatadogHostImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(String resourceGroupName, String monitorName, Context context) {
+ PagedIterable inner = this.serviceClient().list(resourceGroupName, monitorName, context);
+ return inner.mapPage(inner1 -> new DatadogHostImpl(inner1, this.manager()));
+ }
+
+ private HostsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private MicrosoftDatadogManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/LinkedResourceImpl.java b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/LinkedResourceImpl.java
new file mode 100644
index 000000000000..c34f2325ba35
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/LinkedResourceImpl.java
@@ -0,0 +1,32 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datadog.implementation;
+
+import com.azure.resourcemanager.datadog.MicrosoftDatadogManager;
+import com.azure.resourcemanager.datadog.fluent.models.LinkedResourceInner;
+import com.azure.resourcemanager.datadog.models.LinkedResource;
+
+public final class LinkedResourceImpl implements LinkedResource {
+ private LinkedResourceInner innerObject;
+
+ private final MicrosoftDatadogManager serviceManager;
+
+ LinkedResourceImpl(LinkedResourceInner innerObject, MicrosoftDatadogManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public LinkedResourceInner innerModel() {
+ return this.innerObject;
+ }
+
+ private MicrosoftDatadogManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/LinkedResourcesClientImpl.java b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/LinkedResourcesClientImpl.java
new file mode 100644
index 000000000000..b5f9a6997371
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/LinkedResourcesClientImpl.java
@@ -0,0 +1,335 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datadog.implementation;
+
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.datadog.fluent.LinkedResourcesClient;
+import com.azure.resourcemanager.datadog.fluent.models.LinkedResourceInner;
+import com.azure.resourcemanager.datadog.models.LinkedResourceListResponse;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in LinkedResourcesClient. */
+public final class LinkedResourcesClientImpl implements LinkedResourcesClient {
+ private final ClientLogger logger = new ClientLogger(LinkedResourcesClientImpl.class);
+
+ /** The proxy service used to perform REST calls. */
+ private final LinkedResourcesService service;
+
+ /** The service client containing this operation class. */
+ private final MicrosoftDatadogClientImpl client;
+
+ /**
+ * Initializes an instance of LinkedResourcesClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ LinkedResourcesClientImpl(MicrosoftDatadogClientImpl client) {
+ this.service =
+ RestProxy.create(LinkedResourcesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for MicrosoftDatadogClientLinkedResources to be used by the proxy service
+ * to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "MicrosoftDatadogClie")
+ private interface LinkedResourcesService {
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors"
+ + "/{monitorName}/listLinkedResources")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("monitorName") String monitorName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * List all Azure resources associated to the same Datadog organization as the target resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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 response of a list operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(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.getSubscriptionId(),
+ resourceGroupName,
+ monitorName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * List all Azure resources associated to the same Datadog organization as the target resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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 response of a list operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ 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.getSubscriptionId(),
+ resourceGroupName,
+ monitorName,
+ this.client.getApiVersion(),
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * List all Azure resources associated to the same Datadog organization as the target resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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 response of a list operation.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName, String monitorName) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, monitorName), nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List all Azure resources associated to the same Datadog organization as the target resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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 response of a list operation.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName, String monitorName, Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, monitorName, context),
+ nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List all Azure resources associated to the same Datadog organization as the target resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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 response of a list operation.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String monitorName) {
+ return new PagedIterable<>(listAsync(resourceGroupName, monitorName));
+ }
+
+ /**
+ * List all Azure resources associated to the same Datadog organization as the target resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the Datadog 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 response of a list operation.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String monitorName, Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, monitorName, context));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return response of a list operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return response of a list operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/LinkedResourcesImpl.java b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/LinkedResourcesImpl.java
new file mode 100644
index 000000000000..f4ad82283491
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/LinkedResourcesImpl.java
@@ -0,0 +1,46 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datadog.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.datadog.MicrosoftDatadogManager;
+import com.azure.resourcemanager.datadog.fluent.LinkedResourcesClient;
+import com.azure.resourcemanager.datadog.fluent.models.LinkedResourceInner;
+import com.azure.resourcemanager.datadog.models.LinkedResource;
+import com.azure.resourcemanager.datadog.models.LinkedResources;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+
+public final class LinkedResourcesImpl implements LinkedResources {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(LinkedResourcesImpl.class);
+
+ private final LinkedResourcesClient innerClient;
+
+ private final MicrosoftDatadogManager serviceManager;
+
+ public LinkedResourcesImpl(LinkedResourcesClient innerClient, MicrosoftDatadogManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable list(String resourceGroupName, String monitorName) {
+ PagedIterable inner = this.serviceClient().list(resourceGroupName, monitorName);
+ return inner.mapPage(inner1 -> new LinkedResourceImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(String resourceGroupName, String monitorName, Context context) {
+ PagedIterable inner = this.serviceClient().list(resourceGroupName, monitorName, context);
+ return inner.mapPage(inner1 -> new LinkedResourceImpl(inner1, this.manager()));
+ }
+
+ private LinkedResourcesClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private MicrosoftDatadogManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/MarketplaceAgreementsClientImpl.java b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/MarketplaceAgreementsClientImpl.java
new file mode 100644
index 000000000000..542a00f564e3
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/MarketplaceAgreementsClientImpl.java
@@ -0,0 +1,463 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datadog.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.datadog.fluent.MarketplaceAgreementsClient;
+import com.azure.resourcemanager.datadog.fluent.models.DatadogAgreementResourceInner;
+import com.azure.resourcemanager.datadog.models.DatadogAgreementResourceListResponse;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in MarketplaceAgreementsClient. */
+public final class MarketplaceAgreementsClientImpl implements MarketplaceAgreementsClient {
+ private final ClientLogger logger = new ClientLogger(MarketplaceAgreementsClientImpl.class);
+
+ /** The proxy service used to perform REST calls. */
+ private final MarketplaceAgreementsService service;
+
+ /** The service client containing this operation class. */
+ private final MicrosoftDatadogClientImpl client;
+
+ /**
+ * Initializes an instance of MarketplaceAgreementsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ MarketplaceAgreementsClientImpl(MicrosoftDatadogClientImpl client) {
+ this.service =
+ RestProxy
+ .create(MarketplaceAgreementsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for MicrosoftDatadogClientMarketplaceAgreements to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "MicrosoftDatadogClie")
+ private interface MarketplaceAgreementsService {
+ @Headers({"Content-Type: application/json"})
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/agreements")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Put("/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/agreements/default")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> create(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") DatadogAgreementResourceInner body,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * List Datadog marketplace agreements in the subscription.
+ *
+ * @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 response of a list operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync() {
+ 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."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * List Datadog marketplace agreements in the subscription.
+ *
+ * @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 response of a list operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(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."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ this.client.getApiVersion(),
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * List Datadog marketplace agreements in the subscription.
+ *
+ * @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 response of a list operation.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync() {
+ return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List Datadog marketplace agreements in the subscription.
+ *
+ * @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 response of a list operation.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(context), nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List Datadog marketplace agreements in the subscription.
+ *
+ * @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 response of a list operation.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list() {
+ return new PagedIterable<>(listAsync());
+ }
+
+ /**
+ * List Datadog marketplace agreements in the subscription.
+ *
+ * @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 response of a list operation.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(Context context) {
+ return new PagedIterable<>(listAsync(context));
+ }
+
+ /**
+ * Create Datadog marketplace agreement in the subscription.
+ *
+ * @param body The body parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> createWithResponseAsync(DatadogAgreementResourceInner body) {
+ 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 (body != null) {
+ body.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .create(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ this.client.getApiVersion(),
+ body,
+ accept,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Create Datadog marketplace agreement in the subscription.
+ *
+ * @param body The body parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> createWithResponseAsync(
+ DatadogAgreementResourceInner body, 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 (body != null) {
+ body.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .create(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ this.client.getApiVersion(),
+ body,
+ accept,
+ context);
+ }
+
+ /**
+ * Create Datadog marketplace agreement in the subscription.
+ *
+ * @param body The body parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createAsync(DatadogAgreementResourceInner body) {
+ return createWithResponseAsync(body)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Create Datadog marketplace agreement in the subscription.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createAsync() {
+ final DatadogAgreementResourceInner body = null;
+ return createWithResponseAsync(body)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Create Datadog marketplace agreement in the subscription.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DatadogAgreementResourceInner create() {
+ final DatadogAgreementResourceInner body = null;
+ return createAsync(body).block();
+ }
+
+ /**
+ * Create Datadog marketplace agreement in the subscription.
+ *
+ * @param body The body parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response createWithResponse(
+ DatadogAgreementResourceInner body, Context context) {
+ return createWithResponseAsync(body, context).block();
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return response of a list operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return response of a list operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(
+ String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/MarketplaceAgreementsImpl.java b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/MarketplaceAgreementsImpl.java
new file mode 100644
index 000000000000..9cf09d806ebb
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/MarketplaceAgreementsImpl.java
@@ -0,0 +1,70 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datadog.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+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.datadog.MicrosoftDatadogManager;
+import com.azure.resourcemanager.datadog.fluent.MarketplaceAgreementsClient;
+import com.azure.resourcemanager.datadog.fluent.models.DatadogAgreementResourceInner;
+import com.azure.resourcemanager.datadog.models.DatadogAgreementResource;
+import com.azure.resourcemanager.datadog.models.MarketplaceAgreements;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+
+public final class MarketplaceAgreementsImpl implements MarketplaceAgreements {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(MarketplaceAgreementsImpl.class);
+
+ private final MarketplaceAgreementsClient innerClient;
+
+ private final MicrosoftDatadogManager serviceManager;
+
+ public MarketplaceAgreementsImpl(MarketplaceAgreementsClient innerClient, MicrosoftDatadogManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable list() {
+ PagedIterable inner = this.serviceClient().list();
+ return inner.mapPage(inner1 -> new DatadogAgreementResourceImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(Context context) {
+ PagedIterable inner = this.serviceClient().list(context);
+ return inner.mapPage(inner1 -> new DatadogAgreementResourceImpl(inner1, this.manager()));
+ }
+
+ public DatadogAgreementResource create() {
+ DatadogAgreementResourceInner inner = this.serviceClient().create();
+ if (inner != null) {
+ return new DatadogAgreementResourceImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response createWithResponse(DatadogAgreementResourceInner body, Context context) {
+ Response inner = this.serviceClient().createWithResponse(body, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new DatadogAgreementResourceImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ private MarketplaceAgreementsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private MicrosoftDatadogManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/MicrosoftDatadogClientBuilder.java b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/MicrosoftDatadogClientBuilder.java
new file mode 100644
index 000000000000..aa24686618d5
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/MicrosoftDatadogClientBuilder.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.datadog.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 MicrosoftDatadogClientImpl type. */
+@ServiceClientBuilder(serviceClients = {MicrosoftDatadogClientImpl.class})
+public final class MicrosoftDatadogClientBuilder {
+ /*
+ * The Microsoft Azure subscription ID.
+ */
+ private String subscriptionId;
+
+ /**
+ * Sets The Microsoft Azure subscription ID.
+ *
+ * @param subscriptionId the subscriptionId value.
+ * @return the MicrosoftDatadogClientBuilder.
+ */
+ public MicrosoftDatadogClientBuilder subscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
+ return this;
+ }
+
+ /*
+ * server parameter
+ */
+ private String endpoint;
+
+ /**
+ * Sets server parameter.
+ *
+ * @param endpoint the endpoint value.
+ * @return the MicrosoftDatadogClientBuilder.
+ */
+ public MicrosoftDatadogClientBuilder 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 MicrosoftDatadogClientBuilder.
+ */
+ public MicrosoftDatadogClientBuilder 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 MicrosoftDatadogClientBuilder.
+ */
+ public MicrosoftDatadogClientBuilder 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 MicrosoftDatadogClientBuilder.
+ */
+ public MicrosoftDatadogClientBuilder 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 MicrosoftDatadogClientBuilder.
+ */
+ public MicrosoftDatadogClientBuilder serializerAdapter(SerializerAdapter serializerAdapter) {
+ this.serializerAdapter = serializerAdapter;
+ return this;
+ }
+
+ /**
+ * Builds an instance of MicrosoftDatadogClientImpl with the provided parameters.
+ *
+ * @return an instance of MicrosoftDatadogClientImpl.
+ */
+ public MicrosoftDatadogClientImpl 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();
+ }
+ MicrosoftDatadogClientImpl client =
+ new MicrosoftDatadogClientImpl(
+ pipeline, serializerAdapter, defaultPollInterval, environment, subscriptionId, endpoint);
+ return client;
+ }
+}
diff --git a/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/MicrosoftDatadogClientImpl.java b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/MicrosoftDatadogClientImpl.java
new file mode 100644
index 000000000000..6162b6369e00
--- /dev/null
+++ b/sdk/datadog/azure-resourcemanager-datadog/src/main/java/com/azure/resourcemanager/datadog/implementation/MicrosoftDatadogClientImpl.java
@@ -0,0 +1,419 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datadog.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.datadog.fluent.ApiKeysClient;
+import com.azure.resourcemanager.datadog.fluent.HostsClient;
+import com.azure.resourcemanager.datadog.fluent.LinkedResourcesClient;
+import com.azure.resourcemanager.datadog.fluent.MarketplaceAgreementsClient;
+import com.azure.resourcemanager.datadog.fluent.MicrosoftDatadogClient;
+import com.azure.resourcemanager.datadog.fluent.MonitoredResourcesClient;
+import com.azure.resourcemanager.datadog.fluent.MonitorsClient;
+import com.azure.resourcemanager.datadog.fluent.OperationsClient;
+import com.azure.resourcemanager.datadog.fluent.RefreshSetPasswordsClient;
+import com.azure.resourcemanager.datadog.fluent.SingleSignOnConfigurationsClient;
+import com.azure.resourcemanager.datadog.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 MicrosoftDatadogClientImpl type. */
+@ServiceClient(builder = MicrosoftDatadogClientBuilder.class)
+public final class MicrosoftDatadogClientImpl implements MicrosoftDatadogClient {
+ private final ClientLogger logger = new ClientLogger(MicrosoftDatadogClientImpl.class);
+
+ /** The Microsoft Azure subscription ID. */
+ private final String subscriptionId;
+
+ /**
+ * Gets The Microsoft Azure subscription ID.
+ *
+ * @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 MarketplaceAgreementsClient object to access its operations. */
+ private final MarketplaceAgreementsClient marketplaceAgreements;
+
+ /**
+ * Gets the MarketplaceAgreementsClient object to access its operations.
+ *
+ * @return the MarketplaceAgreementsClient object.
+ */
+ public MarketplaceAgreementsClient getMarketplaceAgreements() {
+ return this.marketplaceAgreements;
+ }
+
+ /** The ApiKeysClient object to access its operations. */
+ private final ApiKeysClient apiKeys;
+
+ /**
+ * Gets the ApiKeysClient object to access its operations.
+ *
+ * @return the ApiKeysClient object.
+ */
+ public ApiKeysClient getApiKeys() {
+ return this.apiKeys;
+ }
+
+ /** The HostsClient object to access its operations. */
+ private final HostsClient hosts;
+
+ /**
+ * Gets the HostsClient object to access its operations.
+ *
+ * @return the HostsClient object.
+ */
+ public HostsClient getHosts() {
+ return this.hosts;
+ }
+
+ /** The LinkedResourcesClient object to access its operations. */
+ private final LinkedResourcesClient linkedResources;
+
+ /**
+ * Gets the LinkedResourcesClient object to access its operations.
+ *
+ * @return the LinkedResourcesClient object.
+ */
+ public LinkedResourcesClient getLinkedResources() {
+ return this.linkedResources;
+ }
+
+ /** 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 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 RefreshSetPasswordsClient object to access its operations. */
+ private final RefreshSetPasswordsClient refreshSetPasswords;
+
+ /**
+ * Gets the RefreshSetPasswordsClient object to access its operations.
+ *
+ * @return the RefreshSetPasswordsClient object.
+ */
+ public RefreshSetPasswordsClient getRefreshSetPasswords() {
+ return this.refreshSetPasswords;
+ }
+
+ /** 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;
+ }
+
+ /** The SingleSignOnConfigurationsClient object to access its operations. */
+ private final SingleSignOnConfigurationsClient singleSignOnConfigurations;
+
+ /**
+ * Gets the SingleSignOnConfigurationsClient object to access its operations.
+ *
+ * @return the SingleSignOnConfigurationsClient object.
+ */
+ public SingleSignOnConfigurationsClient getSingleSignOnConfigurations() {
+ return this.singleSignOnConfigurations;
+ }
+
+ /**
+ * Initializes an instance of MicrosoftDatadogClient 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 Microsoft Azure subscription ID.
+ * @param endpoint server parameter.
+ */
+ MicrosoftDatadogClientImpl(
+ 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-02-01-preview";
+ this.marketplaceAgreements = new MarketplaceAgreementsClientImpl(this);
+ this.apiKeys = new ApiKeysClientImpl(this);
+ this.hosts = new HostsClientImpl(this);
+ this.linkedResources = new LinkedResourcesClientImpl(this);
+ this.monitoredResources = new MonitoredResourcesClientImpl(this);
+ this.operations = new OperationsClientImpl(this);
+ this.monitors = new MonitorsClientImpl(this);
+ this.refreshSetPasswords = new RefreshSetPasswordsClientImpl(this);
+ this.tagRules = new TagRulesClientImpl(this);
+ this.singleSignOnConfigurations = new SingleSignOnConfigurationsClientImpl(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