diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/ServiceLinkerManager.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/ServiceLinkerManager.java
index d2ca08ad1a68e..10c0bcf50b4f8 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/ServiceLinkerManager.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/ServiceLinkerManager.java
@@ -24,10 +24,16 @@
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.servicelinker.fluent.ServiceLinkerManagementClient;
+import com.azure.resourcemanager.servicelinker.implementation.ConfigurationNamesOperationsImpl;
+import com.azure.resourcemanager.servicelinker.implementation.ConnectorsImpl;
import com.azure.resourcemanager.servicelinker.implementation.LinkersImpl;
+import com.azure.resourcemanager.servicelinker.implementation.LinkersOperationsImpl;
import com.azure.resourcemanager.servicelinker.implementation.OperationsImpl;
import com.azure.resourcemanager.servicelinker.implementation.ServiceLinkerManagementClientBuilder;
+import com.azure.resourcemanager.servicelinker.models.ConfigurationNamesOperations;
+import com.azure.resourcemanager.servicelinker.models.Connectors;
import com.azure.resourcemanager.servicelinker.models.Linkers;
+import com.azure.resourcemanager.servicelinker.models.LinkersOperations;
import com.azure.resourcemanager.servicelinker.models.Operations;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
@@ -36,28 +42,34 @@
import java.util.Objects;
import java.util.stream.Collectors;
-/** Entry point to ServiceLinkerManager. Microsoft.ServiceLinker provider. */
+/**
+ * Entry point to ServiceLinkerManager.
+ * Microsoft.ServiceLinker provider.
+ */
public final class ServiceLinkerManager {
+ private Connectors connectors;
+
private Linkers linkers;
+ private LinkersOperations linkersOperations;
+
private Operations operations;
+ private ConfigurationNamesOperations configurationNamesOperations;
+
private final ServiceLinkerManagementClient clientObject;
private ServiceLinkerManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
- this.clientObject =
- new ServiceLinkerManagementClientBuilder()
- .pipeline(httpPipeline)
- .endpoint(profile.getEnvironment().getResourceManagerEndpoint())
- .defaultPollInterval(defaultPollInterval)
- .buildClient();
+ this.clientObject = new ServiceLinkerManagementClientBuilder().pipeline(httpPipeline)
+ .endpoint(profile.getEnvironment().getResourceManagerEndpoint()).defaultPollInterval(defaultPollInterval)
+ .buildClient();
}
/**
* Creates an instance of ServiceLinker service API entry point.
- *
+ *
* @param credential the credential to use.
* @param profile the Azure profile for client.
* @return the ServiceLinker service API instance.
@@ -70,7 +82,7 @@ public static ServiceLinkerManager authenticate(TokenCredential credential, Azur
/**
* Creates an instance of ServiceLinker service API entry point.
- *
+ *
* @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential.
* @param profile the Azure profile for client.
* @return the ServiceLinker service API instance.
@@ -83,14 +95,16 @@ public static ServiceLinkerManager authenticate(HttpPipeline httpPipeline, Azure
/**
* Gets a Configurable instance that can be used to create ServiceLinkerManager with optional configuration.
- *
+ *
* @return the Configurable instance allowing configurations.
*/
public static Configurable configure() {
return new ServiceLinkerManager.Configurable();
}
- /** The Configurable allowing configurations to be set. */
+ /**
+ * The Configurable allowing configurations to be set.
+ */
public static final class Configurable {
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
@@ -162,8 +176,8 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
/**
* Sets the retry options for the HTTP pipeline retry policy.
- *
- * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
+ *
+ * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
*
* @param retryOptions the retry options for the HTTP pipeline retry policy.
* @return the configurable object itself.
@@ -180,8 +194,8 @@ public Configurable withRetryOptions(RetryOptions retryOptions) {
* @return the configurable object itself.
*/
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
- this.defaultPollInterval =
- Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
+ this.defaultPollInterval
+ = Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
if (this.defaultPollInterval.isNegative()) {
throw LOGGER
.logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
@@ -201,21 +215,12 @@ public ServiceLinkerManager authenticate(TokenCredential credential, AzureProfil
Objects.requireNonNull(profile, "'profile' cannot be null.");
StringBuilder userAgentBuilder = new StringBuilder();
- userAgentBuilder
- .append("azsdk-java")
- .append("-")
- .append("com.azure.resourcemanager.servicelinker")
- .append("/")
- .append("1.0.0-beta.2");
+ userAgentBuilder.append("azsdk-java").append("-").append("com.azure.resourcemanager.servicelinker")
+ .append("/").append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
- userAgentBuilder
- .append(" (")
- .append(Configuration.getGlobalConfiguration().get("java.version"))
- .append("; ")
- .append(Configuration.getGlobalConfiguration().get("os.name"))
- .append("; ")
- .append(Configuration.getGlobalConfiguration().get("os.version"))
- .append("; auto-generated)");
+ userAgentBuilder.append(" (").append(Configuration.getGlobalConfiguration().get("java.version"))
+ .append("; ").append(Configuration.getGlobalConfiguration().get("os.name")).append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.version")).append("; auto-generated)");
} else {
userAgentBuilder.append(" (auto-generated)");
}
@@ -234,38 +239,37 @@ public ServiceLinkerManager authenticate(TokenCredential credential, AzureProfil
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
policies.add(new AddHeadersFromContextPolicy());
policies.add(new RequestIdPolicy());
- policies
- .addAll(
- this
- .policies
- .stream()
- .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
- .collect(Collectors.toList()));
+ policies.addAll(this.policies.stream().filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .collect(Collectors.toList()));
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
- policies
- .addAll(
- this
- .policies
- .stream()
- .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
- .collect(Collectors.toList()));
+ policies.addAll(this.policies.stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY).collect(Collectors.toList()));
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
- HttpPipeline httpPipeline =
- new HttpPipelineBuilder()
- .httpClient(httpClient)
- .policies(policies.toArray(new HttpPipelinePolicy[0]))
- .build();
+ HttpPipeline httpPipeline = new HttpPipelineBuilder().httpClient(httpClient)
+ .policies(policies.toArray(new HttpPipelinePolicy[0])).build();
return new ServiceLinkerManager(httpPipeline, profile, defaultPollInterval);
}
}
/**
- * Gets the resource collection API of Linkers. It manages LinkerResource.
- *
+ * Gets the resource collection API of Connectors. It manages DryrunResource, LinkerResource.
+ *
+ * @return Resource collection API of Connectors.
+ */
+ public Connectors connectors() {
+ if (this.connectors == null) {
+ this.connectors = new ConnectorsImpl(clientObject.getConnectors(), this);
+ }
+ return connectors;
+ }
+
+ /**
+ * Gets the resource collection API of Linkers.
+ *
* @return Resource collection API of Linkers.
*/
public Linkers linkers() {
@@ -275,9 +279,21 @@ public Linkers linkers() {
return linkers;
}
+ /**
+ * Gets the resource collection API of LinkersOperations.
+ *
+ * @return Resource collection API of LinkersOperations.
+ */
+ public LinkersOperations linkersOperations() {
+ if (this.linkersOperations == null) {
+ this.linkersOperations = new LinkersOperationsImpl(clientObject.getLinkersOperations(), this);
+ }
+ return linkersOperations;
+ }
+
/**
* Gets the resource collection API of Operations.
- *
+ *
* @return Resource collection API of Operations.
*/
public Operations operations() {
@@ -288,8 +304,23 @@ public Operations operations() {
}
/**
- * @return Wrapped service client ServiceLinkerManagementClient providing direct access to the underlying
- * auto-generated API implementation, based on Azure REST API.
+ * Gets the resource collection API of ConfigurationNamesOperations.
+ *
+ * @return Resource collection API of ConfigurationNamesOperations.
+ */
+ public ConfigurationNamesOperations configurationNamesOperations() {
+ if (this.configurationNamesOperations == null) {
+ this.configurationNamesOperations
+ = new ConfigurationNamesOperationsImpl(clientObject.getConfigurationNamesOperations(), this);
+ }
+ return configurationNamesOperations;
+ }
+
+ /**
+ * Gets wrapped service client ServiceLinkerManagementClient providing direct access to the underlying
+ * auto-generated API implementation, based on Azure REST API.
+ *
+ * @return Wrapped service client ServiceLinkerManagementClient.
*/
public ServiceLinkerManagementClient serviceClient() {
return this.clientObject;
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/ConfigurationNamesOperationsClient.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/ConfigurationNamesOperationsClient.java
new file mode 100644
index 0000000000000..31e6122c78a7c
--- /dev/null
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/ConfigurationNamesOperationsClient.java
@@ -0,0 +1,42 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicelinker.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.servicelinker.fluent.models.ConfigurationNameItemInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in ConfigurationNamesOperationsClient.
+ */
+public interface ConfigurationNamesOperationsClient {
+ /**
+ * Lists the configuration names generated by Service Connector for all target, client types, auth types.
+ *
+ * @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 configuration Name list which will be set based on different target resource, client type, auth type as
+ * paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists the configuration names generated by Service Connector for all target, client types, auth types.
+ *
+ * @param filter OData filter options.
+ * @param skipToken OData skipToken option for pagination.
+ * @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 configuration Name list which will be set based on different target resource, client type, auth type as
+ * paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String filter, String skipToken, Context context);
+}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/ConnectorsClient.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/ConnectorsClient.java
new file mode 100644
index 0000000000000..585f772814b94
--- /dev/null
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/ConnectorsClient.java
@@ -0,0 +1,627 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicelinker.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.servicelinker.fluent.models.ConfigurationResultInner;
+import com.azure.resourcemanager.servicelinker.fluent.models.DryrunResourceInner;
+import com.azure.resourcemanager.servicelinker.fluent.models.LinkerResourceInner;
+import com.azure.resourcemanager.servicelinker.fluent.models.ValidateOperationResultInner;
+import com.azure.resourcemanager.servicelinker.models.ConfigurationInfo;
+import com.azure.resourcemanager.servicelinker.models.DryrunPatch;
+import com.azure.resourcemanager.servicelinker.models.LinkerPatch;
+
+/**
+ * An instance of this class provides access to all the operations defined in ConnectorsClient.
+ */
+public interface ConnectorsClient {
+ /**
+ * list dryrun jobs.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of dryrun as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listDryrun(String subscriptionId, String resourceGroupName, String location);
+
+ /**
+ * list dryrun jobs.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of dryrun as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listDryrun(String subscriptionId, String resourceGroupName, String location,
+ Context context);
+
+ /**
+ * get a dryrun job.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @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 dryrun job along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getDryrunWithResponse(String subscriptionId, String resourceGroupName,
+ String location, String dryrunName, Context context);
+
+ /**
+ * get a dryrun job.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @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 dryrun job.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DryrunResourceInner getDryrun(String subscriptionId, String resourceGroupName, String location, String dryrunName);
+
+ /**
+ * create a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun 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 a dryrun job resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DryrunResourceInner> beginCreateDryrun(String subscriptionId,
+ String resourceGroupName, String location, String dryrunName, DryrunResourceInner parameters);
+
+ /**
+ * create a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun 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 a dryrun job resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DryrunResourceInner> beginCreateDryrun(String subscriptionId,
+ String resourceGroupName, String location, String dryrunName, DryrunResourceInner parameters, Context context);
+
+ /**
+ * create a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun 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 dryrun job resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DryrunResourceInner createDryrun(String subscriptionId, String resourceGroupName, String location,
+ String dryrunName, DryrunResourceInner parameters);
+
+ /**
+ * create a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun 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 dryrun job resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DryrunResourceInner createDryrun(String subscriptionId, String resourceGroupName, String location,
+ String dryrunName, DryrunResourceInner parameters, Context context);
+
+ /**
+ * update a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun 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 a dryrun job resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DryrunResourceInner> beginUpdateDryrun(String subscriptionId,
+ String resourceGroupName, String location, String dryrunName, DryrunPatch parameters);
+
+ /**
+ * update a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun 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 a dryrun job resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DryrunResourceInner> beginUpdateDryrun(String subscriptionId,
+ String resourceGroupName, String location, String dryrunName, DryrunPatch parameters, Context context);
+
+ /**
+ * update a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun 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 dryrun job resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DryrunResourceInner updateDryrun(String subscriptionId, String resourceGroupName, String location,
+ String dryrunName, DryrunPatch parameters);
+
+ /**
+ * update a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun 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 dryrun job resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DryrunResourceInner updateDryrun(String subscriptionId, String resourceGroupName, String location,
+ String dryrunName, DryrunPatch parameters, Context context);
+
+ /**
+ * delete a dryrun job.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @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 Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteDryrunWithResponse(String subscriptionId, String resourceGroupName, String location,
+ String dryrunName, Context context);
+
+ /**
+ * delete a dryrun job.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @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 deleteDryrun(String subscriptionId, String resourceGroupName, String location, String dryrunName);
+
+ /**
+ * Returns list of connector which connects to the resource, which supports to config the target service during the
+ * resource provision.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of Linker as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String subscriptionId, String resourceGroupName, String location);
+
+ /**
+ * Returns list of connector which connects to the resource, which supports to config the target service during the
+ * resource provision.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of Linker as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String subscriptionId, String resourceGroupName, String location,
+ Context context);
+
+ /**
+ * Returns Connector resource for a given name.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of 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 linker of source and target resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String subscriptionId, String resourceGroupName, String location,
+ String connectorName, Context context);
+
+ /**
+ * Returns Connector resource for a given name.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of 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 linker of source and target resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LinkerResourceInner get(String subscriptionId, String resourceGroupName, String location, String connectorName);
+
+ /**
+ * Create or update Connector resource.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @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 linker of source and target resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, LinkerResourceInner> beginCreateOrUpdate(String subscriptionId,
+ String resourceGroupName, String location, String connectorName, LinkerResourceInner parameters);
+
+ /**
+ * Create or update Connector resource.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @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 linker of source and target resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, LinkerResourceInner> beginCreateOrUpdate(String subscriptionId,
+ String resourceGroupName, String location, String connectorName, LinkerResourceInner parameters,
+ Context context);
+
+ /**
+ * Create or update Connector resource.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @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 linker of source and target resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LinkerResourceInner createOrUpdate(String subscriptionId, String resourceGroupName, String location,
+ String connectorName, LinkerResourceInner parameters);
+
+ /**
+ * Create or update Connector resource.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @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 linker of source and target resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LinkerResourceInner createOrUpdate(String subscriptionId, String resourceGroupName, String location,
+ String connectorName, LinkerResourceInner parameters, Context context);
+
+ /**
+ * Delete a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of 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 subscriptionId, String resourceGroupName, String location,
+ String connectorName);
+
+ /**
+ * Delete a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of 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 subscriptionId, String resourceGroupName, String location,
+ String connectorName, Context context);
+
+ /**
+ * Delete a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of 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 subscriptionId, String resourceGroupName, String location, String connectorName);
+
+ /**
+ * Delete a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of 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 subscriptionId, String resourceGroupName, String location, String connectorName,
+ Context context);
+
+ /**
+ * Operation to update an existing Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @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 linker of source and target resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, LinkerResourceInner> beginUpdate(String subscriptionId,
+ String resourceGroupName, String location, String connectorName, LinkerPatch parameters);
+
+ /**
+ * Operation to update an existing Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @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 linker of source and target resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, LinkerResourceInner> beginUpdate(String subscriptionId,
+ String resourceGroupName, String location, String connectorName, LinkerPatch parameters, Context context);
+
+ /**
+ * Operation to update an existing Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @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 linker of source and target resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LinkerResourceInner update(String subscriptionId, String resourceGroupName, String location, String connectorName,
+ LinkerPatch parameters);
+
+ /**
+ * Operation to update an existing Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @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 linker of source and target resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LinkerResourceInner update(String subscriptionId, String resourceGroupName, String location, String connectorName,
+ LinkerPatch parameters, Context context);
+
+ /**
+ * Validate a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of 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 the validation operation result for a Linker.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ValidateOperationResultInner>
+ beginValidate(String subscriptionId, String resourceGroupName, String location, String connectorName);
+
+ /**
+ * Validate a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of 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 the validation operation result for a Linker.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ValidateOperationResultInner> beginValidate(
+ String subscriptionId, String resourceGroupName, String location, String connectorName, Context context);
+
+ /**
+ * Validate a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of 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 validation operation result for a Linker.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ValidateOperationResultInner validate(String subscriptionId, String resourceGroupName, String location,
+ String connectorName);
+
+ /**
+ * Validate a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of 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 validation operation result for a Linker.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ValidateOperationResultInner validate(String subscriptionId, String resourceGroupName, String location,
+ String connectorName, Context context);
+
+ /**
+ * Generate configurations for a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connection Info, including format, secret store, etc.
+ * @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 configurations for source resource, include appSettings, connectionString and serviceBindings along with
+ * {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response generateConfigurationsWithResponse(String subscriptionId,
+ String resourceGroupName, String location, String connectorName, ConfigurationInfo parameters, Context context);
+
+ /**
+ * Generate configurations for a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of 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 configurations for source resource, include appSettings, connectionString and serviceBindings.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ConfigurationResultInner generateConfigurations(String subscriptionId, String resourceGroupName, String location,
+ String connectorName);
+}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/LinkersClient.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/LinkersClient.java
index 5c11981acda7c..cce268f096297 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/LinkersClient.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/LinkersClient.java
@@ -11,16 +11,19 @@
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.servicelinker.fluent.models.ConfigurationResultInner;
import com.azure.resourcemanager.servicelinker.fluent.models.LinkerResourceInner;
-import com.azure.resourcemanager.servicelinker.fluent.models.SourceConfigurationResultInner;
import com.azure.resourcemanager.servicelinker.fluent.models.ValidateOperationResultInner;
import com.azure.resourcemanager.servicelinker.models.LinkerPatch;
-/** An instance of this class provides access to all the operations defined in LinkersClient. */
+/**
+ * An instance of this class provides access to all the operations defined in LinkersClient.
+ */
public interface LinkersClient {
/**
- * Returns list of Linkers which connects to the resource.
- *
+ * Returns list of Linkers which connects to the resource. which supports to config both application and target
+ * service during the resource provision.
+ *
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -31,8 +34,9 @@ public interface LinkersClient {
PagedIterable list(String resourceUri);
/**
- * Returns list of Linkers which connects to the resource.
- *
+ * Returns list of Linkers which connects to the resource. which supports to config both application and target
+ * service during the resource provision.
+ *
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -45,34 +49,34 @@ public interface LinkersClient {
/**
* Returns Linker resource for a given name.
- *
+ *
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param linkerName The name Linker 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 linker of source and target resource.
+ * @return linker of source and target resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- LinkerResourceInner get(String resourceUri, String linkerName);
+ Response getWithResponse(String resourceUri, String linkerName, Context context);
/**
* Returns Linker resource for a given name.
- *
+ *
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param linkerName The name Linker 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 linker of source and target resource along with {@link Response}.
+ * @return linker of source and target resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceUri, String linkerName, Context context);
+ LinkerResourceInner get(String resourceUri, String linkerName);
/**
- * Create or update linker resource.
- *
+ * Create or update Linker resource.
+ *
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param linkerName The name Linker resource.
* @param parameters Linker details.
@@ -82,12 +86,12 @@ public interface LinkersClient {
* @return the {@link SyncPoller} for polling of linker of source and target resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, LinkerResourceInner> beginCreateOrUpdate(
- String resourceUri, String linkerName, LinkerResourceInner parameters);
+ SyncPoller, LinkerResourceInner> beginCreateOrUpdate(String resourceUri,
+ String linkerName, LinkerResourceInner parameters);
/**
- * Create or update linker resource.
- *
+ * Create or update Linker resource.
+ *
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param linkerName The name Linker resource.
* @param parameters Linker details.
@@ -98,12 +102,12 @@ SyncPoller, LinkerResourceInner> beginCreateOrUp
* @return the {@link SyncPoller} for polling of linker of source and target resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, LinkerResourceInner> beginCreateOrUpdate(
- String resourceUri, String linkerName, LinkerResourceInner parameters, Context context);
+ SyncPoller, LinkerResourceInner> beginCreateOrUpdate(String resourceUri,
+ String linkerName, LinkerResourceInner parameters, Context context);
/**
- * Create or update linker resource.
- *
+ * Create or update Linker resource.
+ *
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param linkerName The name Linker resource.
* @param parameters Linker details.
@@ -116,8 +120,8 @@ SyncPoller, LinkerResourceInner> beginCreateOrUp
LinkerResourceInner createOrUpdate(String resourceUri, String linkerName, LinkerResourceInner parameters);
/**
- * Create or update linker resource.
- *
+ * Create or update Linker resource.
+ *
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param linkerName The name Linker resource.
* @param parameters Linker details.
@@ -128,12 +132,12 @@ SyncPoller, LinkerResourceInner> beginCreateOrUp
* @return linker of source and target resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- LinkerResourceInner createOrUpdate(
- String resourceUri, String linkerName, LinkerResourceInner parameters, Context context);
+ LinkerResourceInner createOrUpdate(String resourceUri, String linkerName, LinkerResourceInner parameters,
+ Context context);
/**
- * Delete a link.
- *
+ * Delete a Linker.
+ *
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param linkerName The name Linker resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -145,8 +149,8 @@ LinkerResourceInner createOrUpdate(
SyncPoller, Void> beginDelete(String resourceUri, String linkerName);
/**
- * Delete a link.
- *
+ * Delete a Linker.
+ *
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param linkerName The name Linker resource.
* @param context The context to associate with this operation.
@@ -159,8 +163,8 @@ LinkerResourceInner createOrUpdate(
SyncPoller, Void> beginDelete(String resourceUri, String linkerName, Context context);
/**
- * Delete a link.
- *
+ * Delete a Linker.
+ *
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param linkerName The name Linker resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -171,8 +175,8 @@ LinkerResourceInner createOrUpdate(
void delete(String resourceUri, String linkerName);
/**
- * Delete a link.
- *
+ * Delete a Linker.
+ *
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param linkerName The name Linker resource.
* @param context The context to associate with this operation.
@@ -184,8 +188,8 @@ LinkerResourceInner createOrUpdate(
void delete(String resourceUri, String linkerName, Context context);
/**
- * Operation to update an existing link.
- *
+ * Operation to update an existing Linker.
+ *
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param linkerName The name Linker resource.
* @param parameters Linker details.
@@ -195,12 +199,12 @@ LinkerResourceInner createOrUpdate(
* @return the {@link SyncPoller} for polling of linker of source and target resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, LinkerResourceInner> beginUpdate(
- String resourceUri, String linkerName, LinkerPatch parameters);
+ SyncPoller, LinkerResourceInner> beginUpdate(String resourceUri, String linkerName,
+ LinkerPatch parameters);
/**
- * Operation to update an existing link.
- *
+ * Operation to update an existing Linker.
+ *
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param linkerName The name Linker resource.
* @param parameters Linker details.
@@ -211,12 +215,12 @@ SyncPoller, LinkerResourceInner> beginUpdate(
* @return the {@link SyncPoller} for polling of linker of source and target resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, LinkerResourceInner> beginUpdate(
- String resourceUri, String linkerName, LinkerPatch parameters, Context context);
+ SyncPoller, LinkerResourceInner> beginUpdate(String resourceUri, String linkerName,
+ LinkerPatch parameters, Context context);
/**
- * Operation to update an existing link.
- *
+ * Operation to update an existing Linker.
+ *
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param linkerName The name Linker resource.
* @param parameters Linker details.
@@ -229,8 +233,8 @@ SyncPoller, LinkerResourceInner> beginUpdate(
LinkerResourceInner update(String resourceUri, String linkerName, LinkerPatch parameters);
/**
- * Operation to update an existing link.
- *
+ * Operation to update an existing Linker.
+ *
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param linkerName The name Linker resource.
* @param parameters Linker details.
@@ -244,87 +248,87 @@ SyncPoller, LinkerResourceInner> beginUpdate(
LinkerResourceInner update(String resourceUri, String linkerName, LinkerPatch parameters, Context context);
/**
- * Validate a link.
- *
+ * Validate a Linker.
+ *
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param linkerName The name Linker 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 the validation operation result for a linker.
+ * @return the {@link SyncPoller} for polling of the validation operation result for a Linker.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ValidateOperationResultInner> beginValidate(
- String resourceUri, String linkerName);
+ SyncPoller, ValidateOperationResultInner> beginValidate(String resourceUri,
+ String linkerName);
/**
- * Validate a link.
- *
+ * Validate a Linker.
+ *
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param linkerName The name Linker 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 the validation operation result for a linker.
+ * @return the {@link SyncPoller} for polling of the validation operation result for a Linker.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ValidateOperationResultInner> beginValidate(
- String resourceUri, String linkerName, Context context);
+ SyncPoller, ValidateOperationResultInner> beginValidate(String resourceUri,
+ String linkerName, Context context);
/**
- * Validate a link.
- *
+ * Validate a Linker.
+ *
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param linkerName The name Linker 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 validation operation result for a linker.
+ * @return the validation operation result for a Linker.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ValidateOperationResultInner validate(String resourceUri, String linkerName);
/**
- * Validate a link.
- *
+ * Validate a Linker.
+ *
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param linkerName The name Linker 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 validation operation result for a linker.
+ * @return the validation operation result for a Linker.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ValidateOperationResultInner validate(String resourceUri, String linkerName, Context context);
/**
- * list source configurations for a linker.
- *
+ * list source configurations for a Linker.
+ *
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param linkerName The name Linker 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 configurations for source resource, include appSettings, connectionString and serviceBindings.
+ * @return configurations for source resource, include appSettings, connectionString and serviceBindings along with
+ * {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SourceConfigurationResultInner listConfigurations(String resourceUri, String linkerName);
+ Response listConfigurationsWithResponse(String resourceUri, String linkerName,
+ Context context);
/**
- * list source configurations for a linker.
- *
+ * list source configurations for a Linker.
+ *
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param linkerName The name Linker 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 configurations for source resource, include appSettings, connectionString and serviceBindings along with
- * {@link Response}.
+ * @return configurations for source resource, include appSettings, connectionString and serviceBindings.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response listConfigurationsWithResponse(
- String resourceUri, String linkerName, Context context);
+ ConfigurationResultInner listConfigurations(String resourceUri, String linkerName);
}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/LinkersOperationsClient.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/LinkersOperationsClient.java
new file mode 100644
index 0000000000000..f8a698d75e10d
--- /dev/null
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/LinkersOperationsClient.java
@@ -0,0 +1,251 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicelinker.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.servicelinker.fluent.models.ConfigurationResultInner;
+import com.azure.resourcemanager.servicelinker.fluent.models.DryrunResourceInner;
+import com.azure.resourcemanager.servicelinker.models.ConfigurationInfo;
+import com.azure.resourcemanager.servicelinker.models.DryrunPatch;
+
+/**
+ * An instance of this class provides access to all the operations defined in LinkersOperationsClient.
+ */
+public interface LinkersOperationsClient {
+ /**
+ * list dryrun jobs.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of dryrun as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listDryrun(String resourceUri);
+
+ /**
+ * list dryrun jobs.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of dryrun as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listDryrun(String resourceUri, Context context);
+
+ /**
+ * get a dryrun job.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
+ * @param dryrunName The name of dryrun.
+ * @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 dryrun job along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getDryrunWithResponse(String resourceUri, String dryrunName, Context context);
+
+ /**
+ * get a dryrun job.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
+ * @param dryrunName The name of dryrun.
+ * @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 dryrun job.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DryrunResourceInner getDryrun(String resourceUri, String dryrunName);
+
+ /**
+ * create a dryrun job to do necessary check before actual creation.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun 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 a dryrun job resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DryrunResourceInner> beginCreateDryrun(String resourceUri,
+ String dryrunName, DryrunResourceInner parameters);
+
+ /**
+ * create a dryrun job to do necessary check before actual creation.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun 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 a dryrun job resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DryrunResourceInner> beginCreateDryrun(String resourceUri,
+ String dryrunName, DryrunResourceInner parameters, Context context);
+
+ /**
+ * create a dryrun job to do necessary check before actual creation.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun 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 dryrun job resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DryrunResourceInner createDryrun(String resourceUri, String dryrunName, DryrunResourceInner parameters);
+
+ /**
+ * create a dryrun job to do necessary check before actual creation.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun 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 dryrun job resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DryrunResourceInner createDryrun(String resourceUri, String dryrunName, DryrunResourceInner parameters,
+ Context context);
+
+ /**
+ * add a dryrun job to do necessary check before actual creation.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun 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 a dryrun job resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DryrunResourceInner> beginUpdateDryrun(String resourceUri,
+ String dryrunName, DryrunPatch parameters);
+
+ /**
+ * add a dryrun job to do necessary check before actual creation.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun 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 a dryrun job resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DryrunResourceInner> beginUpdateDryrun(String resourceUri,
+ String dryrunName, DryrunPatch parameters, Context context);
+
+ /**
+ * add a dryrun job to do necessary check before actual creation.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun 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 dryrun job resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DryrunResourceInner updateDryrun(String resourceUri, String dryrunName, DryrunPatch parameters);
+
+ /**
+ * add a dryrun job to do necessary check before actual creation.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun 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 dryrun job resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DryrunResourceInner updateDryrun(String resourceUri, String dryrunName, DryrunPatch parameters, Context context);
+
+ /**
+ * delete a dryrun job.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
+ * @param dryrunName The name of dryrun.
+ * @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 Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteDryrunWithResponse(String resourceUri, String dryrunName, Context context);
+
+ /**
+ * delete a dryrun job.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
+ * @param dryrunName The name of dryrun.
+ * @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 deleteDryrun(String resourceUri, String dryrunName);
+
+ /**
+ * Generate configurations for a Linker.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
+ * @param linkerName The name Linker resource.
+ * @param parameters Connection Info, including format, secret store, etc.
+ * @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 configurations for source resource, include appSettings, connectionString and serviceBindings along with
+ * {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response generateConfigurationsWithResponse(String resourceUri, String linkerName,
+ ConfigurationInfo parameters, Context context);
+
+ /**
+ * Generate configurations for a Linker.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
+ * @param linkerName The name Linker 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 configurations for source resource, include appSettings, connectionString and serviceBindings.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ConfigurationResultInner generateConfigurations(String resourceUri, String linkerName);
+}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/OperationsClient.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/OperationsClient.java
index 3ab76039aba2e..89438c26d05af 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/OperationsClient.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/OperationsClient.java
@@ -10,28 +10,30 @@
import com.azure.core.util.Context;
import com.azure.resourcemanager.servicelinker.fluent.models.OperationInner;
-/** An instance of this class provides access to all the operations defined in OperationsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in OperationsClient.
+ */
public interface OperationsClient {
/**
* Lists the available ServiceLinker REST API operations.
- *
+ *
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with {@link
- * PagedIterable}.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
/**
* Lists the available ServiceLinker REST API operations.
- *
+ *
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with {@link
- * PagedIterable}.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/ServiceLinkerManagementClient.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/ServiceLinkerManagementClient.java
index 51e97f1c051c0..6fb54e8262e7e 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/ServiceLinkerManagementClient.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/ServiceLinkerManagementClient.java
@@ -7,47 +7,70 @@
import com.azure.core.http.HttpPipeline;
import java.time.Duration;
-/** The interface for ServiceLinkerManagementClient class. */
+/**
+ * The interface for ServiceLinkerManagementClient class.
+ */
public interface ServiceLinkerManagementClient {
/**
* Gets server parameter.
- *
+ *
* @return the endpoint value.
*/
String getEndpoint();
/**
* Gets Api Version.
- *
+ *
* @return the apiVersion value.
*/
String getApiVersion();
/**
* Gets The HTTP pipeline to send requests through.
- *
+ *
* @return the httpPipeline value.
*/
HttpPipeline getHttpPipeline();
/**
* Gets The default poll interval for long-running operation.
- *
+ *
* @return the defaultPollInterval value.
*/
Duration getDefaultPollInterval();
+ /**
+ * Gets the ConnectorsClient object to access its operations.
+ *
+ * @return the ConnectorsClient object.
+ */
+ ConnectorsClient getConnectors();
+
/**
* Gets the LinkersClient object to access its operations.
- *
+ *
* @return the LinkersClient object.
*/
LinkersClient getLinkers();
+ /**
+ * Gets the LinkersOperationsClient object to access its operations.
+ *
+ * @return the LinkersOperationsClient object.
+ */
+ LinkersOperationsClient getLinkersOperations();
+
/**
* Gets the OperationsClient object to access its operations.
- *
+ *
* @return the OperationsClient object.
*/
OperationsClient getOperations();
+
+ /**
+ * Gets the ConfigurationNamesOperationsClient object to access its operations.
+ *
+ * @return the ConfigurationNamesOperationsClient object.
+ */
+ ConfigurationNamesOperationsClient getConfigurationNamesOperations();
}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ConfigurationNameItemInner.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ConfigurationNameItemInner.java
new file mode 100644
index 0000000000000..effff16370630
--- /dev/null
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ConfigurationNameItemInner.java
@@ -0,0 +1,166 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicelinker.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.servicelinker.models.AuthType;
+import com.azure.resourcemanager.servicelinker.models.ClientType;
+import com.azure.resourcemanager.servicelinker.models.ConfigurationName;
+import com.azure.resourcemanager.servicelinker.models.DaprProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/**
+ * The ConfigurationNameItem model.
+ */
+@Fluent
+public final class ConfigurationNameItemInner {
+ /*
+ * The result detail.
+ */
+ @JsonProperty(value = "properties")
+ private ConfigurationNames innerProperties;
+
+ /**
+ * Creates an instance of ConfigurationNameItemInner class.
+ */
+ public ConfigurationNameItemInner() {
+ }
+
+ /**
+ * Get the innerProperties property: The result detail.
+ *
+ * @return the innerProperties value.
+ */
+ private ConfigurationNames innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the targetService property: The target service provider name and resource name.
+ *
+ * @return the targetService value.
+ */
+ public String targetService() {
+ return this.innerProperties() == null ? null : this.innerProperties().targetService();
+ }
+
+ /**
+ * Set the targetService property: The target service provider name and resource name.
+ *
+ * @param targetService the targetService value to set.
+ * @return the ConfigurationNameItemInner object itself.
+ */
+ public ConfigurationNameItemInner withTargetService(String targetService) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ConfigurationNames();
+ }
+ this.innerProperties().withTargetService(targetService);
+ return this;
+ }
+
+ /**
+ * Get the clientType property: The client type for configuration names.
+ *
+ * @return the clientType value.
+ */
+ public ClientType clientType() {
+ return this.innerProperties() == null ? null : this.innerProperties().clientType();
+ }
+
+ /**
+ * Set the clientType property: The client type for configuration names.
+ *
+ * @param clientType the clientType value to set.
+ * @return the ConfigurationNameItemInner object itself.
+ */
+ public ConfigurationNameItemInner withClientType(ClientType clientType) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ConfigurationNames();
+ }
+ this.innerProperties().withClientType(clientType);
+ return this;
+ }
+
+ /**
+ * Get the authType property: The auth type.
+ *
+ * @return the authType value.
+ */
+ public AuthType authType() {
+ return this.innerProperties() == null ? null : this.innerProperties().authType();
+ }
+
+ /**
+ * Set the authType property: The auth type.
+ *
+ * @param authType the authType value to set.
+ * @return the ConfigurationNameItemInner object itself.
+ */
+ public ConfigurationNameItemInner withAuthType(AuthType authType) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ConfigurationNames();
+ }
+ this.innerProperties().withAuthType(authType);
+ return this;
+ }
+
+ /**
+ * Get the daprProperties property: Indicates some additional properties for dapr client type.
+ *
+ * @return the daprProperties value.
+ */
+ public DaprProperties daprProperties() {
+ return this.innerProperties() == null ? null : this.innerProperties().daprProperties();
+ }
+
+ /**
+ * Set the daprProperties property: Indicates some additional properties for dapr client type.
+ *
+ * @param daprProperties the daprProperties value to set.
+ * @return the ConfigurationNameItemInner object itself.
+ */
+ public ConfigurationNameItemInner withDaprProperties(DaprProperties daprProperties) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ConfigurationNames();
+ }
+ this.innerProperties().withDaprProperties(daprProperties);
+ return this;
+ }
+
+ /**
+ * Get the names property: The configuration names to be set in compute service environment.
+ *
+ * @return the names value.
+ */
+ public List names() {
+ return this.innerProperties() == null ? null : this.innerProperties().names();
+ }
+
+ /**
+ * Set the names property: The configuration names to be set in compute service environment.
+ *
+ * @param names the names value to set.
+ * @return the ConfigurationNameItemInner object itself.
+ */
+ public ConfigurationNameItemInner withNames(List names) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ConfigurationNames();
+ }
+ this.innerProperties().withNames(names);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ConfigurationNames.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ConfigurationNames.java
new file mode 100644
index 0000000000000..b6613a28d6279
--- /dev/null
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ConfigurationNames.java
@@ -0,0 +1,169 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicelinker.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.servicelinker.models.AuthType;
+import com.azure.resourcemanager.servicelinker.models.ClientType;
+import com.azure.resourcemanager.servicelinker.models.ConfigurationName;
+import com.azure.resourcemanager.servicelinker.models.DaprProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/**
+ * The configuration names which will be set based on specific target resource, client type, auth type.
+ */
+@Fluent
+public final class ConfigurationNames {
+ /*
+ * The target service provider name and resource name.
+ */
+ @JsonProperty(value = "targetService")
+ private String targetService;
+
+ /*
+ * The client type for configuration names.
+ */
+ @JsonProperty(value = "clientType")
+ private ClientType clientType;
+
+ /*
+ * The auth type.
+ */
+ @JsonProperty(value = "authType")
+ private AuthType authType;
+
+ /*
+ * Indicates some additional properties for dapr client type
+ */
+ @JsonProperty(value = "daprProperties")
+ private DaprProperties daprProperties;
+
+ /*
+ * The configuration names to be set in compute service environment.
+ */
+ @JsonProperty(value = "names")
+ private List names;
+
+ /**
+ * Creates an instance of ConfigurationNames class.
+ */
+ public ConfigurationNames() {
+ }
+
+ /**
+ * Get the targetService property: The target service provider name and resource name.
+ *
+ * @return the targetService value.
+ */
+ public String targetService() {
+ return this.targetService;
+ }
+
+ /**
+ * Set the targetService property: The target service provider name and resource name.
+ *
+ * @param targetService the targetService value to set.
+ * @return the ConfigurationNames object itself.
+ */
+ public ConfigurationNames withTargetService(String targetService) {
+ this.targetService = targetService;
+ return this;
+ }
+
+ /**
+ * Get the clientType property: The client type for configuration names.
+ *
+ * @return the clientType value.
+ */
+ public ClientType clientType() {
+ return this.clientType;
+ }
+
+ /**
+ * Set the clientType property: The client type for configuration names.
+ *
+ * @param clientType the clientType value to set.
+ * @return the ConfigurationNames object itself.
+ */
+ public ConfigurationNames withClientType(ClientType clientType) {
+ this.clientType = clientType;
+ return this;
+ }
+
+ /**
+ * Get the authType property: The auth type.
+ *
+ * @return the authType value.
+ */
+ public AuthType authType() {
+ return this.authType;
+ }
+
+ /**
+ * Set the authType property: The auth type.
+ *
+ * @param authType the authType value to set.
+ * @return the ConfigurationNames object itself.
+ */
+ public ConfigurationNames withAuthType(AuthType authType) {
+ this.authType = authType;
+ return this;
+ }
+
+ /**
+ * Get the daprProperties property: Indicates some additional properties for dapr client type.
+ *
+ * @return the daprProperties value.
+ */
+ public DaprProperties daprProperties() {
+ return this.daprProperties;
+ }
+
+ /**
+ * Set the daprProperties property: Indicates some additional properties for dapr client type.
+ *
+ * @param daprProperties the daprProperties value to set.
+ * @return the ConfigurationNames object itself.
+ */
+ public ConfigurationNames withDaprProperties(DaprProperties daprProperties) {
+ this.daprProperties = daprProperties;
+ return this;
+ }
+
+ /**
+ * Get the names property: The configuration names to be set in compute service environment.
+ *
+ * @return the names value.
+ */
+ public List names() {
+ return this.names;
+ }
+
+ /**
+ * Set the names property: The configuration names to be set in compute service environment.
+ *
+ * @param names the names value to set.
+ * @return the ConfigurationNames object itself.
+ */
+ public ConfigurationNames withNames(List names) {
+ this.names = names;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (daprProperties() != null) {
+ daprProperties().validate();
+ }
+ if (names() != null) {
+ names().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/SourceConfigurationResultInner.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ConfigurationResultInner.java
similarity index 74%
rename from sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/SourceConfigurationResultInner.java
rename to sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ConfigurationResultInner.java
index aa517497546a6..f92a0962a725c 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/SourceConfigurationResultInner.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ConfigurationResultInner.java
@@ -9,18 +9,26 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
-/** Configurations for source resource, include appSettings, connectionString and serviceBindings. */
+/**
+ * Configurations for source resource, include appSettings, connectionString and serviceBindings.
+ */
@Fluent
-public final class SourceConfigurationResultInner {
+public final class ConfigurationResultInner {
/*
* The configuration properties for source resource.
*/
@JsonProperty(value = "configurations")
private List configurations;
+ /**
+ * Creates an instance of ConfigurationResultInner class.
+ */
+ public ConfigurationResultInner() {
+ }
+
/**
* Get the configurations property: The configuration properties for source resource.
- *
+ *
* @return the configurations value.
*/
public List configurations() {
@@ -29,18 +37,18 @@ public List configurations() {
/**
* Set the configurations property: The configuration properties for source resource.
- *
+ *
* @param configurations the configurations value to set.
- * @return the SourceConfigurationResultInner object itself.
+ * @return the ConfigurationResultInner object itself.
*/
- public SourceConfigurationResultInner withConfigurations(List configurations) {
+ public ConfigurationResultInner withConfigurations(List configurations) {
this.configurations = configurations;
return this;
}
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/DryrunProperties.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/DryrunProperties.java
new file mode 100644
index 0000000000000..fb62a85f6d64a
--- /dev/null
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/DryrunProperties.java
@@ -0,0 +1,112 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicelinker.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.servicelinker.models.DryrunOperationPreview;
+import com.azure.resourcemanager.servicelinker.models.DryrunParameters;
+import com.azure.resourcemanager.servicelinker.models.DryrunPrerequisiteResult;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/**
+ * The properties of the dryrun job.
+ */
+@Fluent
+public final class DryrunProperties {
+ /*
+ * The parameters of the dryrun
+ */
+ @JsonProperty(value = "parameters")
+ private DryrunParameters parameters;
+
+ /*
+ * the result of the dryrun
+ */
+ @JsonProperty(value = "prerequisiteResults", access = JsonProperty.Access.WRITE_ONLY)
+ private List prerequisiteResults;
+
+ /*
+ * the preview of the operations for creation
+ */
+ @JsonProperty(value = "operationPreviews", access = JsonProperty.Access.WRITE_ONLY)
+ private List operationPreviews;
+
+ /*
+ * The provisioning state.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private String provisioningState;
+
+ /**
+ * Creates an instance of DryrunProperties class.
+ */
+ public DryrunProperties() {
+ }
+
+ /**
+ * Get the parameters property: The parameters of the dryrun.
+ *
+ * @return the parameters value.
+ */
+ public DryrunParameters parameters() {
+ return this.parameters;
+ }
+
+ /**
+ * Set the parameters property: The parameters of the dryrun.
+ *
+ * @param parameters the parameters value to set.
+ * @return the DryrunProperties object itself.
+ */
+ public DryrunProperties withParameters(DryrunParameters parameters) {
+ this.parameters = parameters;
+ return this;
+ }
+
+ /**
+ * Get the prerequisiteResults property: the result of the dryrun.
+ *
+ * @return the prerequisiteResults value.
+ */
+ public List prerequisiteResults() {
+ return this.prerequisiteResults;
+ }
+
+ /**
+ * Get the operationPreviews property: the preview of the operations for creation.
+ *
+ * @return the operationPreviews value.
+ */
+ public List operationPreviews() {
+ return this.operationPreviews;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (parameters() != null) {
+ parameters().validate();
+ }
+ if (prerequisiteResults() != null) {
+ prerequisiteResults().forEach(e -> e.validate());
+ }
+ if (operationPreviews() != null) {
+ operationPreviews().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/DryrunResourceInner.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/DryrunResourceInner.java
new file mode 100644
index 0000000000000..f76743e37d6b8
--- /dev/null
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/DryrunResourceInner.java
@@ -0,0 +1,117 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicelinker.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.servicelinker.models.DryrunOperationPreview;
+import com.azure.resourcemanager.servicelinker.models.DryrunParameters;
+import com.azure.resourcemanager.servicelinker.models.DryrunPrerequisiteResult;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/**
+ * a dryrun job resource.
+ */
+@Fluent
+public final class DryrunResourceInner extends ProxyResource {
+ /*
+ * The properties of the dryrun job.
+ */
+ @JsonProperty(value = "properties")
+ private DryrunProperties innerProperties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Creates an instance of DryrunResourceInner class.
+ */
+ public DryrunResourceInner() {
+ }
+
+ /**
+ * Get the innerProperties property: The properties of the dryrun job.
+ *
+ * @return the innerProperties value.
+ */
+ private DryrunProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the parameters property: The parameters of the dryrun.
+ *
+ * @return the parameters value.
+ */
+ public DryrunParameters parameters() {
+ return this.innerProperties() == null ? null : this.innerProperties().parameters();
+ }
+
+ /**
+ * Set the parameters property: The parameters of the dryrun.
+ *
+ * @param parameters the parameters value to set.
+ * @return the DryrunResourceInner object itself.
+ */
+ public DryrunResourceInner withParameters(DryrunParameters parameters) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DryrunProperties();
+ }
+ this.innerProperties().withParameters(parameters);
+ return this;
+ }
+
+ /**
+ * Get the prerequisiteResults property: the result of the dryrun.
+ *
+ * @return the prerequisiteResults value.
+ */
+ public List prerequisiteResults() {
+ return this.innerProperties() == null ? null : this.innerProperties().prerequisiteResults();
+ }
+
+ /**
+ * Get the operationPreviews property: the preview of the operations for creation.
+ *
+ * @return the operationPreviews value.
+ */
+ public List operationPreviews() {
+ return this.innerProperties() == null ? null : this.innerProperties().operationPreviews();
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/LinkerProperties.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/LinkerProperties.java
index 44ef47e9ee44d..64a7a40df9c6c 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/LinkerProperties.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/LinkerProperties.java
@@ -7,14 +7,18 @@
import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.servicelinker.models.AuthInfoBase;
import com.azure.resourcemanager.servicelinker.models.ClientType;
+import com.azure.resourcemanager.servicelinker.models.ConfigurationInfo;
+import com.azure.resourcemanager.servicelinker.models.PublicNetworkSolution;
import com.azure.resourcemanager.servicelinker.models.SecretStore;
import com.azure.resourcemanager.servicelinker.models.TargetServiceBase;
import com.azure.resourcemanager.servicelinker.models.VNetSolution;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** The properties of the linker. */
+/**
+ * The properties of the Linker.
+ */
@Fluent
-public final class LinkerProperties {
+public class LinkerProperties {
/*
* The target service properties
*/
@@ -57,9 +61,27 @@ public final class LinkerProperties {
@JsonProperty(value = "scope")
private String scope;
+ /*
+ * The network solution.
+ */
+ @JsonProperty(value = "publicNetworkSolution")
+ private PublicNetworkSolution publicNetworkSolution;
+
+ /*
+ * The connection information consumed by applications, including secrets, connection strings.
+ */
+ @JsonProperty(value = "configurationInfo")
+ private ConfigurationInfo configurationInfo;
+
+ /**
+ * Creates an instance of LinkerProperties class.
+ */
+ public LinkerProperties() {
+ }
+
/**
* Get the targetService property: The target service properties.
- *
+ *
* @return the targetService value.
*/
public TargetServiceBase targetService() {
@@ -68,7 +90,7 @@ public TargetServiceBase targetService() {
/**
* Set the targetService property: The target service properties.
- *
+ *
* @param targetService the targetService value to set.
* @return the LinkerProperties object itself.
*/
@@ -79,7 +101,7 @@ public LinkerProperties withTargetService(TargetServiceBase targetService) {
/**
* Get the authInfo property: The authentication type.
- *
+ *
* @return the authInfo value.
*/
public AuthInfoBase authInfo() {
@@ -88,7 +110,7 @@ public AuthInfoBase authInfo() {
/**
* Set the authInfo property: The authentication type.
- *
+ *
* @param authInfo the authInfo value to set.
* @return the LinkerProperties object itself.
*/
@@ -99,7 +121,7 @@ public LinkerProperties withAuthInfo(AuthInfoBase authInfo) {
/**
* Get the clientType property: The application client type.
- *
+ *
* @return the clientType value.
*/
public ClientType clientType() {
@@ -108,7 +130,7 @@ public ClientType clientType() {
/**
* Set the clientType property: The application client type.
- *
+ *
* @param clientType the clientType value to set.
* @return the LinkerProperties object itself.
*/
@@ -119,7 +141,7 @@ public LinkerProperties withClientType(ClientType clientType) {
/**
* Get the provisioningState property: The provisioning state.
- *
+ *
* @return the provisioningState value.
*/
public String provisioningState() {
@@ -128,7 +150,7 @@ public String provisioningState() {
/**
* Get the vNetSolution property: The VNet solution.
- *
+ *
* @return the vNetSolution value.
*/
public VNetSolution vNetSolution() {
@@ -137,7 +159,7 @@ public VNetSolution vNetSolution() {
/**
* Set the vNetSolution property: The VNet solution.
- *
+ *
* @param vNetSolution the vNetSolution value to set.
* @return the LinkerProperties object itself.
*/
@@ -148,7 +170,7 @@ public LinkerProperties withVNetSolution(VNetSolution vNetSolution) {
/**
* Get the secretStore property: An option to store secret value in secure place.
- *
+ *
* @return the secretStore value.
*/
public SecretStore secretStore() {
@@ -157,7 +179,7 @@ public SecretStore secretStore() {
/**
* Set the secretStore property: An option to store secret value in secure place.
- *
+ *
* @param secretStore the secretStore value to set.
* @return the LinkerProperties object itself.
*/
@@ -168,7 +190,7 @@ public LinkerProperties withSecretStore(SecretStore secretStore) {
/**
* Get the scope property: connection scope in source service.
- *
+ *
* @return the scope value.
*/
public String scope() {
@@ -177,7 +199,7 @@ public String scope() {
/**
* Set the scope property: connection scope in source service.
- *
+ *
* @param scope the scope value to set.
* @return the LinkerProperties object itself.
*/
@@ -186,9 +208,51 @@ public LinkerProperties withScope(String scope) {
return this;
}
+ /**
+ * Get the publicNetworkSolution property: The network solution.
+ *
+ * @return the publicNetworkSolution value.
+ */
+ public PublicNetworkSolution publicNetworkSolution() {
+ return this.publicNetworkSolution;
+ }
+
+ /**
+ * Set the publicNetworkSolution property: The network solution.
+ *
+ * @param publicNetworkSolution the publicNetworkSolution value to set.
+ * @return the LinkerProperties object itself.
+ */
+ public LinkerProperties withPublicNetworkSolution(PublicNetworkSolution publicNetworkSolution) {
+ this.publicNetworkSolution = publicNetworkSolution;
+ return this;
+ }
+
+ /**
+ * Get the configurationInfo property: The connection information consumed by applications, including secrets,
+ * connection strings.
+ *
+ * @return the configurationInfo value.
+ */
+ public ConfigurationInfo configurationInfo() {
+ return this.configurationInfo;
+ }
+
+ /**
+ * Set the configurationInfo property: The connection information consumed by applications, including secrets,
+ * connection strings.
+ *
+ * @param configurationInfo the configurationInfo value to set.
+ * @return the LinkerProperties object itself.
+ */
+ public LinkerProperties withConfigurationInfo(ConfigurationInfo configurationInfo) {
+ this.configurationInfo = configurationInfo;
+ return this;
+ }
+
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
@@ -204,5 +268,11 @@ public void validate() {
if (secretStore() != null) {
secretStore().validate();
}
+ if (publicNetworkSolution() != null) {
+ publicNetworkSolution().validate();
+ }
+ if (configurationInfo() != null) {
+ configurationInfo().validate();
+ }
}
}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/LinkerResourceInner.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/LinkerResourceInner.java
index 44f17614df63e..192e86313352c 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/LinkerResourceInner.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/LinkerResourceInner.java
@@ -10,29 +10,39 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.servicelinker.models.AuthInfoBase;
import com.azure.resourcemanager.servicelinker.models.ClientType;
+import com.azure.resourcemanager.servicelinker.models.ConfigurationInfo;
+import com.azure.resourcemanager.servicelinker.models.PublicNetworkSolution;
import com.azure.resourcemanager.servicelinker.models.SecretStore;
import com.azure.resourcemanager.servicelinker.models.TargetServiceBase;
import com.azure.resourcemanager.servicelinker.models.VNetSolution;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** Linker of source and target resource. */
+/**
+ * Linker of source and target resource.
+ */
@Fluent
public final class LinkerResourceInner extends ProxyResource {
/*
- * The properties of the linker.
+ * The properties of the Linker.
*/
@JsonProperty(value = "properties", required = true)
private LinkerProperties innerProperties = new LinkerProperties();
/*
- * The system data.
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
/**
- * Get the innerProperties property: The properties of the linker.
- *
+ * Creates an instance of LinkerResourceInner class.
+ */
+ public LinkerResourceInner() {
+ }
+
+ /**
+ * Get the innerProperties property: The properties of the Linker.
+ *
* @return the innerProperties value.
*/
private LinkerProperties innerProperties() {
@@ -40,8 +50,8 @@ private LinkerProperties innerProperties() {
}
/**
- * Get the systemData property: The system data.
- *
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
* @return the systemData value.
*/
public SystemData systemData() {
@@ -50,7 +60,7 @@ public SystemData systemData() {
/**
* Get the targetService property: The target service properties.
- *
+ *
* @return the targetService value.
*/
public TargetServiceBase targetService() {
@@ -59,7 +69,7 @@ public TargetServiceBase targetService() {
/**
* Set the targetService property: The target service properties.
- *
+ *
* @param targetService the targetService value to set.
* @return the LinkerResourceInner object itself.
*/
@@ -73,7 +83,7 @@ public LinkerResourceInner withTargetService(TargetServiceBase targetService) {
/**
* Get the authInfo property: The authentication type.
- *
+ *
* @return the authInfo value.
*/
public AuthInfoBase authInfo() {
@@ -82,7 +92,7 @@ public AuthInfoBase authInfo() {
/**
* Set the authInfo property: The authentication type.
- *
+ *
* @param authInfo the authInfo value to set.
* @return the LinkerResourceInner object itself.
*/
@@ -96,7 +106,7 @@ public LinkerResourceInner withAuthInfo(AuthInfoBase authInfo) {
/**
* Get the clientType property: The application client type.
- *
+ *
* @return the clientType value.
*/
public ClientType clientType() {
@@ -105,7 +115,7 @@ public ClientType clientType() {
/**
* Set the clientType property: The application client type.
- *
+ *
* @param clientType the clientType value to set.
* @return the LinkerResourceInner object itself.
*/
@@ -119,7 +129,7 @@ public LinkerResourceInner withClientType(ClientType clientType) {
/**
* Get the provisioningState property: The provisioning state.
- *
+ *
* @return the provisioningState value.
*/
public String provisioningState() {
@@ -128,7 +138,7 @@ public String provisioningState() {
/**
* Get the vNetSolution property: The VNet solution.
- *
+ *
* @return the vNetSolution value.
*/
public VNetSolution vNetSolution() {
@@ -137,7 +147,7 @@ public VNetSolution vNetSolution() {
/**
* Set the vNetSolution property: The VNet solution.
- *
+ *
* @param vNetSolution the vNetSolution value to set.
* @return the LinkerResourceInner object itself.
*/
@@ -151,7 +161,7 @@ public LinkerResourceInner withVNetSolution(VNetSolution vNetSolution) {
/**
* Get the secretStore property: An option to store secret value in secure place.
- *
+ *
* @return the secretStore value.
*/
public SecretStore secretStore() {
@@ -160,7 +170,7 @@ public SecretStore secretStore() {
/**
* Set the secretStore property: An option to store secret value in secure place.
- *
+ *
* @param secretStore the secretStore value to set.
* @return the LinkerResourceInner object itself.
*/
@@ -174,7 +184,7 @@ public LinkerResourceInner withSecretStore(SecretStore secretStore) {
/**
* Get the scope property: connection scope in source service.
- *
+ *
* @return the scope value.
*/
public String scope() {
@@ -183,7 +193,7 @@ public String scope() {
/**
* Set the scope property: connection scope in source service.
- *
+ *
* @param scope the scope value to set.
* @return the LinkerResourceInner object itself.
*/
@@ -195,17 +205,63 @@ public LinkerResourceInner withScope(String scope) {
return this;
}
+ /**
+ * Get the publicNetworkSolution property: The network solution.
+ *
+ * @return the publicNetworkSolution value.
+ */
+ public PublicNetworkSolution publicNetworkSolution() {
+ return this.innerProperties() == null ? null : this.innerProperties().publicNetworkSolution();
+ }
+
+ /**
+ * Set the publicNetworkSolution property: The network solution.
+ *
+ * @param publicNetworkSolution the publicNetworkSolution value to set.
+ * @return the LinkerResourceInner object itself.
+ */
+ public LinkerResourceInner withPublicNetworkSolution(PublicNetworkSolution publicNetworkSolution) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new LinkerProperties();
+ }
+ this.innerProperties().withPublicNetworkSolution(publicNetworkSolution);
+ return this;
+ }
+
+ /**
+ * Get the configurationInfo property: The connection information consumed by applications, including secrets,
+ * connection strings.
+ *
+ * @return the configurationInfo value.
+ */
+ public ConfigurationInfo configurationInfo() {
+ return this.innerProperties() == null ? null : this.innerProperties().configurationInfo();
+ }
+
+ /**
+ * Set the configurationInfo property: The connection information consumed by applications, including secrets,
+ * connection strings.
+ *
+ * @param configurationInfo the configurationInfo value to set.
+ * @return the LinkerResourceInner object itself.
+ */
+ public LinkerResourceInner withConfigurationInfo(ConfigurationInfo configurationInfo) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new LinkerProperties();
+ }
+ this.innerProperties().withConfigurationInfo(configurationInfo);
+ return this;
+ }
+
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (innerProperties() == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- "Missing required property innerProperties in model LinkerResourceInner"));
+ throw LOGGER.logExceptionAsError(
+ new IllegalArgumentException("Missing required property innerProperties in model LinkerResourceInner"));
} else {
innerProperties().validate();
}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/OperationInner.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/OperationInner.java
index 3d520cb77233f..4282ab9275509 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/OperationInner.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/OperationInner.java
@@ -10,20 +10,23 @@
import com.azure.resourcemanager.servicelinker.models.Origin;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** REST API Operation Details of a REST API operation, returned from the Resource Provider Operations API. */
+/**
+ * REST API Operation
+ *
+ * Details of a REST API operation, returned from the Resource Provider Operations API.
+ */
@Fluent
public final class OperationInner {
/*
- * The name of the operation, as per Resource-Based Access Control (RBAC).
- * Examples: "Microsoft.Compute/virtualMachines/write",
- * "Microsoft.Compute/virtualMachines/capture/action"
+ * The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
+ * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action"
*/
@JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
private String name;
/*
- * Whether the operation applies to data-plane. This is "true" for
- * data-plane operations and "false" for ARM/control-plane operations.
+ * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for
+ * ARM/control-plane operations.
*/
@JsonProperty(value = "isDataAction", access = JsonProperty.Access.WRITE_ONLY)
private Boolean isDataAction;
@@ -35,23 +38,28 @@ public final class OperationInner {
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"
+ * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default
+ * value is "user,system"
*/
@JsonProperty(value = "origin", access = JsonProperty.Access.WRITE_ONLY)
private Origin origin;
/*
- * Enum. Indicates the action type. "Internal" refers to actions that are
- * for internal only APIs.
+ * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
*/
@JsonProperty(value = "actionType", access = JsonProperty.Access.WRITE_ONLY)
private ActionType actionType;
+ /**
+ * Creates an instance of OperationInner class.
+ */
+ public OperationInner() {
+ }
+
/**
* Get the name property: The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
* "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action".
- *
+ *
* @return the name value.
*/
public String name() {
@@ -61,7 +69,7 @@ public String name() {
/**
* Get the isDataAction property: Whether the operation applies to data-plane. This is "true" for data-plane
* operations and "false" for ARM/control-plane operations.
- *
+ *
* @return the isDataAction value.
*/
public Boolean isDataAction() {
@@ -70,7 +78,7 @@ public Boolean isDataAction() {
/**
* Get the display property: Localized display information for this particular operation.
- *
+ *
* @return the display value.
*/
public OperationDisplay display() {
@@ -79,7 +87,7 @@ public OperationDisplay display() {
/**
* Set the display property: Localized display information for this particular operation.
- *
+ *
* @param display the display value to set.
* @return the OperationInner object itself.
*/
@@ -91,7 +99,7 @@ public OperationInner withDisplay(OperationDisplay display) {
/**
* Get the origin property: The intended executor of the operation; as in Resource Based Access Control (RBAC) and
* audit logs UX. Default value is "user,system".
- *
+ *
* @return the origin value.
*/
public Origin origin() {
@@ -101,7 +109,7 @@ public Origin origin() {
/**
* Get the actionType property: Enum. Indicates the action type. "Internal" refers to actions that are for internal
* only APIs.
- *
+ *
* @return the actionType value.
*/
public ActionType actionType() {
@@ -110,7 +118,7 @@ public ActionType actionType() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ValidateOperationResultInner.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ValidateOperationResultInner.java
index 5d622571c49f3..96491c3266164 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ValidateOperationResultInner.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ValidateOperationResultInner.java
@@ -11,7 +11,9 @@
import java.time.OffsetDateTime;
import java.util.List;
-/** The validation operation result for a linker. */
+/**
+ * The validation operation result for a Linker.
+ */
@Fluent
public final class ValidateOperationResultInner {
/*
@@ -21,7 +23,7 @@ public final class ValidateOperationResultInner {
private ValidateResult innerProperties;
/*
- * Validated linker id.
+ * Validated Linker id.
*/
@JsonProperty(value = "resourceId")
private String resourceId;
@@ -32,9 +34,15 @@ public final class ValidateOperationResultInner {
@JsonProperty(value = "status")
private String status;
+ /**
+ * Creates an instance of ValidateOperationResultInner class.
+ */
+ public ValidateOperationResultInner() {
+ }
+
/**
* Get the innerProperties property: The validation result detail.
- *
+ *
* @return the innerProperties value.
*/
private ValidateResult innerProperties() {
@@ -42,8 +50,8 @@ private ValidateResult innerProperties() {
}
/**
- * Get the resourceId property: Validated linker id.
- *
+ * Get the resourceId property: Validated Linker id.
+ *
* @return the resourceId value.
*/
public String resourceId() {
@@ -51,8 +59,8 @@ public String resourceId() {
}
/**
- * Set the resourceId property: Validated linker id.
- *
+ * Set the resourceId property: Validated Linker id.
+ *
* @param resourceId the resourceId value to set.
* @return the ValidateOperationResultInner object itself.
*/
@@ -63,7 +71,7 @@ public ValidateOperationResultInner withResourceId(String resourceId) {
/**
* Get the status property: Validation operation status.
- *
+ *
* @return the status value.
*/
public String status() {
@@ -72,7 +80,7 @@ public String status() {
/**
* Set the status property: Validation operation status.
- *
+ *
* @param status the status value to set.
* @return the ValidateOperationResultInner object itself.
*/
@@ -83,7 +91,7 @@ public ValidateOperationResultInner withStatus(String status) {
/**
* Get the linkerName property: The linker name.
- *
+ *
* @return the linkerName value.
*/
public String linkerName() {
@@ -92,7 +100,7 @@ public String linkerName() {
/**
* Set the linkerName property: The linker name.
- *
+ *
* @param linkerName the linkerName value to set.
* @return the ValidateOperationResultInner object itself.
*/
@@ -106,7 +114,7 @@ public ValidateOperationResultInner withLinkerName(String linkerName) {
/**
* Get the isConnectionAvailable property: A boolean value indicating whether the connection is available or not.
- *
+ *
* @return the isConnectionAvailable value.
*/
public Boolean isConnectionAvailable() {
@@ -115,7 +123,7 @@ public Boolean isConnectionAvailable() {
/**
* Set the isConnectionAvailable property: A boolean value indicating whether the connection is available or not.
- *
+ *
* @param isConnectionAvailable the isConnectionAvailable value to set.
* @return the ValidateOperationResultInner object itself.
*/
@@ -129,7 +137,7 @@ public ValidateOperationResultInner withIsConnectionAvailable(Boolean isConnecti
/**
* Get the reportStartTimeUtc property: The start time of the validation report.
- *
+ *
* @return the reportStartTimeUtc value.
*/
public OffsetDateTime reportStartTimeUtc() {
@@ -138,7 +146,7 @@ public OffsetDateTime reportStartTimeUtc() {
/**
* Set the reportStartTimeUtc property: The start time of the validation report.
- *
+ *
* @param reportStartTimeUtc the reportStartTimeUtc value to set.
* @return the ValidateOperationResultInner object itself.
*/
@@ -152,7 +160,7 @@ public ValidateOperationResultInner withReportStartTimeUtc(OffsetDateTime report
/**
* Get the reportEndTimeUtc property: The end time of the validation report.
- *
+ *
* @return the reportEndTimeUtc value.
*/
public OffsetDateTime reportEndTimeUtc() {
@@ -161,7 +169,7 @@ public OffsetDateTime reportEndTimeUtc() {
/**
* Set the reportEndTimeUtc property: The end time of the validation report.
- *
+ *
* @param reportEndTimeUtc the reportEndTimeUtc value to set.
* @return the ValidateOperationResultInner object itself.
*/
@@ -174,8 +182,8 @@ public ValidateOperationResultInner withReportEndTimeUtc(OffsetDateTime reportEn
}
/**
- * Get the sourceId property: The resource id of the linker source application.
- *
+ * Get the sourceId property: The resource id of the Linker source application.
+ *
* @return the sourceId value.
*/
public String sourceId() {
@@ -183,8 +191,8 @@ public String sourceId() {
}
/**
- * Set the sourceId property: The resource id of the linker source application.
- *
+ * Set the sourceId property: The resource id of the Linker source application.
+ *
* @param sourceId the sourceId value to set.
* @return the ValidateOperationResultInner object itself.
*/
@@ -198,7 +206,7 @@ public ValidateOperationResultInner withSourceId(String sourceId) {
/**
* Get the targetId property: The resource Id of target service.
- *
+ *
* @return the targetId value.
*/
public String targetId() {
@@ -207,7 +215,7 @@ public String targetId() {
/**
* Set the targetId property: The resource Id of target service.
- *
+ *
* @param targetId the targetId value to set.
* @return the ValidateOperationResultInner object itself.
*/
@@ -221,7 +229,7 @@ public ValidateOperationResultInner withTargetId(String targetId) {
/**
* Get the authType property: The authentication type.
- *
+ *
* @return the authType value.
*/
public AuthType authType() {
@@ -230,7 +238,7 @@ public AuthType authType() {
/**
* Set the authType property: The authentication type.
- *
+ *
* @param authType the authType value to set.
* @return the ValidateOperationResultInner object itself.
*/
@@ -244,7 +252,7 @@ public ValidateOperationResultInner withAuthType(AuthType authType) {
/**
* Get the validationDetail property: The detail of validation result.
- *
+ *
* @return the validationDetail value.
*/
public List validationDetail() {
@@ -253,7 +261,7 @@ public List validationDetail() {
/**
* Set the validationDetail property: The detail of validation result.
- *
+ *
* @param validationDetail the validationDetail value to set.
* @return the ValidateOperationResultInner object itself.
*/
@@ -267,7 +275,7 @@ public ValidateOperationResultInner withValidationDetail(List validationDetail;
+ /**
+ * Creates an instance of ValidateResult class.
+ */
+ public ValidateResult() {
+ }
+
/**
* Get the linkerName property: The linker name.
- *
+ *
* @return the linkerName value.
*/
public String linkerName() {
@@ -73,7 +81,7 @@ public String linkerName() {
/**
* Set the linkerName property: The linker name.
- *
+ *
* @param linkerName the linkerName value to set.
* @return the ValidateResult object itself.
*/
@@ -84,7 +92,7 @@ public ValidateResult withLinkerName(String linkerName) {
/**
* Get the isConnectionAvailable property: A boolean value indicating whether the connection is available or not.
- *
+ *
* @return the isConnectionAvailable value.
*/
public Boolean isConnectionAvailable() {
@@ -93,7 +101,7 @@ public Boolean isConnectionAvailable() {
/**
* Set the isConnectionAvailable property: A boolean value indicating whether the connection is available or not.
- *
+ *
* @param isConnectionAvailable the isConnectionAvailable value to set.
* @return the ValidateResult object itself.
*/
@@ -104,7 +112,7 @@ public ValidateResult withIsConnectionAvailable(Boolean isConnectionAvailable) {
/**
* Get the reportStartTimeUtc property: The start time of the validation report.
- *
+ *
* @return the reportStartTimeUtc value.
*/
public OffsetDateTime reportStartTimeUtc() {
@@ -113,7 +121,7 @@ public OffsetDateTime reportStartTimeUtc() {
/**
* Set the reportStartTimeUtc property: The start time of the validation report.
- *
+ *
* @param reportStartTimeUtc the reportStartTimeUtc value to set.
* @return the ValidateResult object itself.
*/
@@ -124,7 +132,7 @@ public ValidateResult withReportStartTimeUtc(OffsetDateTime reportStartTimeUtc)
/**
* Get the reportEndTimeUtc property: The end time of the validation report.
- *
+ *
* @return the reportEndTimeUtc value.
*/
public OffsetDateTime reportEndTimeUtc() {
@@ -133,7 +141,7 @@ public OffsetDateTime reportEndTimeUtc() {
/**
* Set the reportEndTimeUtc property: The end time of the validation report.
- *
+ *
* @param reportEndTimeUtc the reportEndTimeUtc value to set.
* @return the ValidateResult object itself.
*/
@@ -143,8 +151,8 @@ public ValidateResult withReportEndTimeUtc(OffsetDateTime reportEndTimeUtc) {
}
/**
- * Get the sourceId property: The resource id of the linker source application.
- *
+ * Get the sourceId property: The resource id of the Linker source application.
+ *
* @return the sourceId value.
*/
public String sourceId() {
@@ -152,8 +160,8 @@ public String sourceId() {
}
/**
- * Set the sourceId property: The resource id of the linker source application.
- *
+ * Set the sourceId property: The resource id of the Linker source application.
+ *
* @param sourceId the sourceId value to set.
* @return the ValidateResult object itself.
*/
@@ -164,7 +172,7 @@ public ValidateResult withSourceId(String sourceId) {
/**
* Get the targetId property: The resource Id of target service.
- *
+ *
* @return the targetId value.
*/
public String targetId() {
@@ -173,7 +181,7 @@ public String targetId() {
/**
* Set the targetId property: The resource Id of target service.
- *
+ *
* @param targetId the targetId value to set.
* @return the ValidateResult object itself.
*/
@@ -184,7 +192,7 @@ public ValidateResult withTargetId(String targetId) {
/**
* Get the authType property: The authentication type.
- *
+ *
* @return the authType value.
*/
public AuthType authType() {
@@ -193,7 +201,7 @@ public AuthType authType() {
/**
* Set the authType property: The authentication type.
- *
+ *
* @param authType the authType value to set.
* @return the ValidateResult object itself.
*/
@@ -204,7 +212,7 @@ public ValidateResult withAuthType(AuthType authType) {
/**
* Get the validationDetail property: The detail of validation result.
- *
+ *
* @return the validationDetail value.
*/
public List validationDetail() {
@@ -213,7 +221,7 @@ public List validationDetail() {
/**
* Set the validationDetail property: The detail of validation result.
- *
+ *
* @param validationDetail the validationDetail value to set.
* @return the ValidateResult object itself.
*/
@@ -224,7 +232,7 @@ public ValidateResult withValidationDetail(List validation
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/package-info.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/package-info.java
index 12928aaba7829..b70c4fc423012 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/package-info.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/package-info.java
@@ -2,5 +2,8 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-/** Package containing the inner data models for ServiceLinkerManagementClient. Microsoft.ServiceLinker provider. */
+/**
+ * Package containing the inner data models for ServiceLinkerManagementClient.
+ * Microsoft.ServiceLinker provider.
+ */
package com.azure.resourcemanager.servicelinker.fluent.models;
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/package-info.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/package-info.java
index 3f6dd75b187a7..1bb9daa17dfb3 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/package-info.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/package-info.java
@@ -2,5 +2,8 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-/** Package containing the service clients for ServiceLinkerManagementClient. Microsoft.ServiceLinker provider. */
+/**
+ * Package containing the service clients for ServiceLinkerManagementClient.
+ * Microsoft.ServiceLinker provider.
+ */
package com.azure.resourcemanager.servicelinker.fluent;
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ConfigurationNameItemImpl.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ConfigurationNameItemImpl.java
new file mode 100644
index 0000000000000..6ea2cc9b5dea4
--- /dev/null
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ConfigurationNameItemImpl.java
@@ -0,0 +1,59 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicelinker.implementation;
+
+import com.azure.resourcemanager.servicelinker.fluent.models.ConfigurationNameItemInner;
+import com.azure.resourcemanager.servicelinker.models.AuthType;
+import com.azure.resourcemanager.servicelinker.models.ClientType;
+import com.azure.resourcemanager.servicelinker.models.ConfigurationName;
+import com.azure.resourcemanager.servicelinker.models.ConfigurationNameItem;
+import com.azure.resourcemanager.servicelinker.models.DaprProperties;
+import java.util.Collections;
+import java.util.List;
+
+public final class ConfigurationNameItemImpl implements ConfigurationNameItem {
+ private ConfigurationNameItemInner innerObject;
+
+ private final com.azure.resourcemanager.servicelinker.ServiceLinkerManager serviceManager;
+
+ ConfigurationNameItemImpl(ConfigurationNameItemInner innerObject,
+ com.azure.resourcemanager.servicelinker.ServiceLinkerManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String targetService() {
+ return this.innerModel().targetService();
+ }
+
+ public ClientType clientType() {
+ return this.innerModel().clientType();
+ }
+
+ public AuthType authType() {
+ return this.innerModel().authType();
+ }
+
+ public DaprProperties daprProperties() {
+ return this.innerModel().daprProperties();
+ }
+
+ public List names() {
+ List inner = this.innerModel().names();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public ConfigurationNameItemInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ConfigurationNamesOperationsClientImpl.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ConfigurationNamesOperationsClientImpl.java
new file mode 100644
index 0000000000000..e9978622a158d
--- /dev/null
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ConfigurationNamesOperationsClientImpl.java
@@ -0,0 +1,272 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicelinker.implementation;
+
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.resourcemanager.servicelinker.fluent.ConfigurationNamesOperationsClient;
+import com.azure.resourcemanager.servicelinker.fluent.models.ConfigurationNameItemInner;
+import com.azure.resourcemanager.servicelinker.models.ConfigurationNameResult;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in ConfigurationNamesOperationsClient.
+ */
+public final class ConfigurationNamesOperationsClientImpl implements ConfigurationNamesOperationsClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final ConfigurationNamesOperationsService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final ServiceLinkerManagementClientImpl client;
+
+ /**
+ * Initializes an instance of ConfigurationNamesOperationsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ ConfigurationNamesOperationsClientImpl(ServiceLinkerManagementClientImpl client) {
+ this.service = RestProxy.create(ConfigurationNamesOperationsService.class, client.getHttpPipeline(),
+ client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for ServiceLinkerManagementClientConfigurationNamesOperations to be used
+ * by the proxy service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "ServiceLinkerManagem")
+ public interface ConfigurationNamesOperationsService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/providers/Microsoft.ServiceLinker/configurationNames")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @QueryParam("$filter") String filter,
+ @QueryParam("$skipToken") String skipToken, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * Lists the configuration names generated by Service Connector for all target, client types, auth types.
+ *
+ * @param filter OData filter options.
+ * @param skipToken OData skipToken option for pagination.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return configuration Name list which will be set based on different target resource, client type, auth type
+ * along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(String filter, String skipToken) {
+ 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.list(this.client.getEndpoint(), this.client.getApiVersion(), filter,
+ skipToken, 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()));
+ }
+
+ /**
+ * Lists the configuration names generated by Service Connector for all target, client types, auth types.
+ *
+ * @param filter OData filter options.
+ * @param skipToken OData skipToken option for pagination.
+ * @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 configuration Name list which will be set based on different target resource, client type, auth type
+ * along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(String filter, String skipToken,
+ Context context) {
+ 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.list(this.client.getEndpoint(), this.client.getApiVersion(), filter, skipToken, accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+
+ /**
+ * Lists the configuration names generated by Service Connector for all target, client types, auth types.
+ *
+ * @param filter OData filter options.
+ * @param skipToken OData skipToken option for pagination.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return configuration Name list which will be set based on different target resource, client type, auth type as
+ * paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String filter, String skipToken) {
+ return new PagedFlux<>(() -> listSinglePageAsync(filter, skipToken),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Lists the configuration names generated by Service Connector for all target, client types, auth types.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return configuration Name list which will be set based on different target resource, client type, auth type as
+ * paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync() {
+ final String filter = null;
+ final String skipToken = null;
+ return new PagedFlux<>(() -> listSinglePageAsync(filter, skipToken),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Lists the configuration names generated by Service Connector for all target, client types, auth types.
+ *
+ * @param filter OData filter options.
+ * @param skipToken OData skipToken option for pagination.
+ * @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 configuration Name list which will be set based on different target resource, client type, auth type as
+ * paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String filter, String skipToken, Context context) {
+ return new PagedFlux<>(() -> listSinglePageAsync(filter, skipToken, context),
+ nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Lists the configuration names generated by Service Connector for all target, client types, auth types.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return configuration Name list which will be set based on different target resource, client type, auth type as
+ * paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list() {
+ final String filter = null;
+ final String skipToken = null;
+ return new PagedIterable<>(listAsync(filter, skipToken));
+ }
+
+ /**
+ * Lists the configuration names generated by Service Connector for all target, client types, auth types.
+ *
+ * @param filter OData filter options.
+ * @param skipToken OData skipToken option for pagination.
+ * @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 configuration Name list which will be set based on different target resource, client type, auth type as
+ * paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String filter, String skipToken, Context context) {
+ return new PagedIterable<>(listAsync(filter, skipToken, context));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ *
+ * The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return configuration Name list which will be set based on different target resource, client type, auth type
+ * along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ *
+ * The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return configuration Name list which will be set based on different target resource, client type, auth type
+ * along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.listNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ConfigurationNamesOperationsImpl.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ConfigurationNamesOperationsImpl.java
new file mode 100644
index 0000000000000..6b1b48e50cc86
--- /dev/null
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ConfigurationNamesOperationsImpl.java
@@ -0,0 +1,45 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicelinker.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.servicelinker.fluent.ConfigurationNamesOperationsClient;
+import com.azure.resourcemanager.servicelinker.fluent.models.ConfigurationNameItemInner;
+import com.azure.resourcemanager.servicelinker.models.ConfigurationNameItem;
+import com.azure.resourcemanager.servicelinker.models.ConfigurationNamesOperations;
+
+public final class ConfigurationNamesOperationsImpl implements ConfigurationNamesOperations {
+ private static final ClientLogger LOGGER = new ClientLogger(ConfigurationNamesOperationsImpl.class);
+
+ private final ConfigurationNamesOperationsClient innerClient;
+
+ private final com.azure.resourcemanager.servicelinker.ServiceLinkerManager serviceManager;
+
+ public ConfigurationNamesOperationsImpl(ConfigurationNamesOperationsClient innerClient,
+ com.azure.resourcemanager.servicelinker.ServiceLinkerManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable list() {
+ PagedIterable inner = this.serviceClient().list();
+ return Utils.mapPage(inner, inner1 -> new ConfigurationNameItemImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(String filter, String skipToken, Context context) {
+ PagedIterable inner = this.serviceClient().list(filter, skipToken, context);
+ return Utils.mapPage(inner, inner1 -> new ConfigurationNameItemImpl(inner1, this.manager()));
+ }
+
+ private ConfigurationNamesOperationsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/SourceConfigurationResultImpl.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ConfigurationResultImpl.java
similarity index 70%
rename from sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/SourceConfigurationResultImpl.java
rename to sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ConfigurationResultImpl.java
index b0ea8b17ee5f7..7ed966817cd3c 100644
--- a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/SourceConfigurationResultImpl.java
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ConfigurationResultImpl.java
@@ -4,19 +4,18 @@
package com.azure.resourcemanager.servicelinker.implementation;
-import com.azure.resourcemanager.servicelinker.fluent.models.SourceConfigurationResultInner;
+import com.azure.resourcemanager.servicelinker.fluent.models.ConfigurationResultInner;
+import com.azure.resourcemanager.servicelinker.models.ConfigurationResult;
import com.azure.resourcemanager.servicelinker.models.SourceConfiguration;
-import com.azure.resourcemanager.servicelinker.models.SourceConfigurationResult;
import java.util.Collections;
import java.util.List;
-public final class SourceConfigurationResultImpl implements SourceConfigurationResult {
- private SourceConfigurationResultInner innerObject;
+public final class ConfigurationResultImpl implements ConfigurationResult {
+ private ConfigurationResultInner innerObject;
private final com.azure.resourcemanager.servicelinker.ServiceLinkerManager serviceManager;
- SourceConfigurationResultImpl(
- SourceConfigurationResultInner innerObject,
+ ConfigurationResultImpl(ConfigurationResultInner innerObject,
com.azure.resourcemanager.servicelinker.ServiceLinkerManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
@@ -31,7 +30,7 @@ public List configurations() {
}
}
- public SourceConfigurationResultInner innerModel() {
+ public ConfigurationResultInner innerModel() {
return this.innerObject;
}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ConnectorsClientImpl.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ConnectorsClientImpl.java
new file mode 100644
index 0000000000000..836233ec113d8
--- /dev/null
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ConnectorsClientImpl.java
@@ -0,0 +1,2697 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicelinker.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.servicelinker.fluent.ConnectorsClient;
+import com.azure.resourcemanager.servicelinker.fluent.models.ConfigurationResultInner;
+import com.azure.resourcemanager.servicelinker.fluent.models.DryrunResourceInner;
+import com.azure.resourcemanager.servicelinker.fluent.models.LinkerResourceInner;
+import com.azure.resourcemanager.servicelinker.fluent.models.ValidateOperationResultInner;
+import com.azure.resourcemanager.servicelinker.models.ConfigurationInfo;
+import com.azure.resourcemanager.servicelinker.models.DryrunList;
+import com.azure.resourcemanager.servicelinker.models.DryrunPatch;
+import com.azure.resourcemanager.servicelinker.models.LinkerPatch;
+import com.azure.resourcemanager.servicelinker.models.ResourceList;
+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 ConnectorsClient.
+ */
+public final class ConnectorsClientImpl implements ConnectorsClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final ConnectorsService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final ServiceLinkerManagementClientImpl client;
+
+ /**
+ * Initializes an instance of ConnectorsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ ConnectorsClientImpl(ServiceLinkerManagementClientImpl client) {
+ this.service
+ = RestProxy.create(ConnectorsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for ServiceLinkerManagementClientConnectors to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "ServiceLinkerManagem")
+ public interface ConnectorsService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker/locations/{location}/dryruns")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listDryrun(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("location") String location,
+ @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker/locations/{location}/dryruns/{dryrunName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getDryrun(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("location") String location,
+ @QueryParam("api-version") String apiVersion, @PathParam("dryrunName") String dryrunName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Put("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker/locations/{location}/dryruns/{dryrunName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> createDryrun(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("location") String location,
+ @QueryParam("api-version") String apiVersion, @PathParam("dryrunName") String dryrunName,
+ @BodyParam("application/json") DryrunResourceInner parameters, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Patch("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker/locations/{location}/dryruns/{dryrunName}")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> updateDryrun(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("location") String location,
+ @QueryParam("api-version") String apiVersion, @PathParam("dryrunName") String dryrunName,
+ @BodyParam("application/json") DryrunPatch parameters, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker/locations/{location}/dryruns/{dryrunName}")
+ @ExpectedResponses({ 200, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> deleteDryrun(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("location") String location,
+ @QueryParam("api-version") String apiVersion, @PathParam("dryrunName") String dryrunName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker/locations/{location}/connectors")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("location") String location,
+ @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker/locations/{location}/connectors/{connectorName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("location") String location,
+ @PathParam("connectorName") String connectorName, @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Put("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker/locations/{location}/connectors/{connectorName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> createOrUpdate(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("location") String location,
+ @PathParam("connectorName") String connectorName, @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") LinkerResourceInner parameters, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker/locations/{location}/connectors/{connectorName}")
+ @ExpectedResponses({ 200, 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> delete(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("location") String location,
+ @PathParam("connectorName") String connectorName, @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Patch("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker/locations/{location}/connectors/{connectorName}")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> update(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("location") String location,
+ @PathParam("connectorName") String connectorName, @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") LinkerPatch parameters, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker/locations/{location}/connectors/{connectorName}/validate")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> validate(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("location") String location,
+ @PathParam("connectorName") String connectorName, @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker/locations/{location}/connectors/{connectorName}/generateConfigurations")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> generateConfigurations(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("location") String location,
+ @PathParam("connectorName") String connectorName, @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") ConfigurationInfo parameters, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listDryrunNext(@PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * list dryrun jobs.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of dryrun along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listDryrunSinglePageAsync(String subscriptionId,
+ String resourceGroupName, String location) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listDryrun(this.client.getEndpoint(), subscriptionId, resourceGroupName,
+ location, this.client.getApiVersion(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * list dryrun jobs.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of dryrun along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listDryrunSinglePageAsync(String subscriptionId,
+ String resourceGroupName, String location, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listDryrun(this.client.getEndpoint(), subscriptionId, resourceGroupName, location,
+ this.client.getApiVersion(), accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+
+ /**
+ * list dryrun jobs.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of dryrun as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listDryrunAsync(String subscriptionId, String resourceGroupName,
+ String location) {
+ return new PagedFlux<>(() -> listDryrunSinglePageAsync(subscriptionId, resourceGroupName, location),
+ nextLink -> listDryrunNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * list dryrun jobs.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of dryrun as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listDryrunAsync(String subscriptionId, String resourceGroupName,
+ String location, Context context) {
+ return new PagedFlux<>(() -> listDryrunSinglePageAsync(subscriptionId, resourceGroupName, location, context),
+ nextLink -> listDryrunNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * list dryrun jobs.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of dryrun as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listDryrun(String subscriptionId, String resourceGroupName,
+ String location) {
+ return new PagedIterable<>(listDryrunAsync(subscriptionId, resourceGroupName, location));
+ }
+
+ /**
+ * list dryrun jobs.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of dryrun as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listDryrun(String subscriptionId, String resourceGroupName,
+ String location, Context context) {
+ return new PagedIterable<>(listDryrunAsync(subscriptionId, resourceGroupName, location, context));
+ }
+
+ /**
+ * get a dryrun job.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 dryrun job along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getDryrunWithResponseAsync(String subscriptionId,
+ String resourceGroupName, String location, String dryrunName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (dryrunName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter dryrunName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.getDryrun(this.client.getEndpoint(), subscriptionId, resourceGroupName,
+ location, this.client.getApiVersion(), dryrunName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * get a dryrun job.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @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 dryrun job along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getDryrunWithResponseAsync(String subscriptionId,
+ String resourceGroupName, String location, String dryrunName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (dryrunName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter dryrunName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.getDryrun(this.client.getEndpoint(), subscriptionId, resourceGroupName, location,
+ this.client.getApiVersion(), dryrunName, accept, context);
+ }
+
+ /**
+ * get a dryrun job.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 dryrun job on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getDryrunAsync(String subscriptionId, String resourceGroupName, String location,
+ String dryrunName) {
+ return getDryrunWithResponseAsync(subscriptionId, resourceGroupName, location, dryrunName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * get a dryrun job.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @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 dryrun job along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getDryrunWithResponse(String subscriptionId, String resourceGroupName,
+ String location, String dryrunName, Context context) {
+ return getDryrunWithResponseAsync(subscriptionId, resourceGroupName, location, dryrunName, context).block();
+ }
+
+ /**
+ * get a dryrun job.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 dryrun job.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DryrunResourceInner getDryrun(String subscriptionId, String resourceGroupName, String location,
+ String dryrunName) {
+ return getDryrunWithResponse(subscriptionId, resourceGroupName, location, dryrunName, Context.NONE).getValue();
+ }
+
+ /**
+ * create a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun 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 dryrun job resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createDryrunWithResponseAsync(String subscriptionId,
+ String resourceGroupName, String location, String dryrunName, DryrunResourceInner parameters) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (dryrunName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter dryrunName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.createDryrun(this.client.getEndpoint(), subscriptionId, resourceGroupName,
+ location, this.client.getApiVersion(), dryrunName, parameters, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * create a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun 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 dryrun job resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createDryrunWithResponseAsync(String subscriptionId,
+ String resourceGroupName, String location, String dryrunName, DryrunResourceInner parameters, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (dryrunName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter dryrunName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.createDryrun(this.client.getEndpoint(), subscriptionId, resourceGroupName, location,
+ this.client.getApiVersion(), dryrunName, parameters, accept, context);
+ }
+
+ /**
+ * create a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun 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 a dryrun job resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, DryrunResourceInner> beginCreateDryrunAsync(
+ String subscriptionId, String resourceGroupName, String location, String dryrunName,
+ DryrunResourceInner parameters) {
+ Mono>> mono
+ = createDryrunWithResponseAsync(subscriptionId, resourceGroupName, location, dryrunName, parameters);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ DryrunResourceInner.class, DryrunResourceInner.class, this.client.getContext());
+ }
+
+ /**
+ * create a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun 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 a dryrun job resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, DryrunResourceInner> beginCreateDryrunAsync(
+ String subscriptionId, String resourceGroupName, String location, String dryrunName,
+ DryrunResourceInner parameters, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono = createDryrunWithResponseAsync(subscriptionId, resourceGroupName,
+ location, dryrunName, parameters, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ DryrunResourceInner.class, DryrunResourceInner.class, context);
+ }
+
+ /**
+ * create a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun 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 a dryrun job resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, DryrunResourceInner> beginCreateDryrun(String subscriptionId,
+ String resourceGroupName, String location, String dryrunName, DryrunResourceInner parameters) {
+ return this.beginCreateDryrunAsync(subscriptionId, resourceGroupName, location, dryrunName, parameters)
+ .getSyncPoller();
+ }
+
+ /**
+ * create a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun 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 a dryrun job resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, DryrunResourceInner> beginCreateDryrun(String subscriptionId,
+ String resourceGroupName, String location, String dryrunName, DryrunResourceInner parameters, Context context) {
+ return this.beginCreateDryrunAsync(subscriptionId, resourceGroupName, location, dryrunName, parameters, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * create a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun 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 dryrun job resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createDryrunAsync(String subscriptionId, String resourceGroupName,
+ String location, String dryrunName, DryrunResourceInner parameters) {
+ return beginCreateDryrunAsync(subscriptionId, resourceGroupName, location, dryrunName, parameters).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * create a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun 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 dryrun job resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createDryrunAsync(String subscriptionId, String resourceGroupName,
+ String location, String dryrunName, DryrunResourceInner parameters, Context context) {
+ return beginCreateDryrunAsync(subscriptionId, resourceGroupName, location, dryrunName, parameters, context)
+ .last().flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * create a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun 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 dryrun job resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DryrunResourceInner createDryrun(String subscriptionId, String resourceGroupName, String location,
+ String dryrunName, DryrunResourceInner parameters) {
+ return createDryrunAsync(subscriptionId, resourceGroupName, location, dryrunName, parameters).block();
+ }
+
+ /**
+ * create a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun 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 dryrun job resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DryrunResourceInner createDryrun(String subscriptionId, String resourceGroupName, String location,
+ String dryrunName, DryrunResourceInner parameters, Context context) {
+ return createDryrunAsync(subscriptionId, resourceGroupName, location, dryrunName, parameters, context).block();
+ }
+
+ /**
+ * update a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun 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 dryrun job resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateDryrunWithResponseAsync(String subscriptionId,
+ String resourceGroupName, String location, String dryrunName, DryrunPatch parameters) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (dryrunName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter dryrunName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.updateDryrun(this.client.getEndpoint(), subscriptionId, resourceGroupName,
+ location, this.client.getApiVersion(), dryrunName, parameters, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * update a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun 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 dryrun job resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateDryrunWithResponseAsync(String subscriptionId,
+ String resourceGroupName, String location, String dryrunName, DryrunPatch parameters, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (dryrunName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter dryrunName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.updateDryrun(this.client.getEndpoint(), subscriptionId, resourceGroupName, location,
+ this.client.getApiVersion(), dryrunName, parameters, accept, context);
+ }
+
+ /**
+ * update a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun 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 a dryrun job resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, DryrunResourceInner> beginUpdateDryrunAsync(
+ String subscriptionId, String resourceGroupName, String location, String dryrunName, DryrunPatch parameters) {
+ Mono>> mono
+ = updateDryrunWithResponseAsync(subscriptionId, resourceGroupName, location, dryrunName, parameters);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ DryrunResourceInner.class, DryrunResourceInner.class, this.client.getContext());
+ }
+
+ /**
+ * update a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun 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 a dryrun job resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, DryrunResourceInner> beginUpdateDryrunAsync(
+ String subscriptionId, String resourceGroupName, String location, String dryrunName, DryrunPatch parameters,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono = updateDryrunWithResponseAsync(subscriptionId, resourceGroupName,
+ location, dryrunName, parameters, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ DryrunResourceInner.class, DryrunResourceInner.class, context);
+ }
+
+ /**
+ * update a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun 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 a dryrun job resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, DryrunResourceInner> beginUpdateDryrun(String subscriptionId,
+ String resourceGroupName, String location, String dryrunName, DryrunPatch parameters) {
+ return this.beginUpdateDryrunAsync(subscriptionId, resourceGroupName, location, dryrunName, parameters)
+ .getSyncPoller();
+ }
+
+ /**
+ * update a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun 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 a dryrun job resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, DryrunResourceInner> beginUpdateDryrun(String subscriptionId,
+ String resourceGroupName, String location, String dryrunName, DryrunPatch parameters, Context context) {
+ return this.beginUpdateDryrunAsync(subscriptionId, resourceGroupName, location, dryrunName, parameters, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * update a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun 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 dryrun job resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateDryrunAsync(String subscriptionId, String resourceGroupName,
+ String location, String dryrunName, DryrunPatch parameters) {
+ return beginUpdateDryrunAsync(subscriptionId, resourceGroupName, location, dryrunName, parameters).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * update a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun 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 dryrun job resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateDryrunAsync(String subscriptionId, String resourceGroupName,
+ String location, String dryrunName, DryrunPatch parameters, Context context) {
+ return beginUpdateDryrunAsync(subscriptionId, resourceGroupName, location, dryrunName, parameters, context)
+ .last().flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * update a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun 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 dryrun job resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DryrunResourceInner updateDryrun(String subscriptionId, String resourceGroupName, String location,
+ String dryrunName, DryrunPatch parameters) {
+ return updateDryrunAsync(subscriptionId, resourceGroupName, location, dryrunName, parameters).block();
+ }
+
+ /**
+ * update a dryrun job to do necessary check before actual creation.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @param parameters dryrun 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 dryrun job resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DryrunResourceInner updateDryrun(String subscriptionId, String resourceGroupName, String location,
+ String dryrunName, DryrunPatch parameters, Context context) {
+ return updateDryrunAsync(subscriptionId, resourceGroupName, location, dryrunName, parameters, context).block();
+ }
+
+ /**
+ * delete a dryrun job.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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> deleteDryrunWithResponseAsync(String subscriptionId, String resourceGroupName,
+ String location, String dryrunName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (dryrunName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter dryrunName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.deleteDryrun(this.client.getEndpoint(), subscriptionId, resourceGroupName,
+ location, this.client.getApiVersion(), dryrunName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * delete a dryrun job.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @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> deleteDryrunWithResponseAsync(String subscriptionId, String resourceGroupName,
+ String location, String dryrunName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (dryrunName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter dryrunName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.deleteDryrun(this.client.getEndpoint(), subscriptionId, resourceGroupName, location,
+ this.client.getApiVersion(), dryrunName, accept, context);
+ }
+
+ /**
+ * delete a dryrun job.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 deleteDryrunAsync(String subscriptionId, String resourceGroupName, String location,
+ String dryrunName) {
+ return deleteDryrunWithResponseAsync(subscriptionId, resourceGroupName, location, dryrunName)
+ .flatMap(ignored -> Mono.empty());
+ }
+
+ /**
+ * delete a dryrun job.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @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}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response deleteDryrunWithResponse(String subscriptionId, String resourceGroupName, String location,
+ String dryrunName, Context context) {
+ return deleteDryrunWithResponseAsync(subscriptionId, resourceGroupName, location, dryrunName, context).block();
+ }
+
+ /**
+ * delete a dryrun job.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param dryrunName The name of dryrun.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @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 deleteDryrun(String subscriptionId, String resourceGroupName, String location, String dryrunName) {
+ deleteDryrunWithResponse(subscriptionId, resourceGroupName, location, dryrunName, Context.NONE);
+ }
+
+ /**
+ * Returns list of connector which connects to the resource, which supports to config the target service during the
+ * resource provision.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of Linker along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(String subscriptionId,
+ String resourceGroupName, String location) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.list(this.client.getEndpoint(), subscriptionId, resourceGroupName, location,
+ this.client.getApiVersion(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Returns list of connector which connects to the resource, which supports to config the target service during the
+ * resource provision.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of Linker along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(String subscriptionId,
+ String resourceGroupName, String location, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(this.client.getEndpoint(), subscriptionId, resourceGroupName, location, this.client.getApiVersion(),
+ accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+
+ /**
+ * Returns list of connector which connects to the resource, which supports to config the target service during the
+ * resource provision.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of Linker as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String subscriptionId, String resourceGroupName, String location) {
+ return new PagedFlux<>(() -> listSinglePageAsync(subscriptionId, resourceGroupName, location),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Returns list of connector which connects to the resource, which supports to config the target service during the
+ * resource provision.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of Linker as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String subscriptionId, String resourceGroupName, String location,
+ Context context) {
+ return new PagedFlux<>(() -> listSinglePageAsync(subscriptionId, resourceGroupName, location, context),
+ nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Returns list of connector which connects to the resource, which supports to config the target service during the
+ * resource provision.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of Linker as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String subscriptionId, String resourceGroupName, String location) {
+ return new PagedIterable<>(listAsync(subscriptionId, resourceGroupName, location));
+ }
+
+ /**
+ * Returns list of connector which connects to the resource, which supports to config the target service during the
+ * resource provision.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of Linker as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String subscriptionId, String resourceGroupName, String location,
+ Context context) {
+ return new PagedIterable<>(listAsync(subscriptionId, resourceGroupName, location, context));
+ }
+
+ /**
+ * Returns Connector resource for a given name.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of 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 linker of source and target resource along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String subscriptionId, String resourceGroupName,
+ String location, String connectorName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (connectorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter connectorName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.get(this.client.getEndpoint(), subscriptionId, resourceGroupName, location,
+ connectorName, this.client.getApiVersion(), accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Returns Connector resource for a given name.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of 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 linker of source and target resource along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String subscriptionId, String resourceGroupName,
+ String location, String connectorName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (connectorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter connectorName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.get(this.client.getEndpoint(), subscriptionId, resourceGroupName, location, connectorName,
+ this.client.getApiVersion(), accept, context);
+ }
+
+ /**
+ * Returns Connector resource for a given name.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of 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 linker of source and target resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(String subscriptionId, String resourceGroupName, String location,
+ String connectorName) {
+ return getWithResponseAsync(subscriptionId, resourceGroupName, location, connectorName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Returns Connector resource for a given name.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of 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 linker of source and target resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(String subscriptionId, String resourceGroupName,
+ String location, String connectorName, Context context) {
+ return getWithResponseAsync(subscriptionId, resourceGroupName, location, connectorName, context).block();
+ }
+
+ /**
+ * Returns Connector resource for a given name.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of 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 linker of source and target resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public LinkerResourceInner get(String subscriptionId, String resourceGroupName, String location,
+ String connectorName) {
+ return getWithResponse(subscriptionId, resourceGroupName, location, connectorName, Context.NONE).getValue();
+ }
+
+ /**
+ * Create or update Connector resource.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return linker of source and target resource along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(String subscriptionId,
+ String resourceGroupName, String location, String connectorName, LinkerResourceInner parameters) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (connectorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter connectorName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), subscriptionId, resourceGroupName,
+ location, connectorName, this.client.getApiVersion(), parameters, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Create or update Connector resource.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @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 linker of source and target resource along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(String subscriptionId,
+ String resourceGroupName, String location, String connectorName, LinkerResourceInner parameters,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (connectorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter connectorName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.createOrUpdate(this.client.getEndpoint(), subscriptionId, resourceGroupName, location,
+ connectorName, this.client.getApiVersion(), parameters, accept, context);
+ }
+
+ /**
+ * Create or update Connector resource.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 linker of source and target resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, LinkerResourceInner> beginCreateOrUpdateAsync(
+ String subscriptionId, String resourceGroupName, String location, String connectorName,
+ LinkerResourceInner parameters) {
+ Mono>> mono
+ = createOrUpdateWithResponseAsync(subscriptionId, resourceGroupName, location, connectorName, parameters);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ LinkerResourceInner.class, LinkerResourceInner.class, this.client.getContext());
+ }
+
+ /**
+ * Create or update Connector resource.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @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 linker of source and target resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, LinkerResourceInner> beginCreateOrUpdateAsync(
+ String subscriptionId, String resourceGroupName, String location, String connectorName,
+ LinkerResourceInner parameters, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono = createOrUpdateWithResponseAsync(subscriptionId, resourceGroupName,
+ location, connectorName, parameters, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ LinkerResourceInner.class, LinkerResourceInner.class, context);
+ }
+
+ /**
+ * Create or update Connector resource.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 linker of source and target resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, LinkerResourceInner> beginCreateOrUpdate(String subscriptionId,
+ String resourceGroupName, String location, String connectorName, LinkerResourceInner parameters) {
+ return this.beginCreateOrUpdateAsync(subscriptionId, resourceGroupName, location, connectorName, parameters)
+ .getSyncPoller();
+ }
+
+ /**
+ * Create or update Connector resource.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @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 linker of source and target resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, LinkerResourceInner> beginCreateOrUpdate(String subscriptionId,
+ String resourceGroupName, String location, String connectorName, LinkerResourceInner parameters,
+ Context context) {
+ return this
+ .beginCreateOrUpdateAsync(subscriptionId, resourceGroupName, location, connectorName, parameters, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Create or update Connector resource.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return linker of source and target resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(String subscriptionId, String resourceGroupName,
+ String location, String connectorName, LinkerResourceInner parameters) {
+ return beginCreateOrUpdateAsync(subscriptionId, resourceGroupName, location, connectorName, parameters).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create or update Connector resource.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @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 linker of source and target resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(String subscriptionId, String resourceGroupName,
+ String location, String connectorName, LinkerResourceInner parameters, Context context) {
+ return beginCreateOrUpdateAsync(subscriptionId, resourceGroupName, location, connectorName, parameters, context)
+ .last().flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create or update Connector resource.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return linker of source and target resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public LinkerResourceInner createOrUpdate(String subscriptionId, String resourceGroupName, String location,
+ String connectorName, LinkerResourceInner parameters) {
+ return createOrUpdateAsync(subscriptionId, resourceGroupName, location, connectorName, parameters).block();
+ }
+
+ /**
+ * Create or update Connector resource.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @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 linker of source and target resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public LinkerResourceInner createOrUpdate(String subscriptionId, String resourceGroupName, String location,
+ String connectorName, LinkerResourceInner parameters, Context context) {
+ return createOrUpdateAsync(subscriptionId, resourceGroupName, location, connectorName, parameters, context)
+ .block();
+ }
+
+ /**
+ * Delete a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of 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 subscriptionId, String resourceGroupName,
+ String location, String connectorName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (connectorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter connectorName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.delete(this.client.getEndpoint(), subscriptionId, resourceGroupName,
+ location, connectorName, this.client.getApiVersion(), accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Delete a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of 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 subscriptionId, String resourceGroupName,
+ String location, String connectorName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (connectorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter connectorName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.delete(this.client.getEndpoint(), subscriptionId, resourceGroupName, location, connectorName,
+ this.client.getApiVersion(), accept, context);
+ }
+
+ /**
+ * Delete a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of 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 subscriptionId, String resourceGroupName,
+ String location, String connectorName) {
+ Mono>> mono
+ = deleteWithResponseAsync(subscriptionId, resourceGroupName, location, connectorName);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Delete a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of 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 subscriptionId, String resourceGroupName,
+ String location, String connectorName, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = deleteWithResponseAsync(subscriptionId, resourceGroupName, location, connectorName, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ context);
+ }
+
+ /**
+ * Delete a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of 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 subscriptionId, String resourceGroupName,
+ String location, String connectorName) {
+ return this.beginDeleteAsync(subscriptionId, resourceGroupName, location, connectorName).getSyncPoller();
+ }
+
+ /**
+ * Delete a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of 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 subscriptionId, String resourceGroupName,
+ String location, String connectorName, Context context) {
+ return this.beginDeleteAsync(subscriptionId, resourceGroupName, location, connectorName, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Delete a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of 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 subscriptionId, String resourceGroupName, String location,
+ String connectorName) {
+ return beginDeleteAsync(subscriptionId, resourceGroupName, location, connectorName).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of 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 subscriptionId, String resourceGroupName, String location,
+ String connectorName, Context context) {
+ return beginDeleteAsync(subscriptionId, resourceGroupName, location, connectorName, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of 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 subscriptionId, String resourceGroupName, String location, String connectorName) {
+ deleteAsync(subscriptionId, resourceGroupName, location, connectorName).block();
+ }
+
+ /**
+ * Delete a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of 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 subscriptionId, String resourceGroupName, String location, String connectorName,
+ Context context) {
+ deleteAsync(subscriptionId, resourceGroupName, location, connectorName, context).block();
+ }
+
+ /**
+ * Operation to update an existing Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return linker of source and target resource along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateWithResponseAsync(String subscriptionId, String resourceGroupName,
+ String location, String connectorName, LinkerPatch parameters) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (connectorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter connectorName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.update(this.client.getEndpoint(), subscriptionId, resourceGroupName,
+ location, connectorName, this.client.getApiVersion(), parameters, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Operation to update an existing Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @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 linker of source and target resource along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateWithResponseAsync(String subscriptionId, String resourceGroupName,
+ String location, String connectorName, LinkerPatch parameters, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (connectorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter connectorName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.update(this.client.getEndpoint(), subscriptionId, resourceGroupName, location, connectorName,
+ this.client.getApiVersion(), parameters, accept, context);
+ }
+
+ /**
+ * Operation to update an existing Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 linker of source and target resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, LinkerResourceInner> beginUpdateAsync(String subscriptionId,
+ String resourceGroupName, String location, String connectorName, LinkerPatch parameters) {
+ Mono>> mono
+ = updateWithResponseAsync(subscriptionId, resourceGroupName, location, connectorName, parameters);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ LinkerResourceInner.class, LinkerResourceInner.class, this.client.getContext());
+ }
+
+ /**
+ * Operation to update an existing Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @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 linker of source and target resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, LinkerResourceInner> beginUpdateAsync(String subscriptionId,
+ String resourceGroupName, String location, String connectorName, LinkerPatch parameters, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = updateWithResponseAsync(subscriptionId, resourceGroupName, location, connectorName, parameters, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ LinkerResourceInner.class, LinkerResourceInner.class, context);
+ }
+
+ /**
+ * Operation to update an existing Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 linker of source and target resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, LinkerResourceInner> beginUpdate(String subscriptionId,
+ String resourceGroupName, String location, String connectorName, LinkerPatch parameters) {
+ return this.beginUpdateAsync(subscriptionId, resourceGroupName, location, connectorName, parameters)
+ .getSyncPoller();
+ }
+
+ /**
+ * Operation to update an existing Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @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 linker of source and target resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, LinkerResourceInner> beginUpdate(String subscriptionId,
+ String resourceGroupName, String location, String connectorName, LinkerPatch parameters, Context context) {
+ return this.beginUpdateAsync(subscriptionId, resourceGroupName, location, connectorName, parameters, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Operation to update an existing Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return linker of source and target resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(String subscriptionId, String resourceGroupName, String location,
+ String connectorName, LinkerPatch parameters) {
+ return beginUpdateAsync(subscriptionId, resourceGroupName, location, connectorName, parameters).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Operation to update an existing Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @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 linker of source and target resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(String subscriptionId, String resourceGroupName, String location,
+ String connectorName, LinkerPatch parameters, Context context) {
+ return beginUpdateAsync(subscriptionId, resourceGroupName, location, connectorName, parameters, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Operation to update an existing Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return linker of source and target resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public LinkerResourceInner update(String subscriptionId, String resourceGroupName, String location,
+ String connectorName, LinkerPatch parameters) {
+ return updateAsync(subscriptionId, resourceGroupName, location, connectorName, parameters).block();
+ }
+
+ /**
+ * Operation to update an existing Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connector details.
+ * @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 linker of source and target resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public LinkerResourceInner update(String subscriptionId, String resourceGroupName, String location,
+ String connectorName, LinkerPatch parameters, Context context) {
+ return updateAsync(subscriptionId, resourceGroupName, location, connectorName, parameters, context).block();
+ }
+
+ /**
+ * Validate a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of 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 validation operation result for a Linker along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> validateWithResponseAsync(String subscriptionId, String resourceGroupName,
+ String location, String connectorName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (connectorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter connectorName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.validate(this.client.getEndpoint(), subscriptionId, resourceGroupName,
+ location, connectorName, this.client.getApiVersion(), accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Validate a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of 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 validation operation result for a Linker along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> validateWithResponseAsync(String subscriptionId, String resourceGroupName,
+ String location, String connectorName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (connectorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter connectorName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.validate(this.client.getEndpoint(), subscriptionId, resourceGroupName, location, connectorName,
+ this.client.getApiVersion(), accept, context);
+ }
+
+ /**
+ * Validate a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of 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 the validation operation result for a Linker.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, ValidateOperationResultInner>
+ beginValidateAsync(String subscriptionId, String resourceGroupName, String location, String connectorName) {
+ Mono>> mono
+ = validateWithResponseAsync(subscriptionId, resourceGroupName, location, connectorName);
+ return this.client.getLroResult(mono,
+ this.client.getHttpPipeline(), ValidateOperationResultInner.class, ValidateOperationResultInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Validate a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of 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 the validation operation result for a Linker.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, ValidateOperationResultInner> beginValidateAsync(
+ String subscriptionId, String resourceGroupName, String location, String connectorName, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = validateWithResponseAsync(subscriptionId, resourceGroupName, location, connectorName, context);
+ return this.client.getLroResult(mono,
+ this.client.getHttpPipeline(), ValidateOperationResultInner.class, ValidateOperationResultInner.class,
+ context);
+ }
+
+ /**
+ * Validate a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of 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 the validation operation result for a Linker.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, ValidateOperationResultInner>
+ beginValidate(String subscriptionId, String resourceGroupName, String location, String connectorName) {
+ return this.beginValidateAsync(subscriptionId, resourceGroupName, location, connectorName).getSyncPoller();
+ }
+
+ /**
+ * Validate a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of 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 the validation operation result for a Linker.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, ValidateOperationResultInner> beginValidate(
+ String subscriptionId, String resourceGroupName, String location, String connectorName, Context context) {
+ return this.beginValidateAsync(subscriptionId, resourceGroupName, location, connectorName, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Validate a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of 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 validation operation result for a Linker on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono validateAsync(String subscriptionId, String resourceGroupName,
+ String location, String connectorName) {
+ return beginValidateAsync(subscriptionId, resourceGroupName, location, connectorName).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Validate a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of 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 validation operation result for a Linker on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono validateAsync(String subscriptionId, String resourceGroupName,
+ String location, String connectorName, Context context) {
+ return beginValidateAsync(subscriptionId, resourceGroupName, location, connectorName, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Validate a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of 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 validation operation result for a Linker.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ValidateOperationResultInner validate(String subscriptionId, String resourceGroupName, String location,
+ String connectorName) {
+ return validateAsync(subscriptionId, resourceGroupName, location, connectorName).block();
+ }
+
+ /**
+ * Validate a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of 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 validation operation result for a Linker.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ValidateOperationResultInner validate(String subscriptionId, String resourceGroupName, String location,
+ String connectorName, Context context) {
+ return validateAsync(subscriptionId, resourceGroupName, location, connectorName, context).block();
+ }
+
+ /**
+ * Generate configurations for a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connection Info, including format, secret store, etc.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return configurations for source resource, include appSettings, connectionString and serviceBindings along with
+ * {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> generateConfigurationsWithResponseAsync(String subscriptionId,
+ String resourceGroupName, String location, String connectorName, ConfigurationInfo parameters) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (connectorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter connectorName is required and cannot be null."));
+ }
+ if (parameters != null) {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.generateConfigurations(this.client.getEndpoint(), subscriptionId,
+ resourceGroupName, location, connectorName, this.client.getApiVersion(), parameters, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Generate configurations for a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connection Info, including format, secret store, etc.
+ * @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 configurations for source resource, include appSettings, connectionString and serviceBindings along with
+ * {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> generateConfigurationsWithResponseAsync(String subscriptionId,
+ String resourceGroupName, String location, String connectorName, ConfigurationInfo parameters,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (subscriptionId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (connectorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter connectorName is required and cannot be null."));
+ }
+ if (parameters != null) {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.generateConfigurations(this.client.getEndpoint(), subscriptionId, resourceGroupName, location,
+ connectorName, this.client.getApiVersion(), parameters, accept, context);
+ }
+
+ /**
+ * Generate configurations for a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of 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 configurations for source resource, include appSettings, connectionString and serviceBindings on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono generateConfigurationsAsync(String subscriptionId, String resourceGroupName,
+ String location, String connectorName) {
+ final ConfigurationInfo parameters = null;
+ return generateConfigurationsWithResponseAsync(subscriptionId, resourceGroupName, location, connectorName,
+ parameters).flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Generate configurations for a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of resource.
+ * @param parameters Connection Info, including format, secret store, etc.
+ * @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 configurations for source resource, include appSettings, connectionString and serviceBindings along with
+ * {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response generateConfigurationsWithResponse(String subscriptionId,
+ String resourceGroupName, String location, String connectorName, ConfigurationInfo parameters,
+ Context context) {
+ return generateConfigurationsWithResponseAsync(subscriptionId, resourceGroupName, location, connectorName,
+ parameters, context).block();
+ }
+
+ /**
+ * Generate configurations for a Connector.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The name of Azure region.
+ * @param connectorName The name of 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 configurations for source resource, include appSettings, connectionString and serviceBindings.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ConfigurationResultInner generateConfigurations(String subscriptionId, String resourceGroupName,
+ String location, String connectorName) {
+ final ConfigurationInfo parameters = null;
+ return generateConfigurationsWithResponse(subscriptionId, resourceGroupName, location, connectorName,
+ parameters, Context.NONE).getValue();
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ *
+ * The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of dryrun along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listDryrunNextSinglePageAsync(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.listDryrunNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ *
+ * The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of dryrun along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listDryrunNextSinglePageAsync(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.listDryrunNext(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
+ *
+ * The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of Linker along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ *
+ * The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of Linker along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.listNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ConnectorsImpl.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ConnectorsImpl.java
new file mode 100644
index 0000000000000..280f9e9580042
--- /dev/null
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/ConnectorsImpl.java
@@ -0,0 +1,382 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicelinker.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.servicelinker.fluent.ConnectorsClient;
+import com.azure.resourcemanager.servicelinker.fluent.models.ConfigurationResultInner;
+import com.azure.resourcemanager.servicelinker.fluent.models.DryrunResourceInner;
+import com.azure.resourcemanager.servicelinker.fluent.models.LinkerResourceInner;
+import com.azure.resourcemanager.servicelinker.fluent.models.ValidateOperationResultInner;
+import com.azure.resourcemanager.servicelinker.models.ConfigurationInfo;
+import com.azure.resourcemanager.servicelinker.models.ConfigurationResult;
+import com.azure.resourcemanager.servicelinker.models.Connectors;
+import com.azure.resourcemanager.servicelinker.models.DryrunResource;
+import com.azure.resourcemanager.servicelinker.models.LinkerResource;
+import com.azure.resourcemanager.servicelinker.models.ValidateOperationResult;
+
+public final class ConnectorsImpl implements Connectors {
+ private static final ClientLogger LOGGER = new ClientLogger(ConnectorsImpl.class);
+
+ private final ConnectorsClient innerClient;
+
+ private final com.azure.resourcemanager.servicelinker.ServiceLinkerManager serviceManager;
+
+ public ConnectorsImpl(ConnectorsClient innerClient,
+ com.azure.resourcemanager.servicelinker.ServiceLinkerManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable listDryrun(String subscriptionId, String resourceGroupName, String location) {
+ PagedIterable inner
+ = this.serviceClient().listDryrun(subscriptionId, resourceGroupName, location);
+ return Utils.mapPage(inner, inner1 -> new DryrunResourceImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listDryrun(String subscriptionId, String resourceGroupName, String location,
+ Context context) {
+ PagedIterable inner
+ = this.serviceClient().listDryrun(subscriptionId, resourceGroupName, location, context);
+ return Utils.mapPage(inner, inner1 -> new DryrunResourceImpl(inner1, this.manager()));
+ }
+
+ public Response getDryrunWithResponse(String subscriptionId, String resourceGroupName,
+ String location, String dryrunName, Context context) {
+ Response inner = this.serviceClient().getDryrunWithResponse(subscriptionId,
+ resourceGroupName, location, dryrunName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new DryrunResourceImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public DryrunResource getDryrun(String subscriptionId, String resourceGroupName, String location,
+ String dryrunName) {
+ DryrunResourceInner inner
+ = this.serviceClient().getDryrun(subscriptionId, resourceGroupName, location, dryrunName);
+ if (inner != null) {
+ return new DryrunResourceImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response deleteDryrunWithResponse(String subscriptionId, String resourceGroupName, String location,
+ String dryrunName, Context context) {
+ return this.serviceClient().deleteDryrunWithResponse(subscriptionId, resourceGroupName, location, dryrunName,
+ context);
+ }
+
+ public void deleteDryrun(String subscriptionId, String resourceGroupName, String location, String dryrunName) {
+ this.serviceClient().deleteDryrun(subscriptionId, resourceGroupName, location, dryrunName);
+ }
+
+ public PagedIterable list(String subscriptionId, String resourceGroupName, String location) {
+ PagedIterable inner
+ = this.serviceClient().list(subscriptionId, resourceGroupName, location);
+ return Utils.mapPage(inner, inner1 -> new LinkerResourceImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(String subscriptionId, String resourceGroupName, String location,
+ Context context) {
+ PagedIterable inner
+ = this.serviceClient().list(subscriptionId, resourceGroupName, location, context);
+ return Utils.mapPage(inner, inner1 -> new LinkerResourceImpl(inner1, this.manager()));
+ }
+
+ public Response getWithResponse(String subscriptionId, String resourceGroupName, String location,
+ String connectorName, Context context) {
+ Response inner
+ = this.serviceClient().getWithResponse(subscriptionId, resourceGroupName, location, connectorName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new LinkerResourceImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public LinkerResource get(String subscriptionId, String resourceGroupName, String location, String connectorName) {
+ LinkerResourceInner inner
+ = this.serviceClient().get(subscriptionId, resourceGroupName, location, connectorName);
+ if (inner != null) {
+ return new LinkerResourceImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public void delete(String subscriptionId, String resourceGroupName, String location, String connectorName) {
+ this.serviceClient().delete(subscriptionId, resourceGroupName, location, connectorName);
+ }
+
+ public void delete(String subscriptionId, String resourceGroupName, String location, String connectorName,
+ Context context) {
+ this.serviceClient().delete(subscriptionId, resourceGroupName, location, connectorName, context);
+ }
+
+ public ValidateOperationResult validate(String subscriptionId, String resourceGroupName, String location,
+ String connectorName) {
+ ValidateOperationResultInner inner
+ = this.serviceClient().validate(subscriptionId, resourceGroupName, location, connectorName);
+ if (inner != null) {
+ return new ValidateOperationResultImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public ValidateOperationResult validate(String subscriptionId, String resourceGroupName, String location,
+ String connectorName, Context context) {
+ ValidateOperationResultInner inner
+ = this.serviceClient().validate(subscriptionId, resourceGroupName, location, connectorName, context);
+ if (inner != null) {
+ return new ValidateOperationResultImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response generateConfigurationsWithResponse(String subscriptionId,
+ String resourceGroupName, String location, String connectorName, ConfigurationInfo parameters,
+ Context context) {
+ Response inner = this.serviceClient().generateConfigurationsWithResponse(
+ subscriptionId, resourceGroupName, location, connectorName, parameters, context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new ConfigurationResultImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public ConfigurationResult generateConfigurations(String subscriptionId, String resourceGroupName, String location,
+ String connectorName) {
+ ConfigurationResultInner inner
+ = this.serviceClient().generateConfigurations(subscriptionId, resourceGroupName, location, connectorName);
+ if (inner != null) {
+ return new ConfigurationResultImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public DryrunResource getDryrunById(String id) {
+ String subscriptionId = Utils.getValueFromIdByName(id, "subscriptions");
+ if (subscriptionId == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'subscriptions'.", id)));
+ }
+ String resourceGroupName = Utils.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 location = Utils.getValueFromIdByName(id, "locations");
+ if (location == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'locations'.", id)));
+ }
+ String dryrunName = Utils.getValueFromIdByName(id, "dryruns");
+ if (dryrunName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'dryruns'.", id)));
+ }
+ return this.getDryrunWithResponse(subscriptionId, resourceGroupName, location, dryrunName, Context.NONE)
+ .getValue();
+ }
+
+ public Response getDryrunByIdWithResponse(String id, Context context) {
+ String subscriptionId = Utils.getValueFromIdByName(id, "subscriptions");
+ if (subscriptionId == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'subscriptions'.", id)));
+ }
+ String resourceGroupName = Utils.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 location = Utils.getValueFromIdByName(id, "locations");
+ if (location == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'locations'.", id)));
+ }
+ String dryrunName = Utils.getValueFromIdByName(id, "dryruns");
+ if (dryrunName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'dryruns'.", id)));
+ }
+ return this.getDryrunWithResponse(subscriptionId, resourceGroupName, location, dryrunName, context);
+ }
+
+ public LinkerResource getById(String id) {
+ String subscriptionId = Utils.getValueFromIdByName(id, "subscriptions");
+ if (subscriptionId == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'subscriptions'.", id)));
+ }
+ String resourceGroupName = Utils.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 location = Utils.getValueFromIdByName(id, "locations");
+ if (location == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'locations'.", id)));
+ }
+ String connectorName = Utils.getValueFromIdByName(id, "connectors");
+ if (connectorName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'connectors'.", id)));
+ }
+ return this.getWithResponse(subscriptionId, resourceGroupName, location, connectorName, Context.NONE)
+ .getValue();
+ }
+
+ public Response getByIdWithResponse(String id, Context context) {
+ String subscriptionId = Utils.getValueFromIdByName(id, "subscriptions");
+ if (subscriptionId == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'subscriptions'.", id)));
+ }
+ String resourceGroupName = Utils.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 location = Utils.getValueFromIdByName(id, "locations");
+ if (location == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'locations'.", id)));
+ }
+ String connectorName = Utils.getValueFromIdByName(id, "connectors");
+ if (connectorName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'connectors'.", id)));
+ }
+ return this.getWithResponse(subscriptionId, resourceGroupName, location, connectorName, context);
+ }
+
+ public void deleteDryrunById(String id) {
+ String subscriptionId = Utils.getValueFromIdByName(id, "subscriptions");
+ if (subscriptionId == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'subscriptions'.", id)));
+ }
+ String resourceGroupName = Utils.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 location = Utils.getValueFromIdByName(id, "locations");
+ if (location == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'locations'.", id)));
+ }
+ String dryrunName = Utils.getValueFromIdByName(id, "dryruns");
+ if (dryrunName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'dryruns'.", id)));
+ }
+ this.deleteDryrunWithResponse(subscriptionId, resourceGroupName, location, dryrunName, Context.NONE);
+ }
+
+ public Response deleteDryrunByIdWithResponse(String id, Context context) {
+ String subscriptionId = Utils.getValueFromIdByName(id, "subscriptions");
+ if (subscriptionId == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'subscriptions'.", id)));
+ }
+ String resourceGroupName = Utils.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 location = Utils.getValueFromIdByName(id, "locations");
+ if (location == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'locations'.", id)));
+ }
+ String dryrunName = Utils.getValueFromIdByName(id, "dryruns");
+ if (dryrunName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'dryruns'.", id)));
+ }
+ return this.deleteDryrunWithResponse(subscriptionId, resourceGroupName, location, dryrunName, context);
+ }
+
+ public void deleteById(String id) {
+ String subscriptionId = Utils.getValueFromIdByName(id, "subscriptions");
+ if (subscriptionId == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'subscriptions'.", id)));
+ }
+ String resourceGroupName = Utils.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 location = Utils.getValueFromIdByName(id, "locations");
+ if (location == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'locations'.", id)));
+ }
+ String connectorName = Utils.getValueFromIdByName(id, "connectors");
+ if (connectorName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'connectors'.", id)));
+ }
+ this.delete(subscriptionId, resourceGroupName, location, connectorName, Context.NONE);
+ }
+
+ public void deleteByIdWithResponse(String id, Context context) {
+ String subscriptionId = Utils.getValueFromIdByName(id, "subscriptions");
+ if (subscriptionId == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'subscriptions'.", id)));
+ }
+ String resourceGroupName = Utils.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 location = Utils.getValueFromIdByName(id, "locations");
+ if (location == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'locations'.", id)));
+ }
+ String connectorName = Utils.getValueFromIdByName(id, "connectors");
+ if (connectorName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'connectors'.", id)));
+ }
+ this.delete(subscriptionId, resourceGroupName, location, connectorName, context);
+ }
+
+ private ConnectorsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.servicelinker.ServiceLinkerManager manager() {
+ return this.serviceManager;
+ }
+
+ public DryrunResourceImpl defineDryrun(String name) {
+ return new DryrunResourceImpl(name, this.manager());
+ }
+
+ public LinkerResourceImpl define(String name) {
+ return new LinkerResourceImpl(name, this.manager());
+ }
+}
diff --git a/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/DryrunResourceImpl.java b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/DryrunResourceImpl.java
new file mode 100644
index 0000000000000..97d87baf254f4
--- /dev/null
+++ b/sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/implementation/DryrunResourceImpl.java
@@ -0,0 +1,164 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.servicelinker.implementation;
+
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.servicelinker.fluent.models.DryrunResourceInner;
+import com.azure.resourcemanager.servicelinker.models.DryrunOperationPreview;
+import com.azure.resourcemanager.servicelinker.models.DryrunParameters;
+import com.azure.resourcemanager.servicelinker.models.DryrunPatch;
+import com.azure.resourcemanager.servicelinker.models.DryrunPrerequisiteResult;
+import com.azure.resourcemanager.servicelinker.models.DryrunResource;
+import java.util.Collections;
+import java.util.List;
+
+public final class DryrunResourceImpl implements DryrunResource, DryrunResource.Definition, DryrunResource.Update {
+ private DryrunResourceInner innerObject;
+
+ private final com.azure.resourcemanager.servicelinker.ServiceLinkerManager serviceManager;
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public DryrunParameters parameters() {
+ return this.innerModel().parameters();
+ }
+
+ public List