net.bytebuddy
byte-buddy
diff --git a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/AzureArcDataManager.java b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/AzureArcDataManager.java
index 3cb9c5e4303a..39ba7e9f995c 100644
--- a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/AzureArcDataManager.java
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/AzureArcDataManager.java
@@ -24,15 +24,29 @@
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.azurearcdata.fluent.AzureArcDataManagementClient;
+import com.azure.resourcemanager.azurearcdata.implementation.ActiveDirectoryConnectorsImpl;
import com.azure.resourcemanager.azurearcdata.implementation.AzureArcDataManagementClientBuilder;
import com.azure.resourcemanager.azurearcdata.implementation.DataControllersImpl;
+import com.azure.resourcemanager.azurearcdata.implementation.FailoverGroupsImpl;
import com.azure.resourcemanager.azurearcdata.implementation.OperationsImpl;
+import com.azure.resourcemanager.azurearcdata.implementation.PostgresInstancesImpl;
import com.azure.resourcemanager.azurearcdata.implementation.SqlManagedInstancesImpl;
+import com.azure.resourcemanager.azurearcdata.implementation.SqlServerAvailabilityGroupsImpl;
+import com.azure.resourcemanager.azurearcdata.implementation.SqlServerDatabasesImpl;
+import com.azure.resourcemanager.azurearcdata.implementation.SqlServerEsuLicensesImpl;
import com.azure.resourcemanager.azurearcdata.implementation.SqlServerInstancesImpl;
+import com.azure.resourcemanager.azurearcdata.implementation.SqlServerLicensesImpl;
+import com.azure.resourcemanager.azurearcdata.models.ActiveDirectoryConnectors;
import com.azure.resourcemanager.azurearcdata.models.DataControllers;
+import com.azure.resourcemanager.azurearcdata.models.FailoverGroups;
import com.azure.resourcemanager.azurearcdata.models.Operations;
+import com.azure.resourcemanager.azurearcdata.models.PostgresInstances;
import com.azure.resourcemanager.azurearcdata.models.SqlManagedInstances;
+import com.azure.resourcemanager.azurearcdata.models.SqlServerAvailabilityGroups;
+import com.azure.resourcemanager.azurearcdata.models.SqlServerDatabases;
+import com.azure.resourcemanager.azurearcdata.models.SqlServerEsuLicenses;
import com.azure.resourcemanager.azurearcdata.models.SqlServerInstances;
+import com.azure.resourcemanager.azurearcdata.models.SqlServerLicenses;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
@@ -41,35 +55,48 @@
import java.util.stream.Collectors;
/**
- * Entry point to AzureArcDataManager. The AzureArcData management API provides a RESTful set of web APIs to manage
- * Azure Data Services on Azure Arc Resources.
+ * Entry point to AzureArcDataManager.
+ * The AzureArcData management API provides a RESTful set of web APIs to manage Azure Data Services on Azure Arc
+ * Resources.
*/
public final class AzureArcDataManager {
private Operations operations;
private SqlManagedInstances sqlManagedInstances;
+ private FailoverGroups failoverGroups;
+
private SqlServerInstances sqlServerInstances;
+ private SqlServerLicenses sqlServerLicenses;
+
private DataControllers dataControllers;
+ private ActiveDirectoryConnectors activeDirectoryConnectors;
+
+ private PostgresInstances postgresInstances;
+
+ private SqlServerAvailabilityGroups sqlServerAvailabilityGroups;
+
+ private SqlServerDatabases sqlServerDatabases;
+
+ private SqlServerEsuLicenses sqlServerEsuLicenses;
+
private final AzureArcDataManagementClient clientObject;
private AzureArcDataManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
- this.clientObject =
- new AzureArcDataManagementClientBuilder()
- .pipeline(httpPipeline)
- .endpoint(profile.getEnvironment().getResourceManagerEndpoint())
- .subscriptionId(profile.getSubscriptionId())
- .defaultPollInterval(defaultPollInterval)
- .buildClient();
+ this.clientObject = new AzureArcDataManagementClientBuilder().pipeline(httpPipeline)
+ .endpoint(profile.getEnvironment().getResourceManagerEndpoint())
+ .subscriptionId(profile.getSubscriptionId())
+ .defaultPollInterval(defaultPollInterval)
+ .buildClient();
}
/**
* Creates an instance of AzureArcData service API entry point.
- *
+ *
* @param credential the credential to use.
* @param profile the Azure profile for client.
* @return the AzureArcData service API instance.
@@ -82,7 +109,7 @@ public static AzureArcDataManager authenticate(TokenCredential credential, Azure
/**
* Creates an instance of AzureArcData service API entry point.
- *
+ *
* @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential.
* @param profile the Azure profile for client.
* @return the AzureArcData service API instance.
@@ -95,14 +122,16 @@ public static AzureArcDataManager authenticate(HttpPipeline httpPipeline, AzureP
/**
* Gets a Configurable instance that can be used to create AzureArcDataManager with optional configuration.
- *
+ *
* @return the Configurable instance allowing configurations.
*/
public static Configurable configure() {
return new AzureArcDataManager.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);
@@ -174,8 +203,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.
@@ -192,8 +221,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"));
@@ -213,15 +242,13 @@ public AzureArcDataManager authenticate(TokenCredential credential, AzureProfile
Objects.requireNonNull(profile, "'profile' cannot be null.");
StringBuilder userAgentBuilder = new StringBuilder();
- userAgentBuilder
- .append("azsdk-java")
+ userAgentBuilder.append("azsdk-java")
.append("-")
.append("com.azure.resourcemanager.azurearcdata")
.append("/")
- .append("1.0.0-beta.3");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
- userAgentBuilder
- .append(" (")
+ userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
.append("; ")
.append(Configuration.getGlobalConfiguration().get("os.name"))
@@ -246,38 +273,28 @@ public AzureArcDataManager authenticate(TokenCredential credential, AzureProfile
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 AzureArcDataManager(httpPipeline, profile, defaultPollInterval);
}
}
/**
* Gets the resource collection API of Operations.
- *
+ *
* @return Resource collection API of Operations.
*/
public Operations operations() {
@@ -289,7 +306,7 @@ public Operations operations() {
/**
* Gets the resource collection API of SqlManagedInstances. It manages SqlManagedInstance.
- *
+ *
* @return Resource collection API of SqlManagedInstances.
*/
public SqlManagedInstances sqlManagedInstances() {
@@ -299,9 +316,21 @@ public SqlManagedInstances sqlManagedInstances() {
return sqlManagedInstances;
}
+ /**
+ * Gets the resource collection API of FailoverGroups. It manages FailoverGroupResource.
+ *
+ * @return Resource collection API of FailoverGroups.
+ */
+ public FailoverGroups failoverGroups() {
+ if (this.failoverGroups == null) {
+ this.failoverGroups = new FailoverGroupsImpl(clientObject.getFailoverGroups(), this);
+ }
+ return failoverGroups;
+ }
+
/**
* Gets the resource collection API of SqlServerInstances. It manages SqlServerInstance.
- *
+ *
* @return Resource collection API of SqlServerInstances.
*/
public SqlServerInstances sqlServerInstances() {
@@ -311,9 +340,21 @@ public SqlServerInstances sqlServerInstances() {
return sqlServerInstances;
}
+ /**
+ * Gets the resource collection API of SqlServerLicenses. It manages SqlServerLicense.
+ *
+ * @return Resource collection API of SqlServerLicenses.
+ */
+ public SqlServerLicenses sqlServerLicenses() {
+ if (this.sqlServerLicenses == null) {
+ this.sqlServerLicenses = new SqlServerLicensesImpl(clientObject.getSqlServerLicenses(), this);
+ }
+ return sqlServerLicenses;
+ }
+
/**
* Gets the resource collection API of DataControllers. It manages DataControllerResource.
- *
+ *
* @return Resource collection API of DataControllers.
*/
public DataControllers dataControllers() {
@@ -324,8 +365,72 @@ public DataControllers dataControllers() {
}
/**
- * @return Wrapped service client AzureArcDataManagementClient providing direct access to the underlying
- * auto-generated API implementation, based on Azure REST API.
+ * Gets the resource collection API of ActiveDirectoryConnectors. It manages ActiveDirectoryConnectorResource.
+ *
+ * @return Resource collection API of ActiveDirectoryConnectors.
+ */
+ public ActiveDirectoryConnectors activeDirectoryConnectors() {
+ if (this.activeDirectoryConnectors == null) {
+ this.activeDirectoryConnectors
+ = new ActiveDirectoryConnectorsImpl(clientObject.getActiveDirectoryConnectors(), this);
+ }
+ return activeDirectoryConnectors;
+ }
+
+ /**
+ * Gets the resource collection API of PostgresInstances. It manages PostgresInstance.
+ *
+ * @return Resource collection API of PostgresInstances.
+ */
+ public PostgresInstances postgresInstances() {
+ if (this.postgresInstances == null) {
+ this.postgresInstances = new PostgresInstancesImpl(clientObject.getPostgresInstances(), this);
+ }
+ return postgresInstances;
+ }
+
+ /**
+ * Gets the resource collection API of SqlServerAvailabilityGroups. It manages SqlServerAvailabilityGroupResource.
+ *
+ * @return Resource collection API of SqlServerAvailabilityGroups.
+ */
+ public SqlServerAvailabilityGroups sqlServerAvailabilityGroups() {
+ if (this.sqlServerAvailabilityGroups == null) {
+ this.sqlServerAvailabilityGroups
+ = new SqlServerAvailabilityGroupsImpl(clientObject.getSqlServerAvailabilityGroups(), this);
+ }
+ return sqlServerAvailabilityGroups;
+ }
+
+ /**
+ * Gets the resource collection API of SqlServerDatabases. It manages SqlServerDatabaseResource.
+ *
+ * @return Resource collection API of SqlServerDatabases.
+ */
+ public SqlServerDatabases sqlServerDatabases() {
+ if (this.sqlServerDatabases == null) {
+ this.sqlServerDatabases = new SqlServerDatabasesImpl(clientObject.getSqlServerDatabases(), this);
+ }
+ return sqlServerDatabases;
+ }
+
+ /**
+ * Gets the resource collection API of SqlServerEsuLicenses. It manages SqlServerEsuLicense.
+ *
+ * @return Resource collection API of SqlServerEsuLicenses.
+ */
+ public SqlServerEsuLicenses sqlServerEsuLicenses() {
+ if (this.sqlServerEsuLicenses == null) {
+ this.sqlServerEsuLicenses = new SqlServerEsuLicensesImpl(clientObject.getSqlServerEsuLicenses(), this);
+ }
+ return sqlServerEsuLicenses;
+ }
+
+ /**
+ * Gets wrapped service client AzureArcDataManagementClient providing direct access to the underlying auto-generated
+ * API implementation, based on Azure REST API.
+ *
+ * @return Wrapped service client AzureArcDataManagementClient.
*/
public AzureArcDataManagementClient serviceClient() {
return this.clientObject;
diff --git a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/ActiveDirectoryConnectorsClient.java b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/ActiveDirectoryConnectorsClient.java
new file mode 100644
index 000000000000..d43966b55d6c
--- /dev/null
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/ActiveDirectoryConnectorsClient.java
@@ -0,0 +1,206 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurearcdata.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.azurearcdata.fluent.models.ActiveDirectoryConnectorResourceInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in ActiveDirectoryConnectorsClient.
+ */
+public interface ActiveDirectoryConnectorsClient {
+ /**
+ * List the active directory connectors associated with the given data controller.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param dataControllerName The name of the data controller.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 active directory connectors as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String dataControllerName);
+
+ /**
+ * List the active directory connectors associated with the given data controller.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param dataControllerName The name of the data controller.
+ * @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 active directory connectors as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String dataControllerName,
+ Context context);
+
+ /**
+ * Creates or replaces an Active Directory connector resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param dataControllerName The name of the data controller.
+ * @param activeDirectoryConnectorName The name of the Active Directory connector instance.
+ * @param activeDirectoryConnectorResource desc.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 active directory connector resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ActiveDirectoryConnectorResourceInner> beginCreate(
+ String resourceGroupName, String dataControllerName, String activeDirectoryConnectorName,
+ ActiveDirectoryConnectorResourceInner activeDirectoryConnectorResource);
+
+ /**
+ * Creates or replaces an Active Directory connector resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param dataControllerName The name of the data controller.
+ * @param activeDirectoryConnectorName The name of the Active Directory connector instance.
+ * @param activeDirectoryConnectorResource desc.
+ * @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 active directory connector resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ActiveDirectoryConnectorResourceInner> beginCreate(
+ String resourceGroupName, String dataControllerName, String activeDirectoryConnectorName,
+ ActiveDirectoryConnectorResourceInner activeDirectoryConnectorResource, Context context);
+
+ /**
+ * Creates or replaces an Active Directory connector resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param dataControllerName The name of the data controller.
+ * @param activeDirectoryConnectorName The name of the Active Directory connector instance.
+ * @param activeDirectoryConnectorResource desc.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 active directory connector resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ActiveDirectoryConnectorResourceInner create(String resourceGroupName, String dataControllerName,
+ String activeDirectoryConnectorName, ActiveDirectoryConnectorResourceInner activeDirectoryConnectorResource);
+
+ /**
+ * Creates or replaces an Active Directory connector resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param dataControllerName The name of the data controller.
+ * @param activeDirectoryConnectorName The name of the Active Directory connector instance.
+ * @param activeDirectoryConnectorResource desc.
+ * @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 active directory connector resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ActiveDirectoryConnectorResourceInner create(String resourceGroupName, String dataControllerName,
+ String activeDirectoryConnectorName, ActiveDirectoryConnectorResourceInner activeDirectoryConnectorResource,
+ Context context);
+
+ /**
+ * Deletes an Active Directory connector resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param dataControllerName The name of the data controller.
+ * @param activeDirectoryConnectorName The name of the Active Directory connector instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String dataControllerName,
+ String activeDirectoryConnectorName);
+
+ /**
+ * Deletes an Active Directory connector resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param dataControllerName The name of the data controller.
+ * @param activeDirectoryConnectorName The name of the Active Directory connector instance.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String dataControllerName,
+ String activeDirectoryConnectorName, Context context);
+
+ /**
+ * Deletes an Active Directory connector resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param dataControllerName The name of the data controller.
+ * @param activeDirectoryConnectorName The name of the Active Directory connector instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String dataControllerName, String activeDirectoryConnectorName);
+
+ /**
+ * Deletes an Active Directory connector resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param dataControllerName The name of the data controller.
+ * @param activeDirectoryConnectorName The name of the Active Directory connector instance.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String dataControllerName, String activeDirectoryConnectorName,
+ Context context);
+
+ /**
+ * Retrieves an Active Directory connector resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param dataControllerName The name of the data controller.
+ * @param activeDirectoryConnectorName The name of the Active Directory connector instance.
+ * @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 active directory connector resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String dataControllerName,
+ String activeDirectoryConnectorName, Context context);
+
+ /**
+ * Retrieves an Active Directory connector resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param dataControllerName The name of the data controller.
+ * @param activeDirectoryConnectorName The name of the Active Directory connector instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 active directory connector resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ActiveDirectoryConnectorResourceInner get(String resourceGroupName, String dataControllerName,
+ String activeDirectoryConnectorName);
+}
diff --git a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/AzureArcDataManagementClient.java b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/AzureArcDataManagementClient.java
index da11f09fe2a9..b6895a3feb0b 100644
--- a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/AzureArcDataManagementClient.java
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/AzureArcDataManagementClient.java
@@ -7,68 +7,119 @@
import com.azure.core.http.HttpPipeline;
import java.time.Duration;
-/** The interface for AzureArcDataManagementClient class. */
+/**
+ * The interface for AzureArcDataManagementClient class.
+ */
public interface AzureArcDataManagementClient {
/**
* Gets The ID of the Azure subscription.
- *
+ *
* @return the subscriptionId value.
*/
String getSubscriptionId();
/**
* Gets server parameter.
- *
+ *
* @return the endpoint value.
*/
String getEndpoint();
/**
* Gets Api Version.
- *
+ *
* @return the apiVersion value.
*/
String getApiVersion();
/**
* Gets The HTTP pipeline to send requests through.
- *
+ *
* @return the httpPipeline value.
*/
HttpPipeline getHttpPipeline();
/**
* Gets The default poll interval for long-running operation.
- *
+ *
* @return the defaultPollInterval value.
*/
Duration getDefaultPollInterval();
/**
* Gets the OperationsClient object to access its operations.
- *
+ *
* @return the OperationsClient object.
*/
OperationsClient getOperations();
/**
* Gets the SqlManagedInstancesClient object to access its operations.
- *
+ *
* @return the SqlManagedInstancesClient object.
*/
SqlManagedInstancesClient getSqlManagedInstances();
+ /**
+ * Gets the FailoverGroupsClient object to access its operations.
+ *
+ * @return the FailoverGroupsClient object.
+ */
+ FailoverGroupsClient getFailoverGroups();
+
/**
* Gets the SqlServerInstancesClient object to access its operations.
- *
+ *
* @return the SqlServerInstancesClient object.
*/
SqlServerInstancesClient getSqlServerInstances();
+ /**
+ * Gets the SqlServerLicensesClient object to access its operations.
+ *
+ * @return the SqlServerLicensesClient object.
+ */
+ SqlServerLicensesClient getSqlServerLicenses();
+
/**
* Gets the DataControllersClient object to access its operations.
- *
+ *
* @return the DataControllersClient object.
*/
DataControllersClient getDataControllers();
+
+ /**
+ * Gets the ActiveDirectoryConnectorsClient object to access its operations.
+ *
+ * @return the ActiveDirectoryConnectorsClient object.
+ */
+ ActiveDirectoryConnectorsClient getActiveDirectoryConnectors();
+
+ /**
+ * Gets the PostgresInstancesClient object to access its operations.
+ *
+ * @return the PostgresInstancesClient object.
+ */
+ PostgresInstancesClient getPostgresInstances();
+
+ /**
+ * Gets the SqlServerAvailabilityGroupsClient object to access its operations.
+ *
+ * @return the SqlServerAvailabilityGroupsClient object.
+ */
+ SqlServerAvailabilityGroupsClient getSqlServerAvailabilityGroups();
+
+ /**
+ * Gets the SqlServerDatabasesClient object to access its operations.
+ *
+ * @return the SqlServerDatabasesClient object.
+ */
+ SqlServerDatabasesClient getSqlServerDatabases();
+
+ /**
+ * Gets the SqlServerEsuLicensesClient object to access its operations.
+ *
+ * @return the SqlServerEsuLicensesClient object.
+ */
+ SqlServerEsuLicensesClient getSqlServerEsuLicenses();
}
diff --git a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/DataControllersClient.java b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/DataControllersClient.java
index de132b816a5e..f2740d8bb633 100644
--- a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/DataControllersClient.java
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/DataControllersClient.java
@@ -14,60 +14,62 @@
import com.azure.resourcemanager.azurearcdata.fluent.models.DataControllerResourceInner;
import com.azure.resourcemanager.azurearcdata.models.DataControllerUpdate;
-/** An instance of this class provides access to all the operations defined in DataControllersClient. */
+/**
+ * An instance of this class provides access to all the operations defined in DataControllersClient.
+ */
public interface DataControllersClient {
/**
* List dataController resources in the subscription.
- *
+ *
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the paginated response with {@link PagedIterable}.
+ * @return a list of data controllers as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
/**
* List dataController resources in the subscription.
- *
+ *
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the paginated response with {@link PagedIterable}.
+ * @return a list of data controllers as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
/**
* List dataController resources in the resource group.
- *
+ *
* @param resourceGroupName The name of the Azure resource group.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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 paginated response with {@link PagedIterable}.
+ * @return a list of data controllers as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
/**
* List dataController resources in the resource group.
- *
+ *
* @param resourceGroupName The name of the Azure resource group.
* @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 paginated response with {@link PagedIterable}.
+ * @return a list of data controllers as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
/**
* Creates or replaces a dataController resource.
- *
+ *
* @param resourceGroupName The name of the Azure resource group.
- * @param dataControllerName The dataControllerName parameter.
+ * @param dataControllerName The name of the data controller.
* @param dataControllerResource desc.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -80,9 +82,9 @@ SyncPoller, DataControllerResourceInner>
/**
* Creates or replaces a dataController resource.
- *
+ *
* @param resourceGroupName The name of the Azure resource group.
- * @param dataControllerName The dataControllerName parameter.
+ * @param dataControllerName The name of the data controller.
* @param dataControllerResource desc.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -92,16 +94,14 @@ SyncPoller, DataControllerResourceInner>
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DataControllerResourceInner> beginPutDataController(
- String resourceGroupName,
- String dataControllerName,
- DataControllerResourceInner dataControllerResource,
+ String resourceGroupName, String dataControllerName, DataControllerResourceInner dataControllerResource,
Context context);
/**
* Creates or replaces a dataController resource.
- *
+ *
* @param resourceGroupName The name of the Azure resource group.
- * @param dataControllerName The dataControllerName parameter.
+ * @param dataControllerName The name of the data controller.
* @param dataControllerResource desc.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -109,14 +109,14 @@ SyncPoller, DataControllerResourceInner>
* @return data controller resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DataControllerResourceInner putDataController(
- String resourceGroupName, String dataControllerName, DataControllerResourceInner dataControllerResource);
+ DataControllerResourceInner putDataController(String resourceGroupName, String dataControllerName,
+ DataControllerResourceInner dataControllerResource);
/**
* Creates or replaces a dataController resource.
- *
+ *
* @param resourceGroupName The name of the Azure resource group.
- * @param dataControllerName The dataControllerName parameter.
+ * @param dataControllerName The name of the data controller.
* @param dataControllerResource desc.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -125,17 +125,14 @@ DataControllerResourceInner putDataController(
* @return data controller resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DataControllerResourceInner putDataController(
- String resourceGroupName,
- String dataControllerName,
- DataControllerResourceInner dataControllerResource,
- Context context);
+ DataControllerResourceInner putDataController(String resourceGroupName, String dataControllerName,
+ DataControllerResourceInner dataControllerResource, Context context);
/**
* Deletes a dataController resource.
- *
+ *
* @param resourceGroupName The name of the Azure resource group.
- * @param dataControllerName The dataControllerName parameter.
+ * @param dataControllerName The name of the data controller.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -146,9 +143,9 @@ DataControllerResourceInner putDataController(
/**
* Deletes a dataController resource.
- *
+ *
* @param resourceGroupName The name of the Azure resource group.
- * @param dataControllerName The dataControllerName parameter.
+ * @param dataControllerName The name of the data controller.
* @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.
@@ -156,14 +153,14 @@ DataControllerResourceInner putDataController(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(
- String resourceGroupName, String dataControllerName, Context context);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String dataControllerName,
+ Context context);
/**
* Deletes a dataController resource.
- *
+ *
* @param resourceGroupName The name of the Azure resource group.
- * @param dataControllerName The dataControllerName parameter.
+ * @param dataControllerName The name of the data controller.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -173,9 +170,9 @@ SyncPoller, Void> beginDelete(
/**
* Deletes a dataController resource.
- *
+ *
* @param resourceGroupName The name of the Azure resource group.
- * @param dataControllerName The dataControllerName parameter.
+ * @param dataControllerName The name of the data controller.
* @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.
@@ -186,9 +183,9 @@ SyncPoller, Void> beginDelete(
/**
* Retrieves a dataController resource.
- *
+ *
* @param resourceGroupName The name of the Azure resource group.
- * @param dataControllerName The dataControllerName parameter.
+ * @param dataControllerName The name of the data controller.
* @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.
@@ -196,14 +193,14 @@ SyncPoller, Void> beginDelete(
* @return data controller resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(
- String resourceGroupName, String dataControllerName, Context context);
+ Response getByResourceGroupWithResponse(String resourceGroupName,
+ String dataControllerName, Context context);
/**
* Retrieves a dataController resource.
- *
+ *
* @param resourceGroupName The name of the Azure resource group.
- * @param dataControllerName The dataControllerName parameter.
+ * @param dataControllerName The name of the data controller.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -214,28 +211,41 @@ Response getByResourceGroupWithResponse(
/**
* Updates a dataController resource.
- *
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param dataControllerName The name of the data controller.
+ * @param dataControllerResource The update data controller 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 data controller resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DataControllerResourceInner> beginPatchDataController(
+ String resourceGroupName, String dataControllerName, DataControllerUpdate dataControllerResource);
+
+ /**
+ * Updates a dataController resource.
+ *
* @param resourceGroupName The name of the Azure resource group.
- * @param dataControllerName The dataControllerName parameter.
+ * @param dataControllerName The name of the data controller.
* @param dataControllerResource The update data controller 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 data controller resource along with {@link Response}.
+ * @return the {@link SyncPoller} for polling of data controller resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response patchDataControllerWithResponse(
- String resourceGroupName,
- String dataControllerName,
- DataControllerUpdate dataControllerResource,
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DataControllerResourceInner> beginPatchDataController(
+ String resourceGroupName, String dataControllerName, DataControllerUpdate dataControllerResource,
Context context);
/**
* Updates a dataController resource.
- *
+ *
* @param resourceGroupName The name of the Azure resource group.
- * @param dataControllerName The dataControllerName parameter.
+ * @param dataControllerName The name of the data controller.
* @param dataControllerResource The update data controller resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -243,6 +253,22 @@ Response patchDataControllerWithResponse(
* @return data controller resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DataControllerResourceInner patchDataController(
- String resourceGroupName, String dataControllerName, DataControllerUpdate dataControllerResource);
+ DataControllerResourceInner patchDataController(String resourceGroupName, String dataControllerName,
+ DataControllerUpdate dataControllerResource);
+
+ /**
+ * Updates a dataController resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param dataControllerName The name of the data controller.
+ * @param dataControllerResource The update data controller 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 data controller resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DataControllerResourceInner patchDataController(String resourceGroupName, String dataControllerName,
+ DataControllerUpdate dataControllerResource, Context context);
}
diff --git a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/FailoverGroupsClient.java b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/FailoverGroupsClient.java
new file mode 100644
index 000000000000..e5bafd58fa25
--- /dev/null
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/FailoverGroupsClient.java
@@ -0,0 +1,202 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurearcdata.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.azurearcdata.fluent.models.FailoverGroupResourceInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in FailoverGroupsClient.
+ */
+public interface FailoverGroupsClient {
+ /**
+ * List the failover groups associated with the given sql managed instance.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlManagedInstanceName Name of SQL Managed Instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 failover groups as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String sqlManagedInstanceName);
+
+ /**
+ * List the failover groups associated with the given sql managed instance.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlManagedInstanceName Name of SQL Managed Instance.
+ * @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 failover groups as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String sqlManagedInstanceName,
+ Context context);
+
+ /**
+ * Creates or replaces a failover group resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlManagedInstanceName Name of SQL Managed Instance.
+ * @param failoverGroupName The name of the Failover Group.
+ * @param failoverGroupResource desc.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 failover group resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, FailoverGroupResourceInner> beginCreate(String resourceGroupName,
+ String sqlManagedInstanceName, String failoverGroupName, FailoverGroupResourceInner failoverGroupResource);
+
+ /**
+ * Creates or replaces a failover group resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlManagedInstanceName Name of SQL Managed Instance.
+ * @param failoverGroupName The name of the Failover Group.
+ * @param failoverGroupResource desc.
+ * @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 failover group resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, FailoverGroupResourceInner> beginCreate(String resourceGroupName,
+ String sqlManagedInstanceName, String failoverGroupName, FailoverGroupResourceInner failoverGroupResource,
+ Context context);
+
+ /**
+ * Creates or replaces a failover group resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlManagedInstanceName Name of SQL Managed Instance.
+ * @param failoverGroupName The name of the Failover Group.
+ * @param failoverGroupResource desc.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 failover group resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FailoverGroupResourceInner create(String resourceGroupName, String sqlManagedInstanceName, String failoverGroupName,
+ FailoverGroupResourceInner failoverGroupResource);
+
+ /**
+ * Creates or replaces a failover group resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlManagedInstanceName Name of SQL Managed Instance.
+ * @param failoverGroupName The name of the Failover Group.
+ * @param failoverGroupResource desc.
+ * @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 failover group resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FailoverGroupResourceInner create(String resourceGroupName, String sqlManagedInstanceName, String failoverGroupName,
+ FailoverGroupResourceInner failoverGroupResource, Context context);
+
+ /**
+ * Deletes a failover group resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlManagedInstanceName Name of SQL Managed Instance.
+ * @param failoverGroupName The name of the Failover Group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String sqlManagedInstanceName,
+ String failoverGroupName);
+
+ /**
+ * Deletes a failover group resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlManagedInstanceName Name of SQL Managed Instance.
+ * @param failoverGroupName The name of the Failover Group.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String sqlManagedInstanceName,
+ String failoverGroupName, Context context);
+
+ /**
+ * Deletes a failover group resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlManagedInstanceName Name of SQL Managed Instance.
+ * @param failoverGroupName The name of the Failover Group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String sqlManagedInstanceName, String failoverGroupName);
+
+ /**
+ * Deletes a failover group resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlManagedInstanceName Name of SQL Managed Instance.
+ * @param failoverGroupName The name of the Failover Group.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String sqlManagedInstanceName, String failoverGroupName, Context context);
+
+ /**
+ * Retrieves a failover group resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlManagedInstanceName Name of SQL Managed Instance.
+ * @param failoverGroupName The name of the Failover Group.
+ * @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 failover group resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String sqlManagedInstanceName,
+ String failoverGroupName, Context context);
+
+ /**
+ * Retrieves a failover group resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlManagedInstanceName Name of SQL Managed Instance.
+ * @param failoverGroupName The name of the Failover Group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 failover group resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FailoverGroupResourceInner get(String resourceGroupName, String sqlManagedInstanceName, String failoverGroupName);
+}
diff --git a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/OperationsClient.java b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/OperationsClient.java
index 532d935f2205..070e61ecebaf 100644
--- a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/OperationsClient.java
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/OperationsClient.java
@@ -10,28 +10,30 @@
import com.azure.core.util.Context;
import com.azure.resourcemanager.azurearcdata.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 all of the available Azure Data Services on Azure Arc 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 result of the request to list Azure Data Services on Azure Arc operations as paginated response with
- * {@link PagedIterable}.
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
/**
* Lists all of the available Azure Data Services on Azure Arc 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 result of the request to list Azure Data Services on Azure Arc operations as paginated response with
- * {@link PagedIterable}.
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
diff --git a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/PostgresInstancesClient.java b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/PostgresInstancesClient.java
new file mode 100644
index 000000000000..14eea1d7f836
--- /dev/null
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/PostgresInstancesClient.java
@@ -0,0 +1,244 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurearcdata.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.azurearcdata.fluent.models.PostgresInstanceInner;
+import com.azure.resourcemanager.azurearcdata.models.PostgresInstanceUpdate;
+
+/**
+ * An instance of this class provides access to all the operations defined in PostgresInstancesClient.
+ */
+public interface PostgresInstancesClient {
+ /**
+ * List postgres Instance resources in the subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of PostgresInstance as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List postgres Instance resources in the subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of PostgresInstance as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * List postgres Instance resources in the resource group
+ *
+ * Get a postgres Instances list by Resource group name.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 postgres Instances list by Resource group name as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * List postgres Instance resources in the resource group
+ *
+ * Get a postgres Instances list by Resource group name.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @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 postgres Instances list by Resource group name as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Retrieves a postgres Instance resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param postgresInstanceName Name of Postgres Instance.
+ * @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 Postgres Instance along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName,
+ String postgresInstanceName, Context context);
+
+ /**
+ * Retrieves a postgres Instance resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param postgresInstanceName Name of Postgres Instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 Postgres Instance.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PostgresInstanceInner getByResourceGroup(String resourceGroupName, String postgresInstanceName);
+
+ /**
+ * Creates or replaces a postgres Instance resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param postgresInstanceName Name of Postgres Instance.
+ * @param resource The postgres instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 Postgres Instance.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, PostgresInstanceInner> beginCreate(String resourceGroupName,
+ String postgresInstanceName, PostgresInstanceInner resource);
+
+ /**
+ * Creates or replaces a postgres Instance resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param postgresInstanceName Name of Postgres Instance.
+ * @param resource The postgres instance.
+ * @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 Postgres Instance.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, PostgresInstanceInner> beginCreate(String resourceGroupName,
+ String postgresInstanceName, PostgresInstanceInner resource, Context context);
+
+ /**
+ * Creates or replaces a postgres Instance resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param postgresInstanceName Name of Postgres Instance.
+ * @param resource The postgres instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 Postgres Instance.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PostgresInstanceInner create(String resourceGroupName, String postgresInstanceName, PostgresInstanceInner resource);
+
+ /**
+ * Creates or replaces a postgres Instance resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param postgresInstanceName Name of Postgres Instance.
+ * @param resource The postgres instance.
+ * @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 Postgres Instance.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PostgresInstanceInner create(String resourceGroupName, String postgresInstanceName, PostgresInstanceInner resource,
+ Context context);
+
+ /**
+ * Deletes a postgres Instance resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param postgresInstanceName Name of Postgres Instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String postgresInstanceName);
+
+ /**
+ * Deletes a postgres Instance resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param postgresInstanceName Name of Postgres Instance.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String postgresInstanceName,
+ Context context);
+
+ /**
+ * Deletes a postgres Instance resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param postgresInstanceName Name of Postgres Instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String postgresInstanceName);
+
+ /**
+ * Deletes a postgres Instance resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param postgresInstanceName Name of Postgres Instance.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String postgresInstanceName, Context context);
+
+ /**
+ * Updates a postgres Instance resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param postgresInstanceName Name of Postgres Instance.
+ * @param parameters The Postgres Instance.
+ * @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 Postgres Instance along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(String resourceGroupName, String postgresInstanceName,
+ PostgresInstanceUpdate parameters, Context context);
+
+ /**
+ * Updates a postgres Instance resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param postgresInstanceName Name of Postgres Instance.
+ * @param parameters The Postgres Instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 Postgres Instance.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PostgresInstanceInner update(String resourceGroupName, String postgresInstanceName,
+ PostgresInstanceUpdate parameters);
+}
diff --git a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/SqlManagedInstancesClient.java b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/SqlManagedInstancesClient.java
index 4c3bfd390ecb..64bf865d4c66 100644
--- a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/SqlManagedInstancesClient.java
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/SqlManagedInstancesClient.java
@@ -14,11 +14,13 @@
import com.azure.resourcemanager.azurearcdata.fluent.models.SqlManagedInstanceInner;
import com.azure.resourcemanager.azurearcdata.models.SqlManagedInstanceUpdate;
-/** An instance of this class provides access to all the operations defined in SqlManagedInstancesClient. */
+/**
+ * An instance of this class provides access to all the operations defined in SqlManagedInstancesClient.
+ */
public interface SqlManagedInstancesClient {
/**
* List sqlManagedInstance resources in the subscription.
- *
+ *
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of SqlManagedInstance as paginated response with {@link PagedIterable}.
@@ -28,7 +30,7 @@ public interface SqlManagedInstancesClient {
/**
* List sqlManagedInstance resources in the subscription.
- *
+ *
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -40,9 +42,9 @@ public interface SqlManagedInstancesClient {
/**
* List sqlManagedInstance resources in the resource group
- *
- * Gets all sqlManagedInstances in a resource group.
- *
+ *
+ * Gets all sqlManagedInstances in a resource group.
+ *
* @param resourceGroupName The name of the Azure resource group.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -54,9 +56,9 @@ public interface SqlManagedInstancesClient {
/**
* List sqlManagedInstance resources in the resource group
- *
- *
Gets all sqlManagedInstances in a resource group.
- *
+ *
+ * Gets all sqlManagedInstances in a resource group.
+ *
* @param resourceGroupName The name of the Azure resource group.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -69,7 +71,7 @@ public interface SqlManagedInstancesClient {
/**
* Retrieves a SQL Managed Instance resource.
- *
+ *
* @param resourceGroupName The name of the Azure resource group.
* @param sqlManagedInstanceName Name of SQL Managed Instance.
* @param context The context to associate with this operation.
@@ -79,12 +81,12 @@ public interface SqlManagedInstancesClient {
* @return a SqlManagedInstance along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(
- String resourceGroupName, String sqlManagedInstanceName, Context context);
+ Response getByResourceGroupWithResponse(String resourceGroupName,
+ String sqlManagedInstanceName, Context context);
/**
* Retrieves a SQL Managed Instance resource.
- *
+ *
* @param resourceGroupName The name of the Azure resource group.
* @param sqlManagedInstanceName Name of SQL Managed Instance.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -97,9 +99,9 @@ Response getByResourceGroupWithResponse(
/**
* Creates or replaces a SQL Managed Instance resource.
- *
+ *
* @param resourceGroupName The name of the Azure resource group.
- * @param sqlManagedInstanceName The name of SQL Managed Instances.
+ * @param sqlManagedInstanceName Name of SQL Managed Instance.
* @param sqlManagedInstance The SQL Managed Instance to be created or updated.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -107,14 +109,14 @@ Response getByResourceGroupWithResponse(
* @return the {@link SyncPoller} for polling of a SqlManagedInstance.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, SqlManagedInstanceInner> beginCreate(
- String resourceGroupName, String sqlManagedInstanceName, SqlManagedInstanceInner sqlManagedInstance);
+ SyncPoller, SqlManagedInstanceInner> beginCreate(String resourceGroupName,
+ String sqlManagedInstanceName, SqlManagedInstanceInner sqlManagedInstance);
/**
* Creates or replaces a SQL Managed Instance resource.
- *
+ *
* @param resourceGroupName The name of the Azure resource group.
- * @param sqlManagedInstanceName The name of SQL Managed Instances.
+ * @param sqlManagedInstanceName Name of SQL Managed Instance.
* @param sqlManagedInstance The SQL Managed Instance to be created or updated.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -123,17 +125,14 @@ SyncPoller, SqlManagedInstanceInner> beginCr
* @return the {@link SyncPoller} for polling of a SqlManagedInstance.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, SqlManagedInstanceInner> beginCreate(
- String resourceGroupName,
- String sqlManagedInstanceName,
- SqlManagedInstanceInner sqlManagedInstance,
- Context context);
+ SyncPoller, SqlManagedInstanceInner> beginCreate(String resourceGroupName,
+ String sqlManagedInstanceName, SqlManagedInstanceInner sqlManagedInstance, Context context);
/**
* Creates or replaces a SQL Managed Instance resource.
- *
+ *
* @param resourceGroupName The name of the Azure resource group.
- * @param sqlManagedInstanceName The name of SQL Managed Instances.
+ * @param sqlManagedInstanceName Name of SQL Managed Instance.
* @param sqlManagedInstance The SQL Managed Instance to be created or updated.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -141,14 +140,14 @@ SyncPoller, SqlManagedInstanceInner> beginCr
* @return a SqlManagedInstance.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SqlManagedInstanceInner create(
- String resourceGroupName, String sqlManagedInstanceName, SqlManagedInstanceInner sqlManagedInstance);
+ SqlManagedInstanceInner create(String resourceGroupName, String sqlManagedInstanceName,
+ SqlManagedInstanceInner sqlManagedInstance);
/**
* Creates or replaces a SQL Managed Instance resource.
- *
+ *
* @param resourceGroupName The name of the Azure resource group.
- * @param sqlManagedInstanceName The name of SQL Managed Instances.
+ * @param sqlManagedInstanceName Name of SQL Managed Instance.
* @param sqlManagedInstance The SQL Managed Instance to be created or updated.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -157,17 +156,14 @@ SqlManagedInstanceInner create(
* @return a SqlManagedInstance.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SqlManagedInstanceInner create(
- String resourceGroupName,
- String sqlManagedInstanceName,
- SqlManagedInstanceInner sqlManagedInstance,
- Context context);
+ SqlManagedInstanceInner create(String resourceGroupName, String sqlManagedInstanceName,
+ SqlManagedInstanceInner sqlManagedInstance, Context context);
/**
* Deletes a SQL Managed Instance resource.
- *
+ *
* @param resourceGroupName The name of the Azure resource group.
- * @param sqlManagedInstanceName The name of Sql Managed Instances.
+ * @param sqlManagedInstanceName Name of SQL Managed Instance.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -178,9 +174,9 @@ SqlManagedInstanceInner create(
/**
* Deletes a SQL Managed Instance resource.
- *
+ *
* @param resourceGroupName The name of the Azure resource group.
- * @param sqlManagedInstanceName The name of Sql Managed Instances.
+ * @param sqlManagedInstanceName Name of SQL Managed Instance.
* @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.
@@ -188,14 +184,14 @@ SqlManagedInstanceInner create(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(
- String resourceGroupName, String sqlManagedInstanceName, Context context);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String sqlManagedInstanceName,
+ Context context);
/**
* Deletes a SQL Managed Instance resource.
- *
+ *
* @param resourceGroupName The name of the Azure resource group.
- * @param sqlManagedInstanceName The name of Sql Managed Instances.
+ * @param sqlManagedInstanceName Name of SQL Managed Instance.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -205,9 +201,9 @@ SyncPoller, Void> beginDelete(
/**
* Deletes a SQL Managed Instance resource.
- *
+ *
* @param resourceGroupName The name of the Azure resource group.
- * @param sqlManagedInstanceName The name of Sql Managed Instances.
+ * @param sqlManagedInstanceName Name of SQL Managed Instance.
* @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.
@@ -218,9 +214,9 @@ SyncPoller, Void> beginDelete(
/**
* Updates a SQL Managed Instance resource.
- *
+ *
* @param resourceGroupName The name of the Azure resource group.
- * @param sqlManagedInstanceName Name of sqlManagedInstance.
+ * @param sqlManagedInstanceName Name of SQL Managed Instance.
* @param parameters The SQL Managed Instance.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -229,14 +225,14 @@ SyncPoller, Void> beginDelete(
* @return a SqlManagedInstance along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(
- String resourceGroupName, String sqlManagedInstanceName, SqlManagedInstanceUpdate parameters, Context context);
+ Response updateWithResponse(String resourceGroupName, String sqlManagedInstanceName,
+ SqlManagedInstanceUpdate parameters, Context context);
/**
* Updates a SQL Managed Instance resource.
- *
+ *
* @param resourceGroupName The name of the Azure resource group.
- * @param sqlManagedInstanceName Name of sqlManagedInstance.
+ * @param sqlManagedInstanceName Name of SQL Managed Instance.
* @param parameters The SQL Managed Instance.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -244,6 +240,6 @@ Response updateWithResponse(
* @return a SqlManagedInstance.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SqlManagedInstanceInner update(
- String resourceGroupName, String sqlManagedInstanceName, SqlManagedInstanceUpdate parameters);
+ SqlManagedInstanceInner update(String resourceGroupName, String sqlManagedInstanceName,
+ SqlManagedInstanceUpdate parameters);
}
diff --git a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/SqlServerAvailabilityGroupsClient.java b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/SqlServerAvailabilityGroupsClient.java
new file mode 100644
index 000000000000..031d0a9c0819
--- /dev/null
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/SqlServerAvailabilityGroupsClient.java
@@ -0,0 +1,532 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurearcdata.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.azurearcdata.fluent.models.SqlServerAvailabilityGroupResourceInner;
+import com.azure.resourcemanager.azurearcdata.models.AvailabilityGroupCreateUpdateConfiguration;
+import com.azure.resourcemanager.azurearcdata.models.Databases;
+import com.azure.resourcemanager.azurearcdata.models.DistributedAvailabilityGroupCreateUpdateConfiguration;
+import com.azure.resourcemanager.azurearcdata.models.SqlServerAvailabilityGroupUpdate;
+
+/**
+ * An instance of this class provides access to all the operations defined in SqlServerAvailabilityGroupsClient.
+ */
+public interface SqlServerAvailabilityGroupsClient {
+ /**
+ * Creates or replaces an Arc Sql Server Availability Group.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param availabilityGroupName Name of SQL Availability Group.
+ * @param sqlServerAvailabilityGroupResource The request body for availability group 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 arc Sql Server Availability Group along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createWithResponse(String resourceGroupName,
+ String sqlServerInstanceName, String availabilityGroupName,
+ SqlServerAvailabilityGroupResourceInner sqlServerAvailabilityGroupResource, Context context);
+
+ /**
+ * Creates or replaces an Arc Sql Server Availability Group.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param availabilityGroupName Name of SQL Availability Group.
+ * @param sqlServerAvailabilityGroupResource The request body for availability group 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 arc Sql Server Availability Group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlServerAvailabilityGroupResourceInner create(String resourceGroupName, String sqlServerInstanceName,
+ String availabilityGroupName, SqlServerAvailabilityGroupResourceInner sqlServerAvailabilityGroupResource);
+
+ /**
+ * Deletes an Arc Sql Server availability group resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param availabilityGroupName Name of SQL Availability Group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String sqlServerInstanceName,
+ String availabilityGroupName);
+
+ /**
+ * Deletes an Arc Sql Server availability group resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param availabilityGroupName Name of SQL Availability Group.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String sqlServerInstanceName,
+ String availabilityGroupName, Context context);
+
+ /**
+ * Deletes an Arc Sql Server availability group resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param availabilityGroupName Name of SQL Availability Group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String sqlServerInstanceName, String availabilityGroupName);
+
+ /**
+ * Deletes an Arc Sql Server availability group resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param availabilityGroupName Name of SQL Availability Group.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String sqlServerInstanceName, String availabilityGroupName, Context context);
+
+ /**
+ * Retrieves an Arc Sql Server availability group.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param availabilityGroupName Name of SQL Availability Group.
+ * @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 arc Sql Server Availability Group along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName,
+ String sqlServerInstanceName, String availabilityGroupName, Context context);
+
+ /**
+ * Retrieves an Arc Sql Server availability group.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param availabilityGroupName Name of SQL Availability Group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 arc Sql Server Availability Group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlServerAvailabilityGroupResourceInner get(String resourceGroupName, String sqlServerInstanceName,
+ String availabilityGroupName);
+
+ /**
+ * Updates an existing Availability Group.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param availabilityGroupName Name of SQL Availability Group.
+ * @param sqlServerAvailabilityGroupUpdate The requested server availability group resource state.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 arc Sql Server Availability Group.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, SqlServerAvailabilityGroupResourceInner>
+ beginUpdate(String resourceGroupName, String sqlServerInstanceName, String availabilityGroupName,
+ SqlServerAvailabilityGroupUpdate sqlServerAvailabilityGroupUpdate);
+
+ /**
+ * Updates an existing Availability Group.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param availabilityGroupName Name of SQL Availability Group.
+ * @param sqlServerAvailabilityGroupUpdate The requested server availability group resource state.
+ * @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 arc Sql Server Availability Group.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, SqlServerAvailabilityGroupResourceInner>
+ beginUpdate(String resourceGroupName, String sqlServerInstanceName, String availabilityGroupName,
+ SqlServerAvailabilityGroupUpdate sqlServerAvailabilityGroupUpdate, Context context);
+
+ /**
+ * Updates an existing Availability Group.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param availabilityGroupName Name of SQL Availability Group.
+ * @param sqlServerAvailabilityGroupUpdate The requested server availability group resource state.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 arc Sql Server Availability Group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlServerAvailabilityGroupResourceInner update(String resourceGroupName, String sqlServerInstanceName,
+ String availabilityGroupName, SqlServerAvailabilityGroupUpdate sqlServerAvailabilityGroupUpdate);
+
+ /**
+ * Updates an existing Availability Group.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param availabilityGroupName Name of SQL Availability Group.
+ * @param sqlServerAvailabilityGroupUpdate The requested server availability group resource state.
+ * @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 arc Sql Server Availability Group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlServerAvailabilityGroupResourceInner update(String resourceGroupName, String sqlServerInstanceName,
+ String availabilityGroupName, SqlServerAvailabilityGroupUpdate sqlServerAvailabilityGroupUpdate,
+ Context context);
+
+ /**
+ * Retrieves detailed properties of the Availability Group.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param availabilityGroupName Name of SQL Availability Group.
+ * @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 arc Sql Server Availability Group along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response detailViewWithResponse(String resourceGroupName,
+ String sqlServerInstanceName, String availabilityGroupName, Context context);
+
+ /**
+ * Retrieves detailed properties of the Availability Group.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param availabilityGroupName Name of SQL Availability Group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 arc Sql Server Availability Group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlServerAvailabilityGroupResourceInner detailView(String resourceGroupName, String sqlServerInstanceName,
+ String availabilityGroupName);
+
+ /**
+ * Request manual failover of the availability group to this server.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param availabilityGroupName Name of SQL Availability Group.
+ * @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 arc Sql Server Availability Group along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response failoverWithResponse(String resourceGroupName,
+ String sqlServerInstanceName, String availabilityGroupName, Context context);
+
+ /**
+ * Request manual failover of the availability group to this server.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param availabilityGroupName Name of SQL Availability Group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 arc Sql Server Availability Group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlServerAvailabilityGroupResourceInner failover(String resourceGroupName, String sqlServerInstanceName,
+ String availabilityGroupName);
+
+ /**
+ * Request forced failover of the availability group to this server.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param availabilityGroupName Name of SQL Availability Group.
+ * @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 arc Sql Server Availability Group along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response forceFailoverAllowDataLossWithResponse(String resourceGroupName,
+ String sqlServerInstanceName, String availabilityGroupName, Context context);
+
+ /**
+ * Request forced failover of the availability group to this server.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param availabilityGroupName Name of SQL Availability Group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 arc Sql Server Availability Group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlServerAvailabilityGroupResourceInner forceFailoverAllowDataLoss(String resourceGroupName,
+ String sqlServerInstanceName, String availabilityGroupName);
+
+ /**
+ * Create a SQL Server availability group.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param createAgConfiguration The configuration for the new SQL Server availability group 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 arc Sql Server Availability Group.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, SqlServerAvailabilityGroupResourceInner>
+ beginCreateAvailabilityGroup(String resourceGroupName, String sqlServerInstanceName,
+ AvailabilityGroupCreateUpdateConfiguration createAgConfiguration);
+
+ /**
+ * Create a SQL Server availability group.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param createAgConfiguration The configuration for the new SQL Server availability group 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 arc Sql Server Availability Group.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, SqlServerAvailabilityGroupResourceInner>
+ beginCreateAvailabilityGroup(String resourceGroupName, String sqlServerInstanceName,
+ AvailabilityGroupCreateUpdateConfiguration createAgConfiguration, Context context);
+
+ /**
+ * Create a SQL Server availability group.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param createAgConfiguration The configuration for the new SQL Server availability group 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 arc Sql Server Availability Group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlServerAvailabilityGroupResourceInner createAvailabilityGroup(String resourceGroupName,
+ String sqlServerInstanceName, AvailabilityGroupCreateUpdateConfiguration createAgConfiguration);
+
+ /**
+ * Create a SQL Server availability group.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param createAgConfiguration The configuration for the new SQL Server availability group 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 arc Sql Server Availability Group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlServerAvailabilityGroupResourceInner createAvailabilityGroup(String resourceGroupName,
+ String sqlServerInstanceName, AvailabilityGroupCreateUpdateConfiguration createAgConfiguration,
+ Context context);
+
+ /**
+ * Create a SQL Server distributed availability group.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param createDagConfiguration The configuration for the new SQL Server availability group 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 arc Sql Server Availability Group.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, SqlServerAvailabilityGroupResourceInner>
+ beginCreateDistributedAvailabilityGroup(String resourceGroupName, String sqlServerInstanceName,
+ DistributedAvailabilityGroupCreateUpdateConfiguration createDagConfiguration);
+
+ /**
+ * Create a SQL Server distributed availability group.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param createDagConfiguration The configuration for the new SQL Server availability group 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 arc Sql Server Availability Group.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, SqlServerAvailabilityGroupResourceInner>
+ beginCreateDistributedAvailabilityGroup(String resourceGroupName, String sqlServerInstanceName,
+ DistributedAvailabilityGroupCreateUpdateConfiguration createDagConfiguration, Context context);
+
+ /**
+ * Create a SQL Server distributed availability group.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param createDagConfiguration The configuration for the new SQL Server availability group 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 arc Sql Server Availability Group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlServerAvailabilityGroupResourceInner createDistributedAvailabilityGroup(String resourceGroupName,
+ String sqlServerInstanceName, DistributedAvailabilityGroupCreateUpdateConfiguration createDagConfiguration);
+
+ /**
+ * Create a SQL Server distributed availability group.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param createDagConfiguration The configuration for the new SQL Server availability group 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 arc Sql Server Availability Group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlServerAvailabilityGroupResourceInner createDistributedAvailabilityGroup(String resourceGroupName,
+ String sqlServerInstanceName, DistributedAvailabilityGroupCreateUpdateConfiguration createDagConfiguration,
+ Context context);
+
+ /**
+ * Request adding database(s) to an existing availability group.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param availabilityGroupName Name of SQL Availability Group.
+ * @param databases The database names to add to the SQL Server availability group 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 arc Sql Server Availability Group along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response addDatabasesWithResponse(String resourceGroupName,
+ String sqlServerInstanceName, String availabilityGroupName, Databases databases, Context context);
+
+ /**
+ * Request adding database(s) to an existing availability group.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param availabilityGroupName Name of SQL Availability Group.
+ * @param databases The database names to add to the SQL Server availability group 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 arc Sql Server Availability Group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlServerAvailabilityGroupResourceInner addDatabases(String resourceGroupName, String sqlServerInstanceName,
+ String availabilityGroupName, Databases databases);
+
+ /**
+ * Request removing database(s) from an existing availability group.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param availabilityGroupName Name of SQL Availability Group.
+ * @param databases The database names to remove from the SQL Server availability group 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 arc Sql Server Availability Group along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response removeDatabasesWithResponse(String resourceGroupName,
+ String sqlServerInstanceName, String availabilityGroupName, Databases databases, Context context);
+
+ /**
+ * Request removing database(s) from an existing availability group.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param availabilityGroupName Name of SQL Availability Group.
+ * @param databases The database names to remove from the SQL Server availability group 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 arc Sql Server Availability Group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlServerAvailabilityGroupResourceInner removeDatabases(String resourceGroupName, String sqlServerInstanceName,
+ String availabilityGroupName, Databases databases);
+
+ /**
+ * List the availability group associated with the given Arc Sql Server.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 Arc Sql Server Availability Groups as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String sqlServerInstanceName);
+
+ /**
+ * List the availability group associated with the given Arc Sql Server.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @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 Arc Sql Server Availability Groups as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String sqlServerInstanceName,
+ Context context);
+}
diff --git a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/SqlServerDatabasesClient.java b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/SqlServerDatabasesClient.java
new file mode 100644
index 000000000000..f6620f2bb3f0
--- /dev/null
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/SqlServerDatabasesClient.java
@@ -0,0 +1,237 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurearcdata.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.azurearcdata.fluent.models.SqlServerDatabaseResourceInner;
+import com.azure.resourcemanager.azurearcdata.models.SqlServerDatabaseUpdate;
+
+/**
+ * An instance of this class provides access to all the operations defined in SqlServerDatabasesClient.
+ */
+public interface SqlServerDatabasesClient {
+ /**
+ * Creates or replaces an Arc Sql Server Database.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param databaseName Name of the database.
+ * @param sqlServerDatabaseResource The request body for database 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 arc Sql Server database along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createWithResponse(String resourceGroupName, String sqlServerInstanceName,
+ String databaseName, SqlServerDatabaseResourceInner sqlServerDatabaseResource, Context context);
+
+ /**
+ * Creates or replaces an Arc Sql Server Database.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param databaseName Name of the database.
+ * @param sqlServerDatabaseResource The request body for database 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 arc Sql Server database.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlServerDatabaseResourceInner create(String resourceGroupName, String sqlServerInstanceName, String databaseName,
+ SqlServerDatabaseResourceInner sqlServerDatabaseResource);
+
+ /**
+ * Deletes an Arc Sql Server database resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param databaseName Name of the database.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String sqlServerInstanceName,
+ String databaseName);
+
+ /**
+ * Deletes an Arc Sql Server database resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param databaseName Name of the database.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String sqlServerInstanceName,
+ String databaseName, Context context);
+
+ /**
+ * Deletes an Arc Sql Server database resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param databaseName Name of the database.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String sqlServerInstanceName, String databaseName);
+
+ /**
+ * Deletes an Arc Sql Server database resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param databaseName Name of the database.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String sqlServerInstanceName, String databaseName, Context context);
+
+ /**
+ * Retrieves an Arc Sql Server database.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param databaseName Name of the database.
+ * @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 arc Sql Server database along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String sqlServerInstanceName,
+ String databaseName, Context context);
+
+ /**
+ * Retrieves an Arc Sql Server database.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param databaseName Name of the database.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 arc Sql Server database.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlServerDatabaseResourceInner get(String resourceGroupName, String sqlServerInstanceName, String databaseName);
+
+ /**
+ * Updates an existing database.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param databaseName Name of the database.
+ * @param sqlServerDatabaseUpdate The requested database resource state.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 arc Sql Server database.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, SqlServerDatabaseResourceInner> beginUpdate(
+ String resourceGroupName, String sqlServerInstanceName, String databaseName,
+ SqlServerDatabaseUpdate sqlServerDatabaseUpdate);
+
+ /**
+ * Updates an existing database.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param databaseName Name of the database.
+ * @param sqlServerDatabaseUpdate The requested database resource state.
+ * @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 arc Sql Server database.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, SqlServerDatabaseResourceInner> beginUpdate(
+ String resourceGroupName, String sqlServerInstanceName, String databaseName,
+ SqlServerDatabaseUpdate sqlServerDatabaseUpdate, Context context);
+
+ /**
+ * Updates an existing database.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param databaseName Name of the database.
+ * @param sqlServerDatabaseUpdate The requested database resource state.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 arc Sql Server database.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlServerDatabaseResourceInner update(String resourceGroupName, String sqlServerInstanceName, String databaseName,
+ SqlServerDatabaseUpdate sqlServerDatabaseUpdate);
+
+ /**
+ * Updates an existing database.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param databaseName Name of the database.
+ * @param sqlServerDatabaseUpdate The requested database resource state.
+ * @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 arc Sql Server database.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlServerDatabaseResourceInner update(String resourceGroupName, String sqlServerInstanceName, String databaseName,
+ SqlServerDatabaseUpdate sqlServerDatabaseUpdate, Context context);
+
+ /**
+ * List the databases associated with the given Arc Sql Server.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 Arc Sql Server database as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String sqlServerInstanceName);
+
+ /**
+ * List the databases associated with the given Arc Sql Server.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @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 Arc Sql Server database as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String sqlServerInstanceName,
+ Context context);
+}
diff --git a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/SqlServerEsuLicensesClient.java b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/SqlServerEsuLicensesClient.java
new file mode 100644
index 000000000000..171dd9512c75
--- /dev/null
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/SqlServerEsuLicensesClient.java
@@ -0,0 +1,185 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurearcdata.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.azurearcdata.fluent.models.SqlServerEsuLicenseInner;
+import com.azure.resourcemanager.azurearcdata.models.SqlServerEsuLicenseUpdate;
+
+/**
+ * An instance of this class provides access to all the operations defined in SqlServerEsuLicensesClient.
+ */
+public interface SqlServerEsuLicensesClient {
+ /**
+ * List sqlServerEsuLicense resources in the subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of SQL Server ESU licenses as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List sqlServerEsuLicense resources in the subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of SQL Server ESU licenses as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * List sqlServerEsuLicense resources in the resource group
+ *
+ * Gets all sqlServerEsuLicenses in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all sqlServerEsuLicenses in a resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * List sqlServerEsuLicense resources in the resource group
+ *
+ * Gets all sqlServerEsuLicenses in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all sqlServerEsuLicenses in a resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Retrieves a SQL Server ESU license resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sqlServerEsuLicenseName Name of SQL Server ESU License.
+ * @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 describe SQL Server ESU license resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName,
+ String sqlServerEsuLicenseName, Context context);
+
+ /**
+ * Retrieves a SQL Server ESU license resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sqlServerEsuLicenseName Name of SQL Server ESU License.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 describe SQL Server ESU license resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlServerEsuLicenseInner getByResourceGroup(String resourceGroupName, String sqlServerEsuLicenseName);
+
+ /**
+ * Creates or replaces a SQL Server ESU license resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sqlServerEsuLicenseName Name of SQL Server ESU License.
+ * @param sqlServerEsuLicense The SQL Server ESU license to be created or updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return describe SQL Server ESU license resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createWithResponse(String resourceGroupName, String sqlServerEsuLicenseName,
+ SqlServerEsuLicenseInner sqlServerEsuLicense, Context context);
+
+ /**
+ * Creates or replaces a SQL Server ESU license resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sqlServerEsuLicenseName Name of SQL Server ESU License.
+ * @param sqlServerEsuLicense The SQL Server ESU license to be created or updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return describe SQL Server ESU license resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlServerEsuLicenseInner create(String resourceGroupName, String sqlServerEsuLicenseName,
+ SqlServerEsuLicenseInner sqlServerEsuLicense);
+
+ /**
+ * Deletes a SQL Server ESU license resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sqlServerEsuLicenseName Name of SQL Server ESU License.
+ * @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 deleteWithResponse(String resourceGroupName, String sqlServerEsuLicenseName, Context context);
+
+ /**
+ * Deletes a SQL Server ESU license resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sqlServerEsuLicenseName Name of SQL Server ESU License.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String sqlServerEsuLicenseName);
+
+ /**
+ * Updates a SQL Server ESU license resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sqlServerEsuLicenseName Name of SQL Server ESU License.
+ * @param parameters The SQL Server ESU license.
+ * @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 describe SQL Server ESU license resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(String resourceGroupName, String sqlServerEsuLicenseName,
+ SqlServerEsuLicenseUpdate parameters, Context context);
+
+ /**
+ * Updates a SQL Server ESU license resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sqlServerEsuLicenseName Name of SQL Server ESU License.
+ * @param parameters The SQL Server ESU license.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 describe SQL Server ESU license resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlServerEsuLicenseInner update(String resourceGroupName, String sqlServerEsuLicenseName,
+ SqlServerEsuLicenseUpdate parameters);
+}
diff --git a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/SqlServerInstancesClient.java b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/SqlServerInstancesClient.java
index 9bcffa5af944..ca4d4c4883ff 100644
--- a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/SqlServerInstancesClient.java
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/SqlServerInstancesClient.java
@@ -12,13 +12,20 @@
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.azurearcdata.fluent.models.SqlServerInstanceInner;
+import com.azure.resourcemanager.azurearcdata.fluent.models.SqlServerInstanceJobsStatusResponseInner;
+import com.azure.resourcemanager.azurearcdata.fluent.models.SqlServerInstanceRunMigrationAssessmentResponseInner;
+import com.azure.resourcemanager.azurearcdata.models.SqlServerInstanceJobsStatusRequest;
+import com.azure.resourcemanager.azurearcdata.models.SqlServerInstanceTelemetryRequest;
import com.azure.resourcemanager.azurearcdata.models.SqlServerInstanceUpdate;
+import java.util.List;
-/** An instance of this class provides access to all the operations defined in SqlServerInstancesClient. */
+/**
+ * An instance of this class provides access to all the operations defined in SqlServerInstancesClient.
+ */
public interface SqlServerInstancesClient {
/**
* List sqlServerInstance resources in the subscription.
- *
+ *
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of SqlServerInstance as paginated response with {@link PagedIterable}.
@@ -28,7 +35,7 @@ public interface SqlServerInstancesClient {
/**
* List sqlServerInstance resources in the subscription.
- *
+ *
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -40,9 +47,9 @@ public interface SqlServerInstancesClient {
/**
* List sqlServerInstance resources in the resource group
- *
- * Gets all sqlServerInstances in a resource group.
- *
+ *
+ * Gets all sqlServerInstances in a resource group.
+ *
* @param resourceGroupName The name of the Azure resource group.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -54,9 +61,9 @@ public interface SqlServerInstancesClient {
/**
* List sqlServerInstance resources in the resource group
- *
- *
Gets all sqlServerInstances in a resource group.
- *
+ *
+ * Gets all sqlServerInstances in a resource group.
+ *
* @param resourceGroupName The name of the Azure resource group.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -69,7 +76,7 @@ public interface SqlServerInstancesClient {
/**
* Retrieves a SQL Server Instance resource.
- *
+ *
* @param resourceGroupName The name of the Azure resource group.
* @param sqlServerInstanceName Name of SQL Server Instance.
* @param context The context to associate with this operation.
@@ -79,12 +86,12 @@ public interface SqlServerInstancesClient {
* @return a SqlServerInstance along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(
- String resourceGroupName, String sqlServerInstanceName, Context context);
+ Response getByResourceGroupWithResponse(String resourceGroupName,
+ String sqlServerInstanceName, Context context);
/**
* Retrieves a SQL Server Instance resource.
- *
+ *
* @param resourceGroupName The name of the Azure resource group.
* @param sqlServerInstanceName Name of SQL Server Instance.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -97,9 +104,9 @@ Response getByResourceGroupWithResponse(
/**
* Creates or replaces a SQL Server Instance resource.
- *
+ *
* @param resourceGroupName The name of the Azure resource group.
- * @param sqlServerInstanceName The name of SQL Server Instance.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
* @param sqlServerInstance The SQL Server Instance to be created or updated.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -107,14 +114,14 @@ Response getByResourceGroupWithResponse(
* @return the {@link SyncPoller} for polling of a SqlServerInstance.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, SqlServerInstanceInner> beginCreate(
- String resourceGroupName, String sqlServerInstanceName, SqlServerInstanceInner sqlServerInstance);
+ SyncPoller, SqlServerInstanceInner> beginCreate(String resourceGroupName,
+ String sqlServerInstanceName, SqlServerInstanceInner sqlServerInstance);
/**
* Creates or replaces a SQL Server Instance resource.
- *
+ *
* @param resourceGroupName The name of the Azure resource group.
- * @param sqlServerInstanceName The name of SQL Server Instance.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
* @param sqlServerInstance The SQL Server Instance to be created or updated.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -123,17 +130,14 @@ SyncPoller, SqlServerInstanceInner> beginCrea
* @return the {@link SyncPoller} for polling of a SqlServerInstance.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, SqlServerInstanceInner> beginCreate(
- String resourceGroupName,
- String sqlServerInstanceName,
- SqlServerInstanceInner sqlServerInstance,
- Context context);
+ SyncPoller, SqlServerInstanceInner> beginCreate(String resourceGroupName,
+ String sqlServerInstanceName, SqlServerInstanceInner sqlServerInstance, Context context);
/**
* Creates or replaces a SQL Server Instance resource.
- *
+ *
* @param resourceGroupName The name of the Azure resource group.
- * @param sqlServerInstanceName The name of SQL Server Instance.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
* @param sqlServerInstance The SQL Server Instance to be created or updated.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -141,14 +145,14 @@ SyncPoller, SqlServerInstanceInner> beginCrea
* @return a SqlServerInstance.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SqlServerInstanceInner create(
- String resourceGroupName, String sqlServerInstanceName, SqlServerInstanceInner sqlServerInstance);
+ SqlServerInstanceInner create(String resourceGroupName, String sqlServerInstanceName,
+ SqlServerInstanceInner sqlServerInstance);
/**
* Creates or replaces a SQL Server Instance resource.
- *
+ *
* @param resourceGroupName The name of the Azure resource group.
- * @param sqlServerInstanceName The name of SQL Server Instance.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
* @param sqlServerInstance The SQL Server Instance to be created or updated.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -157,17 +161,14 @@ SqlServerInstanceInner create(
* @return a SqlServerInstance.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SqlServerInstanceInner create(
- String resourceGroupName,
- String sqlServerInstanceName,
- SqlServerInstanceInner sqlServerInstance,
- Context context);
+ SqlServerInstanceInner create(String resourceGroupName, String sqlServerInstanceName,
+ SqlServerInstanceInner sqlServerInstance, Context context);
/**
* Deletes a SQL Server Instance resource.
- *
+ *
* @param resourceGroupName The name of the Azure resource group.
- * @param sqlServerInstanceName The name of SQL Server Instance.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -178,9 +179,9 @@ SqlServerInstanceInner create(
/**
* Deletes a SQL Server Instance resource.
- *
+ *
* @param resourceGroupName The name of the Azure resource group.
- * @param sqlServerInstanceName The name of SQL Server Instance.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
* @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.
@@ -188,14 +189,14 @@ SqlServerInstanceInner create(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(
- String resourceGroupName, String sqlServerInstanceName, Context context);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String sqlServerInstanceName,
+ Context context);
/**
* Deletes a SQL Server Instance resource.
- *
+ *
* @param resourceGroupName The name of the Azure resource group.
- * @param sqlServerInstanceName The name of SQL Server Instance.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -205,9 +206,9 @@ SyncPoller, Void> beginDelete(
/**
* Deletes a SQL Server Instance resource.
- *
+ *
* @param resourceGroupName The name of the Azure resource group.
- * @param sqlServerInstanceName The name of SQL Server Instance.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
* @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.
@@ -218,32 +219,211 @@ SyncPoller, Void> beginDelete(
/**
* Updates a SQL Server Instance resource.
- *
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param parameters The SQL Server Instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 SqlServerInstance.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, SqlServerInstanceInner> beginUpdate(String resourceGroupName,
+ String sqlServerInstanceName, SqlServerInstanceUpdate parameters);
+
+ /**
+ * Updates a SQL Server Instance resource.
+ *
* @param resourceGroupName The name of the Azure resource group.
- * @param sqlServerInstanceName Name of sqlServerInstance.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
* @param parameters The SQL Server Instance.
* @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 SqlServerInstance along with {@link Response}.
+ * @return the {@link SyncPoller} for polling of a SqlServerInstance.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, SqlServerInstanceInner> beginUpdate(String resourceGroupName,
+ String sqlServerInstanceName, SqlServerInstanceUpdate parameters, Context context);
+
+ /**
+ * Updates a SQL Server Instance resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param parameters The SQL Server Instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 SqlServerInstance.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(
- String resourceGroupName, String sqlServerInstanceName, SqlServerInstanceUpdate parameters, Context context);
+ SqlServerInstanceInner update(String resourceGroupName, String sqlServerInstanceName,
+ SqlServerInstanceUpdate parameters);
/**
* Updates a SQL Server Instance resource.
- *
+ *
* @param resourceGroupName The name of the Azure resource group.
- * @param sqlServerInstanceName Name of sqlServerInstance.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
* @param parameters The SQL Server Instance.
+ * @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 SqlServerInstance.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlServerInstanceInner update(String resourceGroupName, String sqlServerInstanceName,
+ SqlServerInstanceUpdate parameters, Context context);
+
+ /**
+ * Retrieves SQL Server instance telemetry.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param sqlServerInstanceTelemetryRequest Contains the parameters to get SQL Server instance telemetry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 section of the telemetry response for the SQL Server instance as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable> getTelemetry(String resourceGroupName, String sqlServerInstanceName,
+ SqlServerInstanceTelemetryRequest sqlServerInstanceTelemetryRequest);
+
+ /**
+ * Retrieves SQL Server instance telemetry.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param sqlServerInstanceTelemetryRequest Contains the parameters to get SQL Server instance telemetry.
+ * @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 section of the telemetry response for the SQL Server instance as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable> getTelemetry(String resourceGroupName, String sqlServerInstanceName,
+ SqlServerInstanceTelemetryRequest sqlServerInstanceTelemetryRequest, Context context);
+
+ /**
+ * Runs migration assessment for SQL Server instance.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response for running migration assessment on the SQL Server instance along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response
+ runMigrationAssessmentWithResponse(String resourceGroupName, String sqlServerInstanceName, Context context);
+
+ /**
+ * Runs migration assessment for SQL Server instance.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response for running migration assessment on the SQL Server instance.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlServerInstanceRunMigrationAssessmentResponseInner runMigrationAssessment(String resourceGroupName,
+ String sqlServerInstanceName);
+
+ /**
+ * Gets jobs status details for sql arc resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param sqlServerInstanceJobsStatusRequest Contains the parameters to get SQL Server instance agent jobs status.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return jobs status details for sql arc resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getJobsStatusWithResponse(String resourceGroupName,
+ String sqlServerInstanceName, SqlServerInstanceJobsStatusRequest sqlServerInstanceJobsStatusRequest,
+ Context context);
+
+ /**
+ * Gets jobs status details for sql arc resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return jobs status details for sql arc resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlServerInstanceJobsStatusResponseInner getJobsStatus(String resourceGroupName, String sqlServerInstanceName);
+
+ /**
+ * Request Upgrade Permission before upgrading.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @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 SqlServerInstance along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response preUpgradeWithResponse(String resourceGroupName, String sqlServerInstanceName,
+ Context context);
+
+ /**
+ * Request Upgrade Permission before upgrading.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 SqlServerInstance.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlServerInstanceInner preUpgrade(String resourceGroupName, String sqlServerInstanceName);
+
+ /**
+ * Clean up after upgrading.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @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 SqlServerInstance along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response postUpgradeWithResponse(String resourceGroupName, String sqlServerInstanceName,
+ Context context);
+
+ /**
+ * Clean up after upgrading.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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 SqlServerInstance.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SqlServerInstanceInner update(
- String resourceGroupName, String sqlServerInstanceName, SqlServerInstanceUpdate parameters);
+ SqlServerInstanceInner postUpgrade(String resourceGroupName, String sqlServerInstanceName);
}
diff --git a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/SqlServerLicensesClient.java b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/SqlServerLicensesClient.java
new file mode 100644
index 000000000000..e7618e18c0d9
--- /dev/null
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/SqlServerLicensesClient.java
@@ -0,0 +1,185 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurearcdata.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.azurearcdata.fluent.models.SqlServerLicenseInner;
+import com.azure.resourcemanager.azurearcdata.models.SqlServerLicenseUpdate;
+
+/**
+ * An instance of this class provides access to all the operations defined in SqlServerLicensesClient.
+ */
+public interface SqlServerLicensesClient {
+ /**
+ * List sqlServerLicense resources in the subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of SQL Server licenses as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List sqlServerLicense resources in the subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of SQL Server licenses as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * List sqlServerLicense resources in the resource group
+ *
+ * Gets all sqlServerLicenses in a resource group.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all sqlServerLicenses in a resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * List sqlServerLicense resources in the resource group
+ *
+ * Gets all sqlServerLicenses in a resource group.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all sqlServerLicenses in a resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Retrieves a SQL Server license resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerLicenseName Name of SQL Server License.
+ * @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 describe SQL Server license resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName,
+ String sqlServerLicenseName, Context context);
+
+ /**
+ * Retrieves a SQL Server license resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerLicenseName Name of SQL Server License.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 describe SQL Server license resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlServerLicenseInner getByResourceGroup(String resourceGroupName, String sqlServerLicenseName);
+
+ /**
+ * Creates or replaces a SQL Server license resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerLicenseName Name of SQL Server License.
+ * @param sqlServerLicense The SQL Server license to be created or updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return describe SQL Server license resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createWithResponse(String resourceGroupName, String sqlServerLicenseName,
+ SqlServerLicenseInner sqlServerLicense, Context context);
+
+ /**
+ * Creates or replaces a SQL Server license resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerLicenseName Name of SQL Server License.
+ * @param sqlServerLicense The SQL Server license to be created or updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return describe SQL Server license resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlServerLicenseInner create(String resourceGroupName, String sqlServerLicenseName,
+ SqlServerLicenseInner sqlServerLicense);
+
+ /**
+ * Deletes a SQL Server license resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerLicenseName Name of SQL Server License.
+ * @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 deleteWithResponse(String resourceGroupName, String sqlServerLicenseName, Context context);
+
+ /**
+ * Deletes a SQL Server license resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerLicenseName Name of SQL Server License.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String sqlServerLicenseName);
+
+ /**
+ * Updates a SQL Server license resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerLicenseName Name of SQL Server License.
+ * @param parameters The SQL Server license.
+ * @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 describe SQL Server license resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(String resourceGroupName, String sqlServerLicenseName,
+ SqlServerLicenseUpdate parameters, Context context);
+
+ /**
+ * Updates a SQL Server license resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerLicenseName Name of SQL Server License.
+ * @param parameters The SQL Server license.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 describe SQL Server license resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlServerLicenseInner update(String resourceGroupName, String sqlServerLicenseName,
+ SqlServerLicenseUpdate parameters);
+}
diff --git a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/ActiveDirectoryConnectorResourceInner.java b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/ActiveDirectoryConnectorResourceInner.java
new file mode 100644
index 000000000000..1a6f101d0dc5
--- /dev/null
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/ActiveDirectoryConnectorResourceInner.java
@@ -0,0 +1,175 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurearcdata.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.azurearcdata.models.ActiveDirectoryConnectorProperties;
+import java.io.IOException;
+
+/**
+ * Active directory connector resource.
+ */
+@Fluent
+public final class ActiveDirectoryConnectorResourceInner extends ProxyResource {
+ /*
+ * null
+ */
+ private ActiveDirectoryConnectorProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of ActiveDirectoryConnectorResourceInner class.
+ */
+ public ActiveDirectoryConnectorResourceInner() {
+ }
+
+ /**
+ * Get the properties property: null.
+ *
+ * @return the properties value.
+ */
+ public ActiveDirectoryConnectorProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: null.
+ *
+ * @param properties the properties value to set.
+ * @return the ActiveDirectoryConnectorResourceInner object itself.
+ */
+ public ActiveDirectoryConnectorResourceInner withProperties(ActiveDirectoryConnectorProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property properties in model ActiveDirectoryConnectorResourceInner"));
+ } else {
+ properties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(ActiveDirectoryConnectorResourceInner.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ActiveDirectoryConnectorResourceInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ActiveDirectoryConnectorResourceInner if the JsonReader was pointing to an instance of it,
+ * or null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the ActiveDirectoryConnectorResourceInner.
+ */
+ public static ActiveDirectoryConnectorResourceInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ActiveDirectoryConnectorResourceInner deserializedActiveDirectoryConnectorResourceInner
+ = new ActiveDirectoryConnectorResourceInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedActiveDirectoryConnectorResourceInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedActiveDirectoryConnectorResourceInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedActiveDirectoryConnectorResourceInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedActiveDirectoryConnectorResourceInner.properties
+ = ActiveDirectoryConnectorProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedActiveDirectoryConnectorResourceInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedActiveDirectoryConnectorResourceInner;
+ });
+ }
+}
diff --git a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/DataControllerResourceInner.java b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/DataControllerResourceInner.java
index 67ab99fe1ccf..d9b1c1c85ce9 100644
--- a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/DataControllerResourceInner.java
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/DataControllerResourceInner.java
@@ -8,39 +8,58 @@
import com.azure.core.management.Resource;
import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.azurearcdata.models.DataControllerProperties;
import com.azure.resourcemanager.azurearcdata.models.ExtendedLocation;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.Map;
-/** Data controller resource. */
+/**
+ * Data controller resource.
+ */
@Fluent
public final class DataControllerResourceInner extends Resource {
/*
* The extendedLocation of the resource.
*/
- @JsonProperty(value = "extendedLocation")
private ExtendedLocation extendedLocation;
/*
* The data controller's properties
*/
- @JsonProperty(value = "properties", required = true)
private DataControllerProperties properties;
/*
- * Read only system data
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
- /** Creates an instance of DataControllerResourceInner class. */
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of DataControllerResourceInner class.
+ */
public DataControllerResourceInner() {
}
/**
* Get the extendedLocation property: The extendedLocation of the resource.
- *
+ *
* @return the extendedLocation value.
*/
public ExtendedLocation extendedLocation() {
@@ -49,7 +68,7 @@ public ExtendedLocation extendedLocation() {
/**
* Set the extendedLocation property: The extendedLocation of the resource.
- *
+ *
* @param extendedLocation the extendedLocation value to set.
* @return the DataControllerResourceInner object itself.
*/
@@ -60,7 +79,7 @@ public DataControllerResourceInner withExtendedLocation(ExtendedLocation extende
/**
* Get the properties property: The data controller's properties.
- *
+ *
* @return the properties value.
*/
public DataControllerProperties properties() {
@@ -69,7 +88,7 @@ public DataControllerProperties properties() {
/**
* Set the properties property: The data controller's properties.
- *
+ *
* @param properties the properties value to set.
* @return the DataControllerResourceInner object itself.
*/
@@ -79,22 +98,56 @@ public DataControllerResourceInner withProperties(DataControllerProperties prope
}
/**
- * Get the systemData property: Read only system data.
- *
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
* @return the systemData value.
*/
public SystemData systemData() {
return this.systemData;
}
- /** {@inheritDoc} */
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
@Override
public DataControllerResourceInner withLocation(String location) {
super.withLocation(location);
return this;
}
- /** {@inheritDoc} */
+ /**
+ * {@inheritDoc}
+ */
@Override
public DataControllerResourceInner withTags(Map tags) {
super.withTags(tags);
@@ -103,7 +156,7 @@ public DataControllerResourceInner withTags(Map tags) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
@@ -111,14 +164,68 @@ public void validate() {
extendedLocation().validate();
}
if (properties() == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- "Missing required property properties in model DataControllerResourceInner"));
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property properties in model DataControllerResourceInner"));
} else {
properties().validate();
}
}
private static final ClientLogger LOGGER = new ClientLogger(DataControllerResourceInner.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.properties);
+ jsonWriter.writeJsonField("extendedLocation", this.extendedLocation);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of DataControllerResourceInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of DataControllerResourceInner if the JsonReader was pointing to an instance of it, or null
+ * if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the DataControllerResourceInner.
+ */
+ public static DataControllerResourceInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ DataControllerResourceInner deserializedDataControllerResourceInner = new DataControllerResourceInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedDataControllerResourceInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedDataControllerResourceInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedDataControllerResourceInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedDataControllerResourceInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedDataControllerResourceInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedDataControllerResourceInner.properties = DataControllerProperties.fromJson(reader);
+ } else if ("extendedLocation".equals(fieldName)) {
+ deserializedDataControllerResourceInner.extendedLocation = ExtendedLocation.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedDataControllerResourceInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedDataControllerResourceInner;
+ });
+ }
}
diff --git a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/FailoverGroupResourceInner.java b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/FailoverGroupResourceInner.java
new file mode 100644
index 000000000000..914e0a157b01
--- /dev/null
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/FailoverGroupResourceInner.java
@@ -0,0 +1,173 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurearcdata.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.azurearcdata.models.FailoverGroupProperties;
+import java.io.IOException;
+
+/**
+ * A failover group resource.
+ */
+@Fluent
+public final class FailoverGroupResourceInner extends ProxyResource {
+ /*
+ * null
+ */
+ private FailoverGroupProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of FailoverGroupResourceInner class.
+ */
+ public FailoverGroupResourceInner() {
+ }
+
+ /**
+ * Get the properties property: null.
+ *
+ * @return the properties value.
+ */
+ public FailoverGroupProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: null.
+ *
+ * @param properties the properties value to set.
+ * @return the FailoverGroupResourceInner object itself.
+ */
+ public FailoverGroupResourceInner withProperties(FailoverGroupProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property properties in model FailoverGroupResourceInner"));
+ } else {
+ properties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(FailoverGroupResourceInner.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of FailoverGroupResourceInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of FailoverGroupResourceInner if the JsonReader was pointing to an instance of it, or null if
+ * it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the FailoverGroupResourceInner.
+ */
+ public static FailoverGroupResourceInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ FailoverGroupResourceInner deserializedFailoverGroupResourceInner = new FailoverGroupResourceInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedFailoverGroupResourceInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedFailoverGroupResourceInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedFailoverGroupResourceInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedFailoverGroupResourceInner.properties = FailoverGroupProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedFailoverGroupResourceInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedFailoverGroupResourceInner;
+ });
+ }
+}
diff --git a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/OperationInner.java b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/OperationInner.java
index 7671b9e3e146..112051d2868c 100644
--- a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/OperationInner.java
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/OperationInner.java
@@ -6,53 +6,54 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.azurearcdata.models.OperationDisplay;
import com.azure.resourcemanager.azurearcdata.models.OperationOrigin;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.Map;
-/** Azure Data Services on Azure Arc operation definition. */
+/**
+ * Azure Data Services on Azure Arc operation definition.
+ */
@Fluent
-public final class OperationInner {
+public final class OperationInner implements JsonSerializable {
/*
* The name of the operation being performed on this particular object.
*/
- @JsonProperty(value = "name", required = true)
private String name;
/*
* The localized display information for this particular operation / action.
*/
- @JsonProperty(value = "display", required = true)
private OperationDisplay display;
/*
* The intended executor of the operation.
*/
- @JsonProperty(value = "origin", access = JsonProperty.Access.WRITE_ONLY)
private OperationOrigin origin;
/*
* Indicates whether the operation is a data action
*/
- @JsonProperty(value = "isDataAction", required = true)
private boolean isDataAction;
/*
* Additional descriptions for the operation.
*/
- @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY)
- @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map properties;
- /** Creates an instance of OperationInner class. */
+ /**
+ * Creates an instance of OperationInner class.
+ */
public OperationInner() {
}
/**
* Get the name property: The name of the operation being performed on this particular object.
- *
+ *
* @return the name value.
*/
public String name() {
@@ -61,7 +62,7 @@ public String name() {
/**
* Set the name property: The name of the operation being performed on this particular object.
- *
+ *
* @param name the name value to set.
* @return the OperationInner object itself.
*/
@@ -72,7 +73,7 @@ public OperationInner withName(String name) {
/**
* Get the display property: The localized display information for this particular operation / action.
- *
+ *
* @return the display value.
*/
public OperationDisplay display() {
@@ -81,7 +82,7 @@ public OperationDisplay display() {
/**
* Set the display property: The localized display information for this particular operation / action.
- *
+ *
* @param display the display value to set.
* @return the OperationInner object itself.
*/
@@ -92,7 +93,7 @@ public OperationInner withDisplay(OperationDisplay display) {
/**
* Get the origin property: The intended executor of the operation.
- *
+ *
* @return the origin value.
*/
public OperationOrigin origin() {
@@ -101,7 +102,7 @@ public OperationOrigin origin() {
/**
* Get the isDataAction property: Indicates whether the operation is a data action.
- *
+ *
* @return the isDataAction value.
*/
public boolean isDataAction() {
@@ -110,7 +111,7 @@ public boolean isDataAction() {
/**
* Set the isDataAction property: Indicates whether the operation is a data action.
- *
+ *
* @param isDataAction the isDataAction value to set.
* @return the OperationInner object itself.
*/
@@ -121,7 +122,7 @@ public OperationInner withIsDataAction(boolean isDataAction) {
/**
* Get the properties property: Additional descriptions for the operation.
- *
+ *
* @return the properties value.
*/
public Map properties() {
@@ -130,23 +131,69 @@ public Map properties() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (name() == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException("Missing required property name in model OperationInner"));
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property name in model OperationInner"));
}
if (display() == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException("Missing required property display in model OperationInner"));
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property display in model OperationInner"));
} else {
display().validate();
}
}
private static final ClientLogger LOGGER = new ClientLogger(OperationInner.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("name", this.name);
+ jsonWriter.writeJsonField("display", this.display);
+ jsonWriter.writeBooleanField("isDataAction", this.isDataAction);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of OperationInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of OperationInner if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the OperationInner.
+ */
+ public static OperationInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ OperationInner deserializedOperationInner = new OperationInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("name".equals(fieldName)) {
+ deserializedOperationInner.name = reader.getString();
+ } else if ("display".equals(fieldName)) {
+ deserializedOperationInner.display = OperationDisplay.fromJson(reader);
+ } else if ("isDataAction".equals(fieldName)) {
+ deserializedOperationInner.isDataAction = reader.getBoolean();
+ } else if ("origin".equals(fieldName)) {
+ deserializedOperationInner.origin = OperationOrigin.fromString(reader.getString());
+ } else if ("properties".equals(fieldName)) {
+ Map properties = reader.readMap(reader1 -> reader1.readUntyped());
+ deserializedOperationInner.properties = properties;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedOperationInner;
+ });
+ }
}
diff --git a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/PostgresInstanceInner.java b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/PostgresInstanceInner.java
new file mode 100644
index 000000000000..42ae5a112b6c
--- /dev/null
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/PostgresInstanceInner.java
@@ -0,0 +1,263 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurearcdata.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.azurearcdata.models.ExtendedLocation;
+import com.azure.resourcemanager.azurearcdata.models.PostgresInstanceProperties;
+import com.azure.resourcemanager.azurearcdata.models.PostgresInstanceSku;
+import java.io.IOException;
+import java.util.Map;
+
+/**
+ * A Postgres Instance.
+ */
+@Fluent
+public final class PostgresInstanceInner extends Resource {
+ /*
+ * The extendedLocation of the resource.
+ */
+ private ExtendedLocation extendedLocation;
+
+ /*
+ * null
+ */
+ private PostgresInstanceProperties properties;
+
+ /*
+ * Resource sku.
+ */
+ private PostgresInstanceSku sku;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of PostgresInstanceInner class.
+ */
+ public PostgresInstanceInner() {
+ }
+
+ /**
+ * Get the extendedLocation property: The extendedLocation of the resource.
+ *
+ * @return the extendedLocation value.
+ */
+ public ExtendedLocation extendedLocation() {
+ return this.extendedLocation;
+ }
+
+ /**
+ * Set the extendedLocation property: The extendedLocation of the resource.
+ *
+ * @param extendedLocation the extendedLocation value to set.
+ * @return the PostgresInstanceInner object itself.
+ */
+ public PostgresInstanceInner withExtendedLocation(ExtendedLocation extendedLocation) {
+ this.extendedLocation = extendedLocation;
+ return this;
+ }
+
+ /**
+ * Get the properties property: null.
+ *
+ * @return the properties value.
+ */
+ public PostgresInstanceProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: null.
+ *
+ * @param properties the properties value to set.
+ * @return the PostgresInstanceInner object itself.
+ */
+ public PostgresInstanceInner withProperties(PostgresInstanceProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the sku property: Resource sku.
+ *
+ * @return the sku value.
+ */
+ public PostgresInstanceSku sku() {
+ return this.sku;
+ }
+
+ /**
+ * Set the sku property: Resource sku.
+ *
+ * @param sku the sku value to set.
+ * @return the PostgresInstanceInner object itself.
+ */
+ public PostgresInstanceInner withSku(PostgresInstanceSku sku) {
+ this.sku = sku;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public PostgresInstanceInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public PostgresInstanceInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (extendedLocation() != null) {
+ extendedLocation().validate();
+ }
+ if (properties() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property properties in model PostgresInstanceInner"));
+ } else {
+ properties().validate();
+ }
+ if (sku() != null) {
+ sku().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(PostgresInstanceInner.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.properties);
+ jsonWriter.writeJsonField("extendedLocation", this.extendedLocation);
+ jsonWriter.writeJsonField("sku", this.sku);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of PostgresInstanceInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of PostgresInstanceInner if the JsonReader was pointing to an instance of it, or null if it
+ * was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the PostgresInstanceInner.
+ */
+ public static PostgresInstanceInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ PostgresInstanceInner deserializedPostgresInstanceInner = new PostgresInstanceInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedPostgresInstanceInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedPostgresInstanceInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedPostgresInstanceInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedPostgresInstanceInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedPostgresInstanceInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedPostgresInstanceInner.properties = PostgresInstanceProperties.fromJson(reader);
+ } else if ("extendedLocation".equals(fieldName)) {
+ deserializedPostgresInstanceInner.extendedLocation = ExtendedLocation.fromJson(reader);
+ } else if ("sku".equals(fieldName)) {
+ deserializedPostgresInstanceInner.sku = PostgresInstanceSku.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedPostgresInstanceInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedPostgresInstanceInner;
+ });
+ }
+}
diff --git a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/SqlManagedInstanceInner.java b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/SqlManagedInstanceInner.java
index 2c0b2e1ebe67..e31b58227aa6 100644
--- a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/SqlManagedInstanceInner.java
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/SqlManagedInstanceInner.java
@@ -8,46 +8,64 @@
import com.azure.core.management.Resource;
import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.azurearcdata.models.ExtendedLocation;
import com.azure.resourcemanager.azurearcdata.models.SqlManagedInstanceProperties;
import com.azure.resourcemanager.azurearcdata.models.SqlManagedInstanceSku;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.Map;
-/** A SqlManagedInstance. */
+/**
+ * A SqlManagedInstance.
+ */
@Fluent
public final class SqlManagedInstanceInner extends Resource {
/*
* null
*/
- @JsonProperty(value = "properties", required = true)
private SqlManagedInstanceProperties properties;
/*
* The extendedLocation of the resource.
*/
- @JsonProperty(value = "extendedLocation")
private ExtendedLocation extendedLocation;
/*
* Resource sku.
*/
- @JsonProperty(value = "sku")
private SqlManagedInstanceSku sku;
/*
- * Read only system data
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
- /** Creates an instance of SqlManagedInstanceInner class. */
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of SqlManagedInstanceInner class.
+ */
public SqlManagedInstanceInner() {
}
/**
* Get the properties property: null.
- *
+ *
* @return the properties value.
*/
public SqlManagedInstanceProperties properties() {
@@ -56,7 +74,7 @@ public SqlManagedInstanceProperties properties() {
/**
* Set the properties property: null.
- *
+ *
* @param properties the properties value to set.
* @return the SqlManagedInstanceInner object itself.
*/
@@ -67,7 +85,7 @@ public SqlManagedInstanceInner withProperties(SqlManagedInstanceProperties prope
/**
* Get the extendedLocation property: The extendedLocation of the resource.
- *
+ *
* @return the extendedLocation value.
*/
public ExtendedLocation extendedLocation() {
@@ -76,7 +94,7 @@ public ExtendedLocation extendedLocation() {
/**
* Set the extendedLocation property: The extendedLocation of the resource.
- *
+ *
* @param extendedLocation the extendedLocation value to set.
* @return the SqlManagedInstanceInner object itself.
*/
@@ -87,7 +105,7 @@ public SqlManagedInstanceInner withExtendedLocation(ExtendedLocation extendedLoc
/**
* Get the sku property: Resource sku.
- *
+ *
* @return the sku value.
*/
public SqlManagedInstanceSku sku() {
@@ -96,7 +114,7 @@ public SqlManagedInstanceSku sku() {
/**
* Set the sku property: Resource sku.
- *
+ *
* @param sku the sku value to set.
* @return the SqlManagedInstanceInner object itself.
*/
@@ -106,22 +124,56 @@ public SqlManagedInstanceInner withSku(SqlManagedInstanceSku sku) {
}
/**
- * Get the systemData property: Read only system data.
- *
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
* @return the systemData value.
*/
public SystemData systemData() {
return this.systemData;
}
- /** {@inheritDoc} */
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
@Override
public SqlManagedInstanceInner withLocation(String location) {
super.withLocation(location);
return this;
}
- /** {@inheritDoc} */
+ /**
+ * {@inheritDoc}
+ */
@Override
public SqlManagedInstanceInner withTags(Map tags) {
super.withTags(tags);
@@ -130,15 +182,14 @@ public SqlManagedInstanceInner withTags(Map tags) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (properties() == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- "Missing required property properties in model SqlManagedInstanceInner"));
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property properties in model SqlManagedInstanceInner"));
} else {
properties().validate();
}
@@ -151,4 +202,62 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(SqlManagedInstanceInner.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.properties);
+ jsonWriter.writeJsonField("extendedLocation", this.extendedLocation);
+ jsonWriter.writeJsonField("sku", this.sku);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of SqlManagedInstanceInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of SqlManagedInstanceInner if the JsonReader was pointing to an instance of it, or null if it
+ * was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the SqlManagedInstanceInner.
+ */
+ public static SqlManagedInstanceInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ SqlManagedInstanceInner deserializedSqlManagedInstanceInner = new SqlManagedInstanceInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedSqlManagedInstanceInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedSqlManagedInstanceInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedSqlManagedInstanceInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedSqlManagedInstanceInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedSqlManagedInstanceInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedSqlManagedInstanceInner.properties = SqlManagedInstanceProperties.fromJson(reader);
+ } else if ("extendedLocation".equals(fieldName)) {
+ deserializedSqlManagedInstanceInner.extendedLocation = ExtendedLocation.fromJson(reader);
+ } else if ("sku".equals(fieldName)) {
+ deserializedSqlManagedInstanceInner.sku = SqlManagedInstanceSku.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedSqlManagedInstanceInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedSqlManagedInstanceInner;
+ });
+ }
}
diff --git a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/SqlServerAvailabilityGroupResourceInner.java b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/SqlServerAvailabilityGroupResourceInner.java
new file mode 100644
index 000000000000..1c5dce6e8e0a
--- /dev/null
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/SqlServerAvailabilityGroupResourceInner.java
@@ -0,0 +1,202 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurearcdata.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.azurearcdata.models.SqlServerAvailabilityGroupResourceProperties;
+import java.io.IOException;
+import java.util.Map;
+
+/**
+ * Arc Sql Server Availability Group.
+ */
+@Fluent
+public final class SqlServerAvailabilityGroupResourceInner extends Resource {
+ /*
+ * Properties of Arc Sql Server availability group
+ */
+ private SqlServerAvailabilityGroupResourceProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of SqlServerAvailabilityGroupResourceInner class.
+ */
+ public SqlServerAvailabilityGroupResourceInner() {
+ }
+
+ /**
+ * Get the properties property: Properties of Arc Sql Server availability group.
+ *
+ * @return the properties value.
+ */
+ public SqlServerAvailabilityGroupResourceProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Properties of Arc Sql Server availability group.
+ *
+ * @param properties the properties value to set.
+ * @return the SqlServerAvailabilityGroupResourceInner object itself.
+ */
+ public SqlServerAvailabilityGroupResourceInner
+ withProperties(SqlServerAvailabilityGroupResourceProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public SqlServerAvailabilityGroupResourceInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public SqlServerAvailabilityGroupResourceInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property properties in model SqlServerAvailabilityGroupResourceInner"));
+ } else {
+ properties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(SqlServerAvailabilityGroupResourceInner.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of SqlServerAvailabilityGroupResourceInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of SqlServerAvailabilityGroupResourceInner if the JsonReader was pointing to an instance of
+ * it, or null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the SqlServerAvailabilityGroupResourceInner.
+ */
+ public static SqlServerAvailabilityGroupResourceInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ SqlServerAvailabilityGroupResourceInner deserializedSqlServerAvailabilityGroupResourceInner
+ = new SqlServerAvailabilityGroupResourceInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedSqlServerAvailabilityGroupResourceInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedSqlServerAvailabilityGroupResourceInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedSqlServerAvailabilityGroupResourceInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedSqlServerAvailabilityGroupResourceInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedSqlServerAvailabilityGroupResourceInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedSqlServerAvailabilityGroupResourceInner.properties
+ = SqlServerAvailabilityGroupResourceProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedSqlServerAvailabilityGroupResourceInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedSqlServerAvailabilityGroupResourceInner;
+ });
+ }
+}
diff --git a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/SqlServerDatabaseResourceInner.java b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/SqlServerDatabaseResourceInner.java
new file mode 100644
index 000000000000..cfb064e587dd
--- /dev/null
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/SqlServerDatabaseResourceInner.java
@@ -0,0 +1,201 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurearcdata.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.azurearcdata.models.SqlServerDatabaseResourceProperties;
+import java.io.IOException;
+import java.util.Map;
+
+/**
+ * Arc Sql Server database.
+ */
+@Fluent
+public final class SqlServerDatabaseResourceInner extends Resource {
+ /*
+ * Properties of Arc Sql Server database
+ */
+ private SqlServerDatabaseResourceProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of SqlServerDatabaseResourceInner class.
+ */
+ public SqlServerDatabaseResourceInner() {
+ }
+
+ /**
+ * Get the properties property: Properties of Arc Sql Server database.
+ *
+ * @return the properties value.
+ */
+ public SqlServerDatabaseResourceProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Properties of Arc Sql Server database.
+ *
+ * @param properties the properties value to set.
+ * @return the SqlServerDatabaseResourceInner object itself.
+ */
+ public SqlServerDatabaseResourceInner withProperties(SqlServerDatabaseResourceProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public SqlServerDatabaseResourceInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public SqlServerDatabaseResourceInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property properties in model SqlServerDatabaseResourceInner"));
+ } else {
+ properties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(SqlServerDatabaseResourceInner.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of SqlServerDatabaseResourceInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of SqlServerDatabaseResourceInner if the JsonReader was pointing to an instance of it, or
+ * null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the SqlServerDatabaseResourceInner.
+ */
+ public static SqlServerDatabaseResourceInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ SqlServerDatabaseResourceInner deserializedSqlServerDatabaseResourceInner
+ = new SqlServerDatabaseResourceInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedSqlServerDatabaseResourceInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedSqlServerDatabaseResourceInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedSqlServerDatabaseResourceInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedSqlServerDatabaseResourceInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedSqlServerDatabaseResourceInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedSqlServerDatabaseResourceInner.properties
+ = SqlServerDatabaseResourceProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedSqlServerDatabaseResourceInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedSqlServerDatabaseResourceInner;
+ });
+ }
+}
diff --git a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/SqlServerEsuLicenseInner.java b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/SqlServerEsuLicenseInner.java
new file mode 100644
index 000000000000..9782ce28c86a
--- /dev/null
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/SqlServerEsuLicenseInner.java
@@ -0,0 +1,199 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurearcdata.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.azurearcdata.models.SqlServerEsuLicenseProperties;
+import java.io.IOException;
+import java.util.Map;
+
+/**
+ * Describe SQL Server ESU license resource.
+ */
+@Fluent
+public final class SqlServerEsuLicenseInner extends Resource {
+ /*
+ * SQL Server ESU license properties
+ */
+ private SqlServerEsuLicenseProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of SqlServerEsuLicenseInner class.
+ */
+ public SqlServerEsuLicenseInner() {
+ }
+
+ /**
+ * Get the properties property: SQL Server ESU license properties.
+ *
+ * @return the properties value.
+ */
+ public SqlServerEsuLicenseProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: SQL Server ESU license properties.
+ *
+ * @param properties the properties value to set.
+ * @return the SqlServerEsuLicenseInner object itself.
+ */
+ public SqlServerEsuLicenseInner withProperties(SqlServerEsuLicenseProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public SqlServerEsuLicenseInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public SqlServerEsuLicenseInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property properties in model SqlServerEsuLicenseInner"));
+ } else {
+ properties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(SqlServerEsuLicenseInner.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of SqlServerEsuLicenseInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of SqlServerEsuLicenseInner if the JsonReader was pointing to an instance of it, or null if
+ * it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the SqlServerEsuLicenseInner.
+ */
+ public static SqlServerEsuLicenseInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ SqlServerEsuLicenseInner deserializedSqlServerEsuLicenseInner = new SqlServerEsuLicenseInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedSqlServerEsuLicenseInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedSqlServerEsuLicenseInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedSqlServerEsuLicenseInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedSqlServerEsuLicenseInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedSqlServerEsuLicenseInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedSqlServerEsuLicenseInner.properties = SqlServerEsuLicenseProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedSqlServerEsuLicenseInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedSqlServerEsuLicenseInner;
+ });
+ }
+}
diff --git a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/SqlServerInstanceInner.java b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/SqlServerInstanceInner.java
index ae6e655f4171..32896d7c10b4 100644
--- a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/SqlServerInstanceInner.java
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/SqlServerInstanceInner.java
@@ -7,32 +7,52 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.azurearcdata.models.SqlServerInstanceProperties;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.Map;
-/** A SqlServerInstance. */
+/**
+ * A SqlServerInstance.
+ */
@Fluent
public final class SqlServerInstanceInner extends Resource {
/*
* null
*/
- @JsonProperty(value = "properties")
private SqlServerInstanceProperties properties;
/*
- * Read only system data
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
- /** Creates an instance of SqlServerInstanceInner class. */
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of SqlServerInstanceInner class.
+ */
public SqlServerInstanceInner() {
}
/**
* Get the properties property: null.
- *
+ *
* @return the properties value.
*/
public SqlServerInstanceProperties properties() {
@@ -41,7 +61,7 @@ public SqlServerInstanceProperties properties() {
/**
* Set the properties property: null.
- *
+ *
* @param properties the properties value to set.
* @return the SqlServerInstanceInner object itself.
*/
@@ -51,22 +71,56 @@ public SqlServerInstanceInner withProperties(SqlServerInstanceProperties propert
}
/**
- * Get the systemData property: Read only system data.
- *
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
* @return the systemData value.
*/
public SystemData systemData() {
return this.systemData;
}
- /** {@inheritDoc} */
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
@Override
public SqlServerInstanceInner withLocation(String location) {
super.withLocation(location);
return this;
}
- /** {@inheritDoc} */
+ /**
+ * {@inheritDoc}
+ */
@Override
public SqlServerInstanceInner withTags(Map tags) {
super.withTags(tags);
@@ -75,7 +129,7 @@ public SqlServerInstanceInner withTags(Map tags) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
@@ -83,4 +137,56 @@ public void validate() {
properties().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of SqlServerInstanceInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of SqlServerInstanceInner if the JsonReader was pointing to an instance of it, or null if it
+ * was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the SqlServerInstanceInner.
+ */
+ public static SqlServerInstanceInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ SqlServerInstanceInner deserializedSqlServerInstanceInner = new SqlServerInstanceInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedSqlServerInstanceInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedSqlServerInstanceInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedSqlServerInstanceInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedSqlServerInstanceInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedSqlServerInstanceInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedSqlServerInstanceInner.properties = SqlServerInstanceProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedSqlServerInstanceInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedSqlServerInstanceInner;
+ });
+ }
}
diff --git a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/SqlServerInstanceJobsStatusResponseInner.java b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/SqlServerInstanceJobsStatusResponseInner.java
new file mode 100644
index 000000000000..e116dc3d1146
--- /dev/null
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/SqlServerInstanceJobsStatusResponseInner.java
@@ -0,0 +1,102 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurearcdata.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.azurearcdata.models.SqlServerInstanceJobStatus;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * The response for the status of the jobs running on the SQL Server instance.
+ */
+@Fluent
+public final class SqlServerInstanceJobsStatusResponseInner
+ implements JsonSerializable {
+ /*
+ * The list of jobs status running on the SQL Server instance.
+ */
+ private List jobsStatus;
+
+ /**
+ * Creates an instance of SqlServerInstanceJobsStatusResponseInner class.
+ */
+ public SqlServerInstanceJobsStatusResponseInner() {
+ }
+
+ /**
+ * Get the jobsStatus property: The list of jobs status running on the SQL Server instance.
+ *
+ * @return the jobsStatus value.
+ */
+ public List jobsStatus() {
+ return this.jobsStatus;
+ }
+
+ /**
+ * Set the jobsStatus property: The list of jobs status running on the SQL Server instance.
+ *
+ * @param jobsStatus the jobsStatus value to set.
+ * @return the SqlServerInstanceJobsStatusResponseInner object itself.
+ */
+ public SqlServerInstanceJobsStatusResponseInner withJobsStatus(List jobsStatus) {
+ this.jobsStatus = jobsStatus;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (jobsStatus() != null) {
+ jobsStatus().forEach(e -> e.validate());
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("jobsStatus", this.jobsStatus, (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of SqlServerInstanceJobsStatusResponseInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of SqlServerInstanceJobsStatusResponseInner if the JsonReader was pointing to an instance of
+ * it, or null if it was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the SqlServerInstanceJobsStatusResponseInner.
+ */
+ public static SqlServerInstanceJobsStatusResponseInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ SqlServerInstanceJobsStatusResponseInner deserializedSqlServerInstanceJobsStatusResponseInner
+ = new SqlServerInstanceJobsStatusResponseInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("jobsStatus".equals(fieldName)) {
+ List jobsStatus
+ = reader.readArray(reader1 -> SqlServerInstanceJobStatus.fromJson(reader1));
+ deserializedSqlServerInstanceJobsStatusResponseInner.jobsStatus = jobsStatus;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedSqlServerInstanceJobsStatusResponseInner;
+ });
+ }
+}
diff --git a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/SqlServerInstanceRunMigrationAssessmentResponseInner.java b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/SqlServerInstanceRunMigrationAssessmentResponseInner.java
new file mode 100644
index 000000000000..c3c19a5a40ab
--- /dev/null
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/SqlServerInstanceRunMigrationAssessmentResponseInner.java
@@ -0,0 +1,253 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurearcdata.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.azurearcdata.models.BackgroundJob;
+import com.azure.resourcemanager.azurearcdata.models.JobStatus;
+import com.azure.resourcemanager.azurearcdata.models.SequencerAction;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * The response for running migration assessment on the SQL Server instance.
+ */
+@Fluent
+public final class SqlServerInstanceRunMigrationAssessmentResponseInner
+ implements JsonSerializable {
+ /*
+ * The unique identifier of the job.
+ */
+ private String id;
+
+ /*
+ * The name of the SQL Server instance.
+ */
+ private String instanceName;
+
+ /*
+ * The status of the job.
+ */
+ private JobStatus jobStatus;
+
+ /*
+ * The exception message if the job failed.
+ */
+ private String jobException;
+
+ /*
+ * The background job details.
+ */
+ private BackgroundJob backgroundJob;
+
+ /*
+ * The list of sequencer actions.
+ */
+ private List sequencerActions;
+
+ /**
+ * Creates an instance of SqlServerInstanceRunMigrationAssessmentResponseInner class.
+ */
+ public SqlServerInstanceRunMigrationAssessmentResponseInner() {
+ }
+
+ /**
+ * Get the id property: The unique identifier of the job.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Set the id property: The unique identifier of the job.
+ *
+ * @param id the id value to set.
+ * @return the SqlServerInstanceRunMigrationAssessmentResponseInner object itself.
+ */
+ public SqlServerInstanceRunMigrationAssessmentResponseInner withId(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Get the instanceName property: The name of the SQL Server instance.
+ *
+ * @return the instanceName value.
+ */
+ public String instanceName() {
+ return this.instanceName;
+ }
+
+ /**
+ * Set the instanceName property: The name of the SQL Server instance.
+ *
+ * @param instanceName the instanceName value to set.
+ * @return the SqlServerInstanceRunMigrationAssessmentResponseInner object itself.
+ */
+ public SqlServerInstanceRunMigrationAssessmentResponseInner withInstanceName(String instanceName) {
+ this.instanceName = instanceName;
+ return this;
+ }
+
+ /**
+ * Get the jobStatus property: The status of the job.
+ *
+ * @return the jobStatus value.
+ */
+ public JobStatus jobStatus() {
+ return this.jobStatus;
+ }
+
+ /**
+ * Set the jobStatus property: The status of the job.
+ *
+ * @param jobStatus the jobStatus value to set.
+ * @return the SqlServerInstanceRunMigrationAssessmentResponseInner object itself.
+ */
+ public SqlServerInstanceRunMigrationAssessmentResponseInner withJobStatus(JobStatus jobStatus) {
+ this.jobStatus = jobStatus;
+ return this;
+ }
+
+ /**
+ * Get the jobException property: The exception message if the job failed.
+ *
+ * @return the jobException value.
+ */
+ public String jobException() {
+ return this.jobException;
+ }
+
+ /**
+ * Set the jobException property: The exception message if the job failed.
+ *
+ * @param jobException the jobException value to set.
+ * @return the SqlServerInstanceRunMigrationAssessmentResponseInner object itself.
+ */
+ public SqlServerInstanceRunMigrationAssessmentResponseInner withJobException(String jobException) {
+ this.jobException = jobException;
+ return this;
+ }
+
+ /**
+ * Get the backgroundJob property: The background job details.
+ *
+ * @return the backgroundJob value.
+ */
+ public BackgroundJob backgroundJob() {
+ return this.backgroundJob;
+ }
+
+ /**
+ * Set the backgroundJob property: The background job details.
+ *
+ * @param backgroundJob the backgroundJob value to set.
+ * @return the SqlServerInstanceRunMigrationAssessmentResponseInner object itself.
+ */
+ public SqlServerInstanceRunMigrationAssessmentResponseInner withBackgroundJob(BackgroundJob backgroundJob) {
+ this.backgroundJob = backgroundJob;
+ return this;
+ }
+
+ /**
+ * Get the sequencerActions property: The list of sequencer actions.
+ *
+ * @return the sequencerActions value.
+ */
+ public List sequencerActions() {
+ return this.sequencerActions;
+ }
+
+ /**
+ * Set the sequencerActions property: The list of sequencer actions.
+ *
+ * @param sequencerActions the sequencerActions value to set.
+ * @return the SqlServerInstanceRunMigrationAssessmentResponseInner object itself.
+ */
+ public SqlServerInstanceRunMigrationAssessmentResponseInner
+ withSequencerActions(List sequencerActions) {
+ this.sequencerActions = sequencerActions;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (backgroundJob() != null) {
+ backgroundJob().validate();
+ }
+ if (sequencerActions() != null) {
+ sequencerActions().forEach(e -> e.validate());
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("id", this.id);
+ jsonWriter.writeStringField("instanceName", this.instanceName);
+ jsonWriter.writeStringField("jobStatus", this.jobStatus == null ? null : this.jobStatus.toString());
+ jsonWriter.writeStringField("jobException", this.jobException);
+ jsonWriter.writeJsonField("backgroundJob", this.backgroundJob);
+ jsonWriter.writeArrayField("sequencerActions", this.sequencerActions,
+ (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of SqlServerInstanceRunMigrationAssessmentResponseInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of SqlServerInstanceRunMigrationAssessmentResponseInner if the JsonReader was pointing to an
+ * instance of it, or null if it was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the SqlServerInstanceRunMigrationAssessmentResponseInner.
+ */
+ public static SqlServerInstanceRunMigrationAssessmentResponseInner fromJson(JsonReader jsonReader)
+ throws IOException {
+ return jsonReader.readObject(reader -> {
+ SqlServerInstanceRunMigrationAssessmentResponseInner deserializedSqlServerInstanceRunMigrationAssessmentResponseInner
+ = new SqlServerInstanceRunMigrationAssessmentResponseInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedSqlServerInstanceRunMigrationAssessmentResponseInner.id = reader.getString();
+ } else if ("instanceName".equals(fieldName)) {
+ deserializedSqlServerInstanceRunMigrationAssessmentResponseInner.instanceName = reader.getString();
+ } else if ("jobStatus".equals(fieldName)) {
+ deserializedSqlServerInstanceRunMigrationAssessmentResponseInner.jobStatus
+ = JobStatus.fromString(reader.getString());
+ } else if ("jobException".equals(fieldName)) {
+ deserializedSqlServerInstanceRunMigrationAssessmentResponseInner.jobException = reader.getString();
+ } else if ("backgroundJob".equals(fieldName)) {
+ deserializedSqlServerInstanceRunMigrationAssessmentResponseInner.backgroundJob
+ = BackgroundJob.fromJson(reader);
+ } else if ("sequencerActions".equals(fieldName)) {
+ List sequencerActions
+ = reader.readArray(reader1 -> SequencerAction.fromJson(reader1));
+ deserializedSqlServerInstanceRunMigrationAssessmentResponseInner.sequencerActions
+ = sequencerActions;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedSqlServerInstanceRunMigrationAssessmentResponseInner;
+ });
+ }
+}
diff --git a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/SqlServerLicenseInner.java b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/SqlServerLicenseInner.java
new file mode 100644
index 000000000000..6b14562f4e66
--- /dev/null
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/SqlServerLicenseInner.java
@@ -0,0 +1,199 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurearcdata.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.azurearcdata.models.SqlServerLicenseProperties;
+import java.io.IOException;
+import java.util.Map;
+
+/**
+ * Describe SQL Server license resource.
+ */
+@Fluent
+public final class SqlServerLicenseInner extends Resource {
+ /*
+ * SQL Server license properties
+ */
+ private SqlServerLicenseProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of SqlServerLicenseInner class.
+ */
+ public SqlServerLicenseInner() {
+ }
+
+ /**
+ * Get the properties property: SQL Server license properties.
+ *
+ * @return the properties value.
+ */
+ public SqlServerLicenseProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: SQL Server license properties.
+ *
+ * @param properties the properties value to set.
+ * @return the SqlServerLicenseInner object itself.
+ */
+ public SqlServerLicenseInner withProperties(SqlServerLicenseProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public SqlServerLicenseInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public SqlServerLicenseInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property properties in model SqlServerLicenseInner"));
+ } else {
+ properties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(SqlServerLicenseInner.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of SqlServerLicenseInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of SqlServerLicenseInner if the JsonReader was pointing to an instance of it, or null if it
+ * was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the SqlServerLicenseInner.
+ */
+ public static SqlServerLicenseInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ SqlServerLicenseInner deserializedSqlServerLicenseInner = new SqlServerLicenseInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedSqlServerLicenseInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedSqlServerLicenseInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedSqlServerLicenseInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedSqlServerLicenseInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedSqlServerLicenseInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedSqlServerLicenseInner.properties = SqlServerLicenseProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedSqlServerLicenseInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedSqlServerLicenseInner;
+ });
+ }
+}
diff --git a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/package-info.java b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/package-info.java
index 91a1d2c9554d..2e89ec87247b 100644
--- a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/package-info.java
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/package-info.java
@@ -3,7 +3,8 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
/**
- * Package containing the inner data models for AzureArcDataManagementClient. The AzureArcData management API provides a
- * RESTful set of web APIs to manage Azure Data Services on Azure Arc Resources.
+ * Package containing the inner data models for AzureArcDataManagementClient.
+ * The AzureArcData management API provides a RESTful set of web APIs to manage Azure Data Services on Azure Arc
+ * Resources.
*/
package com.azure.resourcemanager.azurearcdata.fluent.models;
diff --git a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/package-info.java b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/package-info.java
index 904a73cdcffe..da1de4780bf6 100644
--- a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/package-info.java
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/package-info.java
@@ -3,7 +3,8 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
/**
- * Package containing the service clients for AzureArcDataManagementClient. The AzureArcData management API provides a
- * RESTful set of web APIs to manage Azure Data Services on Azure Arc Resources.
+ * Package containing the service clients for AzureArcDataManagementClient.
+ * The AzureArcData management API provides a RESTful set of web APIs to manage Azure Data Services on Azure Arc
+ * Resources.
*/
package com.azure.resourcemanager.azurearcdata.fluent;
diff --git a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/implementation/ActiveDirectoryConnectorResourceImpl.java b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/implementation/ActiveDirectoryConnectorResourceImpl.java
new file mode 100644
index 000000000000..7c769214eaf3
--- /dev/null
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/implementation/ActiveDirectoryConnectorResourceImpl.java
@@ -0,0 +1,108 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurearcdata.implementation;
+
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.azurearcdata.fluent.models.ActiveDirectoryConnectorResourceInner;
+import com.azure.resourcemanager.azurearcdata.models.ActiveDirectoryConnectorProperties;
+import com.azure.resourcemanager.azurearcdata.models.ActiveDirectoryConnectorResource;
+
+public final class ActiveDirectoryConnectorResourceImpl
+ implements ActiveDirectoryConnectorResource, ActiveDirectoryConnectorResource.Definition {
+ private ActiveDirectoryConnectorResourceInner innerObject;
+
+ private final com.azure.resourcemanager.azurearcdata.AzureArcDataManager serviceManager;
+
+ ActiveDirectoryConnectorResourceImpl(ActiveDirectoryConnectorResourceInner innerObject,
+ com.azure.resourcemanager.azurearcdata.AzureArcDataManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public ActiveDirectoryConnectorProperties properties() {
+ return this.innerModel().properties();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public ActiveDirectoryConnectorResourceInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.azurearcdata.AzureArcDataManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String dataControllerName;
+
+ private String activeDirectoryConnectorName;
+
+ public ActiveDirectoryConnectorResourceImpl withExistingDataController(String resourceGroupName,
+ String dataControllerName) {
+ this.resourceGroupName = resourceGroupName;
+ this.dataControllerName = dataControllerName;
+ return this;
+ }
+
+ public ActiveDirectoryConnectorResource create() {
+ this.innerObject = serviceManager.serviceClient()
+ .getActiveDirectoryConnectors()
+ .create(resourceGroupName, dataControllerName, activeDirectoryConnectorName, this.innerModel(),
+ Context.NONE);
+ return this;
+ }
+
+ public ActiveDirectoryConnectorResource create(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getActiveDirectoryConnectors()
+ .create(resourceGroupName, dataControllerName, activeDirectoryConnectorName, this.innerModel(), context);
+ return this;
+ }
+
+ ActiveDirectoryConnectorResourceImpl(String name,
+ com.azure.resourcemanager.azurearcdata.AzureArcDataManager serviceManager) {
+ this.innerObject = new ActiveDirectoryConnectorResourceInner();
+ this.serviceManager = serviceManager;
+ this.activeDirectoryConnectorName = name;
+ }
+
+ public ActiveDirectoryConnectorResource refresh() {
+ this.innerObject = serviceManager.serviceClient()
+ .getActiveDirectoryConnectors()
+ .getWithResponse(resourceGroupName, dataControllerName, activeDirectoryConnectorName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ActiveDirectoryConnectorResource refresh(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getActiveDirectoryConnectors()
+ .getWithResponse(resourceGroupName, dataControllerName, activeDirectoryConnectorName, context)
+ .getValue();
+ return this;
+ }
+
+ public ActiveDirectoryConnectorResourceImpl withProperties(ActiveDirectoryConnectorProperties properties) {
+ this.innerModel().withProperties(properties);
+ return this;
+ }
+}
diff --git a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/implementation/ActiveDirectoryConnectorsClientImpl.java b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/implementation/ActiveDirectoryConnectorsClientImpl.java
new file mode 100644
index 000000000000..e04321466427
--- /dev/null
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/implementation/ActiveDirectoryConnectorsClientImpl.java
@@ -0,0 +1,969 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurearcdata.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.PathParam;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.azurearcdata.fluent.ActiveDirectoryConnectorsClient;
+import com.azure.resourcemanager.azurearcdata.fluent.models.ActiveDirectoryConnectorResourceInner;
+import com.azure.resourcemanager.azurearcdata.models.ActiveDirectoryConnectorListResult;
+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 ActiveDirectoryConnectorsClient.
+ */
+public final class ActiveDirectoryConnectorsClientImpl implements ActiveDirectoryConnectorsClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final ActiveDirectoryConnectorsService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final AzureArcDataManagementClientImpl client;
+
+ /**
+ * Initializes an instance of ActiveDirectoryConnectorsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ ActiveDirectoryConnectorsClientImpl(AzureArcDataManagementClientImpl client) {
+ this.service = RestProxy.create(ActiveDirectoryConnectorsService.class, client.getHttpPipeline(),
+ client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for AzureArcDataManagementClientActiveDirectoryConnectors to be used by
+ * the proxy service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "AzureArcDataManageme")
+ public interface ActiveDirectoryConnectorsService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureArcData/dataControllers/{dataControllerName}/activeDirectoryConnectors")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("dataControllerName") String dataControllerName, @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureArcData/dataControllers/{dataControllerName}/activeDirectoryConnectors/{activeDirectoryConnectorName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> create(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("dataControllerName") String dataControllerName,
+ @PathParam("activeDirectoryConnectorName") String activeDirectoryConnectorName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") ActiveDirectoryConnectorResourceInner activeDirectoryConnectorResource,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureArcData/dataControllers/{dataControllerName}/activeDirectoryConnectors/{activeDirectoryConnectorName}")
+ @ExpectedResponses({ 200, 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> delete(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("dataControllerName") String dataControllerName,
+ @PathParam("activeDirectoryConnectorName") String activeDirectoryConnectorName,
+ @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureArcData/dataControllers/{dataControllerName}/activeDirectoryConnectors/{activeDirectoryConnectorName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("dataControllerName") String dataControllerName,
+ @PathParam("activeDirectoryConnectorName") String activeDirectoryConnectorName,
+ @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * List the active directory connectors associated with the given data controller.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param dataControllerName The name of the data controller.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 active directory connectors along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(String resourceGroupName,
+ String dataControllerName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (dataControllerName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter dataControllerName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ resourceGroupName, dataControllerName, 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 the active directory connectors associated with the given data controller.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param dataControllerName The name of the data controller.
+ * @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 list of active directory connectors along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(String resourceGroupName,
+ String dataControllerName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (dataControllerName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter dataControllerName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, dataControllerName,
+ this.client.getApiVersion(), accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+
+ /**
+ * List the active directory connectors associated with the given data controller.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param dataControllerName The name of the data controller.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 active directory connectors as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName,
+ String dataControllerName) {
+ return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, dataControllerName),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List the active directory connectors associated with the given data controller.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param dataControllerName The name of the data controller.
+ * @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 list of active directory connectors as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName,
+ String dataControllerName, Context context) {
+ return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, dataControllerName, context),
+ nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List the active directory connectors associated with the given data controller.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param dataControllerName The name of the data controller.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 active directory connectors as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName,
+ String dataControllerName) {
+ return new PagedIterable<>(listAsync(resourceGroupName, dataControllerName));
+ }
+
+ /**
+ * List the active directory connectors associated with the given data controller.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param dataControllerName The name of the data controller.
+ * @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 list of active directory connectors as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName,
+ String dataControllerName, Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, dataControllerName, context));
+ }
+
+ /**
+ * Creates or replaces an Active Directory connector resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param dataControllerName The name of the data controller.
+ * @param activeDirectoryConnectorName The name of the Active Directory connector instance.
+ * @param activeDirectoryConnectorResource desc.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return active directory connector resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createWithResponseAsync(String resourceGroupName,
+ String dataControllerName, String activeDirectoryConnectorName,
+ ActiveDirectoryConnectorResourceInner activeDirectoryConnectorResource) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (dataControllerName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter dataControllerName is required and cannot be null."));
+ }
+ if (activeDirectoryConnectorName == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter activeDirectoryConnectorName is required and cannot be null."));
+ }
+ if (activeDirectoryConnectorResource == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter activeDirectoryConnectorResource is required and cannot be null."));
+ } else {
+ activeDirectoryConnectorResource.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.create(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ resourceGroupName, dataControllerName, activeDirectoryConnectorName, this.client.getApiVersion(),
+ activeDirectoryConnectorResource, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Creates or replaces an Active Directory connector resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param dataControllerName The name of the data controller.
+ * @param activeDirectoryConnectorName The name of the Active Directory connector instance.
+ * @param activeDirectoryConnectorResource desc.
+ * @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 active directory connector resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createWithResponseAsync(String resourceGroupName,
+ String dataControllerName, String activeDirectoryConnectorName,
+ ActiveDirectoryConnectorResourceInner activeDirectoryConnectorResource, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (dataControllerName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter dataControllerName is required and cannot be null."));
+ }
+ if (activeDirectoryConnectorName == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter activeDirectoryConnectorName is required and cannot be null."));
+ }
+ if (activeDirectoryConnectorResource == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter activeDirectoryConnectorResource is required and cannot be null."));
+ } else {
+ activeDirectoryConnectorResource.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.create(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ dataControllerName, activeDirectoryConnectorName, this.client.getApiVersion(),
+ activeDirectoryConnectorResource, accept, context);
+ }
+
+ /**
+ * Creates or replaces an Active Directory connector resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param dataControllerName The name of the data controller.
+ * @param activeDirectoryConnectorName The name of the Active Directory connector instance.
+ * @param activeDirectoryConnectorResource desc.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException 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 active directory connector resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, ActiveDirectoryConnectorResourceInner>
+ beginCreateAsync(String resourceGroupName, String dataControllerName, String activeDirectoryConnectorName,
+ ActiveDirectoryConnectorResourceInner activeDirectoryConnectorResource) {
+ Mono>> mono = createWithResponseAsync(resourceGroupName, dataControllerName,
+ activeDirectoryConnectorName, activeDirectoryConnectorResource);
+ return this.client.getLroResult(
+ mono, this.client.getHttpPipeline(), ActiveDirectoryConnectorResourceInner.class,
+ ActiveDirectoryConnectorResourceInner.class, this.client.getContext());
+ }
+
+ /**
+ * Creates or replaces an Active Directory connector resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param dataControllerName The name of the data controller.
+ * @param activeDirectoryConnectorName The name of the Active Directory connector instance.
+ * @param activeDirectoryConnectorResource desc.
+ * @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 active directory connector resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, ActiveDirectoryConnectorResourceInner>
+ beginCreateAsync(String resourceGroupName, String dataControllerName, String activeDirectoryConnectorName,
+ ActiveDirectoryConnectorResourceInner activeDirectoryConnectorResource, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono = createWithResponseAsync(resourceGroupName, dataControllerName,
+ activeDirectoryConnectorName, activeDirectoryConnectorResource, context);
+ return this.client.getLroResult(
+ mono, this.client.getHttpPipeline(), ActiveDirectoryConnectorResourceInner.class,
+ ActiveDirectoryConnectorResourceInner.class, context);
+ }
+
+ /**
+ * Creates or replaces an Active Directory connector resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param dataControllerName The name of the data controller.
+ * @param activeDirectoryConnectorName The name of the Active Directory connector instance.
+ * @param activeDirectoryConnectorResource desc.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException 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 active directory connector resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, ActiveDirectoryConnectorResourceInner>
+ beginCreate(String resourceGroupName, String dataControllerName, String activeDirectoryConnectorName,
+ ActiveDirectoryConnectorResourceInner activeDirectoryConnectorResource) {
+ return this
+ .beginCreateAsync(resourceGroupName, dataControllerName, activeDirectoryConnectorName,
+ activeDirectoryConnectorResource)
+ .getSyncPoller();
+ }
+
+ /**
+ * Creates or replaces an Active Directory connector resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param dataControllerName The name of the data controller.
+ * @param activeDirectoryConnectorName The name of the Active Directory connector instance.
+ * @param activeDirectoryConnectorResource desc.
+ * @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 active directory connector resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, ActiveDirectoryConnectorResourceInner>
+ beginCreate(String resourceGroupName, String dataControllerName, String activeDirectoryConnectorName,
+ ActiveDirectoryConnectorResourceInner activeDirectoryConnectorResource, Context context) {
+ return this
+ .beginCreateAsync(resourceGroupName, dataControllerName, activeDirectoryConnectorName,
+ activeDirectoryConnectorResource, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Creates or replaces an Active Directory connector resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param dataControllerName The name of the data controller.
+ * @param activeDirectoryConnectorName The name of the Active Directory connector instance.
+ * @param activeDirectoryConnectorResource desc.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return active directory connector resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createAsync(String resourceGroupName, String dataControllerName,
+ String activeDirectoryConnectorName, ActiveDirectoryConnectorResourceInner activeDirectoryConnectorResource) {
+ return beginCreateAsync(resourceGroupName, dataControllerName, activeDirectoryConnectorName,
+ activeDirectoryConnectorResource).last().flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Creates or replaces an Active Directory connector resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param dataControllerName The name of the data controller.
+ * @param activeDirectoryConnectorName The name of the Active Directory connector instance.
+ * @param activeDirectoryConnectorResource desc.
+ * @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 active directory connector resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createAsync(String resourceGroupName, String dataControllerName,
+ String activeDirectoryConnectorName, ActiveDirectoryConnectorResourceInner activeDirectoryConnectorResource,
+ Context context) {
+ return beginCreateAsync(resourceGroupName, dataControllerName, activeDirectoryConnectorName,
+ activeDirectoryConnectorResource, context).last().flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Creates or replaces an Active Directory connector resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param dataControllerName The name of the data controller.
+ * @param activeDirectoryConnectorName The name of the Active Directory connector instance.
+ * @param activeDirectoryConnectorResource desc.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return active directory connector resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ActiveDirectoryConnectorResourceInner create(String resourceGroupName, String dataControllerName,
+ String activeDirectoryConnectorName, ActiveDirectoryConnectorResourceInner activeDirectoryConnectorResource) {
+ return createAsync(resourceGroupName, dataControllerName, activeDirectoryConnectorName,
+ activeDirectoryConnectorResource).block();
+ }
+
+ /**
+ * Creates or replaces an Active Directory connector resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param dataControllerName The name of the data controller.
+ * @param activeDirectoryConnectorName The name of the Active Directory connector instance.
+ * @param activeDirectoryConnectorResource desc.
+ * @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 active directory connector resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ActiveDirectoryConnectorResourceInner create(String resourceGroupName, String dataControllerName,
+ String activeDirectoryConnectorName, ActiveDirectoryConnectorResourceInner activeDirectoryConnectorResource,
+ Context context) {
+ return createAsync(resourceGroupName, dataControllerName, activeDirectoryConnectorName,
+ activeDirectoryConnectorResource, context).block();
+ }
+
+ /**
+ * Deletes an Active Directory connector resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param dataControllerName The name of the data controller.
+ * @param activeDirectoryConnectorName The name of the Active Directory connector instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(String resourceGroupName,
+ String dataControllerName, String activeDirectoryConnectorName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (dataControllerName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter dataControllerName is required and cannot be null."));
+ }
+ if (activeDirectoryConnectorName == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter activeDirectoryConnectorName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ dataControllerName, activeDirectoryConnectorName, this.client.getApiVersion(), accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Deletes an Active Directory connector resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param dataControllerName The name of the data controller.
+ * @param activeDirectoryConnectorName The name of the Active Directory connector instance.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(String resourceGroupName,
+ String dataControllerName, String activeDirectoryConnectorName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (dataControllerName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter dataControllerName is required and cannot be null."));
+ }
+ if (activeDirectoryConnectorName == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter activeDirectoryConnectorName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ dataControllerName, activeDirectoryConnectorName, this.client.getApiVersion(), accept, context);
+ }
+
+ /**
+ * Deletes an Active Directory connector resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param dataControllerName The name of the data controller.
+ * @param activeDirectoryConnectorName The name of the Active Directory connector instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String dataControllerName,
+ String activeDirectoryConnectorName) {
+ Mono>> mono
+ = deleteWithResponseAsync(resourceGroupName, dataControllerName, activeDirectoryConnectorName);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Deletes an Active Directory connector resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param dataControllerName The name of the data controller.
+ * @param activeDirectoryConnectorName The name of the Active Directory connector instance.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String dataControllerName,
+ String activeDirectoryConnectorName, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = deleteWithResponseAsync(resourceGroupName, dataControllerName, activeDirectoryConnectorName, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ context);
+ }
+
+ /**
+ * Deletes an Active Directory connector resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param dataControllerName The name of the data controller.
+ * @param activeDirectoryConnectorName The name of the Active Directory connector instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String dataControllerName,
+ String activeDirectoryConnectorName) {
+ return this.beginDeleteAsync(resourceGroupName, dataControllerName, activeDirectoryConnectorName)
+ .getSyncPoller();
+ }
+
+ /**
+ * Deletes an Active Directory connector resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param dataControllerName The name of the data controller.
+ * @param activeDirectoryConnectorName The name of the Active Directory connector instance.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String dataControllerName,
+ String activeDirectoryConnectorName, Context context) {
+ return this.beginDeleteAsync(resourceGroupName, dataControllerName, activeDirectoryConnectorName, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Deletes an Active Directory connector resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param dataControllerName The name of the data controller.
+ * @param activeDirectoryConnectorName The name of the Active Directory connector instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String dataControllerName,
+ String activeDirectoryConnectorName) {
+ return beginDeleteAsync(resourceGroupName, dataControllerName, activeDirectoryConnectorName).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Deletes an Active Directory connector resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param dataControllerName The name of the data controller.
+ * @param activeDirectoryConnectorName The name of the Active Directory connector instance.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String dataControllerName,
+ String activeDirectoryConnectorName, Context context) {
+ return beginDeleteAsync(resourceGroupName, dataControllerName, activeDirectoryConnectorName, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Deletes an Active Directory connector resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param dataControllerName The name of the data controller.
+ * @param activeDirectoryConnectorName The name of the Active Directory connector instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String dataControllerName, String activeDirectoryConnectorName) {
+ deleteAsync(resourceGroupName, dataControllerName, activeDirectoryConnectorName).block();
+ }
+
+ /**
+ * Deletes an Active Directory connector resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param dataControllerName The name of the data controller.
+ * @param activeDirectoryConnectorName The name of the Active Directory connector instance.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String dataControllerName, String activeDirectoryConnectorName,
+ Context context) {
+ deleteAsync(resourceGroupName, dataControllerName, activeDirectoryConnectorName, context).block();
+ }
+
+ /**
+ * Retrieves an Active Directory connector resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param dataControllerName The name of the data controller.
+ * @param activeDirectoryConnectorName The name of the Active Directory connector instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return active directory connector resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono