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/SqlAvailabilityGroupDatabasesClient.java b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/SqlAvailabilityGroupDatabasesClient.java
new file mode 100644
index 000000000000..10ab49b7e80e
--- /dev/null
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/SqlAvailabilityGroupDatabasesClient.java
@@ -0,0 +1,191 @@
+// 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.SqlAvailabilityGroupDatabaseResourceInner;
+import com.azure.resourcemanager.azurearcdata.models.SqlAvailabilityGroupDatabaseUpdate;
+
+/** An instance of this class provides access to all the operations defined in SqlAvailabilityGroupDatabasesClient. */
+public interface SqlAvailabilityGroupDatabasesClient {
+ /**
+ * Creates or update database in an Arc Sql Availability Group.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlAvailabilityGroupDatabaseName Name of SQL Availability Group Database.
+ * @param sqlAvailabilityGroupName Name of SQL Availability Group.
+ * @param sqlAvailabilityGroupDatabaseResource The request body for availability group databases 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 Database along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createWithResponse(
+ String resourceGroupName,
+ String sqlAvailabilityGroupDatabaseName,
+ String sqlAvailabilityGroupName,
+ SqlAvailabilityGroupDatabaseResourceInner sqlAvailabilityGroupDatabaseResource,
+ Context context);
+
+ /**
+ * Creates or update database in an Arc Sql Availability Group.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlAvailabilityGroupDatabaseName Name of SQL Availability Group Database.
+ * @param sqlAvailabilityGroupName Name of SQL Availability Group.
+ * @param sqlAvailabilityGroupDatabaseResource The request body for availability group databases 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 Database.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlAvailabilityGroupDatabaseResourceInner create(
+ String resourceGroupName,
+ String sqlAvailabilityGroupDatabaseName,
+ String sqlAvailabilityGroupName,
+ SqlAvailabilityGroupDatabaseResourceInner sqlAvailabilityGroupDatabaseResource);
+
+ /**
+ * Deletes an Arc Sql availability group database resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlAvailabilityGroupDatabaseName Name of SQL Availability Group Database.
+ * @param sqlAvailabilityGroupName 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 Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(
+ String resourceGroupName,
+ String sqlAvailabilityGroupDatabaseName,
+ String sqlAvailabilityGroupName,
+ Context context);
+
+ /**
+ * Deletes an Arc Sql availability group database resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlAvailabilityGroupDatabaseName Name of SQL Availability Group Database.
+ * @param sqlAvailabilityGroupName 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 sqlAvailabilityGroupDatabaseName, String sqlAvailabilityGroupName);
+
+ /**
+ * Retrieves an Arc Sql availability group database resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlAvailabilityGroupDatabaseName Name of SQL Availability Group Database.
+ * @param sqlAvailabilityGroupName 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 Database along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName,
+ String sqlAvailabilityGroupDatabaseName,
+ String sqlAvailabilityGroupName,
+ Context context);
+
+ /**
+ * Retrieves an Arc Sql availability group database resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlAvailabilityGroupDatabaseName Name of SQL Availability Group Database.
+ * @param sqlAvailabilityGroupName 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 Database.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlAvailabilityGroupDatabaseResourceInner get(
+ String resourceGroupName, String sqlAvailabilityGroupDatabaseName, String sqlAvailabilityGroupName);
+
+ /**
+ * Updates an existing Availability Group Database.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlAvailabilityGroupDatabaseName Name of SQL Availability Group Database.
+ * @param sqlAvailabilityGroupName Name of SQL Availability Group.
+ * @param sqlAvailabilityGroupDatabaseUpdate The update availability group 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 Availability Group Database along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName,
+ String sqlAvailabilityGroupDatabaseName,
+ String sqlAvailabilityGroupName,
+ SqlAvailabilityGroupDatabaseUpdate sqlAvailabilityGroupDatabaseUpdate,
+ Context context);
+
+ /**
+ * Updates an existing Availability Group Database.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlAvailabilityGroupDatabaseName Name of SQL Availability Group Database.
+ * @param sqlAvailabilityGroupName Name of SQL Availability Group.
+ * @param sqlAvailabilityGroupDatabaseUpdate The update availability group 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 Availability Group Database.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlAvailabilityGroupDatabaseResourceInner update(
+ String resourceGroupName,
+ String sqlAvailabilityGroupDatabaseName,
+ String sqlAvailabilityGroupName,
+ SqlAvailabilityGroupDatabaseUpdate sqlAvailabilityGroupDatabaseUpdate);
+
+ /**
+ * List the Availability Group Databases associated with the given Arc Sql AG.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlAvailabilityGroupName 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 a list of Arc Sql Availability Group Databases as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName, String sqlAvailabilityGroupName);
+
+ /**
+ * List the Availability Group Databases associated with the given Arc Sql AG.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlAvailabilityGroupName 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 a list of Arc Sql Availability Group Databases as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName, String sqlAvailabilityGroupName, Context context);
+}
diff --git a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/SqlAvailabilityGroupReplicasClient.java b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/SqlAvailabilityGroupReplicasClient.java
new file mode 100644
index 000000000000..3e873a749ab1
--- /dev/null
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/SqlAvailabilityGroupReplicasClient.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.SqlAvailabilityGroupReplicaResourceInner;
+import com.azure.resourcemanager.azurearcdata.models.SqlAvailabilityGroupReplicaUpdate;
+
+/** An instance of this class provides access to all the operations defined in SqlAvailabilityGroupReplicasClient. */
+public interface SqlAvailabilityGroupReplicasClient {
+ /**
+ * Creates or replaces an Arc Sql Availability Group Replica.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param sqlAvailabilityGroupName Name of SQL Availability Group.
+ * @param sqlAvailabilityGroupReplicaResource The request body for availability group replica 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 sqlAvailabilityGroupName,
+ SqlAvailabilityGroupReplicaResourceInner sqlAvailabilityGroupReplicaResource,
+ Context context);
+
+ /**
+ * Creates or replaces an Arc Sql Availability Group Replica.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param sqlAvailabilityGroupName Name of SQL Availability Group.
+ * @param sqlAvailabilityGroupReplicaResource The request body for availability group replica 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)
+ SqlAvailabilityGroupReplicaResourceInner create(
+ String resourceGroupName,
+ String sqlServerInstanceName,
+ String sqlAvailabilityGroupName,
+ SqlAvailabilityGroupReplicaResourceInner sqlAvailabilityGroupReplicaResource);
+
+ /**
+ * Deletes an Arc Sql availability group replica resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param sqlAvailabilityGroupName 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 Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(
+ String resourceGroupName, String sqlServerInstanceName, String sqlAvailabilityGroupName, Context context);
+
+ /**
+ * Deletes an Arc Sql availability group replica resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param sqlAvailabilityGroupName 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 sqlAvailabilityGroupName);
+
+ /**
+ * Retrieves an Arc Sql availability group replica.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param sqlAvailabilityGroupName 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 sqlAvailabilityGroupName, Context context);
+
+ /**
+ * Retrieves an Arc Sql availability group replica.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param sqlAvailabilityGroupName 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)
+ SqlAvailabilityGroupReplicaResourceInner get(
+ String resourceGroupName, String sqlServerInstanceName, String sqlAvailabilityGroupName);
+
+ /**
+ * Updates an existing Availability Group Replica.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param sqlAvailabilityGroupName Name of SQL Availability Group.
+ * @param sqlAvailabilityGroupReplicaUpdate The requested availability group replica 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 along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName,
+ String sqlServerInstanceName,
+ String sqlAvailabilityGroupName,
+ SqlAvailabilityGroupReplicaUpdate sqlAvailabilityGroupReplicaUpdate,
+ Context context);
+
+ /**
+ * Updates an existing Availability Group Replica.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param sqlAvailabilityGroupName Name of SQL Availability Group.
+ * @param sqlAvailabilityGroupReplicaUpdate The requested availability group replica 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)
+ SqlAvailabilityGroupReplicaResourceInner update(
+ String resourceGroupName,
+ String sqlServerInstanceName,
+ String sqlAvailabilityGroupName,
+ SqlAvailabilityGroupReplicaUpdate sqlAvailabilityGroupReplicaUpdate);
+
+ /**
+ * List the Availability Group Replica associated with the given Arc Sql AG.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlAvailabilityGroupName 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 a list of Arc Sql Availability Group Replica as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName, String sqlAvailabilityGroupName);
+
+ /**
+ * List the Availability Group Replica associated with the given Arc Sql AG.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlAvailabilityGroupName 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 a list of Arc Sql Availability Group Replica as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName, String sqlAvailabilityGroupName, Context context);
+}
diff --git a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/SqlAvailabilityGroupsClient.java b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/SqlAvailabilityGroupsClient.java
new file mode 100644
index 000000000000..d2b3565d82a0
--- /dev/null
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/SqlAvailabilityGroupsClient.java
@@ -0,0 +1,252 @@
+// 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.SqlAvailabilityGroupInner;
+import com.azure.resourcemanager.azurearcdata.models.SqlAvailabilityGroupUpdate;
+
+/** An instance of this class provides access to all the operations defined in SqlAvailabilityGroupsClient. */
+public interface SqlAvailabilityGroupsClient {
+ /**
+ * List sqlAvailabilityGroups 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 SqlAvailabilityGroup as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List sqlAvailabilityGroups 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 SqlAvailabilityGroup as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * List sqlAvailabilityGroups resources in the resource group
+ *
+ * Gets all sqlAvailabilityGroups 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 sqlAvailabilityGroups in a resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * List sqlAvailabilityGroups resources in the resource group
+ *
+ * Gets all sqlAvailabilityGroups 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 sqlAvailabilityGroups in a resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Retrieves a SQL Availability Group resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlAvailabilityGroupName 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 a SqlAvailabilityGroup along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String sqlAvailabilityGroupName, Context context);
+
+ /**
+ * Retrieves a SQL Availability Group resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlAvailabilityGroupName 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 a SqlAvailabilityGroup.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlAvailabilityGroupInner getByResourceGroup(String resourceGroupName, String sqlAvailabilityGroupName);
+
+ /**
+ * Creates or replaces a SQL Availability Group resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlAvailabilityGroupName Name of SQL Availability Group.
+ * @param sqlAvailabilityGroup The SQL Availability Group 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 the {@link SyncPoller} for polling of a SqlAvailabilityGroup.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, SqlAvailabilityGroupInner> beginCreate(
+ String resourceGroupName, String sqlAvailabilityGroupName, SqlAvailabilityGroupInner sqlAvailabilityGroup);
+
+ /**
+ * Creates or replaces a SQL Availability Group resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlAvailabilityGroupName Name of SQL Availability Group.
+ * @param sqlAvailabilityGroup The SQL Availability Group 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 the {@link SyncPoller} for polling of a SqlAvailabilityGroup.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, SqlAvailabilityGroupInner> beginCreate(
+ String resourceGroupName,
+ String sqlAvailabilityGroupName,
+ SqlAvailabilityGroupInner sqlAvailabilityGroup,
+ Context context);
+
+ /**
+ * Creates or replaces a SQL Availability Group resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlAvailabilityGroupName Name of SQL Availability Group.
+ * @param sqlAvailabilityGroup The SQL Availability Group 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 a SqlAvailabilityGroup.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlAvailabilityGroupInner create(
+ String resourceGroupName, String sqlAvailabilityGroupName, SqlAvailabilityGroupInner sqlAvailabilityGroup);
+
+ /**
+ * Creates or replaces a SQL Availability Group resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlAvailabilityGroupName Name of SQL Availability Group.
+ * @param sqlAvailabilityGroup The SQL Availability Group 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 a SqlAvailabilityGroup.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlAvailabilityGroupInner create(
+ String resourceGroupName,
+ String sqlAvailabilityGroupName,
+ SqlAvailabilityGroupInner sqlAvailabilityGroup,
+ Context context);
+
+ /**
+ * Deletes a SQL Availability Group resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlAvailabilityGroupName 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 sqlAvailabilityGroupName);
+
+ /**
+ * Deletes a SQL Availability Group resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlAvailabilityGroupName 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 sqlAvailabilityGroupName, Context context);
+
+ /**
+ * Deletes a SQL Availability Group resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlAvailabilityGroupName 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 sqlAvailabilityGroupName);
+
+ /**
+ * Deletes a SQL Availability Group resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlAvailabilityGroupName 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 sqlAvailabilityGroupName, Context context);
+
+ /**
+ * Updates a SQL Availability Group resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlAvailabilityGroupName Name of SQL Availability Group.
+ * @param parameters The 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 a SqlAvailabilityGroup along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName,
+ String sqlAvailabilityGroupName,
+ SqlAvailabilityGroupUpdate parameters,
+ Context context);
+
+ /**
+ * Updates a SQL Availability Group resource.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlAvailabilityGroupName Name of SQL Availability Group.
+ * @param parameters The 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 a SqlAvailabilityGroup.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlAvailabilityGroupInner update(
+ String resourceGroupName, String sqlAvailabilityGroupName, SqlAvailabilityGroupUpdate 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..ef7de143d658 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
@@ -99,7 +99,7 @@ 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.
@@ -114,7 +114,7 @@ SyncPoller, SqlManagedInstanceInner> beginCr
* 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.
@@ -133,7 +133,7 @@ SyncPoller, SqlManagedInstanceInner> beginCr
* 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.
@@ -148,7 +148,7 @@ SqlManagedInstanceInner create(
* 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.
@@ -167,7 +167,7 @@ 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -180,7 +180,7 @@ 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.
@@ -195,7 +195,7 @@ 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -207,7 +207,7 @@ 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.
@@ -220,7 +220,7 @@ 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.
@@ -236,7 +236,7 @@ Response updateWithResponse(
* 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.
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..f91675d44521
--- /dev/null
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/SqlServerAvailabilityGroupsClient.java
@@ -0,0 +1,184 @@
+// 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.SqlServerAvailabilityGroupResourceInner;
+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 sqlAvailabilityGroupName 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 sqlAvailabilityGroupName,
+ 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 sqlAvailabilityGroupName 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 sqlAvailabilityGroupName,
+ 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 sqlAvailabilityGroupName 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 Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(
+ String resourceGroupName, String sqlServerInstanceName, String sqlAvailabilityGroupName, 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 sqlAvailabilityGroupName 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 sqlAvailabilityGroupName);
+
+ /**
+ * Retrieves an Arc Sql Server availability group.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param sqlAvailabilityGroupName 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 sqlAvailabilityGroupName, 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 sqlAvailabilityGroupName 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 sqlAvailabilityGroupName);
+
+ /**
+ * Updates an existing Availability Group.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param sqlServerInstanceName Name of SQL Server Instance.
+ * @param sqlAvailabilityGroupName 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 along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName,
+ String sqlServerInstanceName,
+ String sqlAvailabilityGroupName,
+ 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 sqlAvailabilityGroupName 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 sqlAvailabilityGroupName,
+ SqlServerAvailabilityGroupUpdate sqlServerAvailabilityGroupUpdate);
+
+ /**
+ * 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 Group 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 Group 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..75c5aae7591d
--- /dev/null
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/SqlServerDatabasesClient.java
@@ -0,0 +1,183 @@
+// 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.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.
+ * @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 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);
+
+ /**
+ * 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.
+ * @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 updateWithResponse(
+ 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);
+
+ /**
+ * 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/SqlServerInstancesClient.java b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/SqlServerInstancesClient.java
index 9bcffa5af944..961c481412a4 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
@@ -99,7 +99,7 @@ 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.
@@ -114,7 +114,7 @@ SyncPoller, SqlServerInstanceInner> beginCrea
* 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.
@@ -133,7 +133,7 @@ SyncPoller, SqlServerInstanceInner> beginCrea
* 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.
@@ -148,7 +148,7 @@ SqlServerInstanceInner create(
* 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.
@@ -167,7 +167,7 @@ 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -180,7 +180,7 @@ 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.
@@ -195,7 +195,7 @@ 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -207,7 +207,7 @@ 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.
@@ -220,7 +220,7 @@ SyncPoller, Void> beginDelete(
* 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.
@@ -236,7 +236,7 @@ Response updateWithResponse(
* 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
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..040f024a5515
--- /dev/null
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/ActiveDirectoryConnectorResourceInner.java
@@ -0,0 +1,79 @@
+// 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.resourcemanager.azurearcdata.models.ActiveDirectoryConnectorProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Active directory connector resource. */
+@Fluent
+public final class ActiveDirectoryConnectorResourceInner extends ProxyResource {
+ /*
+ * null
+ */
+ @JsonProperty(value = "properties", required = true)
+ private ActiveDirectoryConnectorProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /** 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;
+ }
+
+ /**
+ * 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 ActiveDirectoryConnectorResourceInner"));
+ } else {
+ properties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(ActiveDirectoryConnectorResourceInner.class);
+}
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..17b7eedbd88c 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
@@ -29,7 +29,7 @@ public final class DataControllerResourceInner extends Resource {
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;
@@ -79,7 +79,7 @@ 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.
*/
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..6be4f37fc2cb
--- /dev/null
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/FailoverGroupResourceInner.java
@@ -0,0 +1,79 @@
+// 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.resourcemanager.azurearcdata.models.FailoverGroupProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** A failover group resource. */
+@Fluent
+public final class FailoverGroupResourceInner extends ProxyResource {
+ /*
+ * null
+ */
+ @JsonProperty(value = "properties", required = true)
+ private FailoverGroupProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /** 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;
+ }
+
+ /**
+ * 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 FailoverGroupResourceInner"));
+ } else {
+ properties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(FailoverGroupResourceInner.class);
+}
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..20211e35ae36
--- /dev/null
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/PostgresInstanceInner.java
@@ -0,0 +1,154 @@
+// 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.resourcemanager.azurearcdata.models.ExtendedLocation;
+import com.azure.resourcemanager.azurearcdata.models.PostgresInstanceProperties;
+import com.azure.resourcemanager.azurearcdata.models.PostgresInstanceSku;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** A Postgres Instance. */
+@Fluent
+public final class PostgresInstanceInner extends Resource {
+ /*
+ * The extendedLocation of the resource.
+ */
+ @JsonProperty(value = "extendedLocation")
+ private ExtendedLocation extendedLocation;
+
+ /*
+ * null
+ */
+ @JsonProperty(value = "properties", required = true)
+ private PostgresInstanceProperties properties;
+
+ /*
+ * Resource sku.
+ */
+ @JsonProperty(value = "sku")
+ private PostgresInstanceSku sku;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /** 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;
+ }
+
+ /** {@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
+ .logExceptionAsError(
+ 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);
+}
diff --git a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/SqlAvailabilityGroupDatabaseResourceInner.java b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/SqlAvailabilityGroupDatabaseResourceInner.java
new file mode 100644
index 000000000000..cdb4daef194f
--- /dev/null
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/SqlAvailabilityGroupDatabaseResourceInner.java
@@ -0,0 +1,95 @@
+// 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.resourcemanager.azurearcdata.models.SqlAvailabilityGroupMultiDatabaseReplicaResourceProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** Arc Sql Server Availability Group Database. */
+@Fluent
+public final class SqlAvailabilityGroupDatabaseResourceInner extends Resource {
+ /*
+ * Properties of Arc Sql Availability Group Multiple Database Replica
+ */
+ @JsonProperty(value = "properties", required = true)
+ private SqlAvailabilityGroupMultiDatabaseReplicaResourceProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /** Creates an instance of SqlAvailabilityGroupDatabaseResourceInner class. */
+ public SqlAvailabilityGroupDatabaseResourceInner() {
+ }
+
+ /**
+ * Get the properties property: Properties of Arc Sql Availability Group Multiple Database Replica.
+ *
+ * @return the properties value.
+ */
+ public SqlAvailabilityGroupMultiDatabaseReplicaResourceProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Properties of Arc Sql Availability Group Multiple Database Replica.
+ *
+ * @param properties the properties value to set.
+ * @return the SqlAvailabilityGroupDatabaseResourceInner object itself.
+ */
+ public SqlAvailabilityGroupDatabaseResourceInner withProperties(
+ SqlAvailabilityGroupMultiDatabaseReplicaResourceProperties 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;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public SqlAvailabilityGroupDatabaseResourceInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public SqlAvailabilityGroupDatabaseResourceInner 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
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property properties in model SqlAvailabilityGroupDatabaseResourceInner"));
+ } else {
+ properties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(SqlAvailabilityGroupDatabaseResourceInner.class);
+}
diff --git a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/SqlAvailabilityGroupInner.java b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/SqlAvailabilityGroupInner.java
new file mode 100644
index 000000000000..066200de2d39
--- /dev/null
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/SqlAvailabilityGroupInner.java
@@ -0,0 +1,86 @@
+// 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.resourcemanager.azurearcdata.models.SqlAvailabilityGroupProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** A SqlAvailabilityGroup. */
+@Fluent
+public final class SqlAvailabilityGroupInner extends Resource {
+ /*
+ * null
+ */
+ @JsonProperty(value = "properties")
+ private SqlAvailabilityGroupProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /** Creates an instance of SqlAvailabilityGroupInner class. */
+ public SqlAvailabilityGroupInner() {
+ }
+
+ /**
+ * Get the properties property: null.
+ *
+ * @return the properties value.
+ */
+ public SqlAvailabilityGroupProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: null.
+ *
+ * @param properties the properties value to set.
+ * @return the SqlAvailabilityGroupInner object itself.
+ */
+ public SqlAvailabilityGroupInner withProperties(SqlAvailabilityGroupProperties 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;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public SqlAvailabilityGroupInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public SqlAvailabilityGroupInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
diff --git a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/SqlAvailabilityGroupReplicaResourceInner.java b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/SqlAvailabilityGroupReplicaResourceInner.java
new file mode 100644
index 000000000000..2e6b15bc49e4
--- /dev/null
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/SqlAvailabilityGroupReplicaResourceInner.java
@@ -0,0 +1,95 @@
+// 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.resourcemanager.azurearcdata.models.SqlAvailabilityGroupReplicaResourceProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** Arc Sql Server Availability Group. */
+@Fluent
+public final class SqlAvailabilityGroupReplicaResourceInner extends Resource {
+ /*
+ * Properties of Arc Sql Availability Group Replica
+ */
+ @JsonProperty(value = "properties", required = true)
+ private SqlAvailabilityGroupReplicaResourceProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /** Creates an instance of SqlAvailabilityGroupReplicaResourceInner class. */
+ public SqlAvailabilityGroupReplicaResourceInner() {
+ }
+
+ /**
+ * Get the properties property: Properties of Arc Sql Availability Group Replica.
+ *
+ * @return the properties value.
+ */
+ public SqlAvailabilityGroupReplicaResourceProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Properties of Arc Sql Availability Group Replica.
+ *
+ * @param properties the properties value to set.
+ * @return the SqlAvailabilityGroupReplicaResourceInner object itself.
+ */
+ public SqlAvailabilityGroupReplicaResourceInner withProperties(
+ SqlAvailabilityGroupReplicaResourceProperties 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;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public SqlAvailabilityGroupReplicaResourceInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public SqlAvailabilityGroupReplicaResourceInner 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
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property properties in model SqlAvailabilityGroupReplicaResourceInner"));
+ } else {
+ properties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(SqlAvailabilityGroupReplicaResourceInner.class);
+}
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..8a61124095f7 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
@@ -36,7 +36,7 @@ public final class SqlManagedInstanceInner extends Resource {
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;
@@ -106,7 +106,7 @@ 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.
*/
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..107d7fe051d4
--- /dev/null
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/SqlServerAvailabilityGroupResourceInner.java
@@ -0,0 +1,95 @@
+// 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.resourcemanager.azurearcdata.models.SqlServerAvailabilityGroupResourceProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** Arc Sql Server Availability Group. */
+@Fluent
+public final class SqlServerAvailabilityGroupResourceInner extends Resource {
+ /*
+ * Properties of Arc Sql Server availability group
+ */
+ @JsonProperty(value = "properties", required = true)
+ private SqlServerAvailabilityGroupResourceProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /** 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;
+ }
+
+ /** {@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
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property properties in model SqlServerAvailabilityGroupResourceInner"));
+ } else {
+ properties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(SqlServerAvailabilityGroupResourceInner.class);
+}
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..454f43305d47
--- /dev/null
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/fluent/models/SqlServerDatabaseResourceInner.java
@@ -0,0 +1,94 @@
+// 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.resourcemanager.azurearcdata.models.SqlServerDatabaseResourceProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** Arc Sql Server database. */
+@Fluent
+public final class SqlServerDatabaseResourceInner extends Resource {
+ /*
+ * Properties of Arc Sql Server database
+ */
+ @JsonProperty(value = "properties", required = true)
+ private SqlServerDatabaseResourceProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /** 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;
+ }
+
+ /** {@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
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property properties in model SqlServerDatabaseResourceInner"));
+ } else {
+ properties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(SqlServerDatabaseResourceInner.class);
+}
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..58e589c096ca 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
@@ -21,7 +21,7 @@ public final class SqlServerInstanceInner extends Resource {
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;
@@ -51,7 +51,7 @@ 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.
*/
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..7aa76cbf5726
--- /dev/null
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/implementation/ActiveDirectoryConnectorResourceImpl.java
@@ -0,0 +1,122 @@
+// 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..52531f68911f
--- /dev/null
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/implementation/ActiveDirectoryConnectorsClientImpl.java
@@ -0,0 +1,1211 @@
+// 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> getWithResponseAsync(
+ 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
+ .get(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ dataControllerName,
+ activeDirectoryConnectorName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * 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 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> getWithResponseAsync(
+ 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
+ .get(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ dataControllerName,
+ activeDirectoryConnectorName,
+ this.client.getApiVersion(),
+ accept,
+ 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 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 getAsync(
+ String resourceGroupName, String dataControllerName, String activeDirectoryConnectorName) {
+ return getWithResponseAsync(resourceGroupName, dataControllerName, activeDirectoryConnectorName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * 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 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)
+ public Response getWithResponse(
+ String resourceGroupName, String dataControllerName, String activeDirectoryConnectorName, Context context) {
+ return getWithResponseAsync(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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ActiveDirectoryConnectorResourceInner get(
+ String resourceGroupName, String dataControllerName, String activeDirectoryConnectorName) {
+ return getWithResponse(resourceGroupName, dataControllerName, activeDirectoryConnectorName, Context.NONE)
+ .getValue();
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of active directory connectors along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of active directory connectors along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(
+ String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/implementation/ActiveDirectoryConnectorsImpl.java b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/implementation/ActiveDirectoryConnectorsImpl.java
new file mode 100644
index 000000000000..2fe937c8e39d
--- /dev/null
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/implementation/ActiveDirectoryConnectorsImpl.java
@@ -0,0 +1,214 @@
+// 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.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.azurearcdata.fluent.ActiveDirectoryConnectorsClient;
+import com.azure.resourcemanager.azurearcdata.fluent.models.ActiveDirectoryConnectorResourceInner;
+import com.azure.resourcemanager.azurearcdata.models.ActiveDirectoryConnectorResource;
+import com.azure.resourcemanager.azurearcdata.models.ActiveDirectoryConnectors;
+
+public final class ActiveDirectoryConnectorsImpl implements ActiveDirectoryConnectors {
+ private static final ClientLogger LOGGER = new ClientLogger(ActiveDirectoryConnectorsImpl.class);
+
+ private final ActiveDirectoryConnectorsClient innerClient;
+
+ private final com.azure.resourcemanager.azurearcdata.AzureArcDataManager serviceManager;
+
+ public ActiveDirectoryConnectorsImpl(
+ ActiveDirectoryConnectorsClient innerClient,
+ com.azure.resourcemanager.azurearcdata.AzureArcDataManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable list(String resourceGroupName, String dataControllerName) {
+ PagedIterable inner =
+ this.serviceClient().list(resourceGroupName, dataControllerName);
+ return Utils.mapPage(inner, inner1 -> new ActiveDirectoryConnectorResourceImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(
+ String resourceGroupName, String dataControllerName, Context context) {
+ PagedIterable inner =
+ this.serviceClient().list(resourceGroupName, dataControllerName, context);
+ return Utils.mapPage(inner, inner1 -> new ActiveDirectoryConnectorResourceImpl(inner1, this.manager()));
+ }
+
+ public void delete(String resourceGroupName, String dataControllerName, String activeDirectoryConnectorName) {
+ this.serviceClient().delete(resourceGroupName, dataControllerName, activeDirectoryConnectorName);
+ }
+
+ public void delete(
+ String resourceGroupName, String dataControllerName, String activeDirectoryConnectorName, Context context) {
+ this.serviceClient().delete(resourceGroupName, dataControllerName, activeDirectoryConnectorName, context);
+ }
+
+ public Response getWithResponse(
+ String resourceGroupName, String dataControllerName, String activeDirectoryConnectorName, Context context) {
+ Response inner =
+ this
+ .serviceClient()
+ .getWithResponse(resourceGroupName, dataControllerName, activeDirectoryConnectorName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new ActiveDirectoryConnectorResourceImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public ActiveDirectoryConnectorResource get(
+ String resourceGroupName, String dataControllerName, String activeDirectoryConnectorName) {
+ ActiveDirectoryConnectorResourceInner inner =
+ this.serviceClient().get(resourceGroupName, dataControllerName, activeDirectoryConnectorName);
+ if (inner != null) {
+ return new ActiveDirectoryConnectorResourceImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public ActiveDirectoryConnectorResource getById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String dataControllerName = Utils.getValueFromIdByName(id, "dataControllers");
+ if (dataControllerName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'dataControllers'.", id)));
+ }
+ String activeDirectoryConnectorName = Utils.getValueFromIdByName(id, "activeDirectoryConnectors");
+ if (activeDirectoryConnectorName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'activeDirectoryConnectors'.",
+ id)));
+ }
+ return this
+ .getWithResponse(resourceGroupName, dataControllerName, activeDirectoryConnectorName, Context.NONE)
+ .getValue();
+ }
+
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String dataControllerName = Utils.getValueFromIdByName(id, "dataControllers");
+ if (dataControllerName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'dataControllers'.", id)));
+ }
+ String activeDirectoryConnectorName = Utils.getValueFromIdByName(id, "activeDirectoryConnectors");
+ if (activeDirectoryConnectorName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'activeDirectoryConnectors'.",
+ id)));
+ }
+ return this.getWithResponse(resourceGroupName, dataControllerName, activeDirectoryConnectorName, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String dataControllerName = Utils.getValueFromIdByName(id, "dataControllers");
+ if (dataControllerName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'dataControllers'.", id)));
+ }
+ String activeDirectoryConnectorName = Utils.getValueFromIdByName(id, "activeDirectoryConnectors");
+ if (activeDirectoryConnectorName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'activeDirectoryConnectors'.",
+ id)));
+ }
+ this.delete(resourceGroupName, dataControllerName, activeDirectoryConnectorName, Context.NONE);
+ }
+
+ public void deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String dataControllerName = Utils.getValueFromIdByName(id, "dataControllers");
+ if (dataControllerName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'dataControllers'.", id)));
+ }
+ String activeDirectoryConnectorName = Utils.getValueFromIdByName(id, "activeDirectoryConnectors");
+ if (activeDirectoryConnectorName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'activeDirectoryConnectors'.",
+ id)));
+ }
+ this.delete(resourceGroupName, dataControllerName, activeDirectoryConnectorName, context);
+ }
+
+ private ActiveDirectoryConnectorsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.azurearcdata.AzureArcDataManager manager() {
+ return this.serviceManager;
+ }
+
+ public ActiveDirectoryConnectorResourceImpl define(String name) {
+ return new ActiveDirectoryConnectorResourceImpl(name, this.manager());
+ }
+}
diff --git a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/implementation/AzureArcDataManagementClientImpl.java b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/implementation/AzureArcDataManagementClientImpl.java
index d26c401a6926..64666d454a6e 100644
--- a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/implementation/AzureArcDataManagementClientImpl.java
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/implementation/AzureArcDataManagementClientImpl.java
@@ -22,10 +22,18 @@
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.serializer.SerializerAdapter;
import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.azurearcdata.fluent.ActiveDirectoryConnectorsClient;
import com.azure.resourcemanager.azurearcdata.fluent.AzureArcDataManagementClient;
import com.azure.resourcemanager.azurearcdata.fluent.DataControllersClient;
+import com.azure.resourcemanager.azurearcdata.fluent.FailoverGroupsClient;
import com.azure.resourcemanager.azurearcdata.fluent.OperationsClient;
+import com.azure.resourcemanager.azurearcdata.fluent.PostgresInstancesClient;
+import com.azure.resourcemanager.azurearcdata.fluent.SqlAvailabilityGroupDatabasesClient;
+import com.azure.resourcemanager.azurearcdata.fluent.SqlAvailabilityGroupReplicasClient;
+import com.azure.resourcemanager.azurearcdata.fluent.SqlAvailabilityGroupsClient;
import com.azure.resourcemanager.azurearcdata.fluent.SqlManagedInstancesClient;
+import com.azure.resourcemanager.azurearcdata.fluent.SqlServerAvailabilityGroupsClient;
+import com.azure.resourcemanager.azurearcdata.fluent.SqlServerDatabasesClient;
import com.azure.resourcemanager.azurearcdata.fluent.SqlServerInstancesClient;
import java.io.IOException;
import java.lang.reflect.Type;
@@ -135,6 +143,18 @@ public SqlManagedInstancesClient getSqlManagedInstances() {
return this.sqlManagedInstances;
}
+ /** The FailoverGroupsClient object to access its operations. */
+ private final FailoverGroupsClient failoverGroups;
+
+ /**
+ * Gets the FailoverGroupsClient object to access its operations.
+ *
+ * @return the FailoverGroupsClient object.
+ */
+ public FailoverGroupsClient getFailoverGroups() {
+ return this.failoverGroups;
+ }
+
/** The SqlServerInstancesClient object to access its operations. */
private final SqlServerInstancesClient sqlServerInstances;
@@ -147,6 +167,18 @@ public SqlServerInstancesClient getSqlServerInstances() {
return this.sqlServerInstances;
}
+ /** The SqlAvailabilityGroupsClient object to access its operations. */
+ private final SqlAvailabilityGroupsClient sqlAvailabilityGroups;
+
+ /**
+ * Gets the SqlAvailabilityGroupsClient object to access its operations.
+ *
+ * @return the SqlAvailabilityGroupsClient object.
+ */
+ public SqlAvailabilityGroupsClient getSqlAvailabilityGroups() {
+ return this.sqlAvailabilityGroups;
+ }
+
/** The DataControllersClient object to access its operations. */
private final DataControllersClient dataControllers;
@@ -159,6 +191,78 @@ public DataControllersClient getDataControllers() {
return this.dataControllers;
}
+ /** The ActiveDirectoryConnectorsClient object to access its operations. */
+ private final ActiveDirectoryConnectorsClient activeDirectoryConnectors;
+
+ /**
+ * Gets the ActiveDirectoryConnectorsClient object to access its operations.
+ *
+ * @return the ActiveDirectoryConnectorsClient object.
+ */
+ public ActiveDirectoryConnectorsClient getActiveDirectoryConnectors() {
+ return this.activeDirectoryConnectors;
+ }
+
+ /** The PostgresInstancesClient object to access its operations. */
+ private final PostgresInstancesClient postgresInstances;
+
+ /**
+ * Gets the PostgresInstancesClient object to access its operations.
+ *
+ * @return the PostgresInstancesClient object.
+ */
+ public PostgresInstancesClient getPostgresInstances() {
+ return this.postgresInstances;
+ }
+
+ /** The SqlServerDatabasesClient object to access its operations. */
+ private final SqlServerDatabasesClient sqlServerDatabases;
+
+ /**
+ * Gets the SqlServerDatabasesClient object to access its operations.
+ *
+ * @return the SqlServerDatabasesClient object.
+ */
+ public SqlServerDatabasesClient getSqlServerDatabases() {
+ return this.sqlServerDatabases;
+ }
+
+ /** The SqlServerAvailabilityGroupsClient object to access its operations. */
+ private final SqlServerAvailabilityGroupsClient sqlServerAvailabilityGroups;
+
+ /**
+ * Gets the SqlServerAvailabilityGroupsClient object to access its operations.
+ *
+ * @return the SqlServerAvailabilityGroupsClient object.
+ */
+ public SqlServerAvailabilityGroupsClient getSqlServerAvailabilityGroups() {
+ return this.sqlServerAvailabilityGroups;
+ }
+
+ /** The SqlAvailabilityGroupReplicasClient object to access its operations. */
+ private final SqlAvailabilityGroupReplicasClient sqlAvailabilityGroupReplicas;
+
+ /**
+ * Gets the SqlAvailabilityGroupReplicasClient object to access its operations.
+ *
+ * @return the SqlAvailabilityGroupReplicasClient object.
+ */
+ public SqlAvailabilityGroupReplicasClient getSqlAvailabilityGroupReplicas() {
+ return this.sqlAvailabilityGroupReplicas;
+ }
+
+ /** The SqlAvailabilityGroupDatabasesClient object to access its operations. */
+ private final SqlAvailabilityGroupDatabasesClient sqlAvailabilityGroupDatabases;
+
+ /**
+ * Gets the SqlAvailabilityGroupDatabasesClient object to access its operations.
+ *
+ * @return the SqlAvailabilityGroupDatabasesClient object.
+ */
+ public SqlAvailabilityGroupDatabasesClient getSqlAvailabilityGroupDatabases() {
+ return this.sqlAvailabilityGroupDatabases;
+ }
+
/**
* Initializes an instance of AzureArcDataManagementClient client.
*
@@ -181,11 +285,19 @@ public DataControllersClient getDataControllers() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2021-08-01";
+ this.apiVersion = "2023-03-15-preview";
this.operations = new OperationsClientImpl(this);
this.sqlManagedInstances = new SqlManagedInstancesClientImpl(this);
+ this.failoverGroups = new FailoverGroupsClientImpl(this);
this.sqlServerInstances = new SqlServerInstancesClientImpl(this);
+ this.sqlAvailabilityGroups = new SqlAvailabilityGroupsClientImpl(this);
this.dataControllers = new DataControllersClientImpl(this);
+ this.activeDirectoryConnectors = new ActiveDirectoryConnectorsClientImpl(this);
+ this.postgresInstances = new PostgresInstancesClientImpl(this);
+ this.sqlServerDatabases = new SqlServerDatabasesClientImpl(this);
+ this.sqlServerAvailabilityGroups = new SqlServerAvailabilityGroupsClientImpl(this);
+ this.sqlAvailabilityGroupReplicas = new SqlAvailabilityGroupReplicasClientImpl(this);
+ this.sqlAvailabilityGroupDatabases = new SqlAvailabilityGroupDatabasesClientImpl(this);
}
/**
diff --git a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/implementation/DataControllerResourceImpl.java b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/implementation/DataControllerResourceImpl.java
index 0316fb5096d8..3c4b20abbc5c 100644
--- a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/implementation/DataControllerResourceImpl.java
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/implementation/DataControllerResourceImpl.java
@@ -123,9 +123,7 @@ public DataControllerResource apply() {
serviceManager
.serviceClient()
.getDataControllers()
- .patchDataControllerWithResponse(
- resourceGroupName, dataControllerName, updateDataControllerResource, Context.NONE)
- .getValue();
+ .patchDataController(resourceGroupName, dataControllerName, updateDataControllerResource, Context.NONE);
return this;
}
@@ -134,9 +132,7 @@ public DataControllerResource apply(Context context) {
serviceManager
.serviceClient()
.getDataControllers()
- .patchDataControllerWithResponse(
- resourceGroupName, dataControllerName, updateDataControllerResource, context)
- .getValue();
+ .patchDataController(resourceGroupName, dataControllerName, updateDataControllerResource, context);
return this;
}
@@ -180,8 +176,13 @@ public DataControllerResourceImpl withRegion(String location) {
}
public DataControllerResourceImpl withProperties(DataControllerProperties properties) {
- this.innerModel().withProperties(properties);
- return this;
+ if (isInCreateMode()) {
+ this.innerModel().withProperties(properties);
+ return this;
+ } else {
+ this.updateDataControllerResource.withProperties(properties);
+ return this;
+ }
}
public DataControllerResourceImpl withTags(Map tags) {
diff --git a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/implementation/DataControllersClientImpl.java b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/implementation/DataControllersClientImpl.java
index 460100bd7f40..418dfefd6839 100644
--- a/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/implementation/DataControllersClientImpl.java
+++ b/sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/implementation/DataControllersClientImpl.java
@@ -141,9 +141,9 @@ Mono> getByResourceGroup(
@Patch(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureArcData"
+ "/dataControllers/{dataControllerName}")
- @ExpectedResponses({200})
+ @ExpectedResponses({200, 202})
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> patchDataController(
+ Mono>> patchDataController(
@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@@ -179,7 +179,7 @@ Mono> listInGroupNext(
*
* @throws ManagementException 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 body along with {@link PagedResponse} on successful completion of {@link Mono}.
+ * @return a list of data controllers along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync() {
@@ -225,7 +225,7 @@ private Mono> listSinglePageAsync() {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException 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 body along with {@link PagedResponse} on successful completion of {@link Mono}.
+ * @return a list of data controllers along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(Context context) {
@@ -266,7 +266,7 @@ private Mono> listSinglePageAsync(Con
*
* @throws ManagementException 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 PagedFlux}.
+ * @return a list of data controllers as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync() {
@@ -281,7 +281,7 @@ private PagedFlux listAsync() {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException 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 PagedFlux}.
+ * @return a list of data controllers as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(Context context) {
@@ -294,7 +294,7 @@ private PagedFlux listAsync(Context context) {
*
* @throws ManagementException 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)
public PagedIterable list() {
@@ -308,7 +308,7 @@ public PagedIterable list() {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException 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)
public PagedIterable list(Context context) {
@@ -322,7 +322,7 @@ public PagedIterable list(Context context) {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException 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 body along with {@link PagedResponse} on successful completion of {@link Mono}.
+ * @return a list of data controllers along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupSinglePageAsync(
@@ -375,7 +375,7 @@ private Mono> listByResourceGroupSing
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException 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 body along with {@link PagedResponse} on successful completion of {@link Mono}.
+ * @return a list of data controllers along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupSinglePageAsync(
@@ -424,7 +424,7 @@ private Mono> listByResourceGroupSing
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException 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 PagedFlux}.
+ * @return a list of data controllers as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByResourceGroupAsync(String resourceGroupName) {
@@ -441,7 +441,7 @@ private PagedFlux listByResourceGroupAsync(String r
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException 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 PagedFlux}.
+ * @return a list of data controllers as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) {
@@ -457,7 +457,7 @@ private PagedFlux listByResourceGroupAsync(String r
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException 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)
public PagedIterable listByResourceGroup(String resourceGroupName) {
@@ -472,7 +472,7 @@ public PagedIterable listByResourceGroup(String res
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException 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)
public PagedIterable listByResourceGroup(String resourceGroupName, Context context) {
@@ -483,7 +483,7 @@ public PagedIterable listByResourceGroup(String res
* 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 ManagementException thrown if the request is rejected by server.
@@ -541,7 +541,7 @@ private Mono>> putDataControllerWithResponseAsync(
* 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.
@@ -600,7 +600,7 @@ private Mono>> putDataControllerWithResponseAsync(
* 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 ManagementException thrown if the request is rejected by server.
@@ -627,7 +627,7 @@ private Mono>> putDataControllerWithResponseAsync(
* 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.
@@ -659,7 +659,7 @@ private Mono>> putDataControllerWithResponseAsync(
* 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 ManagementException thrown if the request is rejected by server.
@@ -678,7 +678,7 @@ public SyncPoller, DataControllerResourc
* 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.
@@ -701,7 +701,7 @@ public SyncPoller, DataControllerResourc
* 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 ManagementException thrown if the request is rejected by server.
@@ -720,7 +720,7 @@ private Mono putDataControllerAsync(
* 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.
@@ -743,7 +743,7 @@ private Mono putDataControllerAsync(
* 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 ManagementException thrown if the request is rejected by server.
@@ -760,7 +760,7 @@ public DataControllerResourceInner putDataController(
* 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.
@@ -781,7 +781,7 @@ public 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -830,7 +830,7 @@ private Mono>> deleteWithResponseAsync(
* 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 ManagementException thrown if the request is rejected by server.
@@ -877,7 +877,7 @@ private Mono>> deleteWithResponseAsync(
* 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 ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -896,7 +896,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup
* 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 ManagementException thrown if the request is rejected by server.
@@ -917,7 +917,7 @@ private PollerFlux, Void> beginDeleteAsync(
* 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 ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -932,7 +932,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName,
* 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 ManagementException thrown if the request is rejected by server.
@@ -949,7 +949,7 @@ public 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -966,7 +966,7 @@ private Mono deleteAsync(String resourceGroupName, String dataControllerNa
* 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 ManagementException thrown if the request is rejected by server.
@@ -984,7 +984,7 @@ private Mono deleteAsync(String resourceGroupName, String dataControllerNa
* 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 ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -998,7 +998,7 @@ public void delete(String resourceGroupName, String dataControllerName) {
* 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 ManagementException thrown if the request is rejected by server.
@@ -1013,7 +1013,7 @@ public void delete(String resourceGroupName, String dataControllerName, 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 ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -1062,7 +1062,7 @@ private Mono> getByResourceGroupWithRespon
* 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 ManagementException thrown if the request is rejected by server.
@@ -1109,7 +1109,7 @@ private Mono> getByResourceGroupWithRespon
* 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 ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -1126,7 +1126,7 @@ private Mono getByResourceGroupAsync(
* 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 ManagementException thrown if the request is rejected by server.
@@ -1143,7 +1143,7 @@ public Response getByResourceGroupWithResponse(
* 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 ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -1158,7 +1158,7 @@ public DataControllerResourceInner getByResourceGroup(String resourceGroupName,
* 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 ManagementException thrown if the request is rejected by server.
@@ -1166,7 +1166,7 @@ public DataControllerResourceInner getByResourceGroup(String resourceGroupName,
* @return data controller resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> patchDataControllerWithResponseAsync(
+ private Mono>> patchDataControllerWithResponseAsync(
String resourceGroupName, String dataControllerName, DataControllerUpdate dataControllerResource) {
if (this.client.getEndpoint() == null) {
return Mono
@@ -1216,7 +1216,7 @@ private Mono> patchDataControllerWithRespo
* 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.
@@ -1225,7 +1225,7 @@ private Mono> patchDataControllerWithRespo
* @return data controller resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> patchDataControllerWithResponseAsync(
+ private Mono>> patchDataControllerWithResponseAsync(
String resourceGroupName,
String dataControllerName,
DataControllerUpdate dataControllerResource,
@@ -1275,7 +1275,109 @@ private Mono> patchDataControllerWithRespo
* 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 ManagementException 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 data controller resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, DataControllerResourceInner>
+ beginPatchDataControllerAsync(
+ String resourceGroupName, String dataControllerName, DataControllerUpdate dataControllerResource) {
+ Mono