diff --git a/sdk/synapse/azure-resourcemanager-synapse/CHANGELOG.md b/sdk/synapse/azure-resourcemanager-synapse/CHANGELOG.md
index e3ef0cf97946..e0a917fd723e 100644
--- a/sdk/synapse/azure-resourcemanager-synapse/CHANGELOG.md
+++ b/sdk/synapse/azure-resourcemanager-synapse/CHANGELOG.md
@@ -1,6 +1,8 @@
# Release History
-## 1.0.0-beta.3 (Unreleased)
+## 1.0.0-beta.1 (2021-09-30)
+
+- Azure Resource Manager Synapse client library for Java. This package contains Microsoft Azure SDK for Synapse Management SDK. Azure Synapse Analytics Management Client. Package tag package-composite-v2. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Features Added
diff --git a/sdk/synapse/azure-resourcemanager-synapse/README.md b/sdk/synapse/azure-resourcemanager-synapse/README.md
index 288240437133..027ee23be203 100644
--- a/sdk/synapse/azure-resourcemanager-synapse/README.md
+++ b/sdk/synapse/azure-resourcemanager-synapse/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager Synapse client library for Java.
-This package contains Microsoft Azure SDK for Synapse Management SDK. Azure Synapse Analytics Management Client. Package tag package-composite-v1. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for Synapse Management SDK. Azure Synapse Analytics Management Client. Package tag package-composite-v2. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanagerazure-resourcemanager-synapse
- 1.0.0-beta.2
+ 1.0.0-beta.3
```
[//]: # ({x-version-update-end})
@@ -74,7 +74,6 @@ See [API design][design] for general introduction on design and key concepts on
## Examples
-[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/synapse/azure-resourcemanager-synapse/SAMPLE.md)
## Troubleshooting
diff --git a/sdk/synapse/azure-resourcemanager-synapse/pom.xml b/sdk/synapse/azure-resourcemanager-synapse/pom.xml
index a288352318b6..67431ae66110 100644
--- a/sdk/synapse/azure-resourcemanager-synapse/pom.xml
+++ b/sdk/synapse/azure-resourcemanager-synapse/pom.xml
@@ -13,7 +13,7 @@
jarMicrosoft Azure SDK for Synapse Management
- This package contains Microsoft Azure SDK for Synapse Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Synapse Analytics Management Client. Package tag package-composite-v1.
+ This package contains Microsoft Azure SDK for Synapse Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Synapse Analytics Management Client. Package tag package-composite-v2.https://github.com/Azure/azure-sdk-for-java
diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/SynapseManager.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/SynapseManager.java
index 6a0c4e7b3918..139339b375ba 100644
--- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/SynapseManager.java
+++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/SynapseManager.java
@@ -37,6 +37,15 @@
import com.azure.resourcemanager.synapse.implementation.IntegrationRuntimesImpl;
import com.azure.resourcemanager.synapse.implementation.IpFirewallRulesImpl;
import com.azure.resourcemanager.synapse.implementation.KeysImpl;
+import com.azure.resourcemanager.synapse.implementation.KustoOperationsImpl;
+import com.azure.resourcemanager.synapse.implementation.KustoPoolAttachedDatabaseConfigurationsImpl;
+import com.azure.resourcemanager.synapse.implementation.KustoPoolChildResourcesImpl;
+import com.azure.resourcemanager.synapse.implementation.KustoPoolDataConnectionsImpl;
+import com.azure.resourcemanager.synapse.implementation.KustoPoolDatabasePrincipalAssignmentsImpl;
+import com.azure.resourcemanager.synapse.implementation.KustoPoolDatabasesImpl;
+import com.azure.resourcemanager.synapse.implementation.KustoPoolPrincipalAssignmentsImpl;
+import com.azure.resourcemanager.synapse.implementation.KustoPoolsImpl;
+import com.azure.resourcemanager.synapse.implementation.KustoPoolsOperationsImpl;
import com.azure.resourcemanager.synapse.implementation.LibrariesImpl;
import com.azure.resourcemanager.synapse.implementation.LibrariesOperationsImpl;
import com.azure.resourcemanager.synapse.implementation.OperationsImpl;
@@ -102,6 +111,15 @@
import com.azure.resourcemanager.synapse.models.IntegrationRuntimes;
import com.azure.resourcemanager.synapse.models.IpFirewallRules;
import com.azure.resourcemanager.synapse.models.Keys;
+import com.azure.resourcemanager.synapse.models.KustoOperations;
+import com.azure.resourcemanager.synapse.models.KustoPoolAttachedDatabaseConfigurations;
+import com.azure.resourcemanager.synapse.models.KustoPoolChildResources;
+import com.azure.resourcemanager.synapse.models.KustoPoolDataConnections;
+import com.azure.resourcemanager.synapse.models.KustoPoolDatabasePrincipalAssignments;
+import com.azure.resourcemanager.synapse.models.KustoPoolDatabases;
+import com.azure.resourcemanager.synapse.models.KustoPoolPrincipalAssignments;
+import com.azure.resourcemanager.synapse.models.KustoPools;
+import com.azure.resourcemanager.synapse.models.KustoPoolsOperations;
import com.azure.resourcemanager.synapse.models.Libraries;
import com.azure.resourcemanager.synapse.models.LibrariesOperations;
import com.azure.resourcemanager.synapse.models.Operations;
@@ -286,6 +304,24 @@ public final class SynapseManager {
private SparkConfigurationsOperations sparkConfigurationsOperations;
+ private KustoOperations kustoOperations;
+
+ private KustoPools kustoPools;
+
+ private KustoPoolsOperations kustoPoolsOperations;
+
+ private KustoPoolChildResources kustoPoolChildResources;
+
+ private KustoPoolAttachedDatabaseConfigurations kustoPoolAttachedDatabaseConfigurations;
+
+ private KustoPoolDatabases kustoPoolDatabases;
+
+ private KustoPoolDataConnections kustoPoolDataConnections;
+
+ private KustoPoolPrincipalAssignments kustoPoolPrincipalAssignments;
+
+ private KustoPoolDatabasePrincipalAssignments kustoPoolDatabasePrincipalAssignments;
+
private final SynapseManagementClient clientObject;
private SynapseManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -422,7 +458,7 @@ public SynapseManager authenticate(TokenCredential credential, AzureProfile prof
.append("-")
.append("com.azure.resourcemanager.synapse")
.append("/")
- .append("1.0.0-beta.2");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
@@ -1028,6 +1064,85 @@ public SparkConfigurationsOperations sparkConfigurationsOperations() {
return sparkConfigurationsOperations;
}
+ /** @return Resource collection API of KustoOperations. */
+ public KustoOperations kustoOperations() {
+ if (this.kustoOperations == null) {
+ this.kustoOperations = new KustoOperationsImpl(clientObject.getKustoOperations(), this);
+ }
+ return kustoOperations;
+ }
+
+ /** @return Resource collection API of KustoPools. */
+ public KustoPools kustoPools() {
+ if (this.kustoPools == null) {
+ this.kustoPools = new KustoPoolsImpl(clientObject.getKustoPools(), this);
+ }
+ return kustoPools;
+ }
+
+ /** @return Resource collection API of KustoPoolsOperations. */
+ public KustoPoolsOperations kustoPoolsOperations() {
+ if (this.kustoPoolsOperations == null) {
+ this.kustoPoolsOperations = new KustoPoolsOperationsImpl(clientObject.getKustoPoolsOperations(), this);
+ }
+ return kustoPoolsOperations;
+ }
+
+ /** @return Resource collection API of KustoPoolChildResources. */
+ public KustoPoolChildResources kustoPoolChildResources() {
+ if (this.kustoPoolChildResources == null) {
+ this.kustoPoolChildResources =
+ new KustoPoolChildResourcesImpl(clientObject.getKustoPoolChildResources(), this);
+ }
+ return kustoPoolChildResources;
+ }
+
+ /** @return Resource collection API of KustoPoolAttachedDatabaseConfigurations. */
+ public KustoPoolAttachedDatabaseConfigurations kustoPoolAttachedDatabaseConfigurations() {
+ if (this.kustoPoolAttachedDatabaseConfigurations == null) {
+ this.kustoPoolAttachedDatabaseConfigurations =
+ new KustoPoolAttachedDatabaseConfigurationsImpl(
+ clientObject.getKustoPoolAttachedDatabaseConfigurations(), this);
+ }
+ return kustoPoolAttachedDatabaseConfigurations;
+ }
+
+ /** @return Resource collection API of KustoPoolDatabases. */
+ public KustoPoolDatabases kustoPoolDatabases() {
+ if (this.kustoPoolDatabases == null) {
+ this.kustoPoolDatabases = new KustoPoolDatabasesImpl(clientObject.getKustoPoolDatabases(), this);
+ }
+ return kustoPoolDatabases;
+ }
+
+ /** @return Resource collection API of KustoPoolDataConnections. */
+ public KustoPoolDataConnections kustoPoolDataConnections() {
+ if (this.kustoPoolDataConnections == null) {
+ this.kustoPoolDataConnections =
+ new KustoPoolDataConnectionsImpl(clientObject.getKustoPoolDataConnections(), this);
+ }
+ return kustoPoolDataConnections;
+ }
+
+ /** @return Resource collection API of KustoPoolPrincipalAssignments. */
+ public KustoPoolPrincipalAssignments kustoPoolPrincipalAssignments() {
+ if (this.kustoPoolPrincipalAssignments == null) {
+ this.kustoPoolPrincipalAssignments =
+ new KustoPoolPrincipalAssignmentsImpl(clientObject.getKustoPoolPrincipalAssignments(), this);
+ }
+ return kustoPoolPrincipalAssignments;
+ }
+
+ /** @return Resource collection API of KustoPoolDatabasePrincipalAssignments. */
+ public KustoPoolDatabasePrincipalAssignments kustoPoolDatabasePrincipalAssignments() {
+ if (this.kustoPoolDatabasePrincipalAssignments == null) {
+ this.kustoPoolDatabasePrincipalAssignments =
+ new KustoPoolDatabasePrincipalAssignmentsImpl(
+ clientObject.getKustoPoolDatabasePrincipalAssignments(), this);
+ }
+ return kustoPoolDatabasePrincipalAssignments;
+ }
+
/**
* @return Wrapped service client SynapseManagementClient providing direct access to the underlying auto-generated
* API implementation, based on Azure REST API.
diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoOperationsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoOperationsClient.java
new file mode 100644
index 000000000000..9a791f505217
--- /dev/null
+++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoOperationsClient.java
@@ -0,0 +1,36 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.synapse.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.synapse.fluent.models.OperationInner;
+
+/** An instance of this class provides access to all the operations defined in KustoOperationsClient. */
+public interface KustoOperationsClient {
+ /**
+ * Lists available operations for the Kusto sub-resources inside Microsoft.Synapse provider.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to list REST API operations.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists available operations for the Kusto sub-resources inside Microsoft.Synapse provider.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to list REST API operations.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolAttachedDatabaseConfigurationsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolAttachedDatabaseConfigurationsClient.java
new file mode 100644
index 000000000000..3043f891b595
--- /dev/null
+++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolAttachedDatabaseConfigurationsClient.java
@@ -0,0 +1,248 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.synapse.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.synapse.fluent.models.AttachedDatabaseConfigurationInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in
+ * KustoPoolAttachedDatabaseConfigurationsClient.
+ */
+public interface KustoPoolAttachedDatabaseConfigurationsClient {
+ /**
+ * Returns the list of attached database configurations of the given Kusto Pool.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list attached database configurations operation response.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByKustoPool(
+ String workspaceName, String kustoPoolName, String resourceGroupName);
+
+ /**
+ * Returns the list of attached database configurations of the given Kusto Pool.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list attached database configurations operation response.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByKustoPool(
+ String workspaceName, String kustoPoolName, String resourceGroupName, Context context);
+
+ /**
+ * Returns an attached database configuration.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param attachedDatabaseConfigurationName The name of the attached database configuration.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return class representing an attached database configuration.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AttachedDatabaseConfigurationInner get(
+ String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, String resourceGroupName);
+
+ /**
+ * Returns an attached database configuration.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param attachedDatabaseConfigurationName The name of the attached database configuration.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return class representing an attached database configuration.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String workspaceName,
+ String kustoPoolName,
+ String attachedDatabaseConfigurationName,
+ String resourceGroupName,
+ Context context);
+
+ /**
+ * Creates or updates an attached database configuration.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param attachedDatabaseConfigurationName The name of the attached database configuration.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param parameters The database parameters supplied to the CreateOrUpdate 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 class representing an attached database configuration.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, AttachedDatabaseConfigurationInner> beginCreateOrUpdate(
+ String workspaceName,
+ String kustoPoolName,
+ String attachedDatabaseConfigurationName,
+ String resourceGroupName,
+ AttachedDatabaseConfigurationInner parameters);
+
+ /**
+ * Creates or updates an attached database configuration.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param attachedDatabaseConfigurationName The name of the attached database configuration.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param parameters The database parameters supplied to the CreateOrUpdate operation.
+ * @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 class representing an attached database configuration.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, AttachedDatabaseConfigurationInner> beginCreateOrUpdate(
+ String workspaceName,
+ String kustoPoolName,
+ String attachedDatabaseConfigurationName,
+ String resourceGroupName,
+ AttachedDatabaseConfigurationInner parameters,
+ Context context);
+
+ /**
+ * Creates or updates an attached database configuration.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param attachedDatabaseConfigurationName The name of the attached database configuration.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param parameters The database parameters supplied to the CreateOrUpdate 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 class representing an attached database configuration.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AttachedDatabaseConfigurationInner createOrUpdate(
+ String workspaceName,
+ String kustoPoolName,
+ String attachedDatabaseConfigurationName,
+ String resourceGroupName,
+ AttachedDatabaseConfigurationInner parameters);
+
+ /**
+ * Creates or updates an attached database configuration.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param attachedDatabaseConfigurationName The name of the attached database configuration.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param parameters The database parameters supplied to the CreateOrUpdate operation.
+ * @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 class representing an attached database configuration.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AttachedDatabaseConfigurationInner createOrUpdate(
+ String workspaceName,
+ String kustoPoolName,
+ String attachedDatabaseConfigurationName,
+ String resourceGroupName,
+ AttachedDatabaseConfigurationInner parameters,
+ Context context);
+
+ /**
+ * Deletes the attached database configuration with the given name.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param attachedDatabaseConfigurationName The name of the attached database configuration.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, String resourceGroupName);
+
+ /**
+ * Deletes the attached database configuration with the given name.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param attachedDatabaseConfigurationName The name of the attached database configuration.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String workspaceName,
+ String kustoPoolName,
+ String attachedDatabaseConfigurationName,
+ String resourceGroupName,
+ Context context);
+
+ /**
+ * Deletes the attached database configuration with the given name.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param attachedDatabaseConfigurationName The name of the attached database configuration.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(
+ String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, String resourceGroupName);
+
+ /**
+ * Deletes the attached database configuration with the given name.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param attachedDatabaseConfigurationName The name of the attached database configuration.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(
+ String workspaceName,
+ String kustoPoolName,
+ String attachedDatabaseConfigurationName,
+ String resourceGroupName,
+ Context context);
+}
diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolChildResourcesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolChildResourcesClient.java
new file mode 100644
index 000000000000..006cc76935a5
--- /dev/null
+++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolChildResourcesClient.java
@@ -0,0 +1,52 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.synapse.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.synapse.fluent.models.CheckNameResultInner;
+import com.azure.resourcemanager.synapse.models.DatabaseCheckNameRequest;
+
+/** An instance of this class provides access to all the operations defined in KustoPoolChildResourcesClient. */
+public interface KustoPoolChildResourcesClient {
+ /**
+ * Checks that the Kusto Pool child resource name is valid and is not already in use.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceName The name of the Kusto Pool child resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the result returned from a check name availability request.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CheckNameResultInner checkNameAvailability(
+ String workspaceName, String kustoPoolName, String resourceGroupName, DatabaseCheckNameRequest resourceName);
+
+ /**
+ * Checks that the Kusto Pool child resource name is valid and is not already in use.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceName The name of the Kusto Pool child resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the result returned from a check name availability request.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response checkNameAvailabilityWithResponse(
+ String workspaceName,
+ String kustoPoolName,
+ String resourceGroupName,
+ DatabaseCheckNameRequest resourceName,
+ Context context);
+}
diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDataConnectionsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDataConnectionsClient.java
new file mode 100644
index 000000000000..a46940c870e4
--- /dev/null
+++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDataConnectionsClient.java
@@ -0,0 +1,510 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.synapse.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.synapse.fluent.models.CheckNameResultInner;
+import com.azure.resourcemanager.synapse.fluent.models.DataConnectionInner;
+import com.azure.resourcemanager.synapse.fluent.models.DataConnectionValidationInner;
+import com.azure.resourcemanager.synapse.fluent.models.DataConnectionValidationListResultInner;
+import com.azure.resourcemanager.synapse.models.DataConnectionCheckNameRequest;
+
+/** An instance of this class provides access to all the operations defined in KustoPoolDataConnectionsClient. */
+public interface KustoPoolDataConnectionsClient {
+ /**
+ * Checks that the data connection name is valid and is not already in use.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param dataConnectionName The name of the data connection.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the result returned from a check name availability request.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CheckNameResultInner checkNameAvailability(
+ String resourceGroupName,
+ String workspaceName,
+ String kustoPoolName,
+ String databaseName,
+ DataConnectionCheckNameRequest dataConnectionName);
+
+ /**
+ * Checks that the data connection name is valid and is not already in use.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param dataConnectionName The name of the data connection.
+ * @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 result returned from a check name availability request.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response checkNameAvailabilityWithResponse(
+ String resourceGroupName,
+ String workspaceName,
+ String kustoPoolName,
+ String databaseName,
+ DataConnectionCheckNameRequest dataConnectionName,
+ Context context);
+
+ /**
+ * Checks that the data connection parameters are valid.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param parameters The data connection parameters supplied to the CreateOrUpdate operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list Kusto data connection validation result.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, DataConnectionValidationListResultInner>
+ beginDataConnectionValidation(
+ String resourceGroupName,
+ String workspaceName,
+ String kustoPoolName,
+ String databaseName,
+ DataConnectionValidationInner parameters);
+
+ /**
+ * Checks that the data connection parameters are valid.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param parameters The data connection parameters supplied to the CreateOrUpdate operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list Kusto data connection validation result.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, DataConnectionValidationListResultInner>
+ beginDataConnectionValidation(
+ String resourceGroupName,
+ String workspaceName,
+ String kustoPoolName,
+ String databaseName,
+ DataConnectionValidationInner parameters,
+ Context context);
+
+ /**
+ * Checks that the data connection parameters are valid.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param parameters The data connection parameters supplied to the CreateOrUpdate operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list Kusto data connection validation result.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DataConnectionValidationListResultInner dataConnectionValidation(
+ String resourceGroupName,
+ String workspaceName,
+ String kustoPoolName,
+ String databaseName,
+ DataConnectionValidationInner parameters);
+
+ /**
+ * Checks that the data connection parameters are valid.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param parameters The data connection parameters supplied to the CreateOrUpdate operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list Kusto data connection validation result.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DataConnectionValidationListResultInner dataConnectionValidation(
+ String resourceGroupName,
+ String workspaceName,
+ String kustoPoolName,
+ String databaseName,
+ DataConnectionValidationInner parameters,
+ Context context);
+
+ /**
+ * Returns the list of data connections of the given Kusto pool database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list Kusto data connections operation response.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByDatabase(
+ String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName);
+
+ /**
+ * Returns the list of data connections of the given Kusto pool database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list Kusto data connections operation response.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByDatabase(
+ String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, Context context);
+
+ /**
+ * Returns a data connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param dataConnectionName The name of the data connection.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return class representing a data connection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DataConnectionInner get(
+ String resourceGroupName,
+ String workspaceName,
+ String kustoPoolName,
+ String databaseName,
+ String dataConnectionName);
+
+ /**
+ * Returns a data connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param dataConnectionName The name of the data connection.
+ * @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 class representing a data connection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName,
+ String workspaceName,
+ String kustoPoolName,
+ String databaseName,
+ String dataConnectionName,
+ Context context);
+
+ /**
+ * Creates or updates a data connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param dataConnectionName The name of the data connection.
+ * @param parameters The data connection parameters supplied to the CreateOrUpdate 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 class representing a data connection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, DataConnectionInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String workspaceName,
+ String kustoPoolName,
+ String databaseName,
+ String dataConnectionName,
+ DataConnectionInner parameters);
+
+ /**
+ * Creates or updates a data connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param dataConnectionName The name of the data connection.
+ * @param parameters The data connection parameters supplied to the CreateOrUpdate operation.
+ * @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 class representing a data connection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, DataConnectionInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String workspaceName,
+ String kustoPoolName,
+ String databaseName,
+ String dataConnectionName,
+ DataConnectionInner parameters,
+ Context context);
+
+ /**
+ * Creates or updates a data connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param dataConnectionName The name of the data connection.
+ * @param parameters The data connection parameters supplied to the CreateOrUpdate 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 class representing a data connection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DataConnectionInner createOrUpdate(
+ String resourceGroupName,
+ String workspaceName,
+ String kustoPoolName,
+ String databaseName,
+ String dataConnectionName,
+ DataConnectionInner parameters);
+
+ /**
+ * Creates or updates a data connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param dataConnectionName The name of the data connection.
+ * @param parameters The data connection parameters supplied to the CreateOrUpdate operation.
+ * @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 class representing a data connection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DataConnectionInner createOrUpdate(
+ String resourceGroupName,
+ String workspaceName,
+ String kustoPoolName,
+ String databaseName,
+ String dataConnectionName,
+ DataConnectionInner parameters,
+ Context context);
+
+ /**
+ * Updates a data connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param dataConnectionName The name of the data connection.
+ * @param parameters The data connection parameters supplied to the Update 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 class representing a data connection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, DataConnectionInner> beginUpdate(
+ String resourceGroupName,
+ String workspaceName,
+ String kustoPoolName,
+ String databaseName,
+ String dataConnectionName,
+ DataConnectionInner parameters);
+
+ /**
+ * Updates a data connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param dataConnectionName The name of the data connection.
+ * @param parameters The data connection parameters supplied to the Update operation.
+ * @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 class representing a data connection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, DataConnectionInner> beginUpdate(
+ String resourceGroupName,
+ String workspaceName,
+ String kustoPoolName,
+ String databaseName,
+ String dataConnectionName,
+ DataConnectionInner parameters,
+ Context context);
+
+ /**
+ * Updates a data connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param dataConnectionName The name of the data connection.
+ * @param parameters The data connection parameters supplied to the Update 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 class representing a data connection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DataConnectionInner update(
+ String resourceGroupName,
+ String workspaceName,
+ String kustoPoolName,
+ String databaseName,
+ String dataConnectionName,
+ DataConnectionInner parameters);
+
+ /**
+ * Updates a data connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param dataConnectionName The name of the data connection.
+ * @param parameters The data connection parameters supplied to the Update operation.
+ * @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 class representing a data connection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DataConnectionInner update(
+ String resourceGroupName,
+ String workspaceName,
+ String kustoPoolName,
+ String databaseName,
+ String dataConnectionName,
+ DataConnectionInner parameters,
+ Context context);
+
+ /**
+ * Deletes the data connection with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param dataConnectionName The name of the data connection.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName,
+ String workspaceName,
+ String kustoPoolName,
+ String databaseName,
+ String dataConnectionName);
+
+ /**
+ * Deletes the data connection with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param dataConnectionName The name of the data connection.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName,
+ String workspaceName,
+ String kustoPoolName,
+ String databaseName,
+ String dataConnectionName,
+ Context context);
+
+ /**
+ * Deletes the data connection with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param dataConnectionName The name of the data connection.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 workspaceName,
+ String kustoPoolName,
+ String databaseName,
+ String dataConnectionName);
+
+ /**
+ * Deletes the data connection with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param dataConnectionName The name of the data connection.
+ * @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 workspaceName,
+ String kustoPoolName,
+ String databaseName,
+ String dataConnectionName,
+ Context context);
+}
diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDatabasePrincipalAssignmentsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDatabasePrincipalAssignmentsClient.java
new file mode 100644
index 000000000000..7032eb37ca7f
--- /dev/null
+++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDatabasePrincipalAssignmentsClient.java
@@ -0,0 +1,325 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.synapse.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.synapse.fluent.models.CheckNameResultInner;
+import com.azure.resourcemanager.synapse.fluent.models.DatabasePrincipalAssignmentInner;
+import com.azure.resourcemanager.synapse.models.DatabasePrincipalAssignmentCheckNameRequest;
+
+/**
+ * An instance of this class provides access to all the operations defined in
+ * KustoPoolDatabasePrincipalAssignmentsClient.
+ */
+public interface KustoPoolDatabasePrincipalAssignmentsClient {
+ /**
+ * Checks that the database principal assignment is valid and is not already in use.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param principalAssignmentName The name of the resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the result returned from a check name availability request.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CheckNameResultInner checkNameAvailability(
+ String workspaceName,
+ String kustoPoolName,
+ String databaseName,
+ String resourceGroupName,
+ DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName);
+
+ /**
+ * Checks that the database principal assignment is valid and is not already in use.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param principalAssignmentName The name of the resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the result returned from a check name availability request.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response checkNameAvailabilityWithResponse(
+ String workspaceName,
+ String kustoPoolName,
+ String databaseName,
+ String resourceGroupName,
+ DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName,
+ Context context);
+
+ /**
+ * Lists all Kusto pool database principalAssignments.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list Kusto database principal assignments operation response.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String workspaceName, String kustoPoolName, String databaseName, String resourceGroupName);
+
+ /**
+ * Lists all Kusto pool database principalAssignments.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list Kusto database principal assignments operation response.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String workspaceName, String kustoPoolName, String databaseName, String resourceGroupName, Context context);
+
+ /**
+ * Gets a Kusto pool database principalAssignment.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param principalAssignmentName The name of the Kusto principalAssignment.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Kusto pool database principalAssignment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DatabasePrincipalAssignmentInner get(
+ String workspaceName,
+ String kustoPoolName,
+ String databaseName,
+ String principalAssignmentName,
+ String resourceGroupName);
+
+ /**
+ * Gets a Kusto pool database principalAssignment.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param principalAssignmentName The name of the Kusto principalAssignment.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Kusto pool database principalAssignment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String workspaceName,
+ String kustoPoolName,
+ String databaseName,
+ String principalAssignmentName,
+ String resourceGroupName,
+ Context context);
+
+ /**
+ * Creates a Kusto pool database principalAssignment.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param principalAssignmentName The name of the Kusto principalAssignment.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param parameters The Kusto principalAssignments parameters supplied for the 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 class representing a database principal assignment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, DatabasePrincipalAssignmentInner> beginCreateOrUpdate(
+ String workspaceName,
+ String kustoPoolName,
+ String databaseName,
+ String principalAssignmentName,
+ String resourceGroupName,
+ DatabasePrincipalAssignmentInner parameters);
+
+ /**
+ * Creates a Kusto pool database principalAssignment.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param principalAssignmentName The name of the Kusto principalAssignment.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param parameters The Kusto principalAssignments parameters supplied for the operation.
+ * @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 class representing a database principal assignment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, DatabasePrincipalAssignmentInner> beginCreateOrUpdate(
+ String workspaceName,
+ String kustoPoolName,
+ String databaseName,
+ String principalAssignmentName,
+ String resourceGroupName,
+ DatabasePrincipalAssignmentInner parameters,
+ Context context);
+
+ /**
+ * Creates a Kusto pool database principalAssignment.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param principalAssignmentName The name of the Kusto principalAssignment.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param parameters The Kusto principalAssignments parameters supplied for the 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 class representing a database principal assignment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DatabasePrincipalAssignmentInner createOrUpdate(
+ String workspaceName,
+ String kustoPoolName,
+ String databaseName,
+ String principalAssignmentName,
+ String resourceGroupName,
+ DatabasePrincipalAssignmentInner parameters);
+
+ /**
+ * Creates a Kusto pool database principalAssignment.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param principalAssignmentName The name of the Kusto principalAssignment.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param parameters The Kusto principalAssignments parameters supplied for the operation.
+ * @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 class representing a database principal assignment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DatabasePrincipalAssignmentInner createOrUpdate(
+ String workspaceName,
+ String kustoPoolName,
+ String databaseName,
+ String principalAssignmentName,
+ String resourceGroupName,
+ DatabasePrincipalAssignmentInner parameters,
+ Context context);
+
+ /**
+ * Deletes a Kusto pool principalAssignment.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param principalAssignmentName The name of the Kusto principalAssignment.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String workspaceName,
+ String kustoPoolName,
+ String databaseName,
+ String principalAssignmentName,
+ String resourceGroupName);
+
+ /**
+ * Deletes a Kusto pool principalAssignment.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param principalAssignmentName The name of the Kusto principalAssignment.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String workspaceName,
+ String kustoPoolName,
+ String databaseName,
+ String principalAssignmentName,
+ String resourceGroupName,
+ Context context);
+
+ /**
+ * Deletes a Kusto pool principalAssignment.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param principalAssignmentName The name of the Kusto principalAssignment.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(
+ String workspaceName,
+ String kustoPoolName,
+ String databaseName,
+ String principalAssignmentName,
+ String resourceGroupName);
+
+ /**
+ * Deletes a Kusto pool principalAssignment.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param principalAssignmentName The name of the Kusto principalAssignment.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(
+ String workspaceName,
+ String kustoPoolName,
+ String databaseName,
+ String principalAssignmentName,
+ String resourceGroupName,
+ Context context);
+}
diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDatabasesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDatabasesClient.java
new file mode 100644
index 000000000000..536f408e558d
--- /dev/null
+++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDatabasesClient.java
@@ -0,0 +1,318 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.synapse.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.synapse.fluent.models.DatabaseInner;
+
+/** An instance of this class provides access to all the operations defined in KustoPoolDatabasesClient. */
+public interface KustoPoolDatabasesClient {
+ /**
+ * Returns the list of databases of the given Kusto pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list Kusto databases operation response.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByKustoPool(String resourceGroupName, String workspaceName, String kustoPoolName);
+
+ /**
+ * Returns the list of databases of the given Kusto pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list Kusto databases operation response.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByKustoPool(
+ String resourceGroupName, String workspaceName, String kustoPoolName, Context context);
+
+ /**
+ * Returns a database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return class representing a Kusto database.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DatabaseInner get(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName);
+
+ /**
+ * Returns a database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @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 class representing a Kusto database.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, Context context);
+
+ /**
+ * Creates or updates a database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param parameters The database parameters supplied to the CreateOrUpdate 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 class representing a Kusto database.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, DatabaseInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String workspaceName,
+ String kustoPoolName,
+ String databaseName,
+ DatabaseInner parameters);
+
+ /**
+ * Creates or updates a database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param parameters The database parameters supplied to the CreateOrUpdate operation.
+ * @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 class representing a Kusto database.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, DatabaseInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String workspaceName,
+ String kustoPoolName,
+ String databaseName,
+ DatabaseInner parameters,
+ Context context);
+
+ /**
+ * Creates or updates a database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param parameters The database parameters supplied to the CreateOrUpdate 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 class representing a Kusto database.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DatabaseInner createOrUpdate(
+ String resourceGroupName,
+ String workspaceName,
+ String kustoPoolName,
+ String databaseName,
+ DatabaseInner parameters);
+
+ /**
+ * Creates or updates a database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param parameters The database parameters supplied to the CreateOrUpdate operation.
+ * @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 class representing a Kusto database.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DatabaseInner createOrUpdate(
+ String resourceGroupName,
+ String workspaceName,
+ String kustoPoolName,
+ String databaseName,
+ DatabaseInner parameters,
+ Context context);
+
+ /**
+ * Updates a database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param parameters The database parameters supplied to the Update 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 class representing a Kusto database.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, DatabaseInner> beginUpdate(
+ String resourceGroupName,
+ String workspaceName,
+ String kustoPoolName,
+ String databaseName,
+ DatabaseInner parameters);
+
+ /**
+ * Updates a database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param parameters The database parameters supplied to the Update operation.
+ * @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 class representing a Kusto database.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, DatabaseInner> beginUpdate(
+ String resourceGroupName,
+ String workspaceName,
+ String kustoPoolName,
+ String databaseName,
+ DatabaseInner parameters,
+ Context context);
+
+ /**
+ * Updates a database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param parameters The database parameters supplied to the Update 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 class representing a Kusto database.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DatabaseInner update(
+ String resourceGroupName,
+ String workspaceName,
+ String kustoPoolName,
+ String databaseName,
+ DatabaseInner parameters);
+
+ /**
+ * Updates a database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param parameters The database parameters supplied to the Update operation.
+ * @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 class representing a Kusto database.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DatabaseInner update(
+ String resourceGroupName,
+ String workspaceName,
+ String kustoPoolName,
+ String databaseName,
+ DatabaseInner parameters,
+ Context context);
+
+ /**
+ * Deletes the database with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName);
+
+ /**
+ * Deletes the database with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, Context context);
+
+ /**
+ * Deletes the database with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 workspaceName, String kustoPoolName, String databaseName);
+
+ /**
+ * Deletes the database with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param databaseName The name of the database in the Kusto pool.
+ * @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 workspaceName, String kustoPoolName, String databaseName, Context context);
+}
diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolPrincipalAssignmentsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolPrincipalAssignmentsClient.java
new file mode 100644
index 000000000000..863586333bce
--- /dev/null
+++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolPrincipalAssignmentsClient.java
@@ -0,0 +1,286 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.synapse.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.synapse.fluent.models.CheckNameResultInner;
+import com.azure.resourcemanager.synapse.fluent.models.ClusterPrincipalAssignmentInner;
+import com.azure.resourcemanager.synapse.models.ClusterPrincipalAssignmentCheckNameRequest;
+
+/** An instance of this class provides access to all the operations defined in KustoPoolPrincipalAssignmentsClient. */
+public interface KustoPoolPrincipalAssignmentsClient {
+ /**
+ * Checks that the principal assignment name is valid and is not already in use.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param principalAssignmentName The name of the principal assignment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the result returned from a check name availability request.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CheckNameResultInner checkNameAvailability(
+ String workspaceName,
+ String kustoPoolName,
+ String resourceGroupName,
+ ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName);
+
+ /**
+ * Checks that the principal assignment name is valid and is not already in use.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param principalAssignmentName The name of the principal assignment.
+ * @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 result returned from a check name availability request.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response checkNameAvailabilityWithResponse(
+ String workspaceName,
+ String kustoPoolName,
+ String resourceGroupName,
+ ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName,
+ Context context);
+
+ /**
+ * Lists all Kusto pool principalAssignments.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list Kusto cluster principal assignments operation response.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String workspaceName, String kustoPoolName, String resourceGroupName);
+
+ /**
+ * Lists all Kusto pool principalAssignments.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list Kusto cluster principal assignments operation response.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String workspaceName, String kustoPoolName, String resourceGroupName, Context context);
+
+ /**
+ * Gets a Kusto pool principalAssignment.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param principalAssignmentName The name of the Kusto principalAssignment.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Kusto pool principalAssignment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ClusterPrincipalAssignmentInner get(
+ String workspaceName, String kustoPoolName, String principalAssignmentName, String resourceGroupName);
+
+ /**
+ * Gets a Kusto pool principalAssignment.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param principalAssignmentName The name of the Kusto principalAssignment.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Kusto pool principalAssignment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String workspaceName,
+ String kustoPoolName,
+ String principalAssignmentName,
+ String resourceGroupName,
+ Context context);
+
+ /**
+ * Create a Kusto pool principalAssignment.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param principalAssignmentName The name of the Kusto principalAssignment.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param parameters The Kusto pool principalAssignment's parameters supplied for the 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 class representing a cluster principal assignment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ClusterPrincipalAssignmentInner> beginCreateOrUpdate(
+ String workspaceName,
+ String kustoPoolName,
+ String principalAssignmentName,
+ String resourceGroupName,
+ ClusterPrincipalAssignmentInner parameters);
+
+ /**
+ * Create a Kusto pool principalAssignment.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param principalAssignmentName The name of the Kusto principalAssignment.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param parameters The Kusto pool principalAssignment's parameters supplied for the operation.
+ * @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 class representing a cluster principal assignment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ClusterPrincipalAssignmentInner> beginCreateOrUpdate(
+ String workspaceName,
+ String kustoPoolName,
+ String principalAssignmentName,
+ String resourceGroupName,
+ ClusterPrincipalAssignmentInner parameters,
+ Context context);
+
+ /**
+ * Create a Kusto pool principalAssignment.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param principalAssignmentName The name of the Kusto principalAssignment.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param parameters The Kusto pool principalAssignment's parameters supplied for the 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 class representing a cluster principal assignment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ClusterPrincipalAssignmentInner createOrUpdate(
+ String workspaceName,
+ String kustoPoolName,
+ String principalAssignmentName,
+ String resourceGroupName,
+ ClusterPrincipalAssignmentInner parameters);
+
+ /**
+ * Create a Kusto pool principalAssignment.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param principalAssignmentName The name of the Kusto principalAssignment.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param parameters The Kusto pool principalAssignment's parameters supplied for the operation.
+ * @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 class representing a cluster principal assignment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ClusterPrincipalAssignmentInner createOrUpdate(
+ String workspaceName,
+ String kustoPoolName,
+ String principalAssignmentName,
+ String resourceGroupName,
+ ClusterPrincipalAssignmentInner parameters,
+ Context context);
+
+ /**
+ * Deletes a Kusto pool principalAssignment.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param principalAssignmentName The name of the Kusto principalAssignment.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String workspaceName, String kustoPoolName, String principalAssignmentName, String resourceGroupName);
+
+ /**
+ * Deletes a Kusto pool principalAssignment.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param principalAssignmentName The name of the Kusto principalAssignment.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String workspaceName,
+ String kustoPoolName,
+ String principalAssignmentName,
+ String resourceGroupName,
+ Context context);
+
+ /**
+ * Deletes a Kusto pool principalAssignment.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param principalAssignmentName The name of the Kusto principalAssignment.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String workspaceName, String kustoPoolName, String principalAssignmentName, String resourceGroupName);
+
+ /**
+ * Deletes a Kusto pool principalAssignment.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param principalAssignmentName The name of the Kusto principalAssignment.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(
+ String workspaceName,
+ String kustoPoolName,
+ String principalAssignmentName,
+ String resourceGroupName,
+ Context context);
+}
diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolsClient.java
new file mode 100644
index 000000000000..2e0d19091ead
--- /dev/null
+++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolsClient.java
@@ -0,0 +1,36 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.synapse.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.synapse.fluent.models.SkuDescriptionInner;
+
+/** An instance of this class provides access to all the operations defined in KustoPoolsClient. */
+public interface KustoPoolsClient {
+ /**
+ * Lists eligible SKUs for Kusto Pool resource.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of the SKU descriptions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists eligible SKUs for Kusto Pool resource.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of the SKU descriptions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolsOperationsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolsOperationsClient.java
new file mode 100644
index 000000000000..6d145da83757
--- /dev/null
+++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolsOperationsClient.java
@@ -0,0 +1,838 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.synapse.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.synapse.fluent.models.AzureResourceSkuInner;
+import com.azure.resourcemanager.synapse.fluent.models.CheckNameResultInner;
+import com.azure.resourcemanager.synapse.fluent.models.FollowerDatabaseDefinitionInner;
+import com.azure.resourcemanager.synapse.fluent.models.KustoPoolInner;
+import com.azure.resourcemanager.synapse.fluent.models.KustoPoolListResultInner;
+import com.azure.resourcemanager.synapse.fluent.models.LanguageExtensionInner;
+import com.azure.resourcemanager.synapse.models.KustoPoolCheckNameRequest;
+import com.azure.resourcemanager.synapse.models.KustoPoolUpdate;
+import com.azure.resourcemanager.synapse.models.LanguageExtensionsList;
+
+/** An instance of this class provides access to all the operations defined in KustoPoolsOperationsClient. */
+public interface KustoPoolsOperationsClient {
+ /**
+ * Checks that the kusto pool name is valid and is not already in use.
+ *
+ * @param location The name of Azure region.
+ * @param kustoPoolName The name of the cluster.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the result returned from a check name availability request.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CheckNameResultInner checkNameAvailability(String location, KustoPoolCheckNameRequest kustoPoolName);
+
+ /**
+ * Checks that the kusto pool name is valid and is not already in use.
+ *
+ * @param location The name of Azure region.
+ * @param kustoPoolName The name of the cluster.
+ * @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 result returned from a check name availability request.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response checkNameAvailabilityWithResponse(
+ String location, KustoPoolCheckNameRequest kustoPoolName, Context context);
+
+ /**
+ * List all Kusto pools.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list Kusto pools operation response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ KustoPoolListResultInner listByWorkspace(String resourceGroupName, String workspaceName);
+
+ /**
+ * List all Kusto pools.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list Kusto pools operation response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listByWorkspaceWithResponse(
+ String resourceGroupName, String workspaceName, Context context);
+
+ /**
+ * Gets a Kusto pool.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Kusto pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ KustoPoolInner get(String workspaceName, String kustoPoolName, String resourceGroupName);
+
+ /**
+ * Gets a Kusto pool.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Kusto pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String workspaceName, String kustoPoolName, String resourceGroupName, Context context);
+
+ /**
+ * Create or update a Kusto pool.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param parameters The Kusto pool parameters supplied to the CreateOrUpdate operation.
+ * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify
+ * the last-seen ETag value to prevent accidentally overwriting concurrent changes.
+ * @param ifNoneMatch Set to '*' to allow a new Kusto Pool to be created, but to prevent updating an existing Kusto
+ * Pool. Other values will result in a 412 Pre-condition Failed response.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return class representing a Kusto kusto pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, KustoPoolInner> beginCreateOrUpdate(
+ String workspaceName,
+ String resourceGroupName,
+ String kustoPoolName,
+ KustoPoolInner parameters,
+ String ifMatch,
+ String ifNoneMatch);
+
+ /**
+ * Create or update a Kusto pool.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param parameters The Kusto pool parameters supplied to the CreateOrUpdate operation.
+ * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify
+ * the last-seen ETag value to prevent accidentally overwriting concurrent changes.
+ * @param ifNoneMatch Set to '*' to allow a new Kusto Pool to be created, but to prevent updating an existing Kusto
+ * Pool. Other values will result in a 412 Pre-condition Failed response.
+ * @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 class representing a Kusto kusto pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, KustoPoolInner> beginCreateOrUpdate(
+ String workspaceName,
+ String resourceGroupName,
+ String kustoPoolName,
+ KustoPoolInner parameters,
+ String ifMatch,
+ String ifNoneMatch,
+ Context context);
+
+ /**
+ * Create or update a Kusto pool.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param parameters The Kusto pool parameters supplied to the CreateOrUpdate operation.
+ * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify
+ * the last-seen ETag value to prevent accidentally overwriting concurrent changes.
+ * @param ifNoneMatch Set to '*' to allow a new Kusto Pool to be created, but to prevent updating an existing Kusto
+ * Pool. Other values will result in a 412 Pre-condition Failed response.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return class representing a Kusto kusto pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ KustoPoolInner createOrUpdate(
+ String workspaceName,
+ String resourceGroupName,
+ String kustoPoolName,
+ KustoPoolInner parameters,
+ String ifMatch,
+ String ifNoneMatch);
+
+ /**
+ * Create or update a Kusto pool.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param parameters The Kusto pool parameters supplied to the CreateOrUpdate 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 class representing a Kusto kusto pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ KustoPoolInner createOrUpdate(
+ String workspaceName, String resourceGroupName, String kustoPoolName, KustoPoolInner parameters);
+
+ /**
+ * Create or update a Kusto pool.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param parameters The Kusto pool parameters supplied to the CreateOrUpdate operation.
+ * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify
+ * the last-seen ETag value to prevent accidentally overwriting concurrent changes.
+ * @param ifNoneMatch Set to '*' to allow a new Kusto Pool to be created, but to prevent updating an existing Kusto
+ * Pool. Other values will result in a 412 Pre-condition Failed response.
+ * @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 class representing a Kusto kusto pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ KustoPoolInner createOrUpdate(
+ String workspaceName,
+ String resourceGroupName,
+ String kustoPoolName,
+ KustoPoolInner parameters,
+ String ifMatch,
+ String ifNoneMatch,
+ Context context);
+
+ /**
+ * Update a Kusto Kusto Pool.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param parameters The Kusto pool parameters supplied to the Update operation.
+ * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify
+ * the last-seen ETag value to prevent accidentally overwriting concurrent changes.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return class representing a Kusto kusto pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, KustoPoolInner> beginUpdate(
+ String workspaceName,
+ String resourceGroupName,
+ String kustoPoolName,
+ KustoPoolUpdate parameters,
+ String ifMatch);
+
+ /**
+ * Update a Kusto Kusto Pool.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param parameters The Kusto pool parameters supplied to the Update operation.
+ * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify
+ * the last-seen ETag value to prevent accidentally overwriting concurrent changes.
+ * @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 class representing a Kusto kusto pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, KustoPoolInner> beginUpdate(
+ String workspaceName,
+ String resourceGroupName,
+ String kustoPoolName,
+ KustoPoolUpdate parameters,
+ String ifMatch,
+ Context context);
+
+ /**
+ * Update a Kusto Kusto Pool.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param parameters The Kusto pool parameters supplied to the Update operation.
+ * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify
+ * the last-seen ETag value to prevent accidentally overwriting concurrent changes.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return class representing a Kusto kusto pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ KustoPoolInner update(
+ String workspaceName,
+ String resourceGroupName,
+ String kustoPoolName,
+ KustoPoolUpdate parameters,
+ String ifMatch);
+
+ /**
+ * Update a Kusto Kusto Pool.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param parameters The Kusto pool parameters supplied to the Update 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 class representing a Kusto kusto pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ KustoPoolInner update(
+ String workspaceName, String resourceGroupName, String kustoPoolName, KustoPoolUpdate parameters);
+
+ /**
+ * Update a Kusto Kusto Pool.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param parameters The Kusto pool parameters supplied to the Update operation.
+ * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify
+ * the last-seen ETag value to prevent accidentally overwriting concurrent changes.
+ * @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 class representing a Kusto kusto pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ KustoPoolInner update(
+ String workspaceName,
+ String resourceGroupName,
+ String kustoPoolName,
+ KustoPoolUpdate parameters,
+ String ifMatch,
+ Context context);
+
+ /**
+ * Deletes a Kusto pool.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String workspaceName, String resourceGroupName, String kustoPoolName);
+
+ /**
+ * Deletes a Kusto pool.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String workspaceName, String resourceGroupName, String kustoPoolName, Context context);
+
+ /**
+ * Deletes a Kusto pool.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 workspaceName, String resourceGroupName, String kustoPoolName);
+
+ /**
+ * Deletes a Kusto pool.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @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 workspaceName, String resourceGroupName, String kustoPoolName, Context context);
+
+ /**
+ * Stops a Kusto pool.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginStop(String workspaceName, String kustoPoolName, String resourceGroupName);
+
+ /**
+ * Stops a Kusto pool.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginStop(
+ String workspaceName, String kustoPoolName, String resourceGroupName, Context context);
+
+ /**
+ * Stops a Kusto pool.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void stop(String workspaceName, String kustoPoolName, String resourceGroupName);
+
+ /**
+ * Stops a Kusto pool.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void stop(String workspaceName, String kustoPoolName, String resourceGroupName, Context context);
+
+ /**
+ * Starts a Kusto pool.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginStart(String workspaceName, String kustoPoolName, String resourceGroupName);
+
+ /**
+ * Starts a Kusto pool.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginStart(
+ String workspaceName, String kustoPoolName, String resourceGroupName, Context context);
+
+ /**
+ * Starts a Kusto pool.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void start(String workspaceName, String kustoPoolName, String resourceGroupName);
+
+ /**
+ * Starts a Kusto pool.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void start(String workspaceName, String kustoPoolName, String resourceGroupName, Context context);
+
+ /**
+ * Returns the SKUs available for the provided resource.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of available SKUs for a Kusto Pool.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listSkusByResource(
+ String workspaceName, String kustoPoolName, String resourceGroupName);
+
+ /**
+ * Returns the SKUs available for the provided resource.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of available SKUs for a Kusto Pool.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listSkusByResource(
+ String workspaceName, String kustoPoolName, String resourceGroupName, Context context);
+
+ /**
+ * Returns a list of language extensions that can run within KQL queries.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of language extension objects.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listLanguageExtensions(
+ String workspaceName, String kustoPoolName, String resourceGroupName);
+
+ /**
+ * Returns a list of language extensions that can run within KQL queries.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of language extension objects.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listLanguageExtensions(
+ String workspaceName, String kustoPoolName, String resourceGroupName, Context context);
+
+ /**
+ * Add a list of language extensions that can run within KQL queries.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param languageExtensionsToAdd The language extensions to add.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginAddLanguageExtensions(
+ String workspaceName,
+ String kustoPoolName,
+ String resourceGroupName,
+ LanguageExtensionsList languageExtensionsToAdd);
+
+ /**
+ * Add a list of language extensions that can run within KQL queries.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param languageExtensionsToAdd The language extensions to add.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginAddLanguageExtensions(
+ String workspaceName,
+ String kustoPoolName,
+ String resourceGroupName,
+ LanguageExtensionsList languageExtensionsToAdd,
+ Context context);
+
+ /**
+ * Add a list of language extensions that can run within KQL queries.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param languageExtensionsToAdd The language extensions to add.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 addLanguageExtensions(
+ String workspaceName,
+ String kustoPoolName,
+ String resourceGroupName,
+ LanguageExtensionsList languageExtensionsToAdd);
+
+ /**
+ * Add a list of language extensions that can run within KQL queries.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param languageExtensionsToAdd The language extensions to add.
+ * @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 addLanguageExtensions(
+ String workspaceName,
+ String kustoPoolName,
+ String resourceGroupName,
+ LanguageExtensionsList languageExtensionsToAdd,
+ Context context);
+
+ /**
+ * Remove a list of language extensions that can run within KQL queries.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param languageExtensionsToRemove The language extensions to remove.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginRemoveLanguageExtensions(
+ String workspaceName,
+ String kustoPoolName,
+ String resourceGroupName,
+ LanguageExtensionsList languageExtensionsToRemove);
+
+ /**
+ * Remove a list of language extensions that can run within KQL queries.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param languageExtensionsToRemove The language extensions to remove.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginRemoveLanguageExtensions(
+ String workspaceName,
+ String kustoPoolName,
+ String resourceGroupName,
+ LanguageExtensionsList languageExtensionsToRemove,
+ Context context);
+
+ /**
+ * Remove a list of language extensions that can run within KQL queries.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param languageExtensionsToRemove The language extensions to remove.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 removeLanguageExtensions(
+ String workspaceName,
+ String kustoPoolName,
+ String resourceGroupName,
+ LanguageExtensionsList languageExtensionsToRemove);
+
+ /**
+ * Remove a list of language extensions that can run within KQL queries.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param languageExtensionsToRemove The language extensions to remove.
+ * @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 removeLanguageExtensions(
+ String workspaceName,
+ String kustoPoolName,
+ String resourceGroupName,
+ LanguageExtensionsList languageExtensionsToRemove,
+ Context context);
+
+ /**
+ * Returns a list of databases that are owned by this Kusto Pool and were followed by another Kusto Pool.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list Kusto database principals operation response.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listFollowerDatabases(
+ String workspaceName, String kustoPoolName, String resourceGroupName);
+
+ /**
+ * Returns a list of databases that are owned by this Kusto Pool and were followed by another Kusto Pool.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list Kusto database principals operation response.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listFollowerDatabases(
+ String workspaceName, String kustoPoolName, String resourceGroupName, Context context);
+
+ /**
+ * Detaches all followers of a database owned by this Kusto Pool.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param followerDatabaseToRemove The follower databases properties to remove.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDetachFollowerDatabases(
+ String workspaceName,
+ String kustoPoolName,
+ String resourceGroupName,
+ FollowerDatabaseDefinitionInner followerDatabaseToRemove);
+
+ /**
+ * Detaches all followers of a database owned by this Kusto Pool.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param followerDatabaseToRemove The follower databases properties to remove.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDetachFollowerDatabases(
+ String workspaceName,
+ String kustoPoolName,
+ String resourceGroupName,
+ FollowerDatabaseDefinitionInner followerDatabaseToRemove,
+ Context context);
+
+ /**
+ * Detaches all followers of a database owned by this Kusto Pool.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param followerDatabaseToRemove The follower databases properties to remove.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 detachFollowerDatabases(
+ String workspaceName,
+ String kustoPoolName,
+ String resourceGroupName,
+ FollowerDatabaseDefinitionInner followerDatabaseToRemove);
+
+ /**
+ * Detaches all followers of a database owned by this Kusto Pool.
+ *
+ * @param workspaceName The name of the workspace.
+ * @param kustoPoolName The name of the Kusto pool.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param followerDatabaseToRemove The follower databases properties to remove.
+ * @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 detachFollowerDatabases(
+ String workspaceName,
+ String kustoPoolName,
+ String resourceGroupName,
+ FollowerDatabaseDefinitionInner followerDatabaseToRemove,
+ Context context);
+}
diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SynapseManagementClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SynapseManagementClient.java
index 9b58bccbba2c..8986c082e05b 100644
--- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SynapseManagementClient.java
+++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SynapseManagementClient.java
@@ -485,4 +485,67 @@ public interface SynapseManagementClient {
* @return the SparkConfigurationsOperationsClient object.
*/
SparkConfigurationsOperationsClient getSparkConfigurationsOperations();
+
+ /**
+ * Gets the KustoOperationsClient object to access its operations.
+ *
+ * @return the KustoOperationsClient object.
+ */
+ KustoOperationsClient getKustoOperations();
+
+ /**
+ * Gets the KustoPoolsClient object to access its operations.
+ *
+ * @return the KustoPoolsClient object.
+ */
+ KustoPoolsClient getKustoPools();
+
+ /**
+ * Gets the KustoPoolsOperationsClient object to access its operations.
+ *
+ * @return the KustoPoolsOperationsClient object.
+ */
+ KustoPoolsOperationsClient getKustoPoolsOperations();
+
+ /**
+ * Gets the KustoPoolChildResourcesClient object to access its operations.
+ *
+ * @return the KustoPoolChildResourcesClient object.
+ */
+ KustoPoolChildResourcesClient getKustoPoolChildResources();
+
+ /**
+ * Gets the KustoPoolAttachedDatabaseConfigurationsClient object to access its operations.
+ *
+ * @return the KustoPoolAttachedDatabaseConfigurationsClient object.
+ */
+ KustoPoolAttachedDatabaseConfigurationsClient getKustoPoolAttachedDatabaseConfigurations();
+
+ /**
+ * Gets the KustoPoolDatabasesClient object to access its operations.
+ *
+ * @return the KustoPoolDatabasesClient object.
+ */
+ KustoPoolDatabasesClient getKustoPoolDatabases();
+
+ /**
+ * Gets the KustoPoolDataConnectionsClient object to access its operations.
+ *
+ * @return the KustoPoolDataConnectionsClient object.
+ */
+ KustoPoolDataConnectionsClient getKustoPoolDataConnections();
+
+ /**
+ * Gets the KustoPoolPrincipalAssignmentsClient object to access its operations.
+ *
+ * @return the KustoPoolPrincipalAssignmentsClient object.
+ */
+ KustoPoolPrincipalAssignmentsClient getKustoPoolPrincipalAssignments();
+
+ /**
+ * Gets the KustoPoolDatabasePrincipalAssignmentsClient object to access its operations.
+ *
+ * @return the KustoPoolDatabasePrincipalAssignmentsClient object.
+ */
+ KustoPoolDatabasePrincipalAssignmentsClient getKustoPoolDatabasePrincipalAssignments();
}
diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AadAdminProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AadAdminProperties.java
deleted file mode 100644
index 8560d43e331f..000000000000
--- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AadAdminProperties.java
+++ /dev/null
@@ -1,128 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.synapse.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** Workspace active directory administrator properties. */
-@Fluent
-public final class AadAdminProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(AadAdminProperties.class);
-
- /*
- * Tenant ID of the workspace active directory administrator
- */
- @JsonProperty(value = "tenantId")
- private String tenantId;
-
- /*
- * Login of the workspace active directory administrator
- */
- @JsonProperty(value = "login")
- private String login;
-
- /*
- * Workspace active directory administrator type
- */
- @JsonProperty(value = "administratorType")
- private String administratorType;
-
- /*
- * Object ID of the workspace active directory administrator
- */
- @JsonProperty(value = "sid")
- private String sid;
-
- /**
- * Get the tenantId property: Tenant ID of the workspace active directory administrator.
- *
- * @return the tenantId value.
- */
- public String tenantId() {
- return this.tenantId;
- }
-
- /**
- * Set the tenantId property: Tenant ID of the workspace active directory administrator.
- *
- * @param tenantId the tenantId value to set.
- * @return the AadAdminProperties object itself.
- */
- public AadAdminProperties withTenantId(String tenantId) {
- this.tenantId = tenantId;
- return this;
- }
-
- /**
- * Get the login property: Login of the workspace active directory administrator.
- *
- * @return the login value.
- */
- public String login() {
- return this.login;
- }
-
- /**
- * Set the login property: Login of the workspace active directory administrator.
- *
- * @param login the login value to set.
- * @return the AadAdminProperties object itself.
- */
- public AadAdminProperties withLogin(String login) {
- this.login = login;
- return this;
- }
-
- /**
- * Get the administratorType property: Workspace active directory administrator type.
- *
- * @return the administratorType value.
- */
- public String administratorType() {
- return this.administratorType;
- }
-
- /**
- * Set the administratorType property: Workspace active directory administrator type.
- *
- * @param administratorType the administratorType value to set.
- * @return the AadAdminProperties object itself.
- */
- public AadAdminProperties withAdministratorType(String administratorType) {
- this.administratorType = administratorType;
- return this;
- }
-
- /**
- * Get the sid property: Object ID of the workspace active directory administrator.
- *
- * @return the sid value.
- */
- public String sid() {
- return this.sid;
- }
-
- /**
- * Set the sid property: Object ID of the workspace active directory administrator.
- *
- * @param sid the sid value to set.
- * @return the AadAdminProperties object itself.
- */
- public AadAdminProperties withSid(String sid) {
- this.sid = sid;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AttachedDatabaseConfigurationInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AttachedDatabaseConfigurationInner.java
new file mode 100644
index 000000000000..455eff1bd52c
--- /dev/null
+++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AttachedDatabaseConfigurationInner.java
@@ -0,0 +1,221 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.synapse.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.synapse.models.DefaultPrincipalsModificationKind;
+import com.azure.resourcemanager.synapse.models.ResourceProvisioningState;
+import com.azure.resourcemanager.synapse.models.TableLevelSharingProperties;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Class representing an attached database configuration. */
+@JsonFlatten
+@Fluent
+public class AttachedDatabaseConfigurationInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(AttachedDatabaseConfigurationInner.class);
+
+ /*
+ * Resource location.
+ */
+ @JsonProperty(value = "location")
+ private String location;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy
+ * information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /*
+ * The provisioned state of the resource.
+ */
+ @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ResourceProvisioningState provisioningState;
+
+ /*
+ * The name of the database which you would like to attach, use * if you
+ * want to follow all current and future databases.
+ */
+ @JsonProperty(value = "properties.databaseName")
+ private String databaseName;
+
+ /*
+ * The resource id of the kusto pool where the databases you would like to
+ * attach reside.
+ */
+ @JsonProperty(value = "properties.clusterResourceId")
+ private String kustoPoolResourceId;
+
+ /*
+ * The list of databases from the clusterResourceId which are currently
+ * attached to the kusto pool.
+ */
+ @JsonProperty(value = "properties.attachedDatabaseNames", access = JsonProperty.Access.WRITE_ONLY)
+ private List attachedDatabaseNames;
+
+ /*
+ * The default principals modification kind
+ */
+ @JsonProperty(value = "properties.defaultPrincipalsModificationKind")
+ private DefaultPrincipalsModificationKind defaultPrincipalsModificationKind;
+
+ /*
+ * Table level sharing specifications
+ */
+ @JsonProperty(value = "properties.tableLevelSharingProperties")
+ private TableLevelSharingProperties tableLevelSharingProperties;
+
+ /**
+ * Get the location property: Resource location.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Set the location property: Resource location.
+ *
+ * @param location the location value to set.
+ * @return the AttachedDatabaseConfigurationInner object itself.
+ */
+ public AttachedDatabaseConfigurationInner withLocation(String location) {
+ this.location = location;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioned state of the resource.
+ *
+ * @return the provisioningState value.
+ */
+ public ResourceProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the databaseName property: The name of the database which you would like to attach, use * if you want to
+ * follow all current and future databases.
+ *
+ * @return the databaseName value.
+ */
+ public String databaseName() {
+ return this.databaseName;
+ }
+
+ /**
+ * Set the databaseName property: The name of the database which you would like to attach, use * if you want to
+ * follow all current and future databases.
+ *
+ * @param databaseName the databaseName value to set.
+ * @return the AttachedDatabaseConfigurationInner object itself.
+ */
+ public AttachedDatabaseConfigurationInner withDatabaseName(String databaseName) {
+ this.databaseName = databaseName;
+ return this;
+ }
+
+ /**
+ * Get the kustoPoolResourceId property: The resource id of the kusto pool where the databases you would like to
+ * attach reside.
+ *
+ * @return the kustoPoolResourceId value.
+ */
+ public String kustoPoolResourceId() {
+ return this.kustoPoolResourceId;
+ }
+
+ /**
+ * Set the kustoPoolResourceId property: The resource id of the kusto pool where the databases you would like to
+ * attach reside.
+ *
+ * @param kustoPoolResourceId the kustoPoolResourceId value to set.
+ * @return the AttachedDatabaseConfigurationInner object itself.
+ */
+ public AttachedDatabaseConfigurationInner withKustoPoolResourceId(String kustoPoolResourceId) {
+ this.kustoPoolResourceId = kustoPoolResourceId;
+ return this;
+ }
+
+ /**
+ * Get the attachedDatabaseNames property: The list of databases from the clusterResourceId which are currently
+ * attached to the kusto pool.
+ *
+ * @return the attachedDatabaseNames value.
+ */
+ public List attachedDatabaseNames() {
+ return this.attachedDatabaseNames;
+ }
+
+ /**
+ * Get the defaultPrincipalsModificationKind property: The default principals modification kind.
+ *
+ * @return the defaultPrincipalsModificationKind value.
+ */
+ public DefaultPrincipalsModificationKind defaultPrincipalsModificationKind() {
+ return this.defaultPrincipalsModificationKind;
+ }
+
+ /**
+ * Set the defaultPrincipalsModificationKind property: The default principals modification kind.
+ *
+ * @param defaultPrincipalsModificationKind the defaultPrincipalsModificationKind value to set.
+ * @return the AttachedDatabaseConfigurationInner object itself.
+ */
+ public AttachedDatabaseConfigurationInner withDefaultPrincipalsModificationKind(
+ DefaultPrincipalsModificationKind defaultPrincipalsModificationKind) {
+ this.defaultPrincipalsModificationKind = defaultPrincipalsModificationKind;
+ return this;
+ }
+
+ /**
+ * Get the tableLevelSharingProperties property: Table level sharing specifications.
+ *
+ * @return the tableLevelSharingProperties value.
+ */
+ public TableLevelSharingProperties tableLevelSharingProperties() {
+ return this.tableLevelSharingProperties;
+ }
+
+ /**
+ * Set the tableLevelSharingProperties property: Table level sharing specifications.
+ *
+ * @param tableLevelSharingProperties the tableLevelSharingProperties value to set.
+ * @return the AttachedDatabaseConfigurationInner object itself.
+ */
+ public AttachedDatabaseConfigurationInner withTableLevelSharingProperties(
+ TableLevelSharingProperties tableLevelSharingProperties) {
+ this.tableLevelSharingProperties = tableLevelSharingProperties;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (tableLevelSharingProperties() != null) {
+ tableLevelSharingProperties().validate();
+ }
+ }
+}
diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AvailableRpOperationInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AvailableRpOperationInner.java
index b5b2ab132ba8..9910f145d283 100644
--- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AvailableRpOperationInner.java
+++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AvailableRpOperationInner.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.synapse.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.synapse.models.AvailableRpOperationDisplayInfo;
import com.azure.resourcemanager.synapse.models.OperationMetaServiceSpecification;
@@ -12,8 +13,9 @@
import com.fasterxml.jackson.annotation.JsonProperty;
/** An operation that is available in this resource provider. */
+@JsonFlatten
@Fluent
-public final class AvailableRpOperationInner {
+public class AvailableRpOperationInner {
@JsonIgnore private final ClientLogger logger = new ClientLogger(AvailableRpOperationInner.class);
/*
@@ -34,18 +36,18 @@ public final class AvailableRpOperationInner {
@JsonProperty(value = "name")
private String name;
- /*
- * Operation properties
- */
- @JsonProperty(value = "properties")
- private OperationMetaPropertyInfo innerProperties;
-
/*
* Operation origin
*/
@JsonProperty(value = "origin")
private String origin;
+ /*
+ * Operation service specification
+ */
+ @JsonProperty(value = "properties.serviceSpecification")
+ private OperationMetaServiceSpecification serviceSpecification;
+
/**
* Get the display property: Display properties of the operation.
*
@@ -106,15 +108,6 @@ public AvailableRpOperationInner withName(String name) {
return this;
}
- /**
- * Get the innerProperties property: Operation properties.
- *
- * @return the innerProperties value.
- */
- private OperationMetaPropertyInfo innerProperties() {
- return this.innerProperties;
- }
-
/**
* Get the origin property: Operation origin.
*
@@ -141,7 +134,7 @@ public AvailableRpOperationInner withOrigin(String origin) {
* @return the serviceSpecification value.
*/
public OperationMetaServiceSpecification serviceSpecification() {
- return this.innerProperties() == null ? null : this.innerProperties().serviceSpecification();
+ return this.serviceSpecification;
}
/**
@@ -151,10 +144,7 @@ public OperationMetaServiceSpecification serviceSpecification() {
* @return the AvailableRpOperationInner object itself.
*/
public AvailableRpOperationInner withServiceSpecification(OperationMetaServiceSpecification serviceSpecification) {
- if (this.innerProperties() == null) {
- this.innerProperties = new OperationMetaPropertyInfo();
- }
- this.innerProperties().withServiceSpecification(serviceSpecification);
+ this.serviceSpecification = serviceSpecification;
return this;
}
@@ -167,8 +157,8 @@ public void validate() {
if (display() != null) {
display().validate();
}
- if (innerProperties() != null) {
- innerProperties().validate();
+ if (serviceSpecification() != null) {
+ serviceSpecification().validate();
}
}
}
diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureADOnlyAuthenticationInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureADOnlyAuthenticationInner.java
index 71889b98060d..339ec1ee8121 100644
--- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureADOnlyAuthenticationInner.java
+++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureADOnlyAuthenticationInner.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.synapse.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.synapse.models.StateValue;
@@ -13,24 +14,28 @@
import java.time.OffsetDateTime;
/** Azure Active Directory Only Authentication Info. */
+@JsonFlatten
@Fluent
-public final class AzureADOnlyAuthenticationInner extends ProxyResource {
+public class AzureADOnlyAuthenticationInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(AzureADOnlyAuthenticationInner.class);
/*
- * azureADOnlyAuthentication resource properties
+ * Azure Active Directory only Authentication enabled.
*/
- @JsonProperty(value = "properties")
- private AzureADOnlyAuthenticationProperties innerProperties;
+ @JsonProperty(value = "properties.azureADOnlyAuthentication")
+ private Boolean azureADOnlyAuthentication;
- /**
- * Get the innerProperties property: azureADOnlyAuthentication resource properties.
- *
- * @return the innerProperties value.
+ /*
+ * property configuration state
*/
- private AzureADOnlyAuthenticationProperties innerProperties() {
- return this.innerProperties;
- }
+ @JsonProperty(value = "properties.state", access = JsonProperty.Access.WRITE_ONLY)
+ private StateValue state;
+
+ /*
+ * property configuration date
+ */
+ @JsonProperty(value = "properties.creationDate", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime creationDate;
/**
* Get the azureADOnlyAuthentication property: Azure Active Directory only Authentication enabled.
@@ -38,7 +43,7 @@ private AzureADOnlyAuthenticationProperties innerProperties() {
* @return the azureADOnlyAuthentication value.
*/
public Boolean azureADOnlyAuthentication() {
- return this.innerProperties() == null ? null : this.innerProperties().azureADOnlyAuthentication();
+ return this.azureADOnlyAuthentication;
}
/**
@@ -48,10 +53,7 @@ public Boolean azureADOnlyAuthentication() {
* @return the AzureADOnlyAuthenticationInner object itself.
*/
public AzureADOnlyAuthenticationInner withAzureADOnlyAuthentication(Boolean azureADOnlyAuthentication) {
- if (this.innerProperties() == null) {
- this.innerProperties = new AzureADOnlyAuthenticationProperties();
- }
- this.innerProperties().withAzureADOnlyAuthentication(azureADOnlyAuthentication);
+ this.azureADOnlyAuthentication = azureADOnlyAuthentication;
return this;
}
@@ -61,7 +63,7 @@ public AzureADOnlyAuthenticationInner withAzureADOnlyAuthentication(Boolean azur
* @return the state value.
*/
public StateValue state() {
- return this.innerProperties() == null ? null : this.innerProperties().state();
+ return this.state;
}
/**
@@ -70,7 +72,7 @@ public StateValue state() {
* @return the creationDate value.
*/
public OffsetDateTime creationDate() {
- return this.innerProperties() == null ? null : this.innerProperties().creationDate();
+ return this.creationDate;
}
/**
@@ -79,8 +81,5 @@ public OffsetDateTime creationDate() {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
}
}
diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureADOnlyAuthenticationProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureADOnlyAuthenticationProperties.java
deleted file mode 100644
index 59a1e1a0dd1b..000000000000
--- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureADOnlyAuthenticationProperties.java
+++ /dev/null
@@ -1,82 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.synapse.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.synapse.models.StateValue;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.time.OffsetDateTime;
-
-/** Properties of a active directory only authentication. */
-@Fluent
-public final class AzureADOnlyAuthenticationProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureADOnlyAuthenticationProperties.class);
-
- /*
- * Azure Active Directory only Authentication enabled.
- */
- @JsonProperty(value = "azureADOnlyAuthentication", required = true)
- private boolean azureADOnlyAuthentication;
-
- /*
- * property configuration state
- */
- @JsonProperty(value = "state", access = JsonProperty.Access.WRITE_ONLY)
- private StateValue state;
-
- /*
- * property configuration date
- */
- @JsonProperty(value = "creationDate", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime creationDate;
-
- /**
- * Get the azureADOnlyAuthentication property: Azure Active Directory only Authentication enabled.
- *
- * @return the azureADOnlyAuthentication value.
- */
- public boolean azureADOnlyAuthentication() {
- return this.azureADOnlyAuthentication;
- }
-
- /**
- * Set the azureADOnlyAuthentication property: Azure Active Directory only Authentication enabled.
- *
- * @param azureADOnlyAuthentication the azureADOnlyAuthentication value to set.
- * @return the AzureADOnlyAuthenticationProperties object itself.
- */
- public AzureADOnlyAuthenticationProperties withAzureADOnlyAuthentication(boolean azureADOnlyAuthentication) {
- this.azureADOnlyAuthentication = azureADOnlyAuthentication;
- return this;
- }
-
- /**
- * Get the state property: property configuration state.
- *
- * @return the state value.
- */
- public StateValue state() {
- return this.state;
- }
-
- /**
- * Get the creationDate property: property configuration date.
- *
- * @return the creationDate value.
- */
- public OffsetDateTime creationDate() {
- return this.creationDate;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureResourceSkuInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureResourceSkuInner.java
new file mode 100644
index 000000000000..d239ed869d54
--- /dev/null
+++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureResourceSkuInner.java
@@ -0,0 +1,110 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.synapse.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.synapse.models.AzureCapacity;
+import com.azure.resourcemanager.synapse.models.AzureSku;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Azure resource SKU definition. */
+@Fluent
+public final class AzureResourceSkuInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureResourceSkuInner.class);
+
+ /*
+ * Resource Namespace and Type.
+ */
+ @JsonProperty(value = "resourceType")
+ private String resourceType;
+
+ /*
+ * The SKU details.
+ */
+ @JsonProperty(value = "sku")
+ private AzureSku sku;
+
+ /*
+ * The number of instances of the cluster.
+ */
+ @JsonProperty(value = "capacity")
+ private AzureCapacity capacity;
+
+ /**
+ * Get the resourceType property: Resource Namespace and Type.
+ *
+ * @return the resourceType value.
+ */
+ public String resourceType() {
+ return this.resourceType;
+ }
+
+ /**
+ * Set the resourceType property: Resource Namespace and Type.
+ *
+ * @param resourceType the resourceType value to set.
+ * @return the AzureResourceSkuInner object itself.
+ */
+ public AzureResourceSkuInner withResourceType(String resourceType) {
+ this.resourceType = resourceType;
+ return this;
+ }
+
+ /**
+ * Get the sku property: The SKU details.
+ *
+ * @return the sku value.
+ */
+ public AzureSku sku() {
+ return this.sku;
+ }
+
+ /**
+ * Set the sku property: The SKU details.
+ *
+ * @param sku the sku value to set.
+ * @return the AzureResourceSkuInner object itself.
+ */
+ public AzureResourceSkuInner withSku(AzureSku sku) {
+ this.sku = sku;
+ return this;
+ }
+
+ /**
+ * Get the capacity property: The number of instances of the cluster.
+ *
+ * @return the capacity value.
+ */
+ public AzureCapacity capacity() {
+ return this.capacity;
+ }
+
+ /**
+ * Set the capacity property: The number of instances of the cluster.
+ *
+ * @param capacity the capacity value to set.
+ * @return the AzureResourceSkuInner object itself.
+ */
+ public AzureResourceSkuInner withCapacity(AzureCapacity capacity) {
+ this.capacity = capacity;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (sku() != null) {
+ sku().validate();
+ }
+ if (capacity() != null) {
+ capacity().validate();
+ }
+ }
+}
diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/BigDataPoolResourceInfoInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/BigDataPoolResourceInfoInner.java
index 140295794564..c21a2bc73342 100644
--- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/BigDataPoolResourceInfoInner.java
+++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/BigDataPoolResourceInfoInner.java
@@ -5,11 +5,13 @@
package com.azure.resourcemanager.synapse.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.Resource;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.synapse.models.AutoPauseProperties;
import com.azure.resourcemanager.synapse.models.AutoScaleProperties;
import com.azure.resourcemanager.synapse.models.DynamicExecutorAllocation;
+import com.azure.resourcemanager.synapse.models.LibraryInfo;
import com.azure.resourcemanager.synapse.models.LibraryRequirements;
import com.azure.resourcemanager.synapse.models.NodeSize;
import com.azure.resourcemanager.synapse.models.NodeSizeFamily;
@@ -21,38 +23,119 @@
import java.util.Map;
/** Big Data pool A Big Data pool. */
+@JsonFlatten
@Fluent
-public final class BigDataPoolResourceInfoInner extends Resource {
+public class BigDataPoolResourceInfoInner extends Resource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(BigDataPoolResourceInfoInner.class);
/*
- * Spark pool properties Big Data pool properties
+ * The state of the Big Data pool.
*/
- @JsonProperty(value = "properties")
- private BigDataPoolResourceProperties innerProperties;
+ @JsonProperty(value = "properties.provisioningState")
+ private String provisioningState;
- /**
- * Get the innerProperties property: Spark pool properties Big Data pool properties.
- *
- * @return the innerProperties value.
+ /*
+ * Spark pool auto-scaling properties Auto-scaling properties
*/
- private BigDataPoolResourceProperties innerProperties() {
- return this.innerProperties;
- }
+ @JsonProperty(value = "properties.autoScale")
+ private AutoScaleProperties autoScale;
- /** {@inheritDoc} */
- @Override
- public BigDataPoolResourceInfoInner withLocation(String location) {
- super.withLocation(location);
- return this;
- }
+ /*
+ * The time when the Big Data pool was created.
+ */
+ @JsonProperty(value = "properties.creationDate")
+ private OffsetDateTime creationDate;
- /** {@inheritDoc} */
- @Override
- public BigDataPoolResourceInfoInner withTags(Map tags) {
- super.withTags(tags);
- return this;
- }
+ /*
+ * Spark pool auto-pausing properties Auto-pausing properties
+ */
+ @JsonProperty(value = "properties.autoPause")
+ private AutoPauseProperties autoPause;
+
+ /*
+ * Whether compute isolation is required or not.
+ */
+ @JsonProperty(value = "properties.isComputeIsolationEnabled")
+ private Boolean isComputeIsolationEnabled;
+
+ /*
+ * Whether session level packages enabled.
+ */
+ @JsonProperty(value = "properties.sessionLevelPackagesEnabled")
+ private Boolean sessionLevelPackagesEnabled;
+
+ /*
+ * The cache size
+ */
+ @JsonProperty(value = "properties.cacheSize")
+ private Integer cacheSize;
+
+ /*
+ * Dynamic Executor Allocation
+ */
+ @JsonProperty(value = "properties.dynamicExecutorAllocation")
+ private DynamicExecutorAllocation dynamicExecutorAllocation;
+
+ /*
+ * The Spark events folder
+ */
+ @JsonProperty(value = "properties.sparkEventsFolder")
+ private String sparkEventsFolder;
+
+ /*
+ * The number of nodes in the Big Data pool.
+ */
+ @JsonProperty(value = "properties.nodeCount")
+ private Integer nodeCount;
+
+ /*
+ * Spark pool library version requirements Library version requirements
+ */
+ @JsonProperty(value = "properties.libraryRequirements")
+ private LibraryRequirements libraryRequirements;
+
+ /*
+ * List of custom libraries/packages associated with the spark pool.
+ */
+ @JsonProperty(value = "properties.customLibraries")
+ private List customLibraries;
+
+ /*
+ * Spark pool Config Properties Spark configuration file to specify
+ * additional properties
+ */
+ @JsonProperty(value = "properties.sparkConfigProperties")
+ private SparkConfigProperties sparkConfigProperties;
+
+ /*
+ * The Apache Spark version.
+ */
+ @JsonProperty(value = "properties.sparkVersion")
+ private String sparkVersion;
+
+ /*
+ * The default folder where Spark logs will be written.
+ */
+ @JsonProperty(value = "properties.defaultSparkLogFolder")
+ private String defaultSparkLogFolder;
+
+ /*
+ * The level of compute power that each node in the Big Data pool has.
+ */
+ @JsonProperty(value = "properties.nodeSize")
+ private NodeSize nodeSize;
+
+ /*
+ * The kind of nodes that the Big Data pool provides.
+ */
+ @JsonProperty(value = "properties.nodeSizeFamily")
+ private NodeSizeFamily nodeSizeFamily;
+
+ /*
+ * The time when the Big Data pool was updated successfully.
+ */
+ @JsonProperty(value = "properties.lastSucceededTimestamp", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime lastSucceededTimestamp;
/**
* Get the provisioningState property: The state of the Big Data pool.
@@ -60,7 +143,7 @@ public BigDataPoolResourceInfoInner withTags(Map tags) {
* @return the provisioningState value.
*/
public String provisioningState() {
- return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ return this.provisioningState;
}
/**
@@ -70,10 +153,7 @@ public String provisioningState() {
* @return the BigDataPoolResourceInfoInner object itself.
*/
public BigDataPoolResourceInfoInner withProvisioningState(String provisioningState) {
- if (this.innerProperties() == null) {
- this.innerProperties = new BigDataPoolResourceProperties();
- }
- this.innerProperties().withProvisioningState(provisioningState);
+ this.provisioningState = provisioningState;
return this;
}
@@ -83,7 +163,7 @@ public BigDataPoolResourceInfoInner withProvisioningState(String provisioningSta
* @return the autoScale value.
*/
public AutoScaleProperties autoScale() {
- return this.innerProperties() == null ? null : this.innerProperties().autoScale();
+ return this.autoScale;
}
/**
@@ -93,10 +173,7 @@ public AutoScaleProperties autoScale() {
* @return the BigDataPoolResourceInfoInner object itself.
*/
public BigDataPoolResourceInfoInner withAutoScale(AutoScaleProperties autoScale) {
- if (this.innerProperties() == null) {
- this.innerProperties = new BigDataPoolResourceProperties();
- }
- this.innerProperties().withAutoScale(autoScale);
+ this.autoScale = autoScale;
return this;
}
@@ -106,7 +183,7 @@ public BigDataPoolResourceInfoInner withAutoScale(AutoScaleProperties autoScale)
* @return the creationDate value.
*/
public OffsetDateTime creationDate() {
- return this.innerProperties() == null ? null : this.innerProperties().creationDate();
+ return this.creationDate;
}
/**
@@ -116,10 +193,7 @@ public OffsetDateTime creationDate() {
* @return the BigDataPoolResourceInfoInner object itself.
*/
public BigDataPoolResourceInfoInner withCreationDate(OffsetDateTime creationDate) {
- if (this.innerProperties() == null) {
- this.innerProperties = new BigDataPoolResourceProperties();
- }
- this.innerProperties().withCreationDate(creationDate);
+ this.creationDate = creationDate;
return this;
}
@@ -129,7 +203,7 @@ public BigDataPoolResourceInfoInner withCreationDate(OffsetDateTime creationDate
* @return the autoPause value.
*/
public AutoPauseProperties autoPause() {
- return this.innerProperties() == null ? null : this.innerProperties().autoPause();
+ return this.autoPause;
}
/**
@@ -139,10 +213,7 @@ public AutoPauseProperties autoPause() {
* @return the BigDataPoolResourceInfoInner object itself.
*/
public BigDataPoolResourceInfoInner withAutoPause(AutoPauseProperties autoPause) {
- if (this.innerProperties() == null) {
- this.innerProperties = new BigDataPoolResourceProperties();
- }
- this.innerProperties().withAutoPause(autoPause);
+ this.autoPause = autoPause;
return this;
}
@@ -152,7 +223,7 @@ public BigDataPoolResourceInfoInner withAutoPause(AutoPauseProperties autoPause)
* @return the isComputeIsolationEnabled value.
*/
public Boolean isComputeIsolationEnabled() {
- return this.innerProperties() == null ? null : this.innerProperties().isComputeIsolationEnabled();
+ return this.isComputeIsolationEnabled;
}
/**
@@ -162,10 +233,7 @@ public Boolean isComputeIsolationEnabled() {
* @return the BigDataPoolResourceInfoInner object itself.
*/
public BigDataPoolResourceInfoInner withIsComputeIsolationEnabled(Boolean isComputeIsolationEnabled) {
- if (this.innerProperties() == null) {
- this.innerProperties = new BigDataPoolResourceProperties();
- }
- this.innerProperties().withIsComputeIsolationEnabled(isComputeIsolationEnabled);
+ this.isComputeIsolationEnabled = isComputeIsolationEnabled;
return this;
}
@@ -175,7 +243,7 @@ public BigDataPoolResourceInfoInner withIsComputeIsolationEnabled(Boolean isComp
* @return the sessionLevelPackagesEnabled value.
*/
public Boolean sessionLevelPackagesEnabled() {
- return this.innerProperties() == null ? null : this.innerProperties().sessionLevelPackagesEnabled();
+ return this.sessionLevelPackagesEnabled;
}
/**
@@ -185,10 +253,7 @@ public Boolean sessionLevelPackagesEnabled() {
* @return the BigDataPoolResourceInfoInner object itself.
*/
public BigDataPoolResourceInfoInner withSessionLevelPackagesEnabled(Boolean sessionLevelPackagesEnabled) {
- if (this.innerProperties() == null) {
- this.innerProperties = new BigDataPoolResourceProperties();
- }
- this.innerProperties().withSessionLevelPackagesEnabled(sessionLevelPackagesEnabled);
+ this.sessionLevelPackagesEnabled = sessionLevelPackagesEnabled;
return this;
}
@@ -198,7 +263,7 @@ public BigDataPoolResourceInfoInner withSessionLevelPackagesEnabled(Boolean sess
* @return the cacheSize value.
*/
public Integer cacheSize() {
- return this.innerProperties() == null ? null : this.innerProperties().cacheSize();
+ return this.cacheSize;
}
/**
@@ -208,10 +273,7 @@ public Integer cacheSize() {
* @return the BigDataPoolResourceInfoInner object itself.
*/
public BigDataPoolResourceInfoInner withCacheSize(Integer cacheSize) {
- if (this.innerProperties() == null) {
- this.innerProperties = new BigDataPoolResourceProperties();
- }
- this.innerProperties().withCacheSize(cacheSize);
+ this.cacheSize = cacheSize;
return this;
}
@@ -221,7 +283,7 @@ public BigDataPoolResourceInfoInner withCacheSize(Integer cacheSize) {
* @return the dynamicExecutorAllocation value.
*/
public DynamicExecutorAllocation dynamicExecutorAllocation() {
- return this.innerProperties() == null ? null : this.innerProperties().dynamicExecutorAllocation();
+ return this.dynamicExecutorAllocation;
}
/**
@@ -232,10 +294,7 @@ public DynamicExecutorAllocation dynamicExecutorAllocation() {
*/
public BigDataPoolResourceInfoInner withDynamicExecutorAllocation(
DynamicExecutorAllocation dynamicExecutorAllocation) {
- if (this.innerProperties() == null) {
- this.innerProperties = new BigDataPoolResourceProperties();
- }
- this.innerProperties().withDynamicExecutorAllocation(dynamicExecutorAllocation);
+ this.dynamicExecutorAllocation = dynamicExecutorAllocation;
return this;
}
@@ -245,7 +304,7 @@ public BigDataPoolResourceInfoInner withDynamicExecutorAllocation(
* @return the sparkEventsFolder value.
*/
public String sparkEventsFolder() {
- return this.innerProperties() == null ? null : this.innerProperties().sparkEventsFolder();
+ return this.sparkEventsFolder;
}
/**
@@ -255,10 +314,7 @@ public String sparkEventsFolder() {
* @return the BigDataPoolResourceInfoInner object itself.
*/
public BigDataPoolResourceInfoInner withSparkEventsFolder(String sparkEventsFolder) {
- if (this.innerProperties() == null) {
- this.innerProperties = new BigDataPoolResourceProperties();
- }
- this.innerProperties().withSparkEventsFolder(sparkEventsFolder);
+ this.sparkEventsFolder = sparkEventsFolder;
return this;
}
@@ -268,7 +324,7 @@ public BigDataPoolResourceInfoInner withSparkEventsFolder(String sparkEventsFold
* @return the nodeCount value.
*/
public Integer nodeCount() {
- return this.innerProperties() == null ? null : this.innerProperties().nodeCount();
+ return this.nodeCount;
}
/**
@@ -278,10 +334,7 @@ public Integer nodeCount() {
* @return the BigDataPoolResourceInfoInner object itself.
*/
public BigDataPoolResourceInfoInner withNodeCount(Integer nodeCount) {
- if (this.innerProperties() == null) {
- this.innerProperties = new BigDataPoolResourceProperties();
- }
- this.innerProperties().withNodeCount(nodeCount);
+ this.nodeCount = nodeCount;
return this;
}
@@ -291,7 +344,7 @@ public BigDataPoolResourceInfoInner withNodeCount(Integer nodeCount) {
* @return the libraryRequirements value.
*/
public LibraryRequirements libraryRequirements() {
- return this.innerProperties() == null ? null : this.innerProperties().libraryRequirements();
+ return this.libraryRequirements;
}
/**
@@ -301,10 +354,7 @@ public LibraryRequirements libraryRequirements() {
* @return the BigDataPoolResourceInfoInner object itself.
*/
public BigDataPoolResourceInfoInner withLibraryRequirements(LibraryRequirements libraryRequirements) {
- if (this.innerProperties() == null) {
- this.innerProperties = new BigDataPoolResourceProperties();
- }
- this.innerProperties().withLibraryRequirements(libraryRequirements);
+ this.libraryRequirements = libraryRequirements;
return this;
}
@@ -314,7 +364,7 @@ public BigDataPoolResourceInfoInner withLibraryRequirements(LibraryRequirements
* @return the customLibraries value.
*/
public List customLibraries() {
- return this.innerProperties() == null ? null : this.innerProperties().customLibraries();
+ return this.customLibraries;
}
/**
@@ -324,10 +374,7 @@ public List customLibraries() {
* @return the BigDataPoolResourceInfoInner object itself.
*/
public BigDataPoolResourceInfoInner withCustomLibraries(List customLibraries) {
- if (this.innerProperties() == null) {
- this.innerProperties = new BigDataPoolResourceProperties();
- }
- this.innerProperties().withCustomLibraries(customLibraries);
+ this.customLibraries = customLibraries;
return this;
}
@@ -338,7 +385,7 @@ public BigDataPoolResourceInfoInner withCustomLibraries(List custom
* @return the sparkConfigProperties value.
*/
public SparkConfigProperties sparkConfigProperties() {
- return this.innerProperties() == null ? null : this.innerProperties().sparkConfigProperties();
+ return this.sparkConfigProperties;
}
/**
@@ -349,10 +396,7 @@ public SparkConfigProperties sparkConfigProperties() {
* @return the BigDataPoolResourceInfoInner object itself.
*/
public BigDataPoolResourceInfoInner withSparkConfigProperties(SparkConfigProperties sparkConfigProperties) {
- if (this.innerProperties() == null) {
- this.innerProperties = new BigDataPoolResourceProperties();
- }
- this.innerProperties().withSparkConfigProperties(sparkConfigProperties);
+ this.sparkConfigProperties = sparkConfigProperties;
return this;
}
@@ -362,7 +406,7 @@ public BigDataPoolResourceInfoInner withSparkConfigProperties(SparkConfigPropert
* @return the sparkVersion value.
*/
public String sparkVersion() {
- return this.innerProperties() == null ? null : this.innerProperties().sparkVersion();
+ return this.sparkVersion;
}
/**
@@ -372,10 +416,7 @@ public String sparkVersion() {
* @return the BigDataPoolResourceInfoInner object itself.
*/
public BigDataPoolResourceInfoInner withSparkVersion(String sparkVersion) {
- if (this.innerProperties() == null) {
- this.innerProperties = new BigDataPoolResourceProperties();
- }
- this.innerProperties().withSparkVersion(sparkVersion);
+ this.sparkVersion = sparkVersion;
return this;
}
@@ -385,7 +426,7 @@ public BigDataPoolResourceInfoInner withSparkVersion(String sparkVersion) {
* @return the defaultSparkLogFolder value.
*/
public String defaultSparkLogFolder() {
- return this.innerProperties() == null ? null : this.innerProperties().defaultSparkLogFolder();
+ return this.defaultSparkLogFolder;
}
/**
@@ -395,10 +436,7 @@ public String defaultSparkLogFolder() {
* @return the BigDataPoolResourceInfoInner object itself.
*/
public BigDataPoolResourceInfoInner withDefaultSparkLogFolder(String defaultSparkLogFolder) {
- if (this.innerProperties() == null) {
- this.innerProperties = new BigDataPoolResourceProperties();
- }
- this.innerProperties().withDefaultSparkLogFolder(defaultSparkLogFolder);
+ this.defaultSparkLogFolder = defaultSparkLogFolder;
return this;
}
@@ -408,7 +446,7 @@ public BigDataPoolResourceInfoInner withDefaultSparkLogFolder(String defaultSpar
* @return the nodeSize value.
*/
public NodeSize nodeSize() {
- return this.innerProperties() == null ? null : this.innerProperties().nodeSize();
+ return this.nodeSize;
}
/**
@@ -418,10 +456,7 @@ public NodeSize nodeSize() {
* @return the BigDataPoolResourceInfoInner object itself.
*/
public BigDataPoolResourceInfoInner withNodeSize(NodeSize nodeSize) {
- if (this.innerProperties() == null) {
- this.innerProperties = new BigDataPoolResourceProperties();
- }
- this.innerProperties().withNodeSize(nodeSize);
+ this.nodeSize = nodeSize;
return this;
}
@@ -431,7 +466,7 @@ public BigDataPoolResourceInfoInner withNodeSize(NodeSize nodeSize) {
* @return the nodeSizeFamily value.
*/
public NodeSizeFamily nodeSizeFamily() {
- return this.innerProperties() == null ? null : this.innerProperties().nodeSizeFamily();
+ return this.nodeSizeFamily;
}
/**
@@ -441,10 +476,7 @@ public NodeSizeFamily nodeSizeFamily() {
* @return the BigDataPoolResourceInfoInner object itself.
*/
public BigDataPoolResourceInfoInner withNodeSizeFamily(NodeSizeFamily nodeSizeFamily) {
- if (this.innerProperties() == null) {
- this.innerProperties = new BigDataPoolResourceProperties();
- }
- this.innerProperties().withNodeSizeFamily(nodeSizeFamily);
+ this.nodeSizeFamily = nodeSizeFamily;
return this;
}
@@ -454,7 +486,21 @@ public BigDataPoolResourceInfoInner withNodeSizeFamily(NodeSizeFamily nodeSizeFa
* @return the lastSucceededTimestamp value.
*/
public OffsetDateTime lastSucceededTimestamp() {
- return this.innerProperties() == null ? null : this.innerProperties().lastSucceededTimestamp();
+ return this.lastSucceededTimestamp;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public BigDataPoolResourceInfoInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public BigDataPoolResourceInfoInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
}
/**
@@ -463,8 +509,23 @@ public OffsetDateTime lastSucceededTimestamp() {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
+ if (autoScale() != null) {
+ autoScale().validate();
+ }
+ if (autoPause() != null) {
+ autoPause().validate();
+ }
+ if (dynamicExecutorAllocation() != null) {
+ dynamicExecutorAllocation().validate();
+ }
+ if (libraryRequirements() != null) {
+ libraryRequirements().validate();
+ }
+ if (customLibraries() != null) {
+ customLibraries().forEach(e -> e.validate());
+ }
+ if (sparkConfigProperties() != null) {
+ sparkConfigProperties().validate();
}
}
}
diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/BigDataPoolResourceProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/BigDataPoolResourceProperties.java
deleted file mode 100644
index 918608da1d77..000000000000
--- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/BigDataPoolResourceProperties.java
+++ /dev/null
@@ -1,512 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.synapse.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.synapse.models.AutoPauseProperties;
-import com.azure.resourcemanager.synapse.models.AutoScaleProperties;
-import com.azure.resourcemanager.synapse.models.DynamicExecutorAllocation;
-import com.azure.resourcemanager.synapse.models.LibraryRequirements;
-import com.azure.resourcemanager.synapse.models.NodeSize;
-import com.azure.resourcemanager.synapse.models.NodeSizeFamily;
-import com.azure.resourcemanager.synapse.models.SparkConfigProperties;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.time.OffsetDateTime;
-import java.util.List;
-
-/** Spark pool properties Properties of a Big Data pool powered by Apache Spark. */
-@Fluent
-public final class BigDataPoolResourceProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(BigDataPoolResourceProperties.class);
-
- /*
- * The state of the Big Data pool.
- */
- @JsonProperty(value = "provisioningState")
- private String provisioningState;
-
- /*
- * Spark pool auto-scaling properties Auto-scaling properties
- */
- @JsonProperty(value = "autoScale")
- private AutoScaleProperties autoScale;
-
- /*
- * The time when the Big Data pool was created.
- */
- @JsonProperty(value = "creationDate")
- private OffsetDateTime creationDate;
-
- /*
- * Spark pool auto-pausing properties Auto-pausing properties
- */
- @JsonProperty(value = "autoPause")
- private AutoPauseProperties autoPause;
-
- /*
- * Whether compute isolation is required or not.
- */
- @JsonProperty(value = "isComputeIsolationEnabled")
- private Boolean isComputeIsolationEnabled;
-
- /*
- * Whether session level packages enabled.
- */
- @JsonProperty(value = "sessionLevelPackagesEnabled")
- private Boolean sessionLevelPackagesEnabled;
-
- /*
- * The cache size
- */
- @JsonProperty(value = "cacheSize")
- private Integer cacheSize;
-
- /*
- * Dynamic Executor Allocation
- */
- @JsonProperty(value = "dynamicExecutorAllocation")
- private DynamicExecutorAllocation dynamicExecutorAllocation;
-
- /*
- * The Spark events folder
- */
- @JsonProperty(value = "sparkEventsFolder")
- private String sparkEventsFolder;
-
- /*
- * The number of nodes in the Big Data pool.
- */
- @JsonProperty(value = "nodeCount")
- private Integer nodeCount;
-
- /*
- * Spark pool library version requirements Library version requirements
- */
- @JsonProperty(value = "libraryRequirements")
- private LibraryRequirements libraryRequirements;
-
- /*
- * List of custom libraries/packages associated with the spark pool.
- */
- @JsonProperty(value = "customLibraries")
- private List customLibraries;
-
- /*
- * Spark pool Config Properties Spark configuration file to specify
- * additional properties
- */
- @JsonProperty(value = "sparkConfigProperties")
- private SparkConfigProperties sparkConfigProperties;
-
- /*
- * The Apache Spark version.
- */
- @JsonProperty(value = "sparkVersion")
- private String sparkVersion;
-
- /*
- * The default folder where Spark logs will be written.
- */
- @JsonProperty(value = "defaultSparkLogFolder")
- private String defaultSparkLogFolder;
-
- /*
- * The level of compute power that each node in the Big Data pool has.
- */
- @JsonProperty(value = "nodeSize")
- private NodeSize nodeSize;
-
- /*
- * The kind of nodes that the Big Data pool provides.
- */
- @JsonProperty(value = "nodeSizeFamily")
- private NodeSizeFamily nodeSizeFamily;
-
- /*
- * The time when the Big Data pool was updated successfully.
- */
- @JsonProperty(value = "lastSucceededTimestamp", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime lastSucceededTimestamp;
-
- /**
- * Get the provisioningState property: The state of the Big Data pool.
- *
- * @return the provisioningState value.
- */
- public String provisioningState() {
- return this.provisioningState;
- }
-
- /**
- * Set the provisioningState property: The state of the Big Data pool.
- *
- * @param provisioningState the provisioningState value to set.
- * @return the BigDataPoolResourceProperties object itself.
- */
- public BigDataPoolResourceProperties withProvisioningState(String provisioningState) {
- this.provisioningState = provisioningState;
- return this;
- }
-
- /**
- * Get the autoScale property: Spark pool auto-scaling properties Auto-scaling properties.
- *
- * @return the autoScale value.
- */
- public AutoScaleProperties autoScale() {
- return this.autoScale;
- }
-
- /**
- * Set the autoScale property: Spark pool auto-scaling properties Auto-scaling properties.
- *
- * @param autoScale the autoScale value to set.
- * @return the BigDataPoolResourceProperties object itself.
- */
- public BigDataPoolResourceProperties withAutoScale(AutoScaleProperties autoScale) {
- this.autoScale = autoScale;
- return this;
- }
-
- /**
- * Get the creationDate property: The time when the Big Data pool was created.
- *
- * @return the creationDate value.
- */
- public OffsetDateTime creationDate() {
- return this.creationDate;
- }
-
- /**
- * Set the creationDate property: The time when the Big Data pool was created.
- *
- * @param creationDate the creationDate value to set.
- * @return the BigDataPoolResourceProperties object itself.
- */
- public BigDataPoolResourceProperties withCreationDate(OffsetDateTime creationDate) {
- this.creationDate = creationDate;
- return this;
- }
-
- /**
- * Get the autoPause property: Spark pool auto-pausing properties Auto-pausing properties.
- *
- * @return the autoPause value.
- */
- public AutoPauseProperties autoPause() {
- return this.autoPause;
- }
-
- /**
- * Set the autoPause property: Spark pool auto-pausing properties Auto-pausing properties.
- *
- * @param autoPause the autoPause value to set.
- * @return the BigDataPoolResourceProperties object itself.
- */
- public BigDataPoolResourceProperties withAutoPause(AutoPauseProperties autoPause) {
- this.autoPause = autoPause;
- return this;
- }
-
- /**
- * Get the isComputeIsolationEnabled property: Whether compute isolation is required or not.
- *
- * @return the isComputeIsolationEnabled value.
- */
- public Boolean isComputeIsolationEnabled() {
- return this.isComputeIsolationEnabled;
- }
-
- /**
- * Set the isComputeIsolationEnabled property: Whether compute isolation is required or not.
- *
- * @param isComputeIsolationEnabled the isComputeIsolationEnabled value to set.
- * @return the BigDataPoolResourceProperties object itself.
- */
- public BigDataPoolResourceProperties withIsComputeIsolationEnabled(Boolean isComputeIsolationEnabled) {
- this.isComputeIsolationEnabled = isComputeIsolationEnabled;
- return this;
- }
-
- /**
- * Get the sessionLevelPackagesEnabled property: Whether session level packages enabled.
- *
- * @return the sessionLevelPackagesEnabled value.
- */
- public Boolean sessionLevelPackagesEnabled() {
- return this.sessionLevelPackagesEnabled;
- }
-
- /**
- * Set the sessionLevelPackagesEnabled property: Whether session level packages enabled.
- *
- * @param sessionLevelPackagesEnabled the sessionLevelPackagesEnabled value to set.
- * @return the BigDataPoolResourceProperties object itself.
- */
- public BigDataPoolResourceProperties withSessionLevelPackagesEnabled(Boolean sessionLevelPackagesEnabled) {
- this.sessionLevelPackagesEnabled = sessionLevelPackagesEnabled;
- return this;
- }
-
- /**
- * Get the cacheSize property: The cache size.
- *
- * @return the cacheSize value.
- */
- public Integer cacheSize() {
- return this.cacheSize;
- }
-
- /**
- * Set the cacheSize property: The cache size.
- *
- * @param cacheSize the cacheSize value to set.
- * @return the BigDataPoolResourceProperties object itself.
- */
- public BigDataPoolResourceProperties withCacheSize(Integer cacheSize) {
- this.cacheSize = cacheSize;
- return this;
- }
-
- /**
- * Get the dynamicExecutorAllocation property: Dynamic Executor Allocation.
- *
- * @return the dynamicExecutorAllocation value.
- */
- public DynamicExecutorAllocation dynamicExecutorAllocation() {
- return this.dynamicExecutorAllocation;
- }
-
- /**
- * Set the dynamicExecutorAllocation property: Dynamic Executor Allocation.
- *
- * @param dynamicExecutorAllocation the dynamicExecutorAllocation value to set.
- * @return the BigDataPoolResourceProperties object itself.
- */
- public BigDataPoolResourceProperties withDynamicExecutorAllocation(
- DynamicExecutorAllocation dynamicExecutorAllocation) {
- this.dynamicExecutorAllocation = dynamicExecutorAllocation;
- return this;
- }
-
- /**
- * Get the sparkEventsFolder property: The Spark events folder.
- *
- * @return the sparkEventsFolder value.
- */
- public String sparkEventsFolder() {
- return this.sparkEventsFolder;
- }
-
- /**
- * Set the sparkEventsFolder property: The Spark events folder.
- *
- * @param sparkEventsFolder the sparkEventsFolder value to set.
- * @return the BigDataPoolResourceProperties object itself.
- */
- public BigDataPoolResourceProperties withSparkEventsFolder(String sparkEventsFolder) {
- this.sparkEventsFolder = sparkEventsFolder;
- return this;
- }
-
- /**
- * Get the nodeCount property: The number of nodes in the Big Data pool.
- *
- * @return the nodeCount value.
- */
- public Integer nodeCount() {
- return this.nodeCount;
- }
-
- /**
- * Set the nodeCount property: The number of nodes in the Big Data pool.
- *
- * @param nodeCount the nodeCount value to set.
- * @return the BigDataPoolResourceProperties object itself.
- */
- public BigDataPoolResourceProperties withNodeCount(Integer nodeCount) {
- this.nodeCount = nodeCount;
- return this;
- }
-
- /**
- * Get the libraryRequirements property: Spark pool library version requirements Library version requirements.
- *
- * @return the libraryRequirements value.
- */
- public LibraryRequirements libraryRequirements() {
- return this.libraryRequirements;
- }
-
- /**
- * Set the libraryRequirements property: Spark pool library version requirements Library version requirements.
- *
- * @param libraryRequirements the libraryRequirements value to set.
- * @return the BigDataPoolResourceProperties object itself.
- */
- public BigDataPoolResourceProperties withLibraryRequirements(LibraryRequirements libraryRequirements) {
- this.libraryRequirements = libraryRequirements;
- return this;
- }
-
- /**
- * Get the customLibraries property: List of custom libraries/packages associated with the spark pool.
- *
- * @return the customLibraries value.
- */
- public List customLibraries() {
- return this.customLibraries;
- }
-
- /**
- * Set the customLibraries property: List of custom libraries/packages associated with the spark pool.
- *
- * @param customLibraries the customLibraries value to set.
- * @return the BigDataPoolResourceProperties object itself.
- */
- public BigDataPoolResourceProperties withCustomLibraries(List customLibraries) {
- this.customLibraries = customLibraries;
- return this;
- }
-
- /**
- * Get the sparkConfigProperties property: Spark pool Config Properties Spark configuration file to specify
- * additional properties.
- *
- * @return the sparkConfigProperties value.
- */
- public SparkConfigProperties sparkConfigProperties() {
- return this.sparkConfigProperties;
- }
-
- /**
- * Set the sparkConfigProperties property: Spark pool Config Properties Spark configuration file to specify
- * additional properties.
- *
- * @param sparkConfigProperties the sparkConfigProperties value to set.
- * @return the BigDataPoolResourceProperties object itself.
- */
- public BigDataPoolResourceProperties withSparkConfigProperties(SparkConfigProperties sparkConfigProperties) {
- this.sparkConfigProperties = sparkConfigProperties;
- return this;
- }
-
- /**
- * Get the sparkVersion property: The Apache Spark version.
- *
- * @return the sparkVersion value.
- */
- public String sparkVersion() {
- return this.sparkVersion;
- }
-
- /**
- * Set the sparkVersion property: The Apache Spark version.
- *
- * @param sparkVersion the sparkVersion value to set.
- * @return the BigDataPoolResourceProperties object itself.
- */
- public BigDataPoolResourceProperties withSparkVersion(String sparkVersion) {
- this.sparkVersion = sparkVersion;
- return this;
- }
-
- /**
- * Get the defaultSparkLogFolder property: The default folder where Spark logs will be written.
- *
- * @return the defaultSparkLogFolder value.
- */
- public String defaultSparkLogFolder() {
- return this.defaultSparkLogFolder;
- }
-
- /**
- * Set the defaultSparkLogFolder property: The default folder where Spark logs will be written.
- *
- * @param defaultSparkLogFolder the defaultSparkLogFolder value to set.
- * @return the BigDataPoolResourceProperties object itself.
- */
- public BigDataPoolResourceProperties withDefaultSparkLogFolder(String defaultSparkLogFolder) {
- this.defaultSparkLogFolder = defaultSparkLogFolder;
- return this;
- }
-
- /**
- * Get the nodeSize property: The level of compute power that each node in the Big Data pool has.
- *
- * @return the nodeSize value.
- */
- public NodeSize nodeSize() {
- return this.nodeSize;
- }
-
- /**
- * Set the nodeSize property: The level of compute power that each node in the Big Data pool has.
- *
- * @param nodeSize the nodeSize value to set.
- * @return the BigDataPoolResourceProperties object itself.
- */
- public BigDataPoolResourceProperties withNodeSize(NodeSize nodeSize) {
- this.nodeSize = nodeSize;
- return this;
- }
-
- /**
- * Get the nodeSizeFamily property: The kind of nodes that the Big Data pool provides.
- *
- * @return the nodeSizeFamily value.
- */
- public NodeSizeFamily nodeSizeFamily() {
- return this.nodeSizeFamily;
- }
-
- /**
- * Set the nodeSizeFamily property: The kind of nodes that the Big Data pool provides.
- *
- * @param nodeSizeFamily the nodeSizeFamily value to set.
- * @return the BigDataPoolResourceProperties object itself.
- */
- public BigDataPoolResourceProperties withNodeSizeFamily(NodeSizeFamily nodeSizeFamily) {
- this.nodeSizeFamily = nodeSizeFamily;
- return this;
- }
-
- /**
- * Get the lastSucceededTimestamp property: The time when the Big Data pool was updated successfully.
- *
- * @return the lastSucceededTimestamp value.
- */
- public OffsetDateTime lastSucceededTimestamp() {
- return this.lastSucceededTimestamp;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (autoScale() != null) {
- autoScale().validate();
- }
- if (autoPause() != null) {
- autoPause().validate();
- }
- if (dynamicExecutorAllocation() != null) {
- dynamicExecutorAllocation().validate();
- }
- if (libraryRequirements() != null) {
- libraryRequirements().validate();
- }
- if (customLibraries() != null) {
- customLibraries().forEach(e -> e.validate());
- }
- if (sparkConfigProperties() != null) {
- sparkConfigProperties().validate();
- }
- }
-}
diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/CheckNameResultInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/CheckNameResultInner.java
new file mode 100644
index 000000000000..a2a72a787e0d
--- /dev/null
+++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/CheckNameResultInner.java
@@ -0,0 +1,132 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.synapse.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.synapse.models.Reason;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The result returned from a check name availability request. */
+@Fluent
+public final class CheckNameResultInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(CheckNameResultInner.class);
+
+ /*
+ * Specifies a Boolean value that indicates if the name is available.
+ */
+ @JsonProperty(value = "nameAvailable")
+ private Boolean nameAvailable;
+
+ /*
+ * The name that was checked.
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /*
+ * Message indicating an unavailable name due to a conflict, or a
+ * description of the naming rules that are violated.
+ */
+ @JsonProperty(value = "message")
+ private String message;
+
+ /*
+ * Message providing the reason why the given name is invalid.
+ */
+ @JsonProperty(value = "reason")
+ private Reason reason;
+
+ /**
+ * Get the nameAvailable property: Specifies a Boolean value that indicates if the name is available.
+ *
+ * @return the nameAvailable value.
+ */
+ public Boolean nameAvailable() {
+ return this.nameAvailable;
+ }
+
+ /**
+ * Set the nameAvailable property: Specifies a Boolean value that indicates if the name is available.
+ *
+ * @param nameAvailable the nameAvailable value to set.
+ * @return the CheckNameResultInner object itself.
+ */
+ public CheckNameResultInner withNameAvailable(Boolean nameAvailable) {
+ this.nameAvailable = nameAvailable;
+ return this;
+ }
+
+ /**
+ * Get the name property: The name that was checked.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: The name that was checked.
+ *
+ * @param name the name value to set.
+ * @return the CheckNameResultInner object itself.
+ */
+ public CheckNameResultInner withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the message property: Message indicating an unavailable name due to a conflict, or a description of the
+ * naming rules that are violated.
+ *
+ * @return the message value.
+ */
+ public String message() {
+ return this.message;
+ }
+
+ /**
+ * Set the message property: Message indicating an unavailable name due to a conflict, or a description of the
+ * naming rules that are violated.
+ *
+ * @param message the message value to set.
+ * @return the CheckNameResultInner object itself.
+ */
+ public CheckNameResultInner withMessage(String message) {
+ this.message = message;
+ return this;
+ }
+
+ /**
+ * Get the reason property: Message providing the reason why the given name is invalid.
+ *
+ * @return the reason value.
+ */
+ public Reason reason() {
+ return this.reason;
+ }
+
+ /**
+ * Set the reason property: Message providing the reason why the given name is invalid.
+ *
+ * @param reason the reason value to set.
+ * @return the CheckNameResultInner object itself.
+ */
+ public CheckNameResultInner withReason(Reason reason) {
+ this.reason = reason;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ClusterPrincipalAssignmentInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ClusterPrincipalAssignmentInner.java
new file mode 100644
index 000000000000..a353fd8051a0
--- /dev/null
+++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ClusterPrincipalAssignmentInner.java
@@ -0,0 +1,199 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.synapse.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.synapse.models.ClusterPrincipalRole;
+import com.azure.resourcemanager.synapse.models.PrincipalType;
+import com.azure.resourcemanager.synapse.models.ResourceProvisioningState;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Class representing a cluster principal assignment. */
+@JsonFlatten
+@Fluent
+public class ClusterPrincipalAssignmentInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ClusterPrincipalAssignmentInner.class);
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy
+ * information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /*
+ * The principal ID assigned to the cluster principal. It can be a user
+ * email, application ID, or security group name.
+ */
+ @JsonProperty(value = "properties.principalId")
+ private String principalId;
+
+ /*
+ * Cluster principal role.
+ */
+ @JsonProperty(value = "properties.role")
+ private ClusterPrincipalRole role;
+
+ /*
+ * The tenant id of the principal
+ */
+ @JsonProperty(value = "properties.tenantId")
+ private String tenantId;
+
+ /*
+ * Principal type.
+ */
+ @JsonProperty(value = "properties.principalType")
+ private PrincipalType principalType;
+
+ /*
+ * The tenant name of the principal
+ */
+ @JsonProperty(value = "properties.tenantName", access = JsonProperty.Access.WRITE_ONLY)
+ private String tenantName;
+
+ /*
+ * The principal name
+ */
+ @JsonProperty(value = "properties.principalName", access = JsonProperty.Access.WRITE_ONLY)
+ private String principalName;
+
+ /*
+ * The provisioned state of the resource.
+ */
+ @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ResourceProvisioningState provisioningState;
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the principalId property: The principal ID assigned to the cluster principal. It can be a user email,
+ * application ID, or security group name.
+ *
+ * @return the principalId value.
+ */
+ public String principalId() {
+ return this.principalId;
+ }
+
+ /**
+ * Set the principalId property: The principal ID assigned to the cluster principal. It can be a user email,
+ * application ID, or security group name.
+ *
+ * @param principalId the principalId value to set.
+ * @return the ClusterPrincipalAssignmentInner object itself.
+ */
+ public ClusterPrincipalAssignmentInner withPrincipalId(String principalId) {
+ this.principalId = principalId;
+ return this;
+ }
+
+ /**
+ * Get the role property: Cluster principal role.
+ *
+ * @return the role value.
+ */
+ public ClusterPrincipalRole role() {
+ return this.role;
+ }
+
+ /**
+ * Set the role property: Cluster principal role.
+ *
+ * @param role the role value to set.
+ * @return the ClusterPrincipalAssignmentInner object itself.
+ */
+ public ClusterPrincipalAssignmentInner withRole(ClusterPrincipalRole role) {
+ this.role = role;
+ return this;
+ }
+
+ /**
+ * Get the tenantId property: The tenant id of the principal.
+ *
+ * @return the tenantId value.
+ */
+ public String tenantId() {
+ return this.tenantId;
+ }
+
+ /**
+ * Set the tenantId property: The tenant id of the principal.
+ *
+ * @param tenantId the tenantId value to set.
+ * @return the ClusterPrincipalAssignmentInner object itself.
+ */
+ public ClusterPrincipalAssignmentInner withTenantId(String tenantId) {
+ this.tenantId = tenantId;
+ return this;
+ }
+
+ /**
+ * Get the principalType property: Principal type.
+ *
+ * @return the principalType value.
+ */
+ public PrincipalType principalType() {
+ return this.principalType;
+ }
+
+ /**
+ * Set the principalType property: Principal type.
+ *
+ * @param principalType the principalType value to set.
+ * @return the ClusterPrincipalAssignmentInner object itself.
+ */
+ public ClusterPrincipalAssignmentInner withPrincipalType(PrincipalType principalType) {
+ this.principalType = principalType;
+ return this;
+ }
+
+ /**
+ * Get the tenantName property: The tenant name of the principal.
+ *
+ * @return the tenantName value.
+ */
+ public String tenantName() {
+ return this.tenantName;
+ }
+
+ /**
+ * Get the principalName property: The principal name.
+ *
+ * @return the principalName value.
+ */
+ public String principalName() {
+ return this.principalName;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioned state of the resource.
+ *
+ * @return the provisioningState value.
+ */
+ public ResourceProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/CmdkeySetupTypeProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/CmdkeySetupTypeProperties.java
deleted file mode 100644
index c10079d1d941..000000000000
--- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/CmdkeySetupTypeProperties.java
+++ /dev/null
@@ -1,123 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.synapse.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.synapse.models.SecretBase;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** Cmdkey command custom setup type properties. */
-@Fluent
-public final class CmdkeySetupTypeProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(CmdkeySetupTypeProperties.class);
-
- /*
- * The server name of data source access.
- */
- @JsonProperty(value = "targetName", required = true)
- private Object targetName;
-
- /*
- * The user name of data source access.
- */
- @JsonProperty(value = "userName", required = true)
- private Object username;
-
- /*
- * The password of data source access.
- */
- @JsonProperty(value = "password", required = true)
- private SecretBase password;
-
- /**
- * Get the targetName property: The server name of data source access.
- *
- * @return the targetName value.
- */
- public Object targetName() {
- return this.targetName;
- }
-
- /**
- * Set the targetName property: The server name of data source access.
- *
- * @param targetName the targetName value to set.
- * @return the CmdkeySetupTypeProperties object itself.
- */
- public CmdkeySetupTypeProperties withTargetName(Object targetName) {
- this.targetName = targetName;
- return this;
- }
-
- /**
- * Get the username property: The user name of data source access.
- *
- * @return the username value.
- */
- public Object username() {
- return this.username;
- }
-
- /**
- * Set the username property: The user name of data source access.
- *
- * @param username the username value to set.
- * @return the CmdkeySetupTypeProperties object itself.
- */
- public CmdkeySetupTypeProperties withUsername(Object username) {
- this.username = username;
- return this;
- }
-
- /**
- * Get the password property: The password of data source access.
- *
- * @return the password value.
- */
- public SecretBase password() {
- return this.password;
- }
-
- /**
- * Set the password property: The password of data source access.
- *
- * @param password the password value to set.
- * @return the CmdkeySetupTypeProperties object itself.
- */
- public CmdkeySetupTypeProperties withPassword(SecretBase password) {
- this.password = password;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (targetName() == null) {
- throw logger
- .logExceptionAsError(
- new IllegalArgumentException(
- "Missing required property targetName in model CmdkeySetupTypeProperties"));
- }
- if (username() == null) {
- throw logger
- .logExceptionAsError(
- new IllegalArgumentException(
- "Missing required property username in model CmdkeySetupTypeProperties"));
- }
- if (password() == null) {
- throw logger
- .logExceptionAsError(
- new IllegalArgumentException(
- "Missing required property password in model CmdkeySetupTypeProperties"));
- } else {
- password().validate();
- }
- }
-}
diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionInner.java
new file mode 100644
index 000000000000..5dc679d9dd9d
--- /dev/null
+++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionInner.java
@@ -0,0 +1,85 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.synapse.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.synapse.models.EventGridDataConnection;
+import com.azure.resourcemanager.synapse.models.EventHubDataConnection;
+import com.azure.resourcemanager.synapse.models.IotHubDataConnection;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonSubTypes;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+
+/** Class representing a data connection. */
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.PROPERTY,
+ property = "kind",
+ defaultImpl = DataConnectionInner.class)
+@JsonTypeName("DataConnection")
+@JsonSubTypes({
+ @JsonSubTypes.Type(name = "EventHub", value = EventHubDataConnection.class),
+ @JsonSubTypes.Type(name = "IotHub", value = IotHubDataConnection.class),
+ @JsonSubTypes.Type(name = "EventGrid", value = EventGridDataConnection.class)
+})
+@Fluent
+public class DataConnectionInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DataConnectionInner.class);
+
+ /*
+ * Resource location.
+ */
+ @JsonProperty(value = "location")
+ private String location;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy
+ * information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the location property: Resource location.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Set the location property: Resource location.
+ *
+ * @param location the location value to set.
+ * @return the DataConnectionInner object itself.
+ */
+ public DataConnectionInner withLocation(String location) {
+ this.location = location;
+ 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() {
+ }
+}
diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionValidationInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionValidationInner.java
new file mode 100644
index 000000000000..3c35d9f3e385
--- /dev/null
+++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionValidationInner.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.synapse.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Class representing an data connection validation. */
+@Fluent
+public final class DataConnectionValidationInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DataConnectionValidationInner.class);
+
+ /*
+ * The name of the data connection.
+ */
+ @JsonProperty(value = "dataConnectionName")
+ private String dataConnectionName;
+
+ /*
+ * The data connection properties to validate.
+ */
+ @JsonProperty(value = "properties")
+ private DataConnectionInner properties;
+
+ /**
+ * Get the dataConnectionName property: The name of the data connection.
+ *
+ * @return the dataConnectionName value.
+ */
+ public String dataConnectionName() {
+ return this.dataConnectionName;
+ }
+
+ /**
+ * Set the dataConnectionName property: The name of the data connection.
+ *
+ * @param dataConnectionName the dataConnectionName value to set.
+ * @return the DataConnectionValidationInner object itself.
+ */
+ public DataConnectionValidationInner withDataConnectionName(String dataConnectionName) {
+ this.dataConnectionName = dataConnectionName;
+ return this;
+ }
+
+ /**
+ * Get the properties property: The data connection properties to validate.
+ *
+ * @return the properties value.
+ */
+ public DataConnectionInner properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The data connection properties to validate.
+ *
+ * @param properties the properties value to set.
+ * @return the DataConnectionValidationInner object itself.
+ */
+ public DataConnectionValidationInner withProperties(DataConnectionInner properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionValidationListResultInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionValidationListResultInner.java
new file mode 100644
index 000000000000..bda1e067fd5b
--- /dev/null
+++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionValidationListResultInner.java
@@ -0,0 +1,55 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.synapse.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.synapse.models.DataConnectionValidationResult;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** The list Kusto data connection validation result. */
+@Fluent
+public final class DataConnectionValidationListResultInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DataConnectionValidationListResultInner.class);
+
+ /*
+ * The list of Kusto data connection validation errors.
+ */
+ @JsonProperty(value = "value")
+ private List value;
+
+ /**
+ * Get the value property: The list of Kusto data connection validation errors.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: The list of Kusto data connection validation errors.
+ *
+ * @param value the value value to set.
+ * @return the DataConnectionValidationListResultInner object itself.
+ */
+ public DataConnectionValidationListResultInner withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() != null) {
+ value().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingPolicyInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingPolicyInner.java
index 470e12f14cfe..aeacd91bf330 100644
--- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingPolicyInner.java
+++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingPolicyInner.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.synapse.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.synapse.models.DataMaskingState;
@@ -12,16 +13,11 @@
import com.fasterxml.jackson.annotation.JsonProperty;
/** The DataMaskingPolicy model. */
+@JsonFlatten
@Fluent
-public final class DataMaskingPolicyInner extends ProxyResource {
+public class DataMaskingPolicyInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(DataMaskingPolicyInner.class);
- /*
- * The properties of the data masking policy.
- */
- @JsonProperty(value = "properties")
- private DataMaskingPolicyProperties innerProperties;
-
/*
* The location of the data masking policy.
*/
@@ -40,14 +36,33 @@ public final class DataMaskingPolicyInner extends ProxyResource {
@JsonProperty(value = "managedBy", access = JsonProperty.Access.WRITE_ONLY)
private String managedBy;
- /**
- * Get the innerProperties property: The properties of the data masking policy.
- *
- * @return the innerProperties value.
+ /*
+ * The state of the data masking policy.
*/
- private DataMaskingPolicyProperties innerProperties() {
- return this.innerProperties;
- }
+ @JsonProperty(value = "properties.dataMaskingState")
+ private DataMaskingState dataMaskingState;
+
+ /*
+ * The list of the exempt principals. Specifies the semicolon-separated
+ * list of database users for which the data masking policy does not apply.
+ * The specified users receive data results without masking for all of the
+ * database queries.
+ */
+ @JsonProperty(value = "properties.exemptPrincipals")
+ private String exemptPrincipals;
+
+ /*
+ * The list of the application principals. This is a legacy parameter and
+ * is no longer used.
+ */
+ @JsonProperty(value = "properties.applicationPrincipals", access = JsonProperty.Access.WRITE_ONLY)
+ private String applicationPrincipals;
+
+ /*
+ * The masking level. This is a legacy parameter and is no longer used.
+ */
+ @JsonProperty(value = "properties.maskingLevel", access = JsonProperty.Access.WRITE_ONLY)
+ private String maskingLevel;
/**
* Get the location property: The location of the data masking policy.
@@ -82,7 +97,7 @@ public String managedBy() {
* @return the dataMaskingState value.
*/
public DataMaskingState dataMaskingState() {
- return this.innerProperties() == null ? null : this.innerProperties().dataMaskingState();
+ return this.dataMaskingState;
}
/**
@@ -92,10 +107,7 @@ public DataMaskingState dataMaskingState() {
* @return the DataMaskingPolicyInner object itself.
*/
public DataMaskingPolicyInner withDataMaskingState(DataMaskingState dataMaskingState) {
- if (this.innerProperties() == null) {
- this.innerProperties = new DataMaskingPolicyProperties();
- }
- this.innerProperties().withDataMaskingState(dataMaskingState);
+ this.dataMaskingState = dataMaskingState;
return this;
}
@@ -107,7 +119,7 @@ public DataMaskingPolicyInner withDataMaskingState(DataMaskingState dataMaskingS
* @return the exemptPrincipals value.
*/
public String exemptPrincipals() {
- return this.innerProperties() == null ? null : this.innerProperties().exemptPrincipals();
+ return this.exemptPrincipals;
}
/**
@@ -119,10 +131,7 @@ public String exemptPrincipals() {
* @return the DataMaskingPolicyInner object itself.
*/
public DataMaskingPolicyInner withExemptPrincipals(String exemptPrincipals) {
- if (this.innerProperties() == null) {
- this.innerProperties = new DataMaskingPolicyProperties();
- }
- this.innerProperties().withExemptPrincipals(exemptPrincipals);
+ this.exemptPrincipals = exemptPrincipals;
return this;
}
@@ -133,7 +142,7 @@ public DataMaskingPolicyInner withExemptPrincipals(String exemptPrincipals) {
* @return the applicationPrincipals value.
*/
public String applicationPrincipals() {
- return this.innerProperties() == null ? null : this.innerProperties().applicationPrincipals();
+ return this.applicationPrincipals;
}
/**
@@ -142,7 +151,7 @@ public String applicationPrincipals() {
* @return the maskingLevel value.
*/
public String maskingLevel() {
- return this.innerProperties() == null ? null : this.innerProperties().maskingLevel();
+ return this.maskingLevel;
}
/**
@@ -151,8 +160,5 @@ public String maskingLevel() {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
}
}
diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingPolicyProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingPolicyProperties.java
deleted file mode 100644
index 13e48242bca6..000000000000
--- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingPolicyProperties.java
+++ /dev/null
@@ -1,122 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.synapse.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.synapse.models.DataMaskingState;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** The properties of a database data masking policy. */
-@Fluent
-public final class DataMaskingPolicyProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(DataMaskingPolicyProperties.class);
-
- /*
- * The state of the data masking policy.
- */
- @JsonProperty(value = "dataMaskingState", required = true)
- private DataMaskingState dataMaskingState;
-
- /*
- * The list of the exempt principals. Specifies the semicolon-separated
- * list of database users for which the data masking policy does not apply.
- * The specified users receive data results without masking for all of the
- * database queries.
- */
- @JsonProperty(value = "exemptPrincipals")
- private String exemptPrincipals;
-
- /*
- * The list of the application principals. This is a legacy parameter and
- * is no longer used.
- */
- @JsonProperty(value = "applicationPrincipals", access = JsonProperty.Access.WRITE_ONLY)
- private String applicationPrincipals;
-
- /*
- * The masking level. This is a legacy parameter and is no longer used.
- */
- @JsonProperty(value = "maskingLevel", access = JsonProperty.Access.WRITE_ONLY)
- private String maskingLevel;
-
- /**
- * Get the dataMaskingState property: The state of the data masking policy.
- *
- * @return the dataMaskingState value.
- */
- public DataMaskingState dataMaskingState() {
- return this.dataMaskingState;
- }
-
- /**
- * Set the dataMaskingState property: The state of the data masking policy.
- *
- * @param dataMaskingState the dataMaskingState value to set.
- * @return the DataMaskingPolicyProperties object itself.
- */
- public DataMaskingPolicyProperties withDataMaskingState(DataMaskingState dataMaskingState) {
- this.dataMaskingState = dataMaskingState;
- return this;
- }
-
- /**
- * Get the exemptPrincipals property: The list of the exempt principals. Specifies the semicolon-separated list of
- * database users for which the data masking policy does not apply. The specified users receive data results without
- * masking for all of the database queries.
- *
- * @return the exemptPrincipals value.
- */
- public String exemptPrincipals() {
- return this.exemptPrincipals;
- }
-
- /**
- * Set the exemptPrincipals property: The list of the exempt principals. Specifies the semicolon-separated list of
- * database users for which the data masking policy does not apply. The specified users receive data results without
- * masking for all of the database queries.
- *
- * @param exemptPrincipals the exemptPrincipals value to set.
- * @return the DataMaskingPolicyProperties object itself.
- */
- public DataMaskingPolicyProperties withExemptPrincipals(String exemptPrincipals) {
- this.exemptPrincipals = exemptPrincipals;
- return this;
- }
-
- /**
- * Get the applicationPrincipals property: The list of the application principals. This is a legacy parameter and is
- * no longer used.
- *
- * @return the applicationPrincipals value.
- */
- public String applicationPrincipals() {
- return this.applicationPrincipals;
- }
-
- /**
- * Get the maskingLevel property: The masking level. This is a legacy parameter and is no longer used.
- *
- * @return the maskingLevel value.
- */
- public String maskingLevel() {
- return this.maskingLevel;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (dataMaskingState() == null) {
- throw logger
- .logExceptionAsError(
- new IllegalArgumentException(
- "Missing required property dataMaskingState in model DataMaskingPolicyProperties"));
- }
- }
-}
diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingRuleInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingRuleInner.java
index dc513b3d8a8d..f801f9b09833 100644
--- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingRuleInner.java
+++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingRuleInner.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.synapse.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.synapse.models.DataMaskingFunction;
@@ -13,16 +14,11 @@
import com.fasterxml.jackson.annotation.JsonProperty;
/** Represents a Sql pool data masking rule. */
+@JsonFlatten
@Fluent
-public final class DataMaskingRuleInner extends ProxyResource {
+public class DataMaskingRuleInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(DataMaskingRuleInner.class);
- /*
- * The properties of the resource.
- */
- @JsonProperty(value = "properties")
- private DataMaskingRuleProperties innerProperties;
-
/*
* The location of the data masking rule.
*/
@@ -35,14 +31,89 @@ public final class DataMaskingRuleInner extends ProxyResource {
@JsonProperty(value = "kind", access = JsonProperty.Access.WRITE_ONLY)
private String kind;
- /**
- * Get the innerProperties property: The properties of the resource.
- *
- * @return the innerProperties value.
+ /*
+ * The rule Id.
*/
- private DataMaskingRuleProperties innerProperties() {
- return this.innerProperties;
- }
+ @JsonProperty(value = "properties.id", access = JsonProperty.Access.WRITE_ONLY)
+ private String idPropertiesId;
+
+ /*
+ * The alias name. This is a legacy parameter and is no longer used.
+ */
+ @JsonProperty(value = "properties.aliasName")
+ private String aliasName;
+
+ /*
+ * The rule state. Used to delete a rule. To delete an existing rule,
+ * specify the schemaName, tableName, columnName, maskingFunction, and
+ * specify ruleState as disabled. However, if the rule doesn't already
+ * exist, the rule will be created with ruleState set to enabled,
+ * regardless of the provided value of ruleState.
+ */
+ @JsonProperty(value = "properties.ruleState")
+ private DataMaskingRuleState ruleState;
+
+ /*
+ * The schema name on which the data masking rule is applied.
+ */
+ @JsonProperty(value = "properties.schemaName")
+ private String schemaName;
+
+ /*
+ * The table name on which the data masking rule is applied.
+ */
+ @JsonProperty(value = "properties.tableName")
+ private String tableName;
+
+ /*
+ * The column name on which the data masking rule is applied.
+ */
+ @JsonProperty(value = "properties.columnName")
+ private String columnName;
+
+ /*
+ * The masking function that is used for the data masking rule.
+ */
+ @JsonProperty(value = "properties.maskingFunction")
+ private DataMaskingFunction maskingFunction;
+
+ /*
+ * The numberFrom property of the masking rule. Required if maskingFunction
+ * is set to Number, otherwise this parameter will be ignored.
+ */
+ @JsonProperty(value = "properties.numberFrom")
+ private String numberFrom;
+
+ /*
+ * The numberTo property of the data masking rule. Required if
+ * maskingFunction is set to Number, otherwise this parameter will be
+ * ignored.
+ */
+ @JsonProperty(value = "properties.numberTo")
+ private String numberTo;
+
+ /*
+ * If maskingFunction is set to Text, the number of characters to show
+ * unmasked in the beginning of the string. Otherwise, this parameter will
+ * be ignored.
+ */
+ @JsonProperty(value = "properties.prefixSize")
+ private String prefixSize;
+
+ /*
+ * If maskingFunction is set to Text, the number of characters to show
+ * unmasked at the end of the string. Otherwise, this parameter will be
+ * ignored.
+ */
+ @JsonProperty(value = "properties.suffixSize")
+ private String suffixSize;
+
+ /*
+ * If maskingFunction is set to Text, the character to use for masking the
+ * unexposed part of the string. Otherwise, this parameter will be ignored.
+ */
+ @JsonProperty(value = "properties.replacementString")
+ private String replacementString;
/**
* Get the location property: The location of the data masking rule.
@@ -63,12 +134,12 @@ public String kind() {
}
/**
- * Get the id property: The rule Id.
+ * Get the idPropertiesId property: The rule Id.
*
- * @return the id value.
+ * @return the idPropertiesId value.
*/
public String idPropertiesId() {
- return this.innerProperties() == null ? null : this.innerProperties().id();
+ return this.idPropertiesId;
}
/**
@@ -77,7 +148,7 @@ public String idPropertiesId() {
* @return the aliasName value.
*/
public String aliasName() {
- return this.innerProperties() == null ? null : this.innerProperties().aliasName();
+ return this.aliasName;
}
/**
@@ -87,10 +158,7 @@ public String aliasName() {
* @return the DataMaskingRuleInner object itself.
*/
public DataMaskingRuleInner withAliasName(String aliasName) {
- if (this.innerProperties() == null) {
- this.innerProperties = new DataMaskingRuleProperties();
- }
- this.innerProperties().withAliasName(aliasName);
+ this.aliasName = aliasName;
return this;
}
@@ -103,7 +171,7 @@ public DataMaskingRuleInner withAliasName(String aliasName) {
* @return the ruleState value.
*/
public DataMaskingRuleState ruleState() {
- return this.innerProperties() == null ? null : this.innerProperties().ruleState();
+ return this.ruleState;
}
/**
@@ -116,10 +184,7 @@ public DataMaskingRuleState ruleState() {
* @return the DataMaskingRuleInner object itself.
*/
public DataMaskingRuleInner withRuleState(DataMaskingRuleState ruleState) {
- if (this.innerProperties() == null) {
- this.innerProperties = new DataMaskingRuleProperties();
- }
- this.innerProperties().withRuleState(ruleState);
+ this.ruleState = ruleState;
return this;
}
@@ -129,7 +194,7 @@ public DataMaskingRuleInner withRuleState(DataMaskingRuleState ruleState) {
* @return the schemaName value.
*/
public String schemaName() {
- return this.innerProperties() == null ? null : this.innerProperties().schemaName();
+ return this.schemaName;
}
/**
@@ -139,10 +204,7 @@ public String schemaName() {
* @return the DataMaskingRuleInner object itself.
*/
public DataMaskingRuleInner withSchemaName(String schemaName) {
- if (this.innerProperties() == null) {
- this.innerProperties = new DataMaskingRuleProperties();
- }
- this.innerProperties().withSchemaName(schemaName);
+ this.schemaName = schemaName;
return this;
}
@@ -152,7 +214,7 @@ public DataMaskingRuleInner withSchemaName(String schemaName) {
* @return the tableName value.
*/
public String tableName() {
- return this.innerProperties() == null ? null : this.innerProperties().tableName();
+ return this.tableName;
}
/**
@@ -162,10 +224,7 @@ public String tableName() {
* @return the DataMaskingRuleInner object itself.
*/
public DataMaskingRuleInner withTableName(String tableName) {
- if (this.innerProperties() == null) {
- this.innerProperties = new DataMaskingRuleProperties();
- }
- this.innerProperties().withTableName(tableName);
+ this.tableName = tableName;
return this;
}
@@ -175,7 +234,7 @@ public DataMaskingRuleInner withTableName(String tableName) {
* @return the columnName value.
*/
public String columnName() {
- return this.innerProperties() == null ? null : this.innerProperties().columnName();
+ return this.columnName;
}
/**
@@ -185,10 +244,7 @@ public String columnName() {
* @return the DataMaskingRuleInner object itself.
*/
public DataMaskingRuleInner withColumnName(String columnName) {
- if (this.innerProperties() == null) {
- this.innerProperties = new DataMaskingRuleProperties();
- }
- this.innerProperties().withColumnName(columnName);
+ this.columnName = columnName;
return this;
}
@@ -198,7 +254,7 @@ public DataMaskingRuleInner withColumnName(String columnName) {
* @return the maskingFunction value.
*/
public DataMaskingFunction maskingFunction() {
- return this.innerProperties() == null ? null : this.innerProperties().maskingFunction();
+ return this.maskingFunction;
}
/**
@@ -208,10 +264,7 @@ public DataMaskingFunction maskingFunction() {
* @return the DataMaskingRuleInner object itself.
*/
public DataMaskingRuleInner withMaskingFunction(DataMaskingFunction maskingFunction) {
- if (this.innerProperties() == null) {
- this.innerProperties = new DataMaskingRuleProperties();
- }
- this.innerProperties().withMaskingFunction(maskingFunction);
+ this.maskingFunction = maskingFunction;
return this;
}
@@ -222,7 +275,7 @@ public DataMaskingRuleInner withMaskingFunction(DataMaskingFunction maskingFunct
* @return the numberFrom value.
*/
public String numberFrom() {
- return this.innerProperties() == null ? null : this.innerProperties().numberFrom();
+ return this.numberFrom;
}
/**
@@ -233,10 +286,7 @@ public String numberFrom() {
* @return the DataMaskingRuleInner object itself.
*/
public DataMaskingRuleInner withNumberFrom(String numberFrom) {
- if (this.innerProperties() == null) {
- this.innerProperties = new DataMaskingRuleProperties();
- }
- this.innerProperties().withNumberFrom(numberFrom);
+ this.numberFrom = numberFrom;
return this;
}
@@ -247,7 +297,7 @@ public DataMaskingRuleInner withNumberFrom(String numberFrom) {
* @return the numberTo value.
*/
public String numberTo() {
- return this.innerProperties() == null ? null : this.innerProperties().numberTo();
+ return this.numberTo;
}
/**
@@ -258,10 +308,7 @@ public String numberTo() {
* @return the DataMaskingRuleInner object itself.
*/
public DataMaskingRuleInner withNumberTo(String numberTo) {
- if (this.innerProperties() == null) {
- this.innerProperties = new DataMaskingRuleProperties();
- }
- this.innerProperties().withNumberTo(numberTo);
+ this.numberTo = numberTo;
return this;
}
@@ -272,7 +319,7 @@ public DataMaskingRuleInner withNumberTo(String numberTo) {
* @return the prefixSize value.
*/
public String prefixSize() {
- return this.innerProperties() == null ? null : this.innerProperties().prefixSize();
+ return this.prefixSize;
}
/**
@@ -283,10 +330,7 @@ public String prefixSize() {
* @return the DataMaskingRuleInner object itself.
*/
public DataMaskingRuleInner withPrefixSize(String prefixSize) {
- if (this.innerProperties() == null) {
- this.innerProperties = new DataMaskingRuleProperties();
- }
- this.innerProperties().withPrefixSize(prefixSize);
+ this.prefixSize = prefixSize;
return this;
}
@@ -297,7 +341,7 @@ public DataMaskingRuleInner withPrefixSize(String prefixSize) {
* @return the suffixSize value.
*/
public String suffixSize() {
- return this.innerProperties() == null ? null : this.innerProperties().suffixSize();
+ return this.suffixSize;
}
/**
@@ -308,10 +352,7 @@ public String suffixSize() {
* @return the DataMaskingRuleInner object itself.
*/
public DataMaskingRuleInner withSuffixSize(String suffixSize) {
- if (this.innerProperties() == null) {
- this.innerProperties = new DataMaskingRuleProperties();
- }
- this.innerProperties().withSuffixSize(suffixSize);
+ this.suffixSize = suffixSize;
return this;
}
@@ -322,7 +363,7 @@ public DataMaskingRuleInner withSuffixSize(String suffixSize) {
* @return the replacementString value.
*/
public String replacementString() {
- return this.innerProperties() == null ? null : this.innerProperties().replacementString();
+ return this.replacementString;
}
/**
@@ -333,10 +374,7 @@ public String replacementString() {
* @return the DataMaskingRuleInner object itself.
*/
public DataMaskingRuleInner withReplacementString(String replacementString) {
- if (this.innerProperties() == null) {
- this.innerProperties = new DataMaskingRuleProperties();
- }
- this.innerProperties().withReplacementString(replacementString);
+ this.replacementString = replacementString;
return this;
}
@@ -346,8 +384,5 @@ public DataMaskingRuleInner withReplacementString(String replacementString) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
}
}
diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingRuleProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingRuleProperties.java
deleted file mode 100644
index ce77df378ab2..000000000000
--- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingRuleProperties.java
+++ /dev/null
@@ -1,379 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.synapse.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.synapse.models.DataMaskingFunction;
-import com.azure.resourcemanager.synapse.models.DataMaskingRuleState;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** The properties of a Sql pool data masking rule. */
-@Fluent
-public final class DataMaskingRuleProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(DataMaskingRuleProperties.class);
-
- /*
- * The rule Id.
- */
- @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
- private String id;
-
- /*
- * The alias name. This is a legacy parameter and is no longer used.
- */
- @JsonProperty(value = "aliasName")
- private String aliasName;
-
- /*
- * The rule state. Used to delete a rule. To delete an existing rule,
- * specify the schemaName, tableName, columnName, maskingFunction, and
- * specify ruleState as disabled. However, if the rule doesn't already
- * exist, the rule will be created with ruleState set to enabled,
- * regardless of the provided value of ruleState.
- */
- @JsonProperty(value = "ruleState")
- private DataMaskingRuleState ruleState;
-
- /*
- * The schema name on which the data masking rule is applied.
- */
- @JsonProperty(value = "schemaName", required = true)
- private String schemaName;
-
- /*
- * The table name on which the data masking rule is applied.
- */
- @JsonProperty(value = "tableName", required = true)
- private String tableName;
-
- /*
- * The column name on which the data masking rule is applied.
- */
- @JsonProperty(value = "columnName", required = true)
- private String columnName;
-
- /*
- * The masking function that is used for the data masking rule.
- */
- @JsonProperty(value = "maskingFunction", required = true)
- private DataMaskingFunction maskingFunction;
-
- /*
- * The numberFrom property of the masking rule. Required if maskingFunction
- * is set to Number, otherwise this parameter will be ignored.
- */
- @JsonProperty(value = "numberFrom")
- private String numberFrom;
-
- /*
- * The numberTo property of the data masking rule. Required if
- * maskingFunction is set to Number, otherwise this parameter will be
- * ignored.
- */
- @JsonProperty(value = "numberTo")
- private String numberTo;
-
- /*
- * If maskingFunction is set to Text, the number of characters to show
- * unmasked in the beginning of the string. Otherwise, this parameter will
- * be ignored.
- */
- @JsonProperty(value = "prefixSize")
- private String prefixSize;
-
- /*
- * If maskingFunction is set to Text, the number of characters to show
- * unmasked at the end of the string. Otherwise, this parameter will be
- * ignored.
- */
- @JsonProperty(value = "suffixSize")
- private String suffixSize;
-
- /*
- * If maskingFunction is set to Text, the character to use for masking the
- * unexposed part of the string. Otherwise, this parameter will be ignored.
- */
- @JsonProperty(value = "replacementString")
- private String replacementString;
-
- /**
- * Get the id property: The rule Id.
- *
- * @return the id value.
- */
- public String id() {
- return this.id;
- }
-
- /**
- * Get the aliasName property: The alias name. This is a legacy parameter and is no longer used.
- *
- * @return the aliasName value.
- */
- public String aliasName() {
- return this.aliasName;
- }
-
- /**
- * Set the aliasName property: The alias name. This is a legacy parameter and is no longer used.
- *
- * @param aliasName the aliasName value to set.
- * @return the DataMaskingRuleProperties object itself.
- */
- public DataMaskingRuleProperties withAliasName(String aliasName) {
- this.aliasName = aliasName;
- return this;
- }
-
- /**
- * Get the ruleState property: The rule state. Used to delete a rule. To delete an existing rule, specify the
- * schemaName, tableName, columnName, maskingFunction, and specify ruleState as disabled. However, if the rule
- * doesn't already exist, the rule will be created with ruleState set to enabled, regardless of the provided value
- * of ruleState.
- *
- * @return the ruleState value.
- */
- public DataMaskingRuleState ruleState() {
- return this.ruleState;
- }
-
- /**
- * Set the ruleState property: The rule state. Used to delete a rule. To delete an existing rule, specify the
- * schemaName, tableName, columnName, maskingFunction, and specify ruleState as disabled. However, if the rule
- * doesn't already exist, the rule will be created with ruleState set to enabled, regardless of the provided value
- * of ruleState.
- *
- * @param ruleState the ruleState value to set.
- * @return the DataMaskingRuleProperties object itself.
- */
- public DataMaskingRuleProperties withRuleState(DataMaskingRuleState ruleState) {
- this.ruleState = ruleState;
- return this;
- }
-
- /**
- * Get the schemaName property: The schema name on which the data masking rule is applied.
- *
- * @return the schemaName value.
- */
- public String schemaName() {
- return this.schemaName;
- }
-
- /**
- * Set the schemaName property: The schema name on which the data masking rule is applied.
- *
- * @param schemaName the schemaName value to set.
- * @return the DataMaskingRuleProperties object itself.
- */
- public DataMaskingRuleProperties withSchemaName(String schemaName) {
- this.schemaName = schemaName;
- return this;
- }
-
- /**
- * Get the tableName property: The table name on which the data masking rule is applied.
- *
- * @return the tableName value.
- */
- public String tableName() {
- return this.tableName;
- }
-
- /**
- * Set the tableName property: The table name on which the data masking rule is applied.
- *
- * @param tableName the tableName value to set.
- * @return the DataMaskingRuleProperties object itself.
- */
- public DataMaskingRuleProperties withTableName(String tableName) {
- this.tableName = tableName;
- return this;
- }
-
- /**
- * Get the columnName property: The column name on which the data masking rule is applied.
- *
- * @return the columnName value.
- */
- public String columnName() {
- return this.columnName;
- }
-
- /**
- * Set the columnName property: The column name on which the data masking rule is applied.
- *
- * @param columnName the columnName value to set.
- * @return the DataMaskingRuleProperties object itself.
- */
- public DataMaskingRuleProperties withColumnName(String columnName) {
- this.columnName = columnName;
- return this;
- }
-
- /**
- * Get the maskingFunction property: The masking function that is used for the data masking rule.
- *
- * @return the maskingFunction value.
- */
- public DataMaskingFunction maskingFunction() {
- return this.maskingFunction;
- }
-
- /**
- * Set the maskingFunction property: The masking function that is used for the data masking rule.
- *
- * @param maskingFunction the maskingFunction value to set.
- * @return the DataMaskingRuleProperties object itself.
- */
- public DataMaskingRuleProperties withMaskingFunction(DataMaskingFunction maskingFunction) {
- this.maskingFunction = maskingFunction;
- return this;
- }
-
- /**
- * Get the numberFrom property: The numberFrom property of the masking rule. Required if maskingFunction is set to
- * Number, otherwise this parameter will be ignored.
- *
- * @return the numberFrom value.
- */
- public String numberFrom() {
- return this.numberFrom;
- }
-
- /**
- * Set the numberFrom property: The numberFrom property of the masking rule. Required if maskingFunction is set to
- * Number, otherwise this parameter will be ignored.
- *
- * @param numberFrom the numberFrom value to set.
- * @return the DataMaskingRuleProperties object itself.
- */
- public DataMaskingRuleProperties withNumberFrom(String numberFrom) {
- this.numberFrom = numberFrom;
- return this;
- }
-
- /**
- * Get the numberTo property: The numberTo property of the data masking rule. Required if maskingFunction is set to
- * Number, otherwise this parameter will be ignored.
- *
- * @return the numberTo value.
- */
- public String numberTo() {
- return this.numberTo;
- }
-
- /**
- * Set the numberTo property: The numberTo property of the data masking rule. Required if maskingFunction is set to
- * Number, otherwise this parameter will be ignored.
- *
- * @param numberTo the numberTo value to set.
- * @return the DataMaskingRuleProperties object itself.
- */
- public DataMaskingRuleProperties withNumberTo(String numberTo) {
- this.numberTo = numberTo;
- return this;
- }
-
- /**
- * Get the prefixSize property: If maskingFunction is set to Text, the number of characters to show unmasked in the
- * beginning of the string. Otherwise, this parameter will be ignored.
- *
- * @return the prefixSize value.
- */
- public String prefixSize() {
- return this.prefixSize;
- }
-
- /**
- * Set the prefixSize property: If maskingFunction is set to Text, the number of characters to show unmasked in the
- * beginning of the string. Otherwise, this parameter will be ignored.
- *
- * @param prefixSize the prefixSize value to set.
- * @return the DataMaskingRuleProperties object itself.
- */
- public DataMaskingRuleProperties withPrefixSize(String prefixSize) {
- this.prefixSize = prefixSize;
- return this;
- }
-
- /**
- * Get the suffixSize property: If maskingFunction is set to Text, the number of characters to show unmasked at the
- * end of the string. Otherwise, this parameter will be ignored.
- *
- * @return the suffixSize value.
- */
- public String suffixSize() {
- return this.suffixSize;
- }
-
- /**
- * Set the suffixSize property: If maskingFunction is set to Text, the number of characters to show unmasked at the
- * end of the string. Otherwise, this parameter will be ignored.
- *
- * @param suffixSize the suffixSize value to set.
- * @return the DataMaskingRuleProperties object itself.
- */
- public DataMaskingRuleProperties withSuffixSize(String suffixSize) {
- this.suffixSize = suffixSize;
- return this;
- }
-
- /**
- * Get the replacementString property: If maskingFunction is set to Text, the character to use for masking the
- * unexposed part of the string. Otherwise, this parameter will be ignored.
- *
- * @return the replacementString value.
- */
- public String replacementString() {
- return this.replacementString;
- }
-
- /**
- * Set the replacementString property: If maskingFunction is set to Text, the character to use for masking the
- * unexposed part of the string. Otherwise, this parameter will be ignored.
- *
- * @param replacementString the replacementString value to set.
- * @return the DataMaskingRuleProperties object itself.
- */
- public DataMaskingRuleProperties withReplacementString(String replacementString) {
- this.replacementString = replacementString;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (schemaName() == null) {
- throw logger
- .logExceptionAsError(
- new IllegalArgumentException(
- "Missing required property schemaName in model DataMaskingRuleProperties"));
- }
- if (tableName() == null) {
- throw logger
- .logExceptionAsError(
- new IllegalArgumentException(
- "Missing required property tableName in model DataMaskingRuleProperties"));
- }
- if (columnName() == null) {
- throw logger
- .logExceptionAsError(
- new IllegalArgumentException(
- "Missing required property columnName in model DataMaskingRuleProperties"));
- }
- if (maskingFunction() == null) {
- throw logger
- .logExceptionAsError(
- new IllegalArgumentException(
- "Missing required property maskingFunction in model DataMaskingRuleProperties"));
- }
- }
-}
diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataWarehouseUserActivitiesInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataWarehouseUserActivitiesInner.java
index 8cb5cdf54d5b..836be594beb5 100644
--- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataWarehouseUserActivitiesInner.java
+++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataWarehouseUserActivitiesInner.java
@@ -4,31 +4,24 @@
package com.azure.resourcemanager.synapse.fluent.models;
-import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.Immutable;
+import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** User activities of a data warehouse. */
-@Fluent
-public final class DataWarehouseUserActivitiesInner extends ProxyResource {
+@JsonFlatten
+@Immutable
+public class DataWarehouseUserActivitiesInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(DataWarehouseUserActivitiesInner.class);
/*
- * Resource properties.
+ * Count of running and suspended queries.
*/
- @JsonProperty(value = "properties")
- private DataWarehouseUserActivitiesProperties innerProperties;
-
- /**
- * Get the innerProperties property: Resource properties.
- *
- * @return the innerProperties value.
- */
- private DataWarehouseUserActivitiesProperties innerProperties() {
- return this.innerProperties;
- }
+ @JsonProperty(value = "properties.activeQueriesCount", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer activeQueriesCount;
/**
* Get the activeQueriesCount property: Count of running and suspended queries.
@@ -36,7 +29,7 @@ private DataWarehouseUserActivitiesProperties innerProperties() {
* @return the activeQueriesCount value.
*/
public Integer activeQueriesCount() {
- return this.innerProperties() == null ? null : this.innerProperties().activeQueriesCount();
+ return this.activeQueriesCount;
}
/**
@@ -45,8 +38,5 @@ public Integer activeQueriesCount() {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
}
}
diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataWarehouseUserActivitiesProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataWarehouseUserActivitiesProperties.java
deleted file mode 100644
index f97af8248874..000000000000
--- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataWarehouseUserActivitiesProperties.java
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.synapse.fluent.models;
-
-import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/**
- * User activities of a data warehouse. This currently includes the count of running or suspended queries. For more
- * information, please view the sys.dm_pdw_exec_requests dynamic management view (DMV).
- */
-@Immutable
-public final class DataWarehouseUserActivitiesProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(DataWarehouseUserActivitiesProperties.class);
-
- /*
- * Count of running and suspended queries.
- */
- @JsonProperty(value = "activeQueriesCount", access = JsonProperty.Access.WRITE_ONLY)
- private Integer activeQueriesCount;
-
- /**
- * Get the activeQueriesCount property: Count of running and suspended queries.
- *
- * @return the activeQueriesCount value.
- */
- public Integer activeQueriesCount() {
- return this.activeQueriesCount;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DatabaseInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DatabaseInner.java
new file mode 100644
index 000000000000..7ce06d4f38f0
--- /dev/null
+++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DatabaseInner.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.synapse.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.synapse.models.ReadWriteDatabase;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonSubTypes;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+
+/** Class representing a Kusto database. */
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.PROPERTY,
+ property = "kind",
+ defaultImpl = DatabaseInner.class)
+@JsonTypeName("Database")
+@JsonSubTypes({@JsonSubTypes.Type(name = "ReadWrite", value = ReadWriteDatabase.class)})
+@Fluent
+public class DatabaseInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DatabaseInner.class);
+
+ /*
+ * Resource location.
+ */
+ @JsonProperty(value = "location")
+ private String location;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy
+ * information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the location property: Resource location.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Set the location property: Resource location.
+ *
+ * @param location the location value to set.
+ * @return the DatabaseInner object itself.
+ */
+ public DatabaseInner withLocation(String location) {
+ this.location = location;
+ 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() {
+ }
+}
diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DatabasePrincipalAssignmentInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DatabasePrincipalAssignmentInner.java
new file mode 100644
index 000000000000..a9902e37bfba
--- /dev/null
+++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DatabasePrincipalAssignmentInner.java
@@ -0,0 +1,199 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.synapse.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.synapse.models.DatabasePrincipalRole;
+import com.azure.resourcemanager.synapse.models.PrincipalType;
+import com.azure.resourcemanager.synapse.models.ResourceProvisioningState;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Class representing a database principal assignment. */
+@JsonFlatten
+@Fluent
+public class DatabasePrincipalAssignmentInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DatabasePrincipalAssignmentInner.class);
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy
+ * information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /*
+ * The principal ID assigned to the database principal. It can be a user
+ * email, application ID, or security group name.
+ */
+ @JsonProperty(value = "properties.principalId")
+ private String principalId;
+
+ /*
+ * Database principal role.
+ */
+ @JsonProperty(value = "properties.role")
+ private DatabasePrincipalRole role;
+
+ /*
+ * The tenant id of the principal
+ */
+ @JsonProperty(value = "properties.tenantId")
+ private String tenantId;
+
+ /*
+ * Principal type.
+ */
+ @JsonProperty(value = "properties.principalType")
+ private PrincipalType principalType;
+
+ /*
+ * The tenant name of the principal
+ */
+ @JsonProperty(value = "properties.tenantName", access = JsonProperty.Access.WRITE_ONLY)
+ private String tenantName;
+
+ /*
+ * The principal name
+ */
+ @JsonProperty(value = "properties.principalName", access = JsonProperty.Access.WRITE_ONLY)
+ private String principalName;
+
+ /*
+ * The provisioned state of the resource.
+ */
+ @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ResourceProvisioningState provisioningState;
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the principalId property: The principal ID assigned to the database principal. It can be a user email,
+ * application ID, or security group name.
+ *
+ * @return the principalId value.
+ */
+ public String principalId() {
+ return this.principalId;
+ }
+
+ /**
+ * Set the principalId property: The principal ID assigned to the database principal. It can be a user email,
+ * application ID, or security group name.
+ *
+ * @param principalId the principalId value to set.
+ * @return the DatabasePrincipalAssignmentInner object itself.
+ */
+ public DatabasePrincipalAssignmentInner withPrincipalId(String principalId) {
+ this.principalId = principalId;
+ return this;
+ }
+
+ /**
+ * Get the role property: Database principal role.
+ *
+ * @return the role value.
+ */
+ public DatabasePrincipalRole role() {
+ return this.role;
+ }
+
+ /**
+ * Set the role property: Database principal role.
+ *
+ * @param role the role value to set.
+ * @return the DatabasePrincipalAssignmentInner object itself.
+ */
+ public DatabasePrincipalAssignmentInner withRole(DatabasePrincipalRole role) {
+ this.role = role;
+ return this;
+ }
+
+ /**
+ * Get the tenantId property: The tenant id of the principal.
+ *
+ * @return the tenantId value.
+ */
+ public String tenantId() {
+ return this.tenantId;
+ }
+
+ /**
+ * Set the tenantId property: The tenant id of the principal.
+ *
+ * @param tenantId the tenantId value to set.
+ * @return the DatabasePrincipalAssignmentInner object itself.
+ */
+ public DatabasePrincipalAssignmentInner withTenantId(String tenantId) {
+ this.tenantId = tenantId;
+ return this;
+ }
+
+ /**
+ * Get the principalType property: Principal type.
+ *
+ * @return the principalType value.
+ */
+ public PrincipalType principalType() {
+ return this.principalType;
+ }
+
+ /**
+ * Set the principalType property: Principal type.
+ *
+ * @param principalType the principalType value to set.
+ * @return the DatabasePrincipalAssignmentInner object itself.
+ */
+ public DatabasePrincipalAssignmentInner withPrincipalType(PrincipalType principalType) {
+ this.principalType = principalType;
+ return this;
+ }
+
+ /**
+ * Get the tenantName property: The tenant name of the principal.
+ *
+ * @return the tenantName value.
+ */
+ public String tenantName() {
+ return this.tenantName;
+ }
+
+ /**
+ * Get the principalName property: The principal name.
+ *
+ * @return the principalName value.
+ */
+ public String principalName() {
+ return this.principalName;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioned state of the resource.
+ *
+ * @return the provisioningState value.
+ */
+ public ResourceProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EncryptionProtectorInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EncryptionProtectorInner.java
index eed2f9cdf343..5d19d8ddd463 100644
--- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EncryptionProtectorInner.java
+++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EncryptionProtectorInner.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.synapse.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.synapse.models.ServerKeyType;
@@ -12,8 +13,9 @@
import com.fasterxml.jackson.annotation.JsonProperty;
/** The server encryption protector. */
+@JsonFlatten
@Fluent
-public final class EncryptionProtectorInner extends ProxyResource {
+public class EncryptionProtectorInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(EncryptionProtectorInner.class);
/*
@@ -30,10 +32,34 @@ public final class EncryptionProtectorInner extends ProxyResource {
private String location;
/*
- * Resource properties.
+ * Subregion of the encryption protector.
*/
- @JsonProperty(value = "properties")
- private EncryptionProtectorProperties innerProperties;
+ @JsonProperty(value = "properties.subregion", access = JsonProperty.Access.WRITE_ONLY)
+ private String subregion;
+
+ /*
+ * The name of the server key.
+ */
+ @JsonProperty(value = "properties.serverKeyName")
+ private String serverKeyName;
+
+ /*
+ * The encryption protector type like 'ServiceManaged', 'AzureKeyVault'.
+ */
+ @JsonProperty(value = "properties.serverKeyType")
+ private ServerKeyType serverKeyType;
+
+ /*
+ * The URI of the server key.
+ */
+ @JsonProperty(value = "properties.uri", access = JsonProperty.Access.WRITE_ONLY)
+ private String uri;
+
+ /*
+ * Thumbprint of the server key.
+ */
+ @JsonProperty(value = "properties.thumbprint", access = JsonProperty.Access.WRITE_ONLY)
+ private String thumbprint;
/**
* Get the kind property: Kind of encryption protector. This is metadata used for the Azure portal experience.
@@ -53,22 +79,13 @@ public String location() {
return this.location;
}
- /**
- * Get the innerProperties property: Resource properties.
- *
- * @return the innerProperties value.
- */
- private EncryptionProtectorProperties innerProperties() {
- return this.innerProperties;
- }
-
/**
* Get the subregion property: Subregion of the encryption protector.
*
* @return the subregion value.
*/
public String subregion() {
- return this.innerProperties() == null ? null : this.innerProperties().subregion();
+ return this.subregion;
}
/**
@@ -77,7 +94,7 @@ public String subregion() {
* @return the serverKeyName value.
*/
public String serverKeyName() {
- return this.innerProperties() == null ? null : this.innerProperties().serverKeyName();
+ return this.serverKeyName;
}
/**
@@ -87,10 +104,7 @@ public String serverKeyName() {
* @return the EncryptionProtectorInner object itself.
*/
public EncryptionProtectorInner withServerKeyName(String serverKeyName) {
- if (this.innerProperties() == null) {
- this.innerProperties = new EncryptionProtectorProperties();
- }
- this.innerProperties().withServerKeyName(serverKeyName);
+ this.serverKeyName = serverKeyName;
return this;
}
@@ -100,7 +114,7 @@ public EncryptionProtectorInner withServerKeyName(String serverKeyName) {
* @return the serverKeyType value.
*/
public ServerKeyType serverKeyType() {
- return this.innerProperties() == null ? null : this.innerProperties().serverKeyType();
+ return this.serverKeyType;
}
/**
@@ -110,10 +124,7 @@ public ServerKeyType serverKeyType() {
* @return the EncryptionProtectorInner object itself.
*/
public EncryptionProtectorInner withServerKeyType(ServerKeyType serverKeyType) {
- if (this.innerProperties() == null) {
- this.innerProperties = new EncryptionProtectorProperties();
- }
- this.innerProperties().withServerKeyType(serverKeyType);
+ this.serverKeyType = serverKeyType;
return this;
}
@@ -123,7 +134,7 @@ public EncryptionProtectorInner withServerKeyType(ServerKeyType serverKeyType) {
* @return the uri value.
*/
public String uri() {
- return this.innerProperties() == null ? null : this.innerProperties().uri();
+ return this.uri;
}
/**
@@ -132,7 +143,7 @@ public String uri() {
* @return the thumbprint value.
*/
public String thumbprint() {
- return this.innerProperties() == null ? null : this.innerProperties().thumbprint();
+ return this.thumbprint;
}
/**
@@ -141,8 +152,5 @@ public String thumbprint() {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
}
}
diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EncryptionProtectorProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EncryptionProtectorProperties.java
deleted file mode 100644
index 319cdf2c452a..000000000000
--- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EncryptionProtectorProperties.java
+++ /dev/null
@@ -1,128 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.synapse.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.synapse.models.ServerKeyType;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** Properties for an encryption protector execution. */
-@Fluent
-public final class EncryptionProtectorProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(EncryptionProtectorProperties.class);
-
- /*
- * Subregion of the encryption protector.
- */
- @JsonProperty(value = "subregion", access = JsonProperty.Access.WRITE_ONLY)
- private String subregion;
-
- /*
- * The name of the server key.
- */
- @JsonProperty(value = "serverKeyName")
- private String serverKeyName;
-
- /*
- * The encryption protector type like 'ServiceManaged', 'AzureKeyVault'.
- */
- @JsonProperty(value = "serverKeyType", required = true)
- private ServerKeyType serverKeyType;
-
- /*
- * The URI of the server key.
- */
- @JsonProperty(value = "uri", access = JsonProperty.Access.WRITE_ONLY)
- private String uri;
-
- /*
- * Thumbprint of the server key.
- */
- @JsonProperty(value = "thumbprint", access = JsonProperty.Access.WRITE_ONLY)
- private String thumbprint;
-
- /**
- * Get the subregion property: Subregion of the encryption protector.
- *
- * @return the subregion value.
- */
- public String subregion() {
- return this.subregion;
- }
-
- /**
- * Get the serverKeyName property: The name of the server key.
- *
- * @return the serverKeyName value.
- */
- public String serverKeyName() {
- return this.serverKeyName;
- }
-
- /**
- * Set the serverKeyName property: The name of the server key.
- *
- * @param serverKeyName the serverKeyName value to set.
- * @return the EncryptionProtectorProperties object itself.
- */
- public EncryptionProtectorProperties withServerKeyName(String serverKeyName) {
- this.serverKeyName = serverKeyName;
- return this;
- }
-
- /**
- * Get the serverKeyType property: The encryption protector type like 'ServiceManaged', 'AzureKeyVault'.
- *
- * @return the serverKeyType value.
- */
- public ServerKeyType serverKeyType() {
- return this.serverKeyType;
- }
-
- /**
- * Set the serverKeyType property: The encryption protector type like 'ServiceManaged', 'AzureKeyVault'.
- *
- * @param serverKeyType the serverKeyType value to set.
- * @return the EncryptionProtectorProperties object itself.
- */
- public EncryptionProtectorProperties withServerKeyType(ServerKeyType serverKeyType) {
- this.serverKeyType = serverKeyType;
- return this;
- }
-
- /**
- * Get the uri property: The URI of the server key.
- *
- * @return the uri value.
- */
- public String uri() {
- return this.uri;
- }
-
- /**
- * Get the thumbprint property: Thumbprint of the server key.
- *
- * @return the thumbprint value.
- */
- public String thumbprint() {
- return this.thumbprint;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (serverKeyType() == null) {
- throw logger
- .logExceptionAsError(
- new IllegalArgumentException(
- "Missing required property serverKeyType in model EncryptionProtectorProperties"));
- }
- }
-}
diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EnvironmentVariableSetupTypeProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EnvironmentVariableSetupTypeProperties.java
deleted file mode 100644
index a5bf321c39e9..000000000000
--- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EnvironmentVariableSetupTypeProperties.java
+++ /dev/null
@@ -1,88 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.synapse.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** Environment variable custom setup type properties. */
-@Fluent
-public final class EnvironmentVariableSetupTypeProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(EnvironmentVariableSetupTypeProperties.class);
-
- /*
- * The name of the environment variable.
- */
- @JsonProperty(value = "variableName", required = true)
- private String variableName;
-
- /*
- * The value of the environment variable.
- */
- @JsonProperty(value = "variableValue", required = true)
- private String variableValue;
-
- /**
- * Get the variableName property: The name of the environment variable.
- *
- * @return the variableName value.
- */
- public String variableName() {
- return this.variableName;
- }
-
- /**
- * Set the variableName property: The name of the environment variable.
- *
- * @param variableName the variableName value to set.
- * @return the EnvironmentVariableSetupTypeProperties object itself.
- */
- public EnvironmentVariableSetupTypeProperties withVariableName(String variableName) {
- this.variableName = variableName;
- return this;
- }
-
- /**
- * Get the variableValue property: The value of the environment variable.
- *
- * @return the variableValue value.
- */
- public String variableValue() {
- return this.variableValue;
- }
-
- /**
- * Set the variableValue property: The value of the environment variable.
- *
- * @param variableValue the variableValue value to set.
- * @return the EnvironmentVariableSetupTypeProperties object itself.
- */
- public EnvironmentVariableSetupTypeProperties withVariableValue(String variableValue) {
- this.variableValue = variableValue;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (variableName() == null) {
- throw logger
- .logExceptionAsError(
- new IllegalArgumentException(
- "Missing required property variableName in model EnvironmentVariableSetupTypeProperties"));
- }
- if (variableValue() == null) {
- throw logger
- .logExceptionAsError(
- new IllegalArgumentException(
- "Missing required property variableValue in model EnvironmentVariableSetupTypeProperties"));
- }
- }
-}
diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedServerBlobAuditingPolicyInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedServerBlobAuditingPolicyInner.java
index 9d1729622a90..8e9571ae50d8 100644
--- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedServerBlobAuditingPolicyInner.java
+++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedServerBlobAuditingPolicyInner.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.synapse.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.synapse.models.BlobAuditingPolicyState;
@@ -14,24 +15,176 @@
import java.util.UUID;
/** An extended server blob auditing policy. */
+@JsonFlatten
@Fluent
-public final class ExtendedServerBlobAuditingPolicyInner extends ProxyResource {
+public class ExtendedServerBlobAuditingPolicyInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(ExtendedServerBlobAuditingPolicyInner.class);
/*
- * Resource properties.
+ * Specifies condition of where clause when creating an audit.
*/
- @JsonProperty(value = "properties")
- private ExtendedServerBlobAuditingPolicyProperties innerProperties;
+ @JsonProperty(value = "properties.predicateExpression")
+ private String predicateExpression;
- /**
- * Get the innerProperties property: Resource properties.
+ /*
+ * Specifies the state of the policy. If state is Enabled, storageEndpoint
+ * or isAzureMonitorTargetEnabled are required.
+ */
+ @JsonProperty(value = "properties.state")
+ private BlobAuditingPolicyState state;
+
+ /*
+ * Specifies the blob storage endpoint (e.g.
+ * https://MyAccount.blob.core.windows.net). If state is Enabled,
+ * storageEndpoint or isAzureMonitorTargetEnabled is required.
+ */
+ @JsonProperty(value = "properties.storageEndpoint")
+ private String storageEndpoint;
+
+ /*
+ * Specifies the identifier key of the auditing storage account.
+ * If state is Enabled and storageEndpoint is specified, not specifying the
+ * storageAccountAccessKey will use SQL server system-assigned managed
+ * identity to access the storage.
+ * Prerequisites for using managed identity authentication:
+ * 1. Assign SQL Server a system-assigned managed identity in Azure Active
+ * Directory (AAD).
+ * 2. Grant SQL Server identity access to the storage account by adding
+ * 'Storage Blob Data Contributor' RBAC role to the server identity.
+ * For more information, see [Auditing to storage using Managed Identity
+ * authentication](https://go.microsoft.com/fwlink/?linkid=2114355)
+ */
+ @JsonProperty(value = "properties.storageAccountAccessKey")
+ private String storageAccountAccessKey;
+
+ /*
+ * Specifies the number of days to keep in the audit logs in the storage
+ * account.
+ */
+ @JsonProperty(value = "properties.retentionDays")
+ private Integer retentionDays;
+
+ /*
+ * Specifies the Actions-Groups and Actions to audit.
+ *
+ * The recommended set of action groups to use is the following combination
+ * - this will audit all the queries and stored procedures executed against
+ * the database, as well as successful and failed logins:
+ *
+ * BATCH_COMPLETED_GROUP,
+ * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP,
+ * FAILED_DATABASE_AUTHENTICATION_GROUP.
+ *
+ * This above combination is also the set that is configured by default
+ * when enabling auditing from the Azure portal.
+ *
+ * The supported action groups to audit are (note: choose only specific
+ * groups that cover your auditing needs. Using unnecessary groups could
+ * lead to very large quantities of audit records):
+ *
+ * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP
+ * BACKUP_RESTORE_GROUP
+ * DATABASE_LOGOUT_GROUP
+ * DATABASE_OBJECT_CHANGE_GROUP
+ * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP
+ * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP
+ * DATABASE_OPERATION_GROUP
+ * DATABASE_PERMISSION_CHANGE_GROUP
+ * DATABASE_PRINCIPAL_CHANGE_GROUP
+ * DATABASE_PRINCIPAL_IMPERSONATION_GROUP
+ * DATABASE_ROLE_MEMBER_CHANGE_GROUP
+ * FAILED_DATABASE_AUTHENTICATION_GROUP
+ * SCHEMA_OBJECT_ACCESS_GROUP
+ * SCHEMA_OBJECT_CHANGE_GROUP
+ * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP
+ * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP
+ * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP
+ * USER_CHANGE_PASSWORD_GROUP
+ * BATCH_STARTED_GROUP
+ * BATCH_COMPLETED_GROUP
+ *
+ * These are groups that cover all sql statements and stored procedures
+ * executed against the database, and should not be used in combination
+ * with other groups as this will result in duplicate audit logs.
+ *
+ * For more information, see [Database-Level Audit Action
+ * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups).
+ *
+ * For Database auditing policy, specific Actions can also be specified
+ * (note that Actions cannot be specified for Server auditing policy). The
+ * supported actions to audit are:
+ * SELECT
+ * UPDATE
+ * INSERT
+ * DELETE
+ * EXECUTE
+ * RECEIVE
+ * REFERENCES
+ *
+ * The general form for defining an action to be audited is:
+ * {action} ON {object} BY {principal}
+ *
+ * Note that