scopes = new ArrayList<>();
+ private RetryPolicy retryPolicy;
+ private RetryOptions retryOptions;
+ private Duration defaultPollInterval;
+
+ private Configurable() {
+ }
+
+ /**
+ * Sets the http client.
+ *
+ * @param httpClient the HTTP client.
+ * @return the configurable object itself.
+ */
+ public Configurable withHttpClient(HttpClient httpClient) {
+ this.httpClient = Objects.requireNonNull(httpClient, "'httpClient' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the logging options to the HTTP pipeline.
+ *
+ * @param httpLogOptions the HTTP log options.
+ * @return the configurable object itself.
+ */
+ public Configurable withLogOptions(HttpLogOptions httpLogOptions) {
+ this.httpLogOptions = Objects.requireNonNull(httpLogOptions, "'httpLogOptions' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Adds the pipeline policy to the HTTP pipeline.
+ *
+ * @param policy the HTTP pipeline policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withPolicy(HttpPipelinePolicy policy) {
+ this.policies.add(Objects.requireNonNull(policy, "'policy' cannot be null."));
+ return this;
+ }
+
+ /**
+ * Adds the scope to permission sets.
+ *
+ * @param scope the scope.
+ * @return the configurable object itself.
+ */
+ public Configurable withScope(String scope) {
+ this.scopes.add(Objects.requireNonNull(scope, "'scope' cannot be null."));
+ return this;
+ }
+
+ /**
+ * Sets the retry policy to the HTTP pipeline.
+ *
+ * @param retryPolicy the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
+ this.retryPolicy = Objects.requireNonNull(retryPolicy, "'retryPolicy' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the retry options for the HTTP pipeline retry policy.
+ *
+ * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
+ *
+ * @param retryOptions the retry options for the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryOptions(RetryOptions retryOptions) {
+ this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the default poll interval, used when service does not provide "Retry-After" header.
+ *
+ * @param defaultPollInterval the default poll interval.
+ * @return the configurable object itself.
+ */
+ public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval
+ = Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
+ if (this.defaultPollInterval.isNegative()) {
+ throw LOGGER
+ .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
+ }
+ return this;
+ }
+
+ /**
+ * Creates an instance of Dependency Map service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the Dependency Map service API instance.
+ */
+ public DependencyMapManager authenticate(TokenCredential credential, AzureProfile profile) {
+ Objects.requireNonNull(credential, "'credential' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+
+ String clientVersion = PROPERTIES.getOrDefault(SDK_VERSION, "UnknownVersion");
+
+ StringBuilder userAgentBuilder = new StringBuilder();
+ userAgentBuilder.append("azsdk-java")
+ .append("-")
+ .append("com.azure.resourcemanager.dependencymap")
+ .append("/")
+ .append(clientVersion);
+ if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
+ userAgentBuilder.append(" (")
+ .append(Configuration.getGlobalConfiguration().get("java.version"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.name"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.version"))
+ .append("; auto-generated)");
+ } else {
+ userAgentBuilder.append(" (auto-generated)");
+ }
+
+ if (scopes.isEmpty()) {
+ scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
+ }
+ if (retryPolicy == null) {
+ if (retryOptions != null) {
+ retryPolicy = new RetryPolicy(retryOptions);
+ } else {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
+ }
+ List policies = new ArrayList<>();
+ policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new AddHeadersFromContextPolicy());
+ policies.add(new RequestIdPolicy());
+ policies.addAll(this.policies.stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .collect(Collectors.toList()));
+ HttpPolicyProviders.addBeforeRetryPolicies(policies);
+ policies.add(retryPolicy);
+ policies.add(new AddDatePolicy());
+ policies.add(new BearerTokenAuthenticationPolicy(credential, scopes.toArray(new String[0])));
+ policies.addAll(this.policies.stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .collect(Collectors.toList()));
+ HttpPolicyProviders.addAfterRetryPolicies(policies);
+ policies.add(new HttpLoggingPolicy(httpLogOptions));
+ HttpPipeline httpPipeline = new HttpPipelineBuilder().httpClient(httpClient)
+ .policies(policies.toArray(new HttpPipelinePolicy[0]))
+ .build();
+ return new DependencyMapManager(httpPipeline, profile, defaultPollInterval);
+ }
+ }
+
+ /**
+ * Gets the resource collection API of Operations.
+ *
+ * @return Resource collection API of Operations.
+ */
+ public Operations operations() {
+ if (this.operations == null) {
+ this.operations = new OperationsImpl(clientObject.getOperations(), this);
+ }
+ return operations;
+ }
+
+ /**
+ * Gets the resource collection API of Maps. It manages MapsResource.
+ *
+ * @return Resource collection API of Maps.
+ */
+ public Maps maps() {
+ if (this.maps == null) {
+ this.maps = new MapsImpl(clientObject.getMaps(), this);
+ }
+ return maps;
+ }
+
+ /**
+ * Gets the resource collection API of DiscoverySources. It manages DiscoverySourceResource.
+ *
+ * @return Resource collection API of DiscoverySources.
+ */
+ public DiscoverySources discoverySources() {
+ if (this.discoverySources == null) {
+ this.discoverySources = new DiscoverySourcesImpl(clientObject.getDiscoverySources(), this);
+ }
+ return discoverySources;
+ }
+
+ /**
+ * Gets wrapped service client DependencyMapManagementClient providing direct access to the underlying
+ * auto-generated API implementation, based on Azure REST API.
+ *
+ * @return Wrapped service client DependencyMapManagementClient.
+ */
+ public DependencyMapManagementClient serviceClient() {
+ return this.clientObject;
+ }
+}
diff --git a/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/fluent/DependencyMapManagementClient.java b/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/fluent/DependencyMapManagementClient.java
new file mode 100644
index 000000000000..c3f2d46c6b62
--- /dev/null
+++ b/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/fluent/DependencyMapManagementClient.java
@@ -0,0 +1,69 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.dependencymap.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/**
+ * The interface for DependencyMapManagementClient class.
+ */
+public interface DependencyMapManagementClient {
+ /**
+ * Gets Service host.
+ *
+ * @return the endpoint value.
+ */
+ String getEndpoint();
+
+ /**
+ * Gets Version parameter.
+ *
+ * @return the apiVersion value.
+ */
+ String getApiVersion();
+
+ /**
+ * Gets The ID of the target subscription. The value must be an UUID.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ HttpPipeline getHttpPipeline();
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ Duration getDefaultPollInterval();
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
+
+ /**
+ * Gets the MapsClient object to access its operations.
+ *
+ * @return the MapsClient object.
+ */
+ MapsClient getMaps();
+
+ /**
+ * Gets the DiscoverySourcesClient object to access its operations.
+ *
+ * @return the DiscoverySourcesClient object.
+ */
+ DiscoverySourcesClient getDiscoverySources();
+}
diff --git a/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/fluent/DiscoverySourcesClient.java b/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/fluent/DiscoverySourcesClient.java
new file mode 100644
index 000000000000..728166bf0771
--- /dev/null
+++ b/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/fluent/DiscoverySourcesClient.java
@@ -0,0 +1,271 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.dependencymap.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.dependencymap.fluent.models.DiscoverySourceResourceInner;
+import com.azure.resourcemanager.dependencymap.models.DiscoverySourceResourceTagsUpdate;
+
+/**
+ * An instance of this class provides access to all the operations defined in DiscoverySourcesClient.
+ */
+public interface DiscoverySourcesClient {
+ /**
+ * Get a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source 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 a DiscoverySourceResource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String mapName, String sourceName,
+ Context context);
+
+ /**
+ * Get a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a DiscoverySourceResource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DiscoverySourceResourceInner get(String resourceGroupName, String mapName, String sourceName);
+
+ /**
+ * Create a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a Discovery Source resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DiscoverySourceResourceInner> beginCreateOrUpdate(
+ String resourceGroupName, String mapName, String sourceName, DiscoverySourceResourceInner resource);
+
+ /**
+ * Create a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a Discovery Source resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DiscoverySourceResourceInner> beginCreateOrUpdate(
+ String resourceGroupName, String mapName, String sourceName, DiscoverySourceResourceInner resource,
+ Context context);
+
+ /**
+ * Create a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 Discovery Source resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DiscoverySourceResourceInner createOrUpdate(String resourceGroupName, String mapName, String sourceName,
+ DiscoverySourceResourceInner resource);
+
+ /**
+ * Create a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Discovery Source resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DiscoverySourceResourceInner createOrUpdate(String resourceGroupName, String mapName, String sourceName,
+ DiscoverySourceResourceInner resource, Context context);
+
+ /**
+ * Update a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a Discovery Source resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DiscoverySourceResourceInner> beginUpdate(
+ String resourceGroupName, String mapName, String sourceName, DiscoverySourceResourceTagsUpdate properties);
+
+ /**
+ * Update a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @param properties The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a Discovery Source resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DiscoverySourceResourceInner> beginUpdate(
+ String resourceGroupName, String mapName, String sourceName, DiscoverySourceResourceTagsUpdate properties,
+ Context context);
+
+ /**
+ * Update a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 Discovery Source resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DiscoverySourceResourceInner update(String resourceGroupName, String mapName, String sourceName,
+ DiscoverySourceResourceTagsUpdate properties);
+
+ /**
+ * Update a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @param properties The resource properties to be updated.
+ * @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 Discovery Source resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DiscoverySourceResourceInner update(String resourceGroupName, String mapName, String sourceName,
+ DiscoverySourceResourceTagsUpdate properties, Context context);
+
+ /**
+ * Delete a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String mapName, String sourceName);
+
+ /**
+ * Delete a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source 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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String mapName, String sourceName,
+ Context context);
+
+ /**
+ * Delete a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String mapName, String sourceName);
+
+ /**
+ * Delete a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String mapName, String sourceName, Context context);
+
+ /**
+ * List DiscoverySourceResource resources by MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps 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 of a DiscoverySourceResource list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByMapsResource(String resourceGroupName, String mapName);
+
+ /**
+ * List DiscoverySourceResource resources by MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps 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 of a DiscoverySourceResource list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByMapsResource(String resourceGroupName, String mapName,
+ Context context);
+}
diff --git a/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/fluent/MapsClient.java b/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/fluent/MapsClient.java
new file mode 100644
index 000000000000..49d652816c77
--- /dev/null
+++ b/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/fluent/MapsClient.java
@@ -0,0 +1,512 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.dependencymap.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.dependencymap.fluent.models.MapsResourceInner;
+import com.azure.resourcemanager.dependencymap.models.ExportDependenciesRequest;
+import com.azure.resourcemanager.dependencymap.models.GetConnectionsForProcessOnFocusedMachineRequest;
+import com.azure.resourcemanager.dependencymap.models.GetConnectionsWithConnectedMachineForFocusedMachineRequest;
+import com.azure.resourcemanager.dependencymap.models.GetDependencyViewForFocusedMachineRequest;
+import com.azure.resourcemanager.dependencymap.models.MapsResourceTagsUpdate;
+
+/**
+ * An instance of this class provides access to all the operations defined in MapsClient.
+ */
+public interface MapsClient {
+ /**
+ * Get a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a MapsResource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName, String mapName,
+ Context context);
+
+ /**
+ * Get a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a MapsResource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MapsResourceInner getByResourceGroup(String resourceGroupName, String mapName);
+
+ /**
+ * Create a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a Maps resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, MapsResourceInner> beginCreateOrUpdate(String resourceGroupName,
+ String mapName, MapsResourceInner resource);
+
+ /**
+ * Create a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a Maps resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, MapsResourceInner> beginCreateOrUpdate(String resourceGroupName,
+ String mapName, MapsResourceInner resource, Context context);
+
+ /**
+ * Create a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 Maps resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MapsResourceInner createOrUpdate(String resourceGroupName, String mapName, MapsResourceInner resource);
+
+ /**
+ * Create a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Maps resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MapsResourceInner createOrUpdate(String resourceGroupName, String mapName, MapsResourceInner resource,
+ Context context);
+
+ /**
+ * Update a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a Maps resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, MapsResourceInner> beginUpdate(String resourceGroupName, String mapName,
+ MapsResourceTagsUpdate properties);
+
+ /**
+ * Update a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param properties The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a Maps resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, MapsResourceInner> beginUpdate(String resourceGroupName, String mapName,
+ MapsResourceTagsUpdate properties, Context context);
+
+ /**
+ * Update a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 Maps resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MapsResourceInner update(String resourceGroupName, String mapName, MapsResourceTagsUpdate properties);
+
+ /**
+ * Update a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param properties The resource properties to be updated.
+ * @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 Maps resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MapsResourceInner update(String resourceGroupName, String mapName, MapsResourceTagsUpdate properties,
+ Context context);
+
+ /**
+ * Delete a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps 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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String mapName);
+
+ /**
+ * Delete a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps 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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String mapName, Context context);
+
+ /**
+ * Delete a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps 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 mapName);
+
+ /**
+ * Delete a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps 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 mapName, Context context);
+
+ /**
+ * List MapsResource resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a MapsResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * List MapsResource resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a MapsResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * List MapsResource resources by subscription ID.
+ *
+ * @throws com.azure.core.management.exception.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 of a MapsResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List MapsResource resources by subscription ID.
+ *
+ * @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 of a MapsResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * Get dependency map of single machine.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of dependency map of single machine.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginGetDependencyViewForFocusedMachine(String resourceGroupName, String mapName,
+ GetDependencyViewForFocusedMachineRequest body);
+
+ /**
+ * Get dependency map of single machine.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of dependency map of single machine.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginGetDependencyViewForFocusedMachine(String resourceGroupName, String mapName,
+ GetDependencyViewForFocusedMachineRequest body, Context context);
+
+ /**
+ * Get dependency map of single machine.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 getDependencyViewForFocusedMachine(String resourceGroupName, String mapName,
+ GetDependencyViewForFocusedMachineRequest body);
+
+ /**
+ * Get dependency map of single machine.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @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 getDependencyViewForFocusedMachine(String resourceGroupName, String mapName,
+ GetDependencyViewForFocusedMachineRequest body, Context context);
+
+ /**
+ * Get network connections between machines.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of network connections between machines.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginGetConnectionsWithConnectedMachineForFocusedMachine(
+ String resourceGroupName, String mapName, GetConnectionsWithConnectedMachineForFocusedMachineRequest body);
+
+ /**
+ * Get network connections between machines.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of network connections between machines.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginGetConnectionsWithConnectedMachineForFocusedMachine(
+ String resourceGroupName, String mapName, GetConnectionsWithConnectedMachineForFocusedMachineRequest body,
+ Context context);
+
+ /**
+ * Get network connections between machines.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 getConnectionsWithConnectedMachineForFocusedMachine(String resourceGroupName, String mapName,
+ GetConnectionsWithConnectedMachineForFocusedMachineRequest body);
+
+ /**
+ * Get network connections between machines.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @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 getConnectionsWithConnectedMachineForFocusedMachine(String resourceGroupName, String mapName,
+ GetConnectionsWithConnectedMachineForFocusedMachineRequest body, Context context);
+
+ /**
+ * Get network connections of a process.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of network connections of a process.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginGetConnectionsForProcessOnFocusedMachine(String resourceGroupName,
+ String mapName, GetConnectionsForProcessOnFocusedMachineRequest body);
+
+ /**
+ * Get network connections of a process.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of network connections of a process.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginGetConnectionsForProcessOnFocusedMachine(String resourceGroupName,
+ String mapName, GetConnectionsForProcessOnFocusedMachineRequest body, Context context);
+
+ /**
+ * Get network connections of a process.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 getConnectionsForProcessOnFocusedMachine(String resourceGroupName, String mapName,
+ GetConnectionsForProcessOnFocusedMachineRequest body);
+
+ /**
+ * Get network connections of a process.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @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 getConnectionsForProcessOnFocusedMachine(String resourceGroupName, String mapName,
+ GetConnectionsForProcessOnFocusedMachineRequest body, Context context);
+
+ /**
+ * Export dependencies.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginExportDependencies(String resourceGroupName, String mapName,
+ ExportDependenciesRequest body);
+
+ /**
+ * Export dependencies.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginExportDependencies(String resourceGroupName, String mapName,
+ ExportDependenciesRequest body, Context context);
+
+ /**
+ * Export dependencies.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 exportDependencies(String resourceGroupName, String mapName, ExportDependenciesRequest body);
+
+ /**
+ * Export dependencies.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @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 exportDependencies(String resourceGroupName, String mapName, ExportDependenciesRequest body, Context context);
+}
diff --git a/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/fluent/OperationsClient.java b/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/fluent/OperationsClient.java
new file mode 100644
index 000000000000..b20023fc111b
--- /dev/null
+++ b/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/fluent/OperationsClient.java
@@ -0,0 +1,40 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.dependencymap.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.dependencymap.fluent.models.OperationInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in OperationsClient.
+ */
+public interface OperationsClient {
+ /**
+ * List the operations for the provider.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List the operations for the provider.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/fluent/models/DiscoverySourceResourceInner.java b/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/fluent/models/DiscoverySourceResourceInner.java
new file mode 100644
index 000000000000..743b2c2f6747
--- /dev/null
+++ b/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/fluent/models/DiscoverySourceResourceInner.java
@@ -0,0 +1,193 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.dependencymap.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.dependencymap.models.DiscoverySourceResourceProperties;
+import java.io.IOException;
+import java.util.Map;
+
+/**
+ * A Discovery Source resource.
+ */
+@Fluent
+public final class DiscoverySourceResourceInner extends Resource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private DiscoverySourceResourceProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of DiscoverySourceResourceInner class.
+ */
+ public DiscoverySourceResourceInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public DiscoverySourceResourceProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
+ * @return the DiscoverySourceResourceInner object itself.
+ */
+ public DiscoverySourceResourceInner withProperties(DiscoverySourceResourceProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public DiscoverySourceResourceInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public DiscoverySourceResourceInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of DiscoverySourceResourceInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of DiscoverySourceResourceInner if the JsonReader was pointing to an instance of it, or null
+ * if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the DiscoverySourceResourceInner.
+ */
+ public static DiscoverySourceResourceInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ DiscoverySourceResourceInner deserializedDiscoverySourceResourceInner = new DiscoverySourceResourceInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedDiscoverySourceResourceInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedDiscoverySourceResourceInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedDiscoverySourceResourceInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedDiscoverySourceResourceInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedDiscoverySourceResourceInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedDiscoverySourceResourceInner.properties
+ = DiscoverySourceResourceProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedDiscoverySourceResourceInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedDiscoverySourceResourceInner;
+ });
+ }
+}
diff --git a/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/fluent/models/MapsResourceInner.java b/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/fluent/models/MapsResourceInner.java
new file mode 100644
index 000000000000..52209e93e773
--- /dev/null
+++ b/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/fluent/models/MapsResourceInner.java
@@ -0,0 +1,192 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.dependencymap.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.dependencymap.models.MapsResourceProperties;
+import java.io.IOException;
+import java.util.Map;
+
+/**
+ * A Maps resource.
+ */
+@Fluent
+public final class MapsResourceInner extends Resource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private MapsResourceProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of MapsResourceInner class.
+ */
+ public MapsResourceInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public MapsResourceProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
+ * @return the MapsResourceInner object itself.
+ */
+ public MapsResourceInner withProperties(MapsResourceProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public MapsResourceInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public MapsResourceInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of MapsResourceInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of MapsResourceInner if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the MapsResourceInner.
+ */
+ public static MapsResourceInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ MapsResourceInner deserializedMapsResourceInner = new MapsResourceInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedMapsResourceInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedMapsResourceInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedMapsResourceInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedMapsResourceInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedMapsResourceInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedMapsResourceInner.properties = MapsResourceProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedMapsResourceInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedMapsResourceInner;
+ });
+ }
+}
diff --git a/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/fluent/models/OperationInner.java b/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/fluent/models/OperationInner.java
new file mode 100644
index 000000000000..b26bc95fbcd6
--- /dev/null
+++ b/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/fluent/models/OperationInner.java
@@ -0,0 +1,159 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.dependencymap.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.dependencymap.models.ActionType;
+import com.azure.resourcemanager.dependencymap.models.OperationDisplay;
+import com.azure.resourcemanager.dependencymap.models.Origin;
+import java.io.IOException;
+
+/**
+ * Details of a REST API operation, returned from the Resource Provider Operations API.
+ */
+@Immutable
+public final class OperationInner implements JsonSerializable {
+ /*
+ * The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
+ * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action"
+ */
+ private String name;
+
+ /*
+ * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure
+ * Resource Manager/control-plane operations.
+ */
+ private Boolean isDataAction;
+
+ /*
+ * Localized display information for this particular operation.
+ */
+ private OperationDisplay display;
+
+ /*
+ * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default
+ * value is "user,system"
+ */
+ private Origin origin;
+
+ /*
+ * Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
+ */
+ private ActionType actionType;
+
+ /**
+ * Creates an instance of OperationInner class.
+ */
+ private OperationInner() {
+ }
+
+ /**
+ * Get the name property: The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
+ * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action".
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the isDataAction property: Whether the operation applies to data-plane. This is "true" for data-plane
+ * operations and "false" for Azure Resource Manager/control-plane operations.
+ *
+ * @return the isDataAction value.
+ */
+ public Boolean isDataAction() {
+ return this.isDataAction;
+ }
+
+ /**
+ * Get the display property: Localized display information for this particular operation.
+ *
+ * @return the display value.
+ */
+ public OperationDisplay display() {
+ return this.display;
+ }
+
+ /**
+ * Get the origin property: The intended executor of the operation; as in Resource Based Access Control (RBAC) and
+ * audit logs UX. Default value is "user,system".
+ *
+ * @return the origin value.
+ */
+ public Origin origin() {
+ return this.origin;
+ }
+
+ /**
+ * Get the actionType property: Extensible enum. Indicates the action type. "Internal" refers to actions that are
+ * for internal only APIs.
+ *
+ * @return the actionType value.
+ */
+ public ActionType actionType() {
+ return this.actionType;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (display() != null) {
+ display().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("display", this.display);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of OperationInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of OperationInner if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IOException If an error occurs while reading the OperationInner.
+ */
+ public static OperationInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ OperationInner deserializedOperationInner = new OperationInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("name".equals(fieldName)) {
+ deserializedOperationInner.name = reader.getString();
+ } else if ("isDataAction".equals(fieldName)) {
+ deserializedOperationInner.isDataAction = reader.getNullable(JsonReader::getBoolean);
+ } else if ("display".equals(fieldName)) {
+ deserializedOperationInner.display = OperationDisplay.fromJson(reader);
+ } else if ("origin".equals(fieldName)) {
+ deserializedOperationInner.origin = Origin.fromString(reader.getString());
+ } else if ("actionType".equals(fieldName)) {
+ deserializedOperationInner.actionType = ActionType.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedOperationInner;
+ });
+ }
+}
diff --git a/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/fluent/models/package-info.java b/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/fluent/models/package-info.java
new file mode 100644
index 000000000000..ef451d4e1fa9
--- /dev/null
+++ b/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/fluent/models/package-info.java
@@ -0,0 +1,9 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+/**
+ * Package containing the inner data models for DependencyMap.
+ * Microsoft.DependencyMap management service.
+ */
+package com.azure.resourcemanager.dependencymap.fluent.models;
diff --git a/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/fluent/package-info.java b/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/fluent/package-info.java
new file mode 100644
index 000000000000..27360fcce765
--- /dev/null
+++ b/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/fluent/package-info.java
@@ -0,0 +1,9 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+/**
+ * Package containing the service clients for DependencyMap.
+ * Microsoft.DependencyMap management service.
+ */
+package com.azure.resourcemanager.dependencymap.fluent;
diff --git a/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/implementation/DependencyMapManagementClientBuilder.java b/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/implementation/DependencyMapManagementClientBuilder.java
new file mode 100644
index 000000000000..cc69eb0bd377
--- /dev/null
+++ b/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/implementation/DependencyMapManagementClientBuilder.java
@@ -0,0 +1,138 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.dependencymap.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.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 DependencyMapManagementClientImpl type.
+ */
+@ServiceClientBuilder(serviceClients = { DependencyMapManagementClientImpl.class })
+public final class DependencyMapManagementClientBuilder {
+ /*
+ * Service host
+ */
+ private String endpoint;
+
+ /**
+ * Sets Service host.
+ *
+ * @param endpoint the endpoint value.
+ * @return the DependencyMapManagementClientBuilder.
+ */
+ public DependencyMapManagementClientBuilder endpoint(String endpoint) {
+ this.endpoint = endpoint;
+ return this;
+ }
+
+ /*
+ * The ID of the target subscription. The value must be an UUID.
+ */
+ private String subscriptionId;
+
+ /**
+ * Sets The ID of the target subscription. The value must be an UUID.
+ *
+ * @param subscriptionId the subscriptionId value.
+ * @return the DependencyMapManagementClientBuilder.
+ */
+ public DependencyMapManagementClientBuilder subscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
+ return this;
+ }
+
+ /*
+ * The environment to connect to
+ */
+ private AzureEnvironment environment;
+
+ /**
+ * Sets The environment to connect to.
+ *
+ * @param environment the environment value.
+ * @return the DependencyMapManagementClientBuilder.
+ */
+ public DependencyMapManagementClientBuilder environment(AzureEnvironment environment) {
+ this.environment = environment;
+ 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 DependencyMapManagementClientBuilder.
+ */
+ public DependencyMapManagementClientBuilder pipeline(HttpPipeline pipeline) {
+ this.pipeline = pipeline;
+ 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 DependencyMapManagementClientBuilder.
+ */
+ public DependencyMapManagementClientBuilder defaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval = defaultPollInterval;
+ 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 DependencyMapManagementClientBuilder.
+ */
+ public DependencyMapManagementClientBuilder serializerAdapter(SerializerAdapter serializerAdapter) {
+ this.serializerAdapter = serializerAdapter;
+ return this;
+ }
+
+ /**
+ * Builds an instance of DependencyMapManagementClientImpl with the provided parameters.
+ *
+ * @return an instance of DependencyMapManagementClientImpl.
+ */
+ public DependencyMapManagementClientImpl buildClient() {
+ String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com";
+ AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE;
+ HttpPipeline localPipeline = (pipeline != null)
+ ? pipeline
+ : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
+ Duration localDefaultPollInterval
+ = (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30);
+ SerializerAdapter localSerializerAdapter = (serializerAdapter != null)
+ ? serializerAdapter
+ : SerializerFactory.createDefaultManagementSerializerAdapter();
+ DependencyMapManagementClientImpl client = new DependencyMapManagementClientImpl(localPipeline,
+ localSerializerAdapter, localDefaultPollInterval, localEnvironment, localEndpoint, this.subscriptionId);
+ return client;
+ }
+}
diff --git a/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/implementation/DependencyMapManagementClientImpl.java b/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/implementation/DependencyMapManagementClientImpl.java
new file mode 100644
index 000000000000..268e2caf35be
--- /dev/null
+++ b/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/implementation/DependencyMapManagementClientImpl.java
@@ -0,0 +1,320 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.dependencymap.implementation;
+
+import com.azure.core.annotation.ServiceClient;
+import com.azure.core.http.HttpHeaderName;
+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.CoreUtils;
+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.dependencymap.fluent.DependencyMapManagementClient;
+import com.azure.resourcemanager.dependencymap.fluent.DiscoverySourcesClient;
+import com.azure.resourcemanager.dependencymap.fluent.MapsClient;
+import com.azure.resourcemanager.dependencymap.fluent.OperationsClient;
+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 reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/**
+ * Initializes a new instance of the DependencyMapManagementClientImpl type.
+ */
+@ServiceClient(builder = DependencyMapManagementClientBuilder.class)
+public final class DependencyMapManagementClientImpl implements DependencyMapManagementClient {
+ /**
+ * Service host.
+ */
+ private final String endpoint;
+
+ /**
+ * Gets Service host.
+ *
+ * @return the endpoint value.
+ */
+ public String getEndpoint() {
+ return this.endpoint;
+ }
+
+ /**
+ * Version parameter.
+ */
+ private final String apiVersion;
+
+ /**
+ * Gets Version parameter.
+ *
+ * @return the apiVersion value.
+ */
+ public String getApiVersion() {
+ return this.apiVersion;
+ }
+
+ /**
+ * The ID of the target subscription. The value must be an UUID.
+ */
+ private final String subscriptionId;
+
+ /**
+ * Gets The ID of the target subscription. The value must be an UUID.
+ *
+ * @return the subscriptionId value.
+ */
+ public String getSubscriptionId() {
+ return this.subscriptionId;
+ }
+
+ /**
+ * The HTTP pipeline to send requests through.
+ */
+ private final HttpPipeline httpPipeline;
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ public HttpPipeline getHttpPipeline() {
+ return this.httpPipeline;
+ }
+
+ /**
+ * The serializer to serialize an object into a string.
+ */
+ private final SerializerAdapter serializerAdapter;
+
+ /**
+ * Gets The serializer to serialize an object into a string.
+ *
+ * @return the serializerAdapter value.
+ */
+ SerializerAdapter getSerializerAdapter() {
+ return this.serializerAdapter;
+ }
+
+ /**
+ * The default poll interval for long-running operation.
+ */
+ private final Duration defaultPollInterval;
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ public Duration getDefaultPollInterval() {
+ return this.defaultPollInterval;
+ }
+
+ /**
+ * The OperationsClient object to access its operations.
+ */
+ private final OperationsClient operations;
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ public OperationsClient getOperations() {
+ return this.operations;
+ }
+
+ /**
+ * The MapsClient object to access its operations.
+ */
+ private final MapsClient maps;
+
+ /**
+ * Gets the MapsClient object to access its operations.
+ *
+ * @return the MapsClient object.
+ */
+ public MapsClient getMaps() {
+ return this.maps;
+ }
+
+ /**
+ * The DiscoverySourcesClient object to access its operations.
+ */
+ private final DiscoverySourcesClient discoverySources;
+
+ /**
+ * Gets the DiscoverySourcesClient object to access its operations.
+ *
+ * @return the DiscoverySourcesClient object.
+ */
+ public DiscoverySourcesClient getDiscoverySources() {
+ return this.discoverySources;
+ }
+
+ /**
+ * Initializes an instance of DependencyMapManagementClient 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 endpoint Service host.
+ * @param subscriptionId The ID of the target subscription. The value must be an UUID.
+ */
+ DependencyMapManagementClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter,
+ Duration defaultPollInterval, AzureEnvironment environment, String endpoint, String subscriptionId) {
+ this.httpPipeline = httpPipeline;
+ this.serializerAdapter = serializerAdapter;
+ this.defaultPollInterval = defaultPollInterval;
+ this.endpoint = endpoint;
+ this.subscriptionId = subscriptionId;
+ this.apiVersion = "2025-01-31-preview";
+ this.operations = new OperationsClientImpl(this);
+ this.maps = new MapsClientImpl(this);
+ this.discoverySources = new DiscoverySourcesClientImpl(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) {
+ return CoreUtils.mergeContexts(this.getContext(), context);
+ }
+
+ /**
+ * Gets long running operation result.
+ *
+ * @param activationResponse the response of activation operation.
+ * @param httpPipeline the http pipeline.
+ * @param pollResultType type of poll result.
+ * @param finalResultType type of final result.
+ * @param context the context shared by all requests.
+ * @param type of poll result.
+ * @param type of final result.
+ * @return poller flux for poll result and final result.
+ */
+ public PollerFlux, U> getLroResult(Mono>> activationResponse,
+ HttpPipeline httpPipeline, Type pollResultType, Type finalResultType, Context context) {
+ return PollerFactory.create(serializerAdapter, httpPipeline, pollResultType, finalResultType,
+ defaultPollInterval, activationResponse, context);
+ }
+
+ /**
+ * Gets the final result, or an error, based on last async poll response.
+ *
+ * @param response the last async poll response.
+ * @param type of poll result.
+ * @param type of final result.
+ * @return the final result, or an error.
+ */
+ public Mono getLroFinalResultOrError(AsyncPollResponse, U> response) {
+ if (response.getStatus() != LongRunningOperationStatus.SUCCESSFULLY_COMPLETED) {
+ String errorMessage;
+ ManagementError managementError = null;
+ HttpResponse errorResponse = null;
+ PollResult.Error lroError = response.getValue().getError();
+ if (lroError != null) {
+ errorResponse = new HttpResponseImpl(lroError.getResponseStatusCode(), lroError.getResponseHeaders(),
+ lroError.getResponseBody());
+
+ errorMessage = response.getValue().getError().getMessage();
+ String errorBody = response.getValue().getError().getResponseBody();
+ if (errorBody != null) {
+ // try to deserialize error body to ManagementError
+ try {
+ managementError = this.getSerializerAdapter()
+ .deserialize(errorBody, ManagementError.class, SerializerEncoding.JSON);
+ if (managementError.getCode() == null || managementError.getMessage() == null) {
+ managementError = null;
+ }
+ } catch (IOException | RuntimeException ioe) {
+ LOGGER.logThrowableAsWarning(ioe);
+ }
+ }
+ } else {
+ // fallback to default error message
+ errorMessage = "Long running operation failed.";
+ }
+ if (managementError == null) {
+ // fallback to default ManagementError
+ managementError = new ManagementError(response.getStatus().toString(), errorMessage);
+ }
+ return Mono.error(new ManagementException(errorMessage, errorResponse, managementError));
+ } else {
+ return response.getFinalResult();
+ }
+ }
+
+ private static final class HttpResponseImpl extends HttpResponse {
+ private final int statusCode;
+
+ private final byte[] responseBody;
+
+ private final HttpHeaders httpHeaders;
+
+ HttpResponseImpl(int statusCode, HttpHeaders httpHeaders, String responseBody) {
+ super(null);
+ this.statusCode = statusCode;
+ this.httpHeaders = httpHeaders;
+ this.responseBody = responseBody == null ? null : responseBody.getBytes(StandardCharsets.UTF_8);
+ }
+
+ public int getStatusCode() {
+ return statusCode;
+ }
+
+ public String getHeaderValue(String s) {
+ return httpHeaders.getValue(HttpHeaderName.fromString(s));
+ }
+
+ public HttpHeaders getHeaders() {
+ return httpHeaders;
+ }
+
+ public Flux getBody() {
+ return Flux.just(ByteBuffer.wrap(responseBody));
+ }
+
+ public Mono getBodyAsByteArray() {
+ return Mono.just(responseBody);
+ }
+
+ public Mono getBodyAsString() {
+ return Mono.just(new String(responseBody, StandardCharsets.UTF_8));
+ }
+
+ public Mono getBodyAsString(Charset charset) {
+ return Mono.just(new String(responseBody, charset));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(DependencyMapManagementClientImpl.class);
+}
diff --git a/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/implementation/DiscoverySourceResourceImpl.java b/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/implementation/DiscoverySourceResourceImpl.java
new file mode 100644
index 000000000000..7b0ebdd7305e
--- /dev/null
+++ b/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/implementation/DiscoverySourceResourceImpl.java
@@ -0,0 +1,183 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.dependencymap.implementation;
+
+import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.dependencymap.fluent.models.DiscoverySourceResourceInner;
+import com.azure.resourcemanager.dependencymap.models.DiscoverySourceResource;
+import com.azure.resourcemanager.dependencymap.models.DiscoverySourceResourceProperties;
+import com.azure.resourcemanager.dependencymap.models.DiscoverySourceResourceTagsUpdate;
+import java.util.Collections;
+import java.util.Map;
+
+public final class DiscoverySourceResourceImpl
+ implements DiscoverySourceResource, DiscoverySourceResource.Definition, DiscoverySourceResource.Update {
+ private DiscoverySourceResourceInner innerObject;
+
+ private final com.azure.resourcemanager.dependencymap.DependencyMapManager 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 DiscoverySourceResourceProperties properties() {
+ return this.innerModel().properties();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public Region region() {
+ return Region.fromName(this.regionName());
+ }
+
+ public String regionName() {
+ return this.location();
+ }
+
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
+ public DiscoverySourceResourceInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.dependencymap.DependencyMapManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String mapName;
+
+ private String sourceName;
+
+ private DiscoverySourceResourceTagsUpdate updateProperties;
+
+ public DiscoverySourceResourceImpl withExistingMap(String resourceGroupName, String mapName) {
+ this.resourceGroupName = resourceGroupName;
+ this.mapName = mapName;
+ return this;
+ }
+
+ public DiscoverySourceResource create() {
+ this.innerObject = serviceManager.serviceClient()
+ .getDiscoverySources()
+ .createOrUpdate(resourceGroupName, mapName, sourceName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public DiscoverySourceResource create(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getDiscoverySources()
+ .createOrUpdate(resourceGroupName, mapName, sourceName, this.innerModel(), context);
+ return this;
+ }
+
+ DiscoverySourceResourceImpl(String name,
+ com.azure.resourcemanager.dependencymap.DependencyMapManager serviceManager) {
+ this.innerObject = new DiscoverySourceResourceInner();
+ this.serviceManager = serviceManager;
+ this.sourceName = name;
+ }
+
+ public DiscoverySourceResourceImpl update() {
+ this.updateProperties = new DiscoverySourceResourceTagsUpdate();
+ return this;
+ }
+
+ public DiscoverySourceResource apply() {
+ this.innerObject = serviceManager.serviceClient()
+ .getDiscoverySources()
+ .update(resourceGroupName, mapName, sourceName, updateProperties, Context.NONE);
+ return this;
+ }
+
+ public DiscoverySourceResource apply(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getDiscoverySources()
+ .update(resourceGroupName, mapName, sourceName, updateProperties, context);
+ return this;
+ }
+
+ DiscoverySourceResourceImpl(DiscoverySourceResourceInner innerObject,
+ com.azure.resourcemanager.dependencymap.DependencyMapManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.mapName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "maps");
+ this.sourceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "discoverySources");
+ }
+
+ public DiscoverySourceResource refresh() {
+ this.innerObject = serviceManager.serviceClient()
+ .getDiscoverySources()
+ .getWithResponse(resourceGroupName, mapName, sourceName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public DiscoverySourceResource refresh(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getDiscoverySources()
+ .getWithResponse(resourceGroupName, mapName, sourceName, context)
+ .getValue();
+ return this;
+ }
+
+ public DiscoverySourceResourceImpl withRegion(Region location) {
+ this.innerModel().withLocation(location.toString());
+ return this;
+ }
+
+ public DiscoverySourceResourceImpl withRegion(String location) {
+ this.innerModel().withLocation(location);
+ return this;
+ }
+
+ public DiscoverySourceResourceImpl withTags(Map tags) {
+ if (isInCreateMode()) {
+ this.innerModel().withTags(tags);
+ return this;
+ } else {
+ this.updateProperties.withTags(tags);
+ return this;
+ }
+ }
+
+ public DiscoverySourceResourceImpl withProperties(DiscoverySourceResourceProperties properties) {
+ this.innerModel().withProperties(properties);
+ return this;
+ }
+
+ private boolean isInCreateMode() {
+ return this.innerModel().id() == null;
+ }
+}
diff --git a/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/implementation/DiscoverySourcesClientImpl.java b/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/implementation/DiscoverySourcesClientImpl.java
new file mode 100644
index 000000000000..e1bd551ad2ac
--- /dev/null
+++ b/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/implementation/DiscoverySourcesClientImpl.java
@@ -0,0 +1,1188 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.dependencymap.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.dependencymap.fluent.DiscoverySourcesClient;
+import com.azure.resourcemanager.dependencymap.fluent.models.DiscoverySourceResourceInner;
+import com.azure.resourcemanager.dependencymap.implementation.models.DiscoverySourceResourceListResult;
+import com.azure.resourcemanager.dependencymap.models.DiscoverySourceResourceTagsUpdate;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in DiscoverySourcesClient.
+ */
+public final class DiscoverySourcesClientImpl implements DiscoverySourcesClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final DiscoverySourcesService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final DependencyMapManagementClientImpl client;
+
+ /**
+ * Initializes an instance of DiscoverySourcesClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ DiscoverySourcesClientImpl(DependencyMapManagementClientImpl client) {
+ this.service
+ = RestProxy.create(DiscoverySourcesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for DependencyMapManagementClientDiscoverySources to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{endpoint}")
+ @ServiceInterface(name = "DependencyMapManagem")
+ public interface DiscoverySourcesService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DependencyMap/maps/{mapName}/discoverySources/{sourceName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("mapName") String mapName,
+ @PathParam("sourceName") String sourceName, @HeaderParam("Accept") String accept, Context context);
+
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DependencyMap/maps/{mapName}/discoverySources/{sourceName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> createOrUpdate(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("mapName") String mapName,
+ @PathParam("sourceName") String sourceName, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") DiscoverySourceResourceInner resource,
+ Context context);
+
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DependencyMap/maps/{mapName}/discoverySources/{sourceName}")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> update(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("mapName") String mapName,
+ @PathParam("sourceName") String sourceName, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") DiscoverySourceResourceTagsUpdate properties, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DependencyMap/maps/{mapName}/discoverySources/{sourceName}")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> delete(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("mapName") String mapName,
+ @PathParam("sourceName") String sourceName, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DependencyMap/maps/{mapName}/discoverySources")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByMapsResource(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("mapName") String mapName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByMapsResourceNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * Get a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a DiscoverySourceResource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String resourceGroupName, String mapName,
+ String sourceName) {
+ 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 (mapName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter mapName is required and cannot be null."));
+ }
+ if (sourceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter sourceName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, mapName, sourceName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a DiscoverySourceResource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String resourceGroupName, String mapName,
+ String sourceName, 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 (mapName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter mapName is required and cannot be null."));
+ }
+ if (sourceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter sourceName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, mapName, sourceName, accept, context);
+ }
+
+ /**
+ * Get a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a DiscoverySourceResource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(String resourceGroupName, String mapName, String sourceName) {
+ return getWithResponseAsync(resourceGroupName, mapName, sourceName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a DiscoverySourceResource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(String resourceGroupName, String mapName,
+ String sourceName, Context context) {
+ return getWithResponseAsync(resourceGroupName, mapName, sourceName, context).block();
+ }
+
+ /**
+ * Get a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a DiscoverySourceResource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DiscoverySourceResourceInner get(String resourceGroupName, String mapName, String sourceName) {
+ return getWithResponse(resourceGroupName, mapName, sourceName, Context.NONE).getValue();
+ }
+
+ /**
+ * Create a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Discovery Source resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String mapName,
+ String sourceName, DiscoverySourceResourceInner resource) {
+ 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 (mapName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter mapName is required and cannot be null."));
+ }
+ if (sourceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter sourceName is required and cannot be null."));
+ }
+ if (resource == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null."));
+ } else {
+ resource.validate();
+ }
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, mapName, sourceName, contentType, accept, resource,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Create a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Discovery Source resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String mapName,
+ String sourceName, DiscoverySourceResourceInner resource, 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 (mapName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter mapName is required and cannot be null."));
+ }
+ if (sourceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter sourceName is required and cannot be null."));
+ }
+ if (resource == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null."));
+ } else {
+ resource.validate();
+ }
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, mapName, sourceName, contentType, accept, resource,
+ context);
+ }
+
+ /**
+ * Create a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of a Discovery Source resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, DiscoverySourceResourceInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String mapName, String sourceName, DiscoverySourceResourceInner resource) {
+ Mono>> mono
+ = createOrUpdateWithResponseAsync(resourceGroupName, mapName, sourceName, resource);
+ return this.client.getLroResult(mono,
+ this.client.getHttpPipeline(), DiscoverySourceResourceInner.class, DiscoverySourceResourceInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Create a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of a Discovery Source resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, DiscoverySourceResourceInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String mapName, String sourceName, DiscoverySourceResourceInner resource,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = createOrUpdateWithResponseAsync(resourceGroupName, mapName, sourceName, resource, context);
+ return this.client.getLroResult(mono,
+ this.client.getHttpPipeline(), DiscoverySourceResourceInner.class, DiscoverySourceResourceInner.class,
+ context);
+ }
+
+ /**
+ * Create a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a Discovery Source resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, DiscoverySourceResourceInner> beginCreateOrUpdate(
+ String resourceGroupName, String mapName, String sourceName, DiscoverySourceResourceInner resource) {
+ return this.beginCreateOrUpdateAsync(resourceGroupName, mapName, sourceName, resource).getSyncPoller();
+ }
+
+ /**
+ * Create a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a Discovery Source resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, DiscoverySourceResourceInner> beginCreateOrUpdate(
+ String resourceGroupName, String mapName, String sourceName, DiscoverySourceResourceInner resource,
+ Context context) {
+ return this.beginCreateOrUpdateAsync(resourceGroupName, mapName, sourceName, resource, context).getSyncPoller();
+ }
+
+ /**
+ * Create a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Discovery Source resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(String resourceGroupName, String mapName,
+ String sourceName, DiscoverySourceResourceInner resource) {
+ return beginCreateOrUpdateAsync(resourceGroupName, mapName, sourceName, resource).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Discovery Source resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(String resourceGroupName, String mapName,
+ String sourceName, DiscoverySourceResourceInner resource, Context context) {
+ return beginCreateOrUpdateAsync(resourceGroupName, mapName, sourceName, resource, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Discovery Source resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DiscoverySourceResourceInner createOrUpdate(String resourceGroupName, String mapName, String sourceName,
+ DiscoverySourceResourceInner resource) {
+ return createOrUpdateAsync(resourceGroupName, mapName, sourceName, resource).block();
+ }
+
+ /**
+ * Create a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Discovery Source resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DiscoverySourceResourceInner createOrUpdate(String resourceGroupName, String mapName, String sourceName,
+ DiscoverySourceResourceInner resource, Context context) {
+ return createOrUpdateAsync(resourceGroupName, mapName, sourceName, resource, context).block();
+ }
+
+ /**
+ * Update a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Discovery Source resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateWithResponseAsync(String resourceGroupName, String mapName,
+ String sourceName, DiscoverySourceResourceTagsUpdate properties) {
+ 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 (mapName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter mapName is required and cannot be null."));
+ }
+ if (sourceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter sourceName is required and cannot be null."));
+ }
+ if (properties == null) {
+ return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null."));
+ } else {
+ properties.validate();
+ }
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, mapName, sourceName, contentType, accept,
+ properties, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Update a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @param properties The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Discovery Source resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateWithResponseAsync(String resourceGroupName, String mapName,
+ String sourceName, DiscoverySourceResourceTagsUpdate properties, 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 (mapName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter mapName is required and cannot be null."));
+ }
+ if (sourceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter sourceName is required and cannot be null."));
+ }
+ if (properties == null) {
+ return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null."));
+ } else {
+ properties.validate();
+ }
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, mapName, sourceName, contentType, accept, properties, context);
+ }
+
+ /**
+ * Update a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of a Discovery Source resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, DiscoverySourceResourceInner> beginUpdateAsync(
+ String resourceGroupName, String mapName, String sourceName, DiscoverySourceResourceTagsUpdate properties) {
+ Mono>> mono
+ = updateWithResponseAsync(resourceGroupName, mapName, sourceName, properties);
+ return this.client.getLroResult(mono,
+ this.client.getHttpPipeline(), DiscoverySourceResourceInner.class, DiscoverySourceResourceInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Update a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @param properties The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of a Discovery Source resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, DiscoverySourceResourceInner> beginUpdateAsync(
+ String resourceGroupName, String mapName, String sourceName, DiscoverySourceResourceTagsUpdate properties,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = updateWithResponseAsync(resourceGroupName, mapName, sourceName, properties, context);
+ return this.client.getLroResult(mono,
+ this.client.getHttpPipeline(), DiscoverySourceResourceInner.class, DiscoverySourceResourceInner.class,
+ context);
+ }
+
+ /**
+ * Update a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a Discovery Source resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, DiscoverySourceResourceInner> beginUpdate(
+ String resourceGroupName, String mapName, String sourceName, DiscoverySourceResourceTagsUpdate properties) {
+ return this.beginUpdateAsync(resourceGroupName, mapName, sourceName, properties).getSyncPoller();
+ }
+
+ /**
+ * Update a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @param properties The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a Discovery Source resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, DiscoverySourceResourceInner> beginUpdate(
+ String resourceGroupName, String mapName, String sourceName, DiscoverySourceResourceTagsUpdate properties,
+ Context context) {
+ return this.beginUpdateAsync(resourceGroupName, mapName, sourceName, properties, context).getSyncPoller();
+ }
+
+ /**
+ * Update a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Discovery Source resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(String resourceGroupName, String mapName, String sourceName,
+ DiscoverySourceResourceTagsUpdate properties) {
+ return beginUpdateAsync(resourceGroupName, mapName, sourceName, properties).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Update a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @param properties The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Discovery Source resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(String resourceGroupName, String mapName, String sourceName,
+ DiscoverySourceResourceTagsUpdate properties, Context context) {
+ return beginUpdateAsync(resourceGroupName, mapName, sourceName, properties, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Update a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Discovery Source resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DiscoverySourceResourceInner update(String resourceGroupName, String mapName, String sourceName,
+ DiscoverySourceResourceTagsUpdate properties) {
+ return updateAsync(resourceGroupName, mapName, sourceName, properties).block();
+ }
+
+ /**
+ * Update a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @param properties The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Discovery Source resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DiscoverySourceResourceInner update(String resourceGroupName, String mapName, String sourceName,
+ DiscoverySourceResourceTagsUpdate properties, Context context) {
+ return updateAsync(resourceGroupName, mapName, sourceName, properties, context).block();
+ }
+
+ /**
+ * Delete a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(String resourceGroupName, String mapName,
+ String sourceName) {
+ 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 (mapName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter mapName is required and cannot be null."));
+ }
+ if (sourceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter sourceName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, mapName, sourceName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Delete a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(String resourceGroupName, String mapName,
+ String sourceName, 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 (mapName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter mapName is required and cannot be null."));
+ }
+ if (sourceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter sourceName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, mapName, sourceName, accept, context);
+ }
+
+ /**
+ * Delete a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String mapName,
+ String sourceName) {
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, mapName, sourceName);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Delete a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String mapName,
+ String sourceName, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = deleteWithResponseAsync(resourceGroupName, mapName, sourceName, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ context);
+ }
+
+ /**
+ * Delete a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String mapName, String sourceName) {
+ return this.beginDeleteAsync(resourceGroupName, mapName, sourceName).getSyncPoller();
+ }
+
+ /**
+ * Delete a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String mapName, String sourceName,
+ Context context) {
+ return this.beginDeleteAsync(resourceGroupName, mapName, sourceName, context).getSyncPoller();
+ }
+
+ /**
+ * Delete a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String mapName, String sourceName) {
+ return beginDeleteAsync(resourceGroupName, mapName, sourceName).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String mapName, String sourceName, Context context) {
+ return beginDeleteAsync(resourceGroupName, mapName, sourceName, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @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 delete(String resourceGroupName, String mapName, String sourceName) {
+ deleteAsync(resourceGroupName, mapName, sourceName).block();
+ }
+
+ /**
+ * Delete a DiscoverySourceResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param sourceName discovery source resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String mapName, String sourceName, Context context) {
+ deleteAsync(resourceGroupName, mapName, sourceName, context).block();
+ }
+
+ /**
+ * List DiscoverySourceResource resources by MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps 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 response of a DiscoverySourceResource list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ listByMapsResourceSinglePageAsync(String resourceGroupName, String mapName) {
+ 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 (mapName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter mapName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listByMapsResource(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, mapName, accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List DiscoverySourceResource resources by MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps 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 response of a DiscoverySourceResource list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ listByMapsResourceSinglePageAsync(String resourceGroupName, String mapName, 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 (mapName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter mapName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByMapsResource(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, mapName, accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+
+ /**
+ * List DiscoverySourceResource resources by MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps 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 response of a DiscoverySourceResource list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByMapsResourceAsync(String resourceGroupName, String mapName) {
+ return new PagedFlux<>(() -> listByMapsResourceSinglePageAsync(resourceGroupName, mapName),
+ nextLink -> listByMapsResourceNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List DiscoverySourceResource resources by MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps 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 response of a DiscoverySourceResource list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByMapsResourceAsync(String resourceGroupName, String mapName,
+ Context context) {
+ return new PagedFlux<>(() -> listByMapsResourceSinglePageAsync(resourceGroupName, mapName, context),
+ nextLink -> listByMapsResourceNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List DiscoverySourceResource resources by MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps 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 response of a DiscoverySourceResource list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByMapsResource(String resourceGroupName, String mapName) {
+ return new PagedIterable<>(listByMapsResourceAsync(resourceGroupName, mapName));
+ }
+
+ /**
+ * List DiscoverySourceResource resources by MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps 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 response of a DiscoverySourceResource list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByMapsResource(String resourceGroupName, String mapName,
+ Context context) {
+ return new PagedIterable<>(listByMapsResourceAsync(resourceGroupName, mapName, context));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a DiscoverySourceResource list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByMapsResourceNextSinglePageAsync(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.listByMapsResourceNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a DiscoverySourceResource list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByMapsResourceNextSinglePageAsync(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.listByMapsResourceNext(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/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/implementation/DiscoverySourcesImpl.java b/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/implementation/DiscoverySourcesImpl.java
new file mode 100644
index 000000000000..44bd04cbcab3
--- /dev/null
+++ b/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/implementation/DiscoverySourcesImpl.java
@@ -0,0 +1,159 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.dependencymap.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.dependencymap.fluent.DiscoverySourcesClient;
+import com.azure.resourcemanager.dependencymap.fluent.models.DiscoverySourceResourceInner;
+import com.azure.resourcemanager.dependencymap.models.DiscoverySourceResource;
+import com.azure.resourcemanager.dependencymap.models.DiscoverySources;
+
+public final class DiscoverySourcesImpl implements DiscoverySources {
+ private static final ClientLogger LOGGER = new ClientLogger(DiscoverySourcesImpl.class);
+
+ private final DiscoverySourcesClient innerClient;
+
+ private final com.azure.resourcemanager.dependencymap.DependencyMapManager serviceManager;
+
+ public DiscoverySourcesImpl(DiscoverySourcesClient innerClient,
+ com.azure.resourcemanager.dependencymap.DependencyMapManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public Response getWithResponse(String resourceGroupName, String mapName,
+ String sourceName, Context context) {
+ Response inner
+ = this.serviceClient().getWithResponse(resourceGroupName, mapName, sourceName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new DiscoverySourceResourceImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public DiscoverySourceResource get(String resourceGroupName, String mapName, String sourceName) {
+ DiscoverySourceResourceInner inner = this.serviceClient().get(resourceGroupName, mapName, sourceName);
+ if (inner != null) {
+ return new DiscoverySourceResourceImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public void delete(String resourceGroupName, String mapName, String sourceName) {
+ this.serviceClient().delete(resourceGroupName, mapName, sourceName);
+ }
+
+ public void delete(String resourceGroupName, String mapName, String sourceName, Context context) {
+ this.serviceClient().delete(resourceGroupName, mapName, sourceName, context);
+ }
+
+ public PagedIterable listByMapsResource(String resourceGroupName, String mapName) {
+ PagedIterable inner
+ = this.serviceClient().listByMapsResource(resourceGroupName, mapName);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new DiscoverySourceResourceImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByMapsResource(String resourceGroupName, String mapName,
+ Context context) {
+ PagedIterable inner
+ = this.serviceClient().listByMapsResource(resourceGroupName, mapName, context);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new DiscoverySourceResourceImpl(inner1, this.manager()));
+ }
+
+ public DiscoverySourceResource getById(String id) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String mapName = ResourceManagerUtils.getValueFromIdByName(id, "maps");
+ if (mapName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'maps'.", id)));
+ }
+ String sourceName = ResourceManagerUtils.getValueFromIdByName(id, "discoverySources");
+ if (sourceName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'discoverySources'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, mapName, sourceName, Context.NONE).getValue();
+ }
+
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String mapName = ResourceManagerUtils.getValueFromIdByName(id, "maps");
+ if (mapName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'maps'.", id)));
+ }
+ String sourceName = ResourceManagerUtils.getValueFromIdByName(id, "discoverySources");
+ if (sourceName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'discoverySources'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, mapName, sourceName, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String mapName = ResourceManagerUtils.getValueFromIdByName(id, "maps");
+ if (mapName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'maps'.", id)));
+ }
+ String sourceName = ResourceManagerUtils.getValueFromIdByName(id, "discoverySources");
+ if (sourceName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'discoverySources'.", id)));
+ }
+ this.delete(resourceGroupName, mapName, sourceName, Context.NONE);
+ }
+
+ public void deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String mapName = ResourceManagerUtils.getValueFromIdByName(id, "maps");
+ if (mapName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'maps'.", id)));
+ }
+ String sourceName = ResourceManagerUtils.getValueFromIdByName(id, "discoverySources");
+ if (sourceName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'discoverySources'.", id)));
+ }
+ this.delete(resourceGroupName, mapName, sourceName, context);
+ }
+
+ private DiscoverySourcesClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.dependencymap.DependencyMapManager manager() {
+ return this.serviceManager;
+ }
+
+ public DiscoverySourceResourceImpl define(String name) {
+ return new DiscoverySourceResourceImpl(name, this.manager());
+ }
+}
diff --git a/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/implementation/MapsClientImpl.java b/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/implementation/MapsClientImpl.java
new file mode 100644
index 000000000000..3ea2608af576
--- /dev/null
+++ b/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/implementation/MapsClientImpl.java
@@ -0,0 +1,2255 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.dependencymap.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.dependencymap.fluent.MapsClient;
+import com.azure.resourcemanager.dependencymap.fluent.models.MapsResourceInner;
+import com.azure.resourcemanager.dependencymap.implementation.models.MapsResourceListResult;
+import com.azure.resourcemanager.dependencymap.models.ExportDependenciesRequest;
+import com.azure.resourcemanager.dependencymap.models.GetConnectionsForProcessOnFocusedMachineRequest;
+import com.azure.resourcemanager.dependencymap.models.GetConnectionsWithConnectedMachineForFocusedMachineRequest;
+import com.azure.resourcemanager.dependencymap.models.GetDependencyViewForFocusedMachineRequest;
+import com.azure.resourcemanager.dependencymap.models.MapsResourceTagsUpdate;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in MapsClient.
+ */
+public final class MapsClientImpl implements MapsClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final MapsService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final DependencyMapManagementClientImpl client;
+
+ /**
+ * Initializes an instance of MapsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ MapsClientImpl(DependencyMapManagementClientImpl client) {
+ this.service = RestProxy.create(MapsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for DependencyMapManagementClientMaps to be used by the proxy service to
+ * perform REST calls.
+ */
+ @Host("{endpoint}")
+ @ServiceInterface(name = "DependencyMapManagem")
+ public interface MapsService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DependencyMap/maps/{mapName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getByResourceGroup(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("mapName") String mapName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DependencyMap/maps/{mapName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> createOrUpdate(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("mapName") String mapName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") MapsResourceInner resource, Context context);
+
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DependencyMap/maps/{mapName}")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> update(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("mapName") String mapName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") MapsResourceTagsUpdate properties, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DependencyMap/maps/{mapName}")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> delete(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("mapName") String mapName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DependencyMap/maps")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByResourceGroup(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.DependencyMap/maps")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DependencyMap/maps/{mapName}/getDependencyViewForFocusedMachine")
+ @ExpectedResponses({ 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> getDependencyViewForFocusedMachine(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("mapName") String mapName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") GetDependencyViewForFocusedMachineRequest body, Context context);
+
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DependencyMap/maps/{mapName}/getConnectionsWithConnectedMachineForFocusedMachine")
+ @ExpectedResponses({ 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> getConnectionsWithConnectedMachineForFocusedMachine(
+ @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("mapName") String mapName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") GetConnectionsWithConnectedMachineForFocusedMachineRequest body,
+ Context context);
+
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DependencyMap/maps/{mapName}/getConnectionsForProcessOnFocusedMachine")
+ @ExpectedResponses({ 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> getConnectionsForProcessOnFocusedMachine(
+ @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("mapName") String mapName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") GetConnectionsForProcessOnFocusedMachineRequest body, Context context);
+
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DependencyMap/maps/{mapName}/exportDependencies")
+ @ExpectedResponses({ 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> exportDependencies(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("mapName") String mapName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") ExportDependenciesRequest body, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByResourceGroupNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listBySubscriptionNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * Get a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps 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 a MapsResource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
+ String mapName) {
+ 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 (mapName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter mapName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, mapName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps 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 a MapsResource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
+ String mapName, 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 (mapName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter mapName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, mapName, accept, context);
+ }
+
+ /**
+ * Get a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps 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 a MapsResource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getByResourceGroupAsync(String resourceGroupName, String mapName) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, mapName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps 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 a MapsResource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getByResourceGroupWithResponse(String resourceGroupName, String mapName,
+ Context context) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, mapName, context).block();
+ }
+
+ /**
+ * Get a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps 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 a MapsResource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public MapsResourceInner getByResourceGroup(String resourceGroupName, String mapName) {
+ return getByResourceGroupWithResponse(resourceGroupName, mapName, Context.NONE).getValue();
+ }
+
+ /**
+ * Create a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Maps resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String mapName,
+ MapsResourceInner resource) {
+ 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 (mapName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter mapName is required and cannot be null."));
+ }
+ if (resource == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null."));
+ } else {
+ resource.validate();
+ }
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, mapName, contentType, accept, resource, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Create a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Maps resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String mapName,
+ MapsResourceInner resource, 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 (mapName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter mapName is required and cannot be null."));
+ }
+ if (resource == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null."));
+ } else {
+ resource.validate();
+ }
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, mapName, contentType, accept, resource, context);
+ }
+
+ /**
+ * Create a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of a Maps resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, MapsResourceInner>
+ beginCreateOrUpdateAsync(String resourceGroupName, String mapName, MapsResourceInner resource) {
+ Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, mapName, resource);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ MapsResourceInner.class, MapsResourceInner.class, this.client.getContext());
+ }
+
+ /**
+ * Create a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of a Maps resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, MapsResourceInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String mapName, MapsResourceInner resource, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = createOrUpdateWithResponseAsync(resourceGroupName, mapName, resource, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ MapsResourceInner.class, MapsResourceInner.class, context);
+ }
+
+ /**
+ * Create a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a Maps resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, MapsResourceInner> beginCreateOrUpdate(String resourceGroupName,
+ String mapName, MapsResourceInner resource) {
+ return this.beginCreateOrUpdateAsync(resourceGroupName, mapName, resource).getSyncPoller();
+ }
+
+ /**
+ * Create a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a Maps resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, MapsResourceInner> beginCreateOrUpdate(String resourceGroupName,
+ String mapName, MapsResourceInner resource, Context context) {
+ return this.beginCreateOrUpdateAsync(resourceGroupName, mapName, resource, context).getSyncPoller();
+ }
+
+ /**
+ * Create a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Maps resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(String resourceGroupName, String mapName,
+ MapsResourceInner resource) {
+ return beginCreateOrUpdateAsync(resourceGroupName, mapName, resource).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Maps resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(String resourceGroupName, String mapName,
+ MapsResourceInner resource, Context context) {
+ return beginCreateOrUpdateAsync(resourceGroupName, mapName, resource, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Maps resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public MapsResourceInner createOrUpdate(String resourceGroupName, String mapName, MapsResourceInner resource) {
+ return createOrUpdateAsync(resourceGroupName, mapName, resource).block();
+ }
+
+ /**
+ * Create a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Maps resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public MapsResourceInner createOrUpdate(String resourceGroupName, String mapName, MapsResourceInner resource,
+ Context context) {
+ return createOrUpdateAsync(resourceGroupName, mapName, resource, context).block();
+ }
+
+ /**
+ * Update a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Maps resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateWithResponseAsync(String resourceGroupName, String mapName,
+ MapsResourceTagsUpdate properties) {
+ 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 (mapName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter mapName is required and cannot be null."));
+ }
+ if (properties == null) {
+ return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null."));
+ } else {
+ properties.validate();
+ }
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, mapName, contentType, accept, properties, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Update a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param properties The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Maps resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateWithResponseAsync(String resourceGroupName, String mapName,
+ MapsResourceTagsUpdate properties, 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 (mapName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter mapName is required and cannot be null."));
+ }
+ if (properties == null) {
+ return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null."));
+ } else {
+ properties.validate();
+ }
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, mapName, contentType, accept, properties, context);
+ }
+
+ /**
+ * Update a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of a Maps resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, MapsResourceInner> beginUpdateAsync(String resourceGroupName,
+ String mapName, MapsResourceTagsUpdate properties) {
+ Mono>> mono = updateWithResponseAsync(resourceGroupName, mapName, properties);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ MapsResourceInner.class, MapsResourceInner.class, this.client.getContext());
+ }
+
+ /**
+ * Update a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param properties The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of a Maps resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, MapsResourceInner> beginUpdateAsync(String resourceGroupName,
+ String mapName, MapsResourceTagsUpdate properties, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = updateWithResponseAsync(resourceGroupName, mapName, properties, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ MapsResourceInner.class, MapsResourceInner.class, context);
+ }
+
+ /**
+ * Update a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a Maps resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, MapsResourceInner> beginUpdate(String resourceGroupName,
+ String mapName, MapsResourceTagsUpdate properties) {
+ return this.beginUpdateAsync(resourceGroupName, mapName, properties).getSyncPoller();
+ }
+
+ /**
+ * Update a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param properties The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a Maps resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, MapsResourceInner> beginUpdate(String resourceGroupName,
+ String mapName, MapsResourceTagsUpdate properties, Context context) {
+ return this.beginUpdateAsync(resourceGroupName, mapName, properties, context).getSyncPoller();
+ }
+
+ /**
+ * Update a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Maps resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(String resourceGroupName, String mapName,
+ MapsResourceTagsUpdate properties) {
+ return beginUpdateAsync(resourceGroupName, mapName, properties).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Update a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param properties The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Maps resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(String resourceGroupName, String mapName,
+ MapsResourceTagsUpdate properties, Context context) {
+ return beginUpdateAsync(resourceGroupName, mapName, properties, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Update a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Maps resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public MapsResourceInner update(String resourceGroupName, String mapName, MapsResourceTagsUpdate properties) {
+ return updateAsync(resourceGroupName, mapName, properties).block();
+ }
+
+ /**
+ * Update a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param properties The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Maps resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public MapsResourceInner update(String resourceGroupName, String mapName, MapsResourceTagsUpdate properties,
+ Context context) {
+ return updateAsync(resourceGroupName, mapName, properties, context).block();
+ }
+
+ /**
+ * Delete a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps 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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(String resourceGroupName, String mapName) {
+ 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 (mapName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter mapName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, mapName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Delete a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps 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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(String resourceGroupName, String mapName,
+ 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 (mapName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter mapName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, mapName, accept, context);
+ }
+
+ /**
+ * Delete a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps 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 {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String mapName) {
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, mapName);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Delete a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps 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 {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String mapName,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, mapName, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ context);
+ }
+
+ /**
+ * Delete a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps 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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String mapName) {
+ return this.beginDeleteAsync(resourceGroupName, mapName).getSyncPoller();
+ }
+
+ /**
+ * Delete a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps 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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String mapName, Context context) {
+ return this.beginDeleteAsync(resourceGroupName, mapName, context).getSyncPoller();
+ }
+
+ /**
+ * Delete a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps 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 A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String mapName) {
+ return beginDeleteAsync(resourceGroupName, mapName).last().flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps 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 A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String mapName, Context context) {
+ return beginDeleteAsync(resourceGroupName, mapName, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps 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 delete(String resourceGroupName, String mapName) {
+ deleteAsync(resourceGroupName, mapName).block();
+ }
+
+ /**
+ * Delete a MapsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String mapName, Context context) {
+ deleteAsync(resourceGroupName, mapName, context).block();
+ }
+
+ /**
+ * List MapsResource resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @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 of a MapsResource list operation along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) {
+ 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."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
+ res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List MapsResource resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 of a MapsResource list operation along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName,
+ 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."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+
+ /**
+ * List MapsResource resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @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 of a MapsResource list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByResourceGroupAsync(String resourceGroupName) {
+ return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName),
+ nextLink -> listByResourceGroupNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List MapsResource resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 of a MapsResource list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) {
+ return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context),
+ nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List MapsResource resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @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 of a MapsResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByResourceGroup(String resourceGroupName) {
+ return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName));
+ }
+
+ /**
+ * List MapsResource resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 of a MapsResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByResourceGroup(String resourceGroupName, Context context) {
+ return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context));
+ }
+
+ /**
+ * List MapsResource resources by subscription ID.
+ *
+ * @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 of a MapsResource list operation along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @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.getApiVersion(),
+ this.client.getSubscriptionId(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
+ res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List MapsResource resources by subscription ID.
+ *
+ * @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 of a MapsResource list operation along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @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.getApiVersion(), this.client.getSubscriptionId(), accept,
+ context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+
+ /**
+ * List MapsResource resources by subscription ID.
+ *
+ * @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 of a MapsResource list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync() {
+ return new PagedFlux<>(() -> listSinglePageAsync(),
+ nextLink -> listBySubscriptionNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List MapsResource resources by subscription ID.
+ *
+ * @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 of a MapsResource list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(Context context) {
+ return new PagedFlux<>(() -> listSinglePageAsync(context),
+ nextLink -> listBySubscriptionNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List MapsResource resources by subscription ID.
+ *
+ * @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 of a MapsResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list() {
+ return new PagedIterable<>(listAsync());
+ }
+
+ /**
+ * List MapsResource resources by subscription ID.
+ *
+ * @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 of a MapsResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(Context context) {
+ return new PagedIterable<>(listAsync(context));
+ }
+
+ /**
+ * Get dependency map of single machine.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @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 dependency map of single machine along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> getDependencyViewForFocusedMachineWithResponseAsync(
+ String resourceGroupName, String mapName, GetDependencyViewForFocusedMachineRequest 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 (mapName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter mapName is required and cannot be null."));
+ }
+ if (body == null) {
+ return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
+ } else {
+ body.validate();
+ }
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.getDependencyViewForFocusedMachine(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, mapName, contentType,
+ accept, body, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get dependency map of single machine.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @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 dependency map of single machine along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> getDependencyViewForFocusedMachineWithResponseAsync(
+ String resourceGroupName, String mapName, GetDependencyViewForFocusedMachineRequest 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 (mapName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter mapName is required and cannot be null."));
+ }
+ if (body == null) {
+ return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
+ } else {
+ body.validate();
+ }
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.getDependencyViewForFocusedMachine(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, mapName, contentType, accept, body, context);
+ }
+
+ /**
+ * Get dependency map of single machine.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of dependency map of single machine.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginGetDependencyViewForFocusedMachineAsync(String resourceGroupName,
+ String mapName, GetDependencyViewForFocusedMachineRequest body) {
+ Mono>> mono
+ = getDependencyViewForFocusedMachineWithResponseAsync(resourceGroupName, mapName, body);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Get dependency map of single machine.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of dependency map of single machine.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginGetDependencyViewForFocusedMachineAsync(String resourceGroupName,
+ String mapName, GetDependencyViewForFocusedMachineRequest body, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = getDependencyViewForFocusedMachineWithResponseAsync(resourceGroupName, mapName, body, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ context);
+ }
+
+ /**
+ * Get dependency map of single machine.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of dependency map of single machine.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginGetDependencyViewForFocusedMachine(String resourceGroupName,
+ String mapName, GetDependencyViewForFocusedMachineRequest body) {
+ return this.beginGetDependencyViewForFocusedMachineAsync(resourceGroupName, mapName, body).getSyncPoller();
+ }
+
+ /**
+ * Get dependency map of single machine.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of dependency map of single machine.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginGetDependencyViewForFocusedMachine(String resourceGroupName,
+ String mapName, GetDependencyViewForFocusedMachineRequest body, Context context) {
+ return this.beginGetDependencyViewForFocusedMachineAsync(resourceGroupName, mapName, body, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Get dependency map of single machine.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @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 dependency map of single machine on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getDependencyViewForFocusedMachineAsync(String resourceGroupName, String mapName,
+ GetDependencyViewForFocusedMachineRequest body) {
+ return beginGetDependencyViewForFocusedMachineAsync(resourceGroupName, mapName, body).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Get dependency map of single machine.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @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 dependency map of single machine on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getDependencyViewForFocusedMachineAsync(String resourceGroupName, String mapName,
+ GetDependencyViewForFocusedMachineRequest body, Context context) {
+ return beginGetDependencyViewForFocusedMachineAsync(resourceGroupName, mapName, body, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Get dependency map of single machine.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @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 getDependencyViewForFocusedMachine(String resourceGroupName, String mapName,
+ GetDependencyViewForFocusedMachineRequest body) {
+ getDependencyViewForFocusedMachineAsync(resourceGroupName, mapName, body).block();
+ }
+
+ /**
+ * Get dependency map of single machine.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void getDependencyViewForFocusedMachine(String resourceGroupName, String mapName,
+ GetDependencyViewForFocusedMachineRequest body, Context context) {
+ getDependencyViewForFocusedMachineAsync(resourceGroupName, mapName, body, context).block();
+ }
+
+ /**
+ * Get network connections between machines.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @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 network connections between machines along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> getConnectionsWithConnectedMachineForFocusedMachineWithResponseAsync(
+ String resourceGroupName, String mapName, GetConnectionsWithConnectedMachineForFocusedMachineRequest 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 (mapName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter mapName is required and cannot be null."));
+ }
+ if (body == null) {
+ return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
+ } else {
+ body.validate();
+ }
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.getConnectionsWithConnectedMachineForFocusedMachine(
+ this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, mapName, contentType, accept, body, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get network connections between machines.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @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 network connections between machines along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> getConnectionsWithConnectedMachineForFocusedMachineWithResponseAsync(
+ String resourceGroupName, String mapName, GetConnectionsWithConnectedMachineForFocusedMachineRequest 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 (mapName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter mapName is required and cannot be null."));
+ }
+ if (body == null) {
+ return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
+ } else {
+ body.validate();
+ }
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.getConnectionsWithConnectedMachineForFocusedMachine(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, mapName, contentType,
+ accept, body, context);
+ }
+
+ /**
+ * Get network connections between machines.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of network connections between machines.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginGetConnectionsWithConnectedMachineForFocusedMachineAsync(
+ String resourceGroupName, String mapName, GetConnectionsWithConnectedMachineForFocusedMachineRequest body) {
+ Mono>> mono
+ = getConnectionsWithConnectedMachineForFocusedMachineWithResponseAsync(resourceGroupName, mapName, body);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Get network connections between machines.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of network connections between machines.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginGetConnectionsWithConnectedMachineForFocusedMachineAsync(
+ String resourceGroupName, String mapName, GetConnectionsWithConnectedMachineForFocusedMachineRequest body,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono = getConnectionsWithConnectedMachineForFocusedMachineWithResponseAsync(
+ resourceGroupName, mapName, body, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ context);
+ }
+
+ /**
+ * Get network connections between machines.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of network connections between machines.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginGetConnectionsWithConnectedMachineForFocusedMachine(
+ String resourceGroupName, String mapName, GetConnectionsWithConnectedMachineForFocusedMachineRequest body) {
+ return this.beginGetConnectionsWithConnectedMachineForFocusedMachineAsync(resourceGroupName, mapName, body)
+ .getSyncPoller();
+ }
+
+ /**
+ * Get network connections between machines.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of network connections between machines.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginGetConnectionsWithConnectedMachineForFocusedMachine(
+ String resourceGroupName, String mapName, GetConnectionsWithConnectedMachineForFocusedMachineRequest body,
+ Context context) {
+ return this
+ .beginGetConnectionsWithConnectedMachineForFocusedMachineAsync(resourceGroupName, mapName, body, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Get network connections between machines.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @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 network connections between machines on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getConnectionsWithConnectedMachineForFocusedMachineAsync(String resourceGroupName,
+ String mapName, GetConnectionsWithConnectedMachineForFocusedMachineRequest body) {
+ return beginGetConnectionsWithConnectedMachineForFocusedMachineAsync(resourceGroupName, mapName, body).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Get network connections between machines.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @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 network connections between machines on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getConnectionsWithConnectedMachineForFocusedMachineAsync(String resourceGroupName,
+ String mapName, GetConnectionsWithConnectedMachineForFocusedMachineRequest body, Context context) {
+ return beginGetConnectionsWithConnectedMachineForFocusedMachineAsync(resourceGroupName, mapName, body, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Get network connections between machines.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @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 getConnectionsWithConnectedMachineForFocusedMachine(String resourceGroupName, String mapName,
+ GetConnectionsWithConnectedMachineForFocusedMachineRequest body) {
+ getConnectionsWithConnectedMachineForFocusedMachineAsync(resourceGroupName, mapName, body).block();
+ }
+
+ /**
+ * Get network connections between machines.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void getConnectionsWithConnectedMachineForFocusedMachine(String resourceGroupName, String mapName,
+ GetConnectionsWithConnectedMachineForFocusedMachineRequest body, Context context) {
+ getConnectionsWithConnectedMachineForFocusedMachineAsync(resourceGroupName, mapName, body, context).block();
+ }
+
+ /**
+ * Get network connections of a process.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @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 network connections of a process along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> getConnectionsForProcessOnFocusedMachineWithResponseAsync(
+ String resourceGroupName, String mapName, GetConnectionsForProcessOnFocusedMachineRequest 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 (mapName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter mapName is required and cannot be null."));
+ }
+ if (body == null) {
+ return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
+ } else {
+ body.validate();
+ }
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.getConnectionsForProcessOnFocusedMachine(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, mapName, contentType,
+ accept, body, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get network connections of a process.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @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 network connections of a process along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> getConnectionsForProcessOnFocusedMachineWithResponseAsync(
+ String resourceGroupName, String mapName, GetConnectionsForProcessOnFocusedMachineRequest 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 (mapName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter mapName is required and cannot be null."));
+ }
+ if (body == null) {
+ return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
+ } else {
+ body.validate();
+ }
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.getConnectionsForProcessOnFocusedMachine(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, mapName, contentType, accept, body, context);
+ }
+
+ /**
+ * Get network connections of a process.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of network connections of a process.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginGetConnectionsForProcessOnFocusedMachineAsync(
+ String resourceGroupName, String mapName, GetConnectionsForProcessOnFocusedMachineRequest body) {
+ Mono>> mono
+ = getConnectionsForProcessOnFocusedMachineWithResponseAsync(resourceGroupName, mapName, body);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Get network connections of a process.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of network connections of a process.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginGetConnectionsForProcessOnFocusedMachineAsync(
+ String resourceGroupName, String mapName, GetConnectionsForProcessOnFocusedMachineRequest body,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = getConnectionsForProcessOnFocusedMachineWithResponseAsync(resourceGroupName, mapName, body, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ context);
+ }
+
+ /**
+ * Get network connections of a process.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of network connections of a process.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginGetConnectionsForProcessOnFocusedMachine(String resourceGroupName,
+ String mapName, GetConnectionsForProcessOnFocusedMachineRequest body) {
+ return this.beginGetConnectionsForProcessOnFocusedMachineAsync(resourceGroupName, mapName, body)
+ .getSyncPoller();
+ }
+
+ /**
+ * Get network connections of a process.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of network connections of a process.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginGetConnectionsForProcessOnFocusedMachine(String resourceGroupName,
+ String mapName, GetConnectionsForProcessOnFocusedMachineRequest body, Context context) {
+ return this.beginGetConnectionsForProcessOnFocusedMachineAsync(resourceGroupName, mapName, body, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Get network connections of a process.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @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 network connections of a process on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getConnectionsForProcessOnFocusedMachineAsync(String resourceGroupName, String mapName,
+ GetConnectionsForProcessOnFocusedMachineRequest body) {
+ return beginGetConnectionsForProcessOnFocusedMachineAsync(resourceGroupName, mapName, body).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Get network connections of a process.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @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 network connections of a process on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getConnectionsForProcessOnFocusedMachineAsync(String resourceGroupName, String mapName,
+ GetConnectionsForProcessOnFocusedMachineRequest body, Context context) {
+ return beginGetConnectionsForProcessOnFocusedMachineAsync(resourceGroupName, mapName, body, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Get network connections of a process.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @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 getConnectionsForProcessOnFocusedMachine(String resourceGroupName, String mapName,
+ GetConnectionsForProcessOnFocusedMachineRequest body) {
+ getConnectionsForProcessOnFocusedMachineAsync(resourceGroupName, mapName, body).block();
+ }
+
+ /**
+ * Get network connections of a process.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void getConnectionsForProcessOnFocusedMachine(String resourceGroupName, String mapName,
+ GetConnectionsForProcessOnFocusedMachineRequest body, Context context) {
+ getConnectionsForProcessOnFocusedMachineAsync(resourceGroupName, mapName, body, context).block();
+ }
+
+ /**
+ * Export dependencies.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> exportDependenciesWithResponseAsync(String resourceGroupName,
+ String mapName, ExportDependenciesRequest 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 (mapName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter mapName is required and cannot be null."));
+ }
+ if (body == null) {
+ return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
+ } else {
+ body.validate();
+ }
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.exportDependencies(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, mapName, contentType, accept, body, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Export dependencies.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> exportDependenciesWithResponseAsync(String resourceGroupName,
+ String mapName, ExportDependenciesRequest 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 (mapName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter mapName is required and cannot be null."));
+ }
+ if (body == null) {
+ return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
+ } else {
+ body.validate();
+ }
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.exportDependencies(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, mapName, contentType, accept, body, context);
+ }
+
+ /**
+ * Export dependencies.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginExportDependenciesAsync(String resourceGroupName, String mapName,
+ ExportDependenciesRequest body) {
+ Mono>> mono = exportDependenciesWithResponseAsync(resourceGroupName, mapName, body);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Export dependencies.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginExportDependenciesAsync(String resourceGroupName, String mapName,
+ ExportDependenciesRequest body, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = exportDependenciesWithResponseAsync(resourceGroupName, mapName, body, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ context);
+ }
+
+ /**
+ * Export dependencies.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginExportDependencies(String resourceGroupName, String mapName,
+ ExportDependenciesRequest body) {
+ return this.beginExportDependenciesAsync(resourceGroupName, mapName, body).getSyncPoller();
+ }
+
+ /**
+ * Export dependencies.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginExportDependencies(String resourceGroupName, String mapName,
+ ExportDependenciesRequest body, Context context) {
+ return this.beginExportDependenciesAsync(resourceGroupName, mapName, body, context).getSyncPoller();
+ }
+
+ /**
+ * Export dependencies.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono exportDependenciesAsync(String resourceGroupName, String mapName,
+ ExportDependenciesRequest body) {
+ return beginExportDependenciesAsync(resourceGroupName, mapName, body).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Export dependencies.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono exportDependenciesAsync(String resourceGroupName, String mapName, ExportDependenciesRequest body,
+ Context context) {
+ return beginExportDependenciesAsync(resourceGroupName, mapName, body, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Export dependencies.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @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 exportDependencies(String resourceGroupName, String mapName, ExportDependenciesRequest body) {
+ exportDependenciesAsync(resourceGroupName, mapName, body).block();
+ }
+
+ /**
+ * Export dependencies.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mapName Maps resource name.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void exportDependencies(String resourceGroupName, String mapName, ExportDependenciesRequest body,
+ Context context) {
+ exportDependenciesAsync(resourceGroupName, mapName, body, context).block();
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a MapsResource list operation along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupNextSinglePageAsync(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.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
+ res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a MapsResource list operation along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupNextSinglePageAsync(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.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a MapsResource list operation along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listBySubscriptionNextSinglePageAsync(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.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
+ res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a MapsResource list operation along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listBySubscriptionNextSinglePageAsync(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.listBySubscriptionNext(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/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/implementation/MapsImpl.java b/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/implementation/MapsImpl.java
new file mode 100644
index 000000000000..b6d6e66709e9
--- /dev/null
+++ b/sdk/dependencymap/azure-resourcemanager-dependencymap/src/main/java/com/azure/resourcemanager/dependencymap/implementation/MapsImpl.java
@@ -0,0 +1,190 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.dependencymap.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.dependencymap.fluent.MapsClient;
+import com.azure.resourcemanager.dependencymap.fluent.models.MapsResourceInner;
+import com.azure.resourcemanager.dependencymap.models.ExportDependenciesRequest;
+import com.azure.resourcemanager.dependencymap.models.GetConnectionsForProcessOnFocusedMachineRequest;
+import com.azure.resourcemanager.dependencymap.models.GetConnectionsWithConnectedMachineForFocusedMachineRequest;
+import com.azure.resourcemanager.dependencymap.models.GetDependencyViewForFocusedMachineRequest;
+import com.azure.resourcemanager.dependencymap.models.Maps;
+import com.azure.resourcemanager.dependencymap.models.MapsResource;
+
+public final class MapsImpl implements Maps {
+ private static final ClientLogger LOGGER = new ClientLogger(MapsImpl.class);
+
+ private final MapsClient innerClient;
+
+ private final com.azure.resourcemanager.dependencymap.DependencyMapManager serviceManager;
+
+ public MapsImpl(MapsClient innerClient,
+ com.azure.resourcemanager.dependencymap.DependencyMapManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public Response