diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/pom.xml b/sdk/synapse/mgmt-v2019_06_01_preview/pom.xml
index efa10135119b9..4ca5aa6816ebe 100644
--- a/sdk/synapse/mgmt-v2019_06_01_preview/pom.xml
+++ b/sdk/synapse/mgmt-v2019_06_01_preview/pom.xml
@@ -11,11 +11,11 @@
com.microsoft.azureazure-arm-parent
- 1.3.2
- ../../parents/azure-arm-parent/pom.xml
+ 1.1.0
+ ../../../pom.management.xmlazure-mgmt-synapse
- 1.0.0-beta-3
+ 1.0.0-betajarMicrosoft Azure SDK for Synapse ManagementThis package contains Microsoft Synapse Management SDK.
diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/AzureEntityResource.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/AzureEntityResource.java
index 3192800bcec6b..53d42dbd20c13 100644
--- a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/AzureEntityResource.java
+++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/AzureEntityResource.java
@@ -12,7 +12,8 @@
import com.microsoft.azure.ProxyResource;
/**
- * The resource model definition for a Azure Resource Manager resource with an
+ * Entity Resource.
+ * The resource model definition for an Azure Resource Manager resource with an
* etag.
*/
public class AzureEntityResource extends ProxyResource {
diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/BabylonConfiguration.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/BabylonConfiguration.java
new file mode 100644
index 0000000000000..ae1f361375e4b
--- /dev/null
+++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/BabylonConfiguration.java
@@ -0,0 +1,43 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.synapse.v2019_06_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Babylon Configuration.
+ */
+public class BabylonConfiguration {
+ /**
+ * Babylon Resource ID.
+ */
+ @JsonProperty(value = "babylonResourceId")
+ private String babylonResourceId;
+
+ /**
+ * Get babylon Resource ID.
+ *
+ * @return the babylonResourceId value
+ */
+ public String babylonResourceId() {
+ return this.babylonResourceId;
+ }
+
+ /**
+ * Set babylon Resource ID.
+ *
+ * @param babylonResourceId the babylonResourceId value to set
+ * @return the BabylonConfiguration object itself.
+ */
+ public BabylonConfiguration withBabylonResourceId(String babylonResourceId) {
+ this.babylonResourceId = babylonResourceId;
+ return this;
+ }
+
+}
diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/BigDataPoolResourceInfo.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/BigDataPoolResourceInfo.java
index 7e958a968b169..77685d96bc83a 100644
--- a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/BigDataPoolResourceInfo.java
+++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/BigDataPoolResourceInfo.java
@@ -19,6 +19,7 @@
import com.microsoft.azure.management.synapse.v2019_06_01_preview.implementation.SynapseManager;
import java.util.Map;
import org.joda.time.DateTime;
+import java.util.List;
/**
* Type representing BigDataPoolResourceInfo.
@@ -39,6 +40,11 @@ public interface BigDataPoolResourceInfo extends HasInner customLibraries();
+
/**
* @return the defaultSparkLogFolder value.
*/
@@ -89,6 +95,16 @@ public interface BigDataPoolResourceInfo extends HasInner customLibraries);
+ }
+
/**
* The stage of the bigdatapoolresourceinfo definition allowing to specify DefaultSparkLogFolder.
*/
@@ -252,7 +280,7 @@ interface WithNodeCount {
interface WithNodeSize {
/**
* Specifies nodeSize.
- * @param nodeSize The level of compute power that each node in the Big Data pool has. Possible values include: 'None', 'Small', 'Medium', 'Large', 'XLarge', 'XXLarge'
+ * @param nodeSize The level of compute power that each node in the Big Data pool has. Possible values include: 'None', 'Small', 'Medium', 'Large', 'XLarge', 'XXLarge', 'XXXLarge'
* @return the next definition stage
*/
WithCreate withNodeSize(NodeSize nodeSize);
@@ -282,6 +310,30 @@ interface WithProvisioningState {
WithCreate withProvisioningState(String provisioningState);
}
+ /**
+ * The stage of the bigdatapoolresourceinfo definition allowing to specify SessionLevelPackagesEnabled.
+ */
+ interface WithSessionLevelPackagesEnabled {
+ /**
+ * Specifies sessionLevelPackagesEnabled.
+ * @param sessionLevelPackagesEnabled Whether session level library/package management is enabled or not
+ * @return the next definition stage
+ */
+ WithCreate withSessionLevelPackagesEnabled(Boolean sessionLevelPackagesEnabled);
+ }
+
+ /**
+ * The stage of the bigdatapoolresourceinfo definition allowing to specify SparkConfigProperties.
+ */
+ interface WithSparkConfigProperties {
+ /**
+ * Specifies sparkConfigProperties.
+ * @param sparkConfigProperties Spark configuration file to specify additional properties
+ * @return the next definition stage
+ */
+ WithCreate withSparkConfigProperties(LibraryRequirements sparkConfigProperties);
+ }
+
/**
* The stage of the bigdatapoolresourceinfo definition allowing to specify SparkEventsFolder.
*/
@@ -323,13 +375,13 @@ interface WithTags {
* the resource to be created (via {@link WithCreate#create()}), but also allows
* for any other optional settings to be specified.
*/
- interface WithCreate extends Creatable, DefinitionStages.WithAutoPause, DefinitionStages.WithAutoScale, DefinitionStages.WithCreationDate, DefinitionStages.WithDefaultSparkLogFolder, DefinitionStages.WithIsComputeIsolationEnabled, DefinitionStages.WithLibraryRequirements, DefinitionStages.WithNodeCount, DefinitionStages.WithNodeSize, DefinitionStages.WithNodeSizeFamily, DefinitionStages.WithProvisioningState, DefinitionStages.WithSparkEventsFolder, DefinitionStages.WithSparkVersion, DefinitionStages.WithTags {
+ interface WithCreate extends Creatable, DefinitionStages.WithAutoPause, DefinitionStages.WithAutoScale, DefinitionStages.WithCreationDate, DefinitionStages.WithCustomLibraries, DefinitionStages.WithDefaultSparkLogFolder, DefinitionStages.WithIsComputeIsolationEnabled, DefinitionStages.WithLibraryRequirements, DefinitionStages.WithNodeCount, DefinitionStages.WithNodeSize, DefinitionStages.WithNodeSizeFamily, DefinitionStages.WithProvisioningState, DefinitionStages.WithSessionLevelPackagesEnabled, DefinitionStages.WithSparkConfigProperties, DefinitionStages.WithSparkEventsFolder, DefinitionStages.WithSparkVersion, DefinitionStages.WithTags {
}
}
/**
* The template for a BigDataPoolResourceInfo update operation, containing all the settings that can be modified.
*/
- interface Update extends Appliable, UpdateStages.WithForce, UpdateStages.WithAutoPause, UpdateStages.WithAutoScale, UpdateStages.WithCreationDate, UpdateStages.WithDefaultSparkLogFolder, UpdateStages.WithIsComputeIsolationEnabled, UpdateStages.WithLibraryRequirements, UpdateStages.WithNodeCount, UpdateStages.WithNodeSize, UpdateStages.WithNodeSizeFamily, UpdateStages.WithProvisioningState, UpdateStages.WithSparkEventsFolder, UpdateStages.WithSparkVersion, UpdateStages.WithTags {
+ interface Update extends Appliable, UpdateStages.WithForce, UpdateStages.WithAutoPause, UpdateStages.WithAutoScale, UpdateStages.WithCreationDate, UpdateStages.WithCustomLibraries, UpdateStages.WithDefaultSparkLogFolder, UpdateStages.WithIsComputeIsolationEnabled, UpdateStages.WithLibraryRequirements, UpdateStages.WithNodeCount, UpdateStages.WithNodeSize, UpdateStages.WithNodeSizeFamily, UpdateStages.WithProvisioningState, UpdateStages.WithSessionLevelPackagesEnabled, UpdateStages.WithSparkConfigProperties, UpdateStages.WithSparkEventsFolder, UpdateStages.WithSparkVersion, UpdateStages.WithTags {
}
/**
@@ -384,6 +436,18 @@ interface WithCreationDate {
Update withCreationDate(DateTime creationDate);
}
+ /**
+ * The stage of the bigdatapoolresourceinfo update allowing to specify CustomLibraries.
+ */
+ interface WithCustomLibraries {
+ /**
+ * Specifies customLibraries.
+ * @param customLibraries List of custom libraries/packages associated with the spark pool
+ * @return the next update stage
+ */
+ Update withCustomLibraries(List customLibraries);
+ }
+
/**
* The stage of the bigdatapoolresourceinfo update allowing to specify DefaultSparkLogFolder.
*/
@@ -438,7 +502,7 @@ interface WithNodeCount {
interface WithNodeSize {
/**
* Specifies nodeSize.
- * @param nodeSize The level of compute power that each node in the Big Data pool has. Possible values include: 'None', 'Small', 'Medium', 'Large', 'XLarge', 'XXLarge'
+ * @param nodeSize The level of compute power that each node in the Big Data pool has. Possible values include: 'None', 'Small', 'Medium', 'Large', 'XLarge', 'XXLarge', 'XXXLarge'
* @return the next update stage
*/
Update withNodeSize(NodeSize nodeSize);
@@ -468,6 +532,30 @@ interface WithProvisioningState {
Update withProvisioningState(String provisioningState);
}
+ /**
+ * The stage of the bigdatapoolresourceinfo update allowing to specify SessionLevelPackagesEnabled.
+ */
+ interface WithSessionLevelPackagesEnabled {
+ /**
+ * Specifies sessionLevelPackagesEnabled.
+ * @param sessionLevelPackagesEnabled Whether session level library/package management is enabled or not
+ * @return the next update stage
+ */
+ Update withSessionLevelPackagesEnabled(Boolean sessionLevelPackagesEnabled);
+ }
+
+ /**
+ * The stage of the bigdatapoolresourceinfo update allowing to specify SparkConfigProperties.
+ */
+ interface WithSparkConfigProperties {
+ /**
+ * Specifies sparkConfigProperties.
+ * @param sparkConfigProperties Spark configuration file to specify additional properties
+ * @return the next update stage
+ */
+ Update withSparkConfigProperties(LibraryRequirements sparkConfigProperties);
+ }
+
/**
* The stage of the bigdatapoolresourceinfo update allowing to specify SparkEventsFolder.
*/
diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/CustomerManagedKeyDetails.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/CustomerManagedKeyDetails.java
new file mode 100644
index 0000000000000..bd6a85141d374
--- /dev/null
+++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/CustomerManagedKeyDetails.java
@@ -0,0 +1,58 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.synapse.v2019_06_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Details of the customer managed key associated with the workspace.
+ */
+public class CustomerManagedKeyDetails {
+ /**
+ * The customer managed key status on the workspace.
+ */
+ @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY)
+ private String status;
+
+ /**
+ * The key object of the workspace.
+ */
+ @JsonProperty(value = "key")
+ private WorkspaceKeyDetails key;
+
+ /**
+ * Get the customer managed key status on the workspace.
+ *
+ * @return the status value
+ */
+ public String status() {
+ return this.status;
+ }
+
+ /**
+ * Get the key object of the workspace.
+ *
+ * @return the key value
+ */
+ public WorkspaceKeyDetails key() {
+ return this.key;
+ }
+
+ /**
+ * Set the key object of the workspace.
+ *
+ * @param key the key value to set
+ * @return the CustomerManagedKeyDetails object itself.
+ */
+ public CustomerManagedKeyDetails withKey(WorkspaceKeyDetails key) {
+ this.key = key;
+ return this;
+ }
+
+}
diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/DataMaskingFunction.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/DataMaskingFunction.java
new file mode 100644
index 0000000000000..4a6e9b73d450e
--- /dev/null
+++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/DataMaskingFunction.java
@@ -0,0 +1,65 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.synapse.v2019_06_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+/**
+ * Defines values for DataMaskingFunction.
+ */
+public enum DataMaskingFunction {
+ /** Enum value Default. */
+ DEFAULT("Default"),
+
+ /** Enum value CCN. */
+ CCN("CCN"),
+
+ /** Enum value Email. */
+ EMAIL("Email"),
+
+ /** Enum value Number. */
+ NUMBER("Number"),
+
+ /** Enum value SSN. */
+ SSN("SSN"),
+
+ /** Enum value Text. */
+ TEXT("Text");
+
+ /** The actual serialized value for a DataMaskingFunction instance. */
+ private String value;
+
+ DataMaskingFunction(String value) {
+ this.value = value;
+ }
+
+ /**
+ * Parses a serialized value to a DataMaskingFunction instance.
+ *
+ * @param value the serialized value to parse.
+ * @return the parsed DataMaskingFunction object, or null if unable to parse.
+ */
+ @JsonCreator
+ public static DataMaskingFunction fromString(String value) {
+ DataMaskingFunction[] items = DataMaskingFunction.values();
+ for (DataMaskingFunction item : items) {
+ if (item.toString().equalsIgnoreCase(value)) {
+ return item;
+ }
+ }
+ return null;
+ }
+
+ @JsonValue
+ @Override
+ public String toString() {
+ return this.value;
+ }
+}
diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/DataMaskingPolicies.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/DataMaskingPolicies.java
new file mode 100644
index 0000000000000..cee7cad759a4e
--- /dev/null
+++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/DataMaskingPolicies.java
@@ -0,0 +1,31 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.synapse.v2019_06_01_preview;
+
+import com.microsoft.azure.arm.collection.SupportsCreating;
+import rx.Observable;
+import com.microsoft.azure.management.synapse.v2019_06_01_preview.implementation.DataMaskingPoliciesInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing DataMaskingPolicies.
+ */
+public interface DataMaskingPolicies extends SupportsCreating, HasInner {
+ /**
+ * Gets a Sql pool data masking policy.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace
+ * @param sqlPoolName SQL pool name
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAsync(String resourceGroupName, String workspaceName, String sqlPoolName);
+
+}
diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/DataMaskingPolicy.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/DataMaskingPolicy.java
new file mode 100644
index 0000000000000..20c967f605ad8
--- /dev/null
+++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/DataMaskingPolicy.java
@@ -0,0 +1,155 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.synapse.v2019_06_01_preview;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.synapse.v2019_06_01_preview.implementation.DataMaskingPolicyInner;
+import com.microsoft.azure.arm.model.Indexable;
+import com.microsoft.azure.arm.model.Refreshable;
+import com.microsoft.azure.arm.model.Updatable;
+import com.microsoft.azure.arm.model.Appliable;
+import com.microsoft.azure.arm.model.Creatable;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.synapse.v2019_06_01_preview.implementation.SynapseManager;
+
+/**
+ * Type representing DataMaskingPolicy.
+ */
+public interface DataMaskingPolicy extends HasInner, Indexable, Refreshable, Updatable, HasManager {
+ /**
+ * @return the applicationPrincipals value.
+ */
+ String applicationPrincipals();
+
+ /**
+ * @return the dataMaskingState value.
+ */
+ DataMaskingState dataMaskingState();
+
+ /**
+ * @return the exemptPrincipals value.
+ */
+ String exemptPrincipals();
+
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the kind value.
+ */
+ String kind();
+
+ /**
+ * @return the location value.
+ */
+ String location();
+
+ /**
+ * @return the maskingLevel value.
+ */
+ String maskingLevel();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * The entirety of the DataMaskingPolicy definition.
+ */
+ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithSqlPool, DefinitionStages.WithDataMaskingState, DefinitionStages.WithCreate {
+ }
+
+ /**
+ * Grouping of DataMaskingPolicy definition stages.
+ */
+ interface DefinitionStages {
+ /**
+ * The first stage of a DataMaskingPolicy definition.
+ */
+ interface Blank extends WithSqlPool {
+ }
+
+ /**
+ * The stage of the datamaskingpolicy definition allowing to specify SqlPool.
+ */
+ interface WithSqlPool {
+ /**
+ * Specifies resourceGroupName, workspaceName, sqlPoolName.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive
+ * @param workspaceName The name of the workspace
+ * @param sqlPoolName SQL pool name
+ * @return the next definition stage
+ */
+ WithDataMaskingState withExistingSqlPool(String resourceGroupName, String workspaceName, String sqlPoolName);
+ }
+
+ /**
+ * The stage of the datamaskingpolicy definition allowing to specify DataMaskingState.
+ */
+ interface WithDataMaskingState {
+ /**
+ * Specifies dataMaskingState.
+ * @param dataMaskingState The state of the data masking policy. Possible values include: 'Disabled', 'Enabled'
+ * @return the next definition stage
+ */
+ WithCreate withDataMaskingState(DataMaskingState dataMaskingState);
+ }
+
+ /**
+ * The stage of the datamaskingpolicy definition allowing to specify ExemptPrincipals.
+ */
+ interface WithExemptPrincipals {
+ /**
+ * Specifies exemptPrincipals.
+ * @param exemptPrincipals 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 next definition stage
+ */
+ WithCreate withExemptPrincipals(String exemptPrincipals);
+ }
+
+ /**
+ * The stage of the definition which contains all the minimum required inputs for
+ * the resource to be created (via {@link WithCreate#create()}), but also allows
+ * for any other optional settings to be specified.
+ */
+ interface WithCreate extends Creatable, DefinitionStages.WithExemptPrincipals {
+ }
+ }
+ /**
+ * The template for a DataMaskingPolicy update operation, containing all the settings that can be modified.
+ */
+ interface Update extends Appliable, UpdateStages.WithExemptPrincipals {
+ }
+
+ /**
+ * Grouping of DataMaskingPolicy update stages.
+ */
+ interface UpdateStages {
+ /**
+ * The stage of the datamaskingpolicy update allowing to specify ExemptPrincipals.
+ */
+ interface WithExemptPrincipals {
+ /**
+ * Specifies exemptPrincipals.
+ * @param exemptPrincipals 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 next update stage
+ */
+ Update withExemptPrincipals(String exemptPrincipals);
+ }
+
+ }
+}
diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/DataMaskingRule.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/DataMaskingRule.java
new file mode 100644
index 0000000000000..17ab0aa74e1a1
--- /dev/null
+++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/DataMaskingRule.java
@@ -0,0 +1,374 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.synapse.v2019_06_01_preview;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.synapse.v2019_06_01_preview.implementation.DataMaskingRuleInner;
+import com.microsoft.azure.arm.model.Indexable;
+import com.microsoft.azure.arm.model.Updatable;
+import com.microsoft.azure.arm.model.Appliable;
+import com.microsoft.azure.arm.model.Creatable;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.synapse.v2019_06_01_preview.implementation.SynapseManager;
+
+/**
+ * Type representing DataMaskingRule.
+ */
+public interface DataMaskingRule extends HasInner, Indexable, Updatable, HasManager {
+ /**
+ * @return the aliasName value.
+ */
+ String aliasName();
+
+ /**
+ * @return the columnName value.
+ */
+ String columnName();
+
+ /**
+ * @return the dataMaskingRuleId value.
+ */
+ String dataMaskingRuleId();
+
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the kind value.
+ */
+ String kind();
+
+ /**
+ * @return the location value.
+ */
+ String location();
+
+ /**
+ * @return the maskingFunction value.
+ */
+ DataMaskingFunction maskingFunction();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the numberFrom value.
+ */
+ String numberFrom();
+
+ /**
+ * @return the numberTo value.
+ */
+ String numberTo();
+
+ /**
+ * @return the prefixSize value.
+ */
+ String prefixSize();
+
+ /**
+ * @return the replacementString value.
+ */
+ String replacementString();
+
+ /**
+ * @return the ruleState value.
+ */
+ DataMaskingRuleState ruleState();
+
+ /**
+ * @return the schemaName value.
+ */
+ String schemaName();
+
+ /**
+ * @return the suffixSize value.
+ */
+ String suffixSize();
+
+ /**
+ * @return the tableName value.
+ */
+ String tableName();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * The entirety of the DataMaskingRule definition.
+ */
+ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithDataMaskingPolicy, DefinitionStages.WithColumnName, DefinitionStages.WithMaskingFunction, DefinitionStages.WithSchemaName, DefinitionStages.WithTableName, DefinitionStages.WithCreate {
+ }
+
+ /**
+ * Grouping of DataMaskingRule definition stages.
+ */
+ interface DefinitionStages {
+ /**
+ * The first stage of a DataMaskingRule definition.
+ */
+ interface Blank extends WithDataMaskingPolicy {
+ }
+
+ /**
+ * The stage of the datamaskingrule definition allowing to specify DataMaskingPolicy.
+ */
+ interface WithDataMaskingPolicy {
+ /**
+ * Specifies resourceGroupName, workspaceName, sqlPoolName.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive
+ * @param workspaceName The name of the workspace
+ * @param sqlPoolName SQL pool name
+ * @return the next definition stage
+ */
+ WithColumnName withExistingDataMaskingPolicy(String resourceGroupName, String workspaceName, String sqlPoolName);
+ }
+
+ /**
+ * The stage of the datamaskingrule definition allowing to specify ColumnName.
+ */
+ interface WithColumnName {
+ /**
+ * Specifies columnName.
+ * @param columnName The column name on which the data masking rule is applied
+ * @return the next definition stage
+ */
+ WithMaskingFunction withColumnName(String columnName);
+ }
+
+ /**
+ * The stage of the datamaskingrule definition allowing to specify MaskingFunction.
+ */
+ interface WithMaskingFunction {
+ /**
+ * Specifies maskingFunction.
+ * @param maskingFunction The masking function that is used for the data masking rule. Possible values include: 'Default', 'CCN', 'Email', 'Number', 'SSN', 'Text'
+ * @return the next definition stage
+ */
+ WithSchemaName withMaskingFunction(DataMaskingFunction maskingFunction);
+ }
+
+ /**
+ * The stage of the datamaskingrule definition allowing to specify SchemaName.
+ */
+ interface WithSchemaName {
+ /**
+ * Specifies schemaName.
+ * @param schemaName The schema name on which the data masking rule is applied
+ * @return the next definition stage
+ */
+ WithTableName withSchemaName(String schemaName);
+ }
+
+ /**
+ * The stage of the datamaskingrule definition allowing to specify TableName.
+ */
+ interface WithTableName {
+ /**
+ * Specifies tableName.
+ * @param tableName The table name on which the data masking rule is applied
+ * @return the next definition stage
+ */
+ WithCreate withTableName(String tableName);
+ }
+
+ /**
+ * The stage of the datamaskingrule definition allowing to specify AliasName.
+ */
+ interface WithAliasName {
+ /**
+ * Specifies aliasName.
+ * @param aliasName The alias name. This is a legacy parameter and is no longer used
+ * @return the next definition stage
+ */
+ WithCreate withAliasName(String aliasName);
+ }
+
+ /**
+ * The stage of the datamaskingrule definition allowing to specify NumberFrom.
+ */
+ interface WithNumberFrom {
+ /**
+ * Specifies numberFrom.
+ * @param numberFrom The numberFrom property of the masking rule. Required if maskingFunction is set to Number, otherwise this parameter will be ignored
+ * @return the next definition stage
+ */
+ WithCreate withNumberFrom(String numberFrom);
+ }
+
+ /**
+ * The stage of the datamaskingrule definition allowing to specify NumberTo.
+ */
+ interface WithNumberTo {
+ /**
+ * Specifies numberTo.
+ * @param numberTo The numberTo property of the data masking rule. Required if maskingFunction is set to Number, otherwise this parameter will be ignored
+ * @return the next definition stage
+ */
+ WithCreate withNumberTo(String numberTo);
+ }
+
+ /**
+ * The stage of the datamaskingrule definition allowing to specify PrefixSize.
+ */
+ interface WithPrefixSize {
+ /**
+ * Specifies prefixSize.
+ * @param prefixSize 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 next definition stage
+ */
+ WithCreate withPrefixSize(String prefixSize);
+ }
+
+ /**
+ * The stage of the datamaskingrule definition allowing to specify ReplacementString.
+ */
+ interface WithReplacementString {
+ /**
+ * Specifies replacementString.
+ * @param replacementString 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 next definition stage
+ */
+ WithCreate withReplacementString(String replacementString);
+ }
+
+ /**
+ * The stage of the datamaskingrule definition allowing to specify RuleState.
+ */
+ interface WithRuleState {
+ /**
+ * Specifies ruleState.
+ * @param ruleState 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. Possible values include: 'Disabled', 'Enabled'
+ * @return the next definition stage
+ */
+ WithCreate withRuleState(DataMaskingRuleState ruleState);
+ }
+
+ /**
+ * The stage of the datamaskingrule definition allowing to specify SuffixSize.
+ */
+ interface WithSuffixSize {
+ /**
+ * Specifies suffixSize.
+ * @param suffixSize 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 next definition stage
+ */
+ WithCreate withSuffixSize(String suffixSize);
+ }
+
+ /**
+ * The stage of the definition which contains all the minimum required inputs for
+ * the resource to be created (via {@link WithCreate#create()}), but also allows
+ * for any other optional settings to be specified.
+ */
+ interface WithCreate extends Creatable, DefinitionStages.WithAliasName, DefinitionStages.WithNumberFrom, DefinitionStages.WithNumberTo, DefinitionStages.WithPrefixSize, DefinitionStages.WithReplacementString, DefinitionStages.WithRuleState, DefinitionStages.WithSuffixSize {
+ }
+ }
+ /**
+ * The template for a DataMaskingRule update operation, containing all the settings that can be modified.
+ */
+ interface Update extends Appliable, UpdateStages.WithAliasName, UpdateStages.WithNumberFrom, UpdateStages.WithNumberTo, UpdateStages.WithPrefixSize, UpdateStages.WithReplacementString, UpdateStages.WithRuleState, UpdateStages.WithSuffixSize {
+ }
+
+ /**
+ * Grouping of DataMaskingRule update stages.
+ */
+ interface UpdateStages {
+ /**
+ * The stage of the datamaskingrule update allowing to specify AliasName.
+ */
+ interface WithAliasName {
+ /**
+ * Specifies aliasName.
+ * @param aliasName The alias name. This is a legacy parameter and is no longer used
+ * @return the next update stage
+ */
+ Update withAliasName(String aliasName);
+ }
+
+ /**
+ * The stage of the datamaskingrule update allowing to specify NumberFrom.
+ */
+ interface WithNumberFrom {
+ /**
+ * Specifies numberFrom.
+ * @param numberFrom The numberFrom property of the masking rule. Required if maskingFunction is set to Number, otherwise this parameter will be ignored
+ * @return the next update stage
+ */
+ Update withNumberFrom(String numberFrom);
+ }
+
+ /**
+ * The stage of the datamaskingrule update allowing to specify NumberTo.
+ */
+ interface WithNumberTo {
+ /**
+ * Specifies numberTo.
+ * @param numberTo The numberTo property of the data masking rule. Required if maskingFunction is set to Number, otherwise this parameter will be ignored
+ * @return the next update stage
+ */
+ Update withNumberTo(String numberTo);
+ }
+
+ /**
+ * The stage of the datamaskingrule update allowing to specify PrefixSize.
+ */
+ interface WithPrefixSize {
+ /**
+ * Specifies prefixSize.
+ * @param prefixSize 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 next update stage
+ */
+ Update withPrefixSize(String prefixSize);
+ }
+
+ /**
+ * The stage of the datamaskingrule update allowing to specify ReplacementString.
+ */
+ interface WithReplacementString {
+ /**
+ * Specifies replacementString.
+ * @param replacementString 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 next update stage
+ */
+ Update withReplacementString(String replacementString);
+ }
+
+ /**
+ * The stage of the datamaskingrule update allowing to specify RuleState.
+ */
+ interface WithRuleState {
+ /**
+ * Specifies ruleState.
+ * @param ruleState 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. Possible values include: 'Disabled', 'Enabled'
+ * @return the next update stage
+ */
+ Update withRuleState(DataMaskingRuleState ruleState);
+ }
+
+ /**
+ * The stage of the datamaskingrule update allowing to specify SuffixSize.
+ */
+ interface WithSuffixSize {
+ /**
+ * Specifies suffixSize.
+ * @param suffixSize 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 next update stage
+ */
+ Update withSuffixSize(String suffixSize);
+ }
+
+ }
+}
diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/DataMaskingRuleState.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/DataMaskingRuleState.java
new file mode 100644
index 0000000000000..1674271be5901
--- /dev/null
+++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/DataMaskingRuleState.java
@@ -0,0 +1,53 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.synapse.v2019_06_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+/**
+ * Defines values for DataMaskingRuleState.
+ */
+public enum DataMaskingRuleState {
+ /** Enum value Disabled. */
+ DISABLED("Disabled"),
+
+ /** Enum value Enabled. */
+ ENABLED("Enabled");
+
+ /** The actual serialized value for a DataMaskingRuleState instance. */
+ private String value;
+
+ DataMaskingRuleState(String value) {
+ this.value = value;
+ }
+
+ /**
+ * Parses a serialized value to a DataMaskingRuleState instance.
+ *
+ * @param value the serialized value to parse.
+ * @return the parsed DataMaskingRuleState object, or null if unable to parse.
+ */
+ @JsonCreator
+ public static DataMaskingRuleState fromString(String value) {
+ DataMaskingRuleState[] items = DataMaskingRuleState.values();
+ for (DataMaskingRuleState item : items) {
+ if (item.toString().equalsIgnoreCase(value)) {
+ return item;
+ }
+ }
+ return null;
+ }
+
+ @JsonValue
+ @Override
+ public String toString() {
+ return this.value;
+ }
+}
diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/DataMaskingRules.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/DataMaskingRules.java
new file mode 100644
index 0000000000000..ccd46e38a907b
--- /dev/null
+++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/DataMaskingRules.java
@@ -0,0 +1,31 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.synapse.v2019_06_01_preview;
+
+import com.microsoft.azure.arm.collection.SupportsCreating;
+import rx.Observable;
+import com.microsoft.azure.management.synapse.v2019_06_01_preview.implementation.DataMaskingRulesInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing DataMaskingRules.
+ */
+public interface DataMaskingRules extends SupportsCreating, HasInner {
+ /**
+ * Gets a list of Sql pool data masking rules.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace
+ * @param sqlPoolName SQL pool name
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listBySqlPoolAsync(String resourceGroupName, String workspaceName, String sqlPoolName);
+
+}
diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/DataMaskingState.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/DataMaskingState.java
new file mode 100644
index 0000000000000..66372800542a8
--- /dev/null
+++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/DataMaskingState.java
@@ -0,0 +1,53 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.synapse.v2019_06_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+/**
+ * Defines values for DataMaskingState.
+ */
+public enum DataMaskingState {
+ /** Enum value Disabled. */
+ DISABLED("Disabled"),
+
+ /** Enum value Enabled. */
+ ENABLED("Enabled");
+
+ /** The actual serialized value for a DataMaskingState instance. */
+ private String value;
+
+ DataMaskingState(String value) {
+ this.value = value;
+ }
+
+ /**
+ * Parses a serialized value to a DataMaskingState instance.
+ *
+ * @param value the serialized value to parse.
+ * @return the parsed DataMaskingState object, or null if unable to parse.
+ */
+ @JsonCreator
+ public static DataMaskingState fromString(String value) {
+ DataMaskingState[] items = DataMaskingState.values();
+ for (DataMaskingState item : items) {
+ if (item.toString().equalsIgnoreCase(value)) {
+ return item;
+ }
+ }
+ return null;
+ }
+
+ @JsonValue
+ @Override
+ public String toString() {
+ return this.value;
+ }
+}
diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/EncryptionDetails.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/EncryptionDetails.java
new file mode 100644
index 0000000000000..71abf41034401
--- /dev/null
+++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/EncryptionDetails.java
@@ -0,0 +1,58 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.synapse.v2019_06_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Details of the encryption associated with the workspace.
+ */
+public class EncryptionDetails {
+ /**
+ * Double Encryption enabled.
+ */
+ @JsonProperty(value = "doubleEncryptionEnabled", access = JsonProperty.Access.WRITE_ONLY)
+ private Boolean doubleEncryptionEnabled;
+
+ /**
+ * Customer Managed Key Details.
+ */
+ @JsonProperty(value = "cmk")
+ private CustomerManagedKeyDetails cmk;
+
+ /**
+ * Get double Encryption enabled.
+ *
+ * @return the doubleEncryptionEnabled value
+ */
+ public Boolean doubleEncryptionEnabled() {
+ return this.doubleEncryptionEnabled;
+ }
+
+ /**
+ * Get customer Managed Key Details.
+ *
+ * @return the cmk value
+ */
+ public CustomerManagedKeyDetails cmk() {
+ return this.cmk;
+ }
+
+ /**
+ * Set customer Managed Key Details.
+ *
+ * @param cmk the cmk value to set
+ * @return the EncryptionDetails object itself.
+ */
+ public EncryptionDetails withCmk(CustomerManagedKeyDetails cmk) {
+ this.cmk = cmk;
+ return this;
+ }
+
+}
diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/EncryptionProtector.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/EncryptionProtector.java
new file mode 100644
index 0000000000000..d9672bb6c62b2
--- /dev/null
+++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/EncryptionProtector.java
@@ -0,0 +1,70 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.synapse.v2019_06_01_preview;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.synapse.v2019_06_01_preview.implementation.SynapseManager;
+import com.microsoft.azure.management.synapse.v2019_06_01_preview.implementation.EncryptionProtectorInner;
+
+/**
+ * Type representing EncryptionProtector.
+ */
+public interface EncryptionProtector extends HasInner, HasManager {
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the kind value.
+ */
+ String kind();
+
+ /**
+ * @return the location value.
+ */
+ String location();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the serverKeyName value.
+ */
+ String serverKeyName();
+
+ /**
+ * @return the serverKeyType value.
+ */
+ ServerKeyType serverKeyType();
+
+ /**
+ * @return the subregion value.
+ */
+ String subregion();
+
+ /**
+ * @return the thumbprint value.
+ */
+ String thumbprint();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * @return the uri value.
+ */
+ String uri();
+
+}
diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/ErrorContract.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/ErrorContract.java
new file mode 100644
index 0000000000000..287868d63e8cb
--- /dev/null
+++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/ErrorContract.java
@@ -0,0 +1,44 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.synapse.v2019_06_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Error details.
+ * Contains details when the response code indicates an error.
+ */
+public class ErrorContract {
+ /**
+ * The error details.
+ */
+ @JsonProperty(value = "error")
+ private ErrorResponse error;
+
+ /**
+ * Get the error details.
+ *
+ * @return the error value
+ */
+ public ErrorResponse error() {
+ return this.error;
+ }
+
+ /**
+ * Set the error details.
+ *
+ * @param error the error value to set
+ * @return the ErrorContract object itself.
+ */
+ public ErrorContract withError(ErrorResponse error) {
+ this.error = error;
+ return this;
+ }
+
+}
diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/ErrorContractException.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/ErrorContractException.java
new file mode 100644
index 0000000000000..187d49c20de71
--- /dev/null
+++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/ErrorContractException.java
@@ -0,0 +1,44 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.synapse.v2019_06_01_preview;
+
+import com.microsoft.rest.RestException;
+import okhttp3.ResponseBody;
+import retrofit2.Response;
+
+/**
+ * Exception thrown for an invalid response with ErrorContract information.
+ */
+public class ErrorContractException extends RestException {
+ /**
+ * Initializes a new instance of the ErrorContractException class.
+ *
+ * @param message the exception message or the response content if a message is not available
+ * @param response the HTTP response
+ */
+ public ErrorContractException(final String message, final Response response) {
+ super(message, response);
+ }
+
+ /**
+ * Initializes a new instance of the ErrorContractException class.
+ *
+ * @param message the exception message or the response content if a message is not available
+ * @param response the HTTP response
+ * @param body the deserialized response body
+ */
+ public ErrorContractException(final String message, final Response response, final ErrorContract body) {
+ super(message, response, body);
+ }
+
+ @Override
+ public ErrorContract body() {
+ return (ErrorContract) super.body();
+ }
+}
diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/ErrorResponse.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/ErrorResponse.java
index 2a28ac9492eb7..3d16e168a0822 100644
--- a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/ErrorResponse.java
+++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/ErrorResponse.java
@@ -12,7 +12,10 @@
import com.fasterxml.jackson.annotation.JsonProperty;
/**
- * The resource management error response.
+ * Error Response.
+ * Common error response for all Azure Resource Manager APIs to return error
+ * details for failed operations. (This also follows the OData error response
+ * format.).
*/
public class ErrorResponse {
/**
diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/ExtendedServerBlobAuditingPolicy.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/ExtendedServerBlobAuditingPolicy.java
new file mode 100644
index 0000000000000..c87218210ad87
--- /dev/null
+++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/ExtendedServerBlobAuditingPolicy.java
@@ -0,0 +1,482 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.synapse.v2019_06_01_preview;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.synapse.v2019_06_01_preview.implementation.ExtendedServerBlobAuditingPolicyInner;
+import com.microsoft.azure.arm.model.Indexable;
+import com.microsoft.azure.arm.model.Refreshable;
+import com.microsoft.azure.arm.model.Updatable;
+import com.microsoft.azure.arm.model.Appliable;
+import com.microsoft.azure.arm.model.Creatable;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.synapse.v2019_06_01_preview.implementation.SynapseManager;
+import java.util.List;
+import java.util.UUID;
+
+/**
+ * Type representing ExtendedServerBlobAuditingPolicy.
+ */
+public interface ExtendedServerBlobAuditingPolicy extends HasInner, Indexable, Refreshable, Updatable, HasManager {
+ /**
+ * @return the auditActionsAndGroups value.
+ */
+ List auditActionsAndGroups();
+
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the isAzureMonitorTargetEnabled value.
+ */
+ Boolean isAzureMonitorTargetEnabled();
+
+ /**
+ * @return the isStorageSecondaryKeyInUse value.
+ */
+ Boolean isStorageSecondaryKeyInUse();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the predicateExpression value.
+ */
+ String predicateExpression();
+
+ /**
+ * @return the queueDelayMs value.
+ */
+ Integer queueDelayMs();
+
+ /**
+ * @return the retentionDays value.
+ */
+ Integer retentionDays();
+
+ /**
+ * @return the state value.
+ */
+ BlobAuditingPolicyState state();
+
+ /**
+ * @return the storageAccountAccessKey value.
+ */
+ String storageAccountAccessKey();
+
+ /**
+ * @return the storageAccountSubscriptionId value.
+ */
+ UUID storageAccountSubscriptionId();
+
+ /**
+ * @return the storageEndpoint value.
+ */
+ String storageEndpoint();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * The entirety of the ExtendedServerBlobAuditingPolicy definition.
+ */
+ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithWorkspace, DefinitionStages.WithState, DefinitionStages.WithCreate {
+ }
+
+ /**
+ * Grouping of ExtendedServerBlobAuditingPolicy definition stages.
+ */
+ interface DefinitionStages {
+ /**
+ * The first stage of a ExtendedServerBlobAuditingPolicy definition.
+ */
+ interface Blank extends WithWorkspace {
+ }
+
+ /**
+ * The stage of the extendedserverblobauditingpolicy definition allowing to specify Workspace.
+ */
+ interface WithWorkspace {
+ /**
+ * Specifies resourceGroupName, workspaceName.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive
+ * @param workspaceName The name of the workspace
+ * @return the next definition stage
+ */
+ WithState withExistingWorkspace(String resourceGroupName, String workspaceName);
+ }
+
+ /**
+ * The stage of the extendedserverblobauditingpolicy definition allowing to specify State.
+ */
+ interface WithState {
+ /**
+ * Specifies state.
+ * @param state Specifies the state of the policy. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. Possible values include: 'Enabled', 'Disabled'
+ * @return the next definition stage
+ */
+ WithCreate withState(BlobAuditingPolicyState state);
+ }
+
+ /**
+ * The stage of the extendedserverblobauditingpolicy definition allowing to specify AuditActionsAndGroups.
+ */
+ interface WithAuditActionsAndGroups {
+ /**
+ * Specifies auditActionsAndGroups.
+ * @param auditActionsAndGroups 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 <object> in the above format can refer to an object like a table, view, or stored procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively.
+ For example:
+ SELECT on dbo.myTable by public
+ SELECT on DATABASE::myDatabase by public
+ SELECT on SCHEMA::mySchema by public
+ For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions)
+ * @return the next definition stage
+ */
+ WithCreate withAuditActionsAndGroups(List auditActionsAndGroups);
+ }
+
+ /**
+ * The stage of the extendedserverblobauditingpolicy definition allowing to specify IsAzureMonitorTargetEnabled.
+ */
+ interface WithIsAzureMonitorTargetEnabled {
+ /**
+ * Specifies isAzureMonitorTargetEnabled.
+ * @param isAzureMonitorTargetEnabled Specifies whether audit events are sent to Azure Monitor.
+ In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as true.
+ When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created.
+ Note that for server level audit you should use the 'master' database as {databaseName}.
+ Diagnostic Settings URI format:
+ PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview
+ For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207)
+ or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043)
+ * @return the next definition stage
+ */
+ WithCreate withIsAzureMonitorTargetEnabled(Boolean isAzureMonitorTargetEnabled);
+ }
+
+ /**
+ * The stage of the extendedserverblobauditingpolicy definition allowing to specify IsStorageSecondaryKeyInUse.
+ */
+ interface WithIsStorageSecondaryKeyInUse {
+ /**
+ * Specifies isStorageSecondaryKeyInUse.
+ * @param isStorageSecondaryKeyInUse Specifies whether storageAccountAccessKey value is the storage's secondary key
+ * @return the next definition stage
+ */
+ WithCreate withIsStorageSecondaryKeyInUse(Boolean isStorageSecondaryKeyInUse);
+ }
+
+ /**
+ * The stage of the extendedserverblobauditingpolicy definition allowing to specify PredicateExpression.
+ */
+ interface WithPredicateExpression {
+ /**
+ * Specifies predicateExpression.
+ * @param predicateExpression Specifies condition of where clause when creating an audit
+ * @return the next definition stage
+ */
+ WithCreate withPredicateExpression(String predicateExpression);
+ }
+
+ /**
+ * The stage of the extendedserverblobauditingpolicy definition allowing to specify QueueDelayMs.
+ */
+ interface WithQueueDelayMs {
+ /**
+ * Specifies queueDelayMs.
+ * @param queueDelayMs Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed.
+ The default minimum value is 1000 (1 second). The maximum is 2,147,483,647
+ * @return the next definition stage
+ */
+ WithCreate withQueueDelayMs(Integer queueDelayMs);
+ }
+
+ /**
+ * The stage of the extendedserverblobauditingpolicy definition allowing to specify RetentionDays.
+ */
+ interface WithRetentionDays {
+ /**
+ * Specifies retentionDays.
+ * @param retentionDays Specifies the number of days to keep in the audit logs in the storage account
+ * @return the next definition stage
+ */
+ WithCreate withRetentionDays(Integer retentionDays);
+ }
+
+ /**
+ * The stage of the extendedserverblobauditingpolicy definition allowing to specify StorageAccountAccessKey.
+ */
+ interface WithStorageAccountAccessKey {
+ /**
+ * Specifies storageAccountAccessKey.
+ * @param storageAccountAccessKey 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)
+ * @return the next definition stage
+ */
+ WithCreate withStorageAccountAccessKey(String storageAccountAccessKey);
+ }
+
+ /**
+ * The stage of the extendedserverblobauditingpolicy definition allowing to specify StorageAccountSubscriptionId.
+ */
+ interface WithStorageAccountSubscriptionId {
+ /**
+ * Specifies storageAccountSubscriptionId.
+ * @param storageAccountSubscriptionId Specifies the blob storage subscription Id
+ * @return the next definition stage
+ */
+ WithCreate withStorageAccountSubscriptionId(UUID storageAccountSubscriptionId);
+ }
+
+ /**
+ * The stage of the extendedserverblobauditingpolicy definition allowing to specify StorageEndpoint.
+ */
+ interface WithStorageEndpoint {
+ /**
+ * Specifies storageEndpoint.
+ * @param storageEndpoint Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required
+ * @return the next definition stage
+ */
+ WithCreate withStorageEndpoint(String storageEndpoint);
+ }
+
+ /**
+ * The stage of the definition which contains all the minimum required inputs for
+ * the resource to be created (via {@link WithCreate#create()}), but also allows
+ * for any other optional settings to be specified.
+ */
+ interface WithCreate extends Creatable, DefinitionStages.WithAuditActionsAndGroups, DefinitionStages.WithIsAzureMonitorTargetEnabled, DefinitionStages.WithIsStorageSecondaryKeyInUse, DefinitionStages.WithPredicateExpression, DefinitionStages.WithQueueDelayMs, DefinitionStages.WithRetentionDays, DefinitionStages.WithStorageAccountAccessKey, DefinitionStages.WithStorageAccountSubscriptionId, DefinitionStages.WithStorageEndpoint {
+ }
+ }
+ /**
+ * The template for a ExtendedServerBlobAuditingPolicy update operation, containing all the settings that can be modified.
+ */
+ interface Update extends Appliable, UpdateStages.WithAuditActionsAndGroups, UpdateStages.WithIsAzureMonitorTargetEnabled, UpdateStages.WithIsStorageSecondaryKeyInUse, UpdateStages.WithPredicateExpression, UpdateStages.WithQueueDelayMs, UpdateStages.WithRetentionDays, UpdateStages.WithStorageAccountAccessKey, UpdateStages.WithStorageAccountSubscriptionId, UpdateStages.WithStorageEndpoint {
+ }
+
+ /**
+ * Grouping of ExtendedServerBlobAuditingPolicy update stages.
+ */
+ interface UpdateStages {
+ /**
+ * The stage of the extendedserverblobauditingpolicy update allowing to specify AuditActionsAndGroups.
+ */
+ interface WithAuditActionsAndGroups {
+ /**
+ * Specifies auditActionsAndGroups.
+ * @param auditActionsAndGroups 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 <object> in the above format can refer to an object like a table, view, or stored procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively.
+ For example:
+ SELECT on dbo.myTable by public
+ SELECT on DATABASE::myDatabase by public
+ SELECT on SCHEMA::mySchema by public
+ For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions)
+ * @return the next update stage
+ */
+ Update withAuditActionsAndGroups(List auditActionsAndGroups);
+ }
+
+ /**
+ * The stage of the extendedserverblobauditingpolicy update allowing to specify IsAzureMonitorTargetEnabled.
+ */
+ interface WithIsAzureMonitorTargetEnabled {
+ /**
+ * Specifies isAzureMonitorTargetEnabled.
+ * @param isAzureMonitorTargetEnabled Specifies whether audit events are sent to Azure Monitor.
+ In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as true.
+ When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created.
+ Note that for server level audit you should use the 'master' database as {databaseName}.
+ Diagnostic Settings URI format:
+ PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview
+ For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207)
+ or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043)
+ * @return the next update stage
+ */
+ Update withIsAzureMonitorTargetEnabled(Boolean isAzureMonitorTargetEnabled);
+ }
+
+ /**
+ * The stage of the extendedserverblobauditingpolicy update allowing to specify IsStorageSecondaryKeyInUse.
+ */
+ interface WithIsStorageSecondaryKeyInUse {
+ /**
+ * Specifies isStorageSecondaryKeyInUse.
+ * @param isStorageSecondaryKeyInUse Specifies whether storageAccountAccessKey value is the storage's secondary key
+ * @return the next update stage
+ */
+ Update withIsStorageSecondaryKeyInUse(Boolean isStorageSecondaryKeyInUse);
+ }
+
+ /**
+ * The stage of the extendedserverblobauditingpolicy update allowing to specify PredicateExpression.
+ */
+ interface WithPredicateExpression {
+ /**
+ * Specifies predicateExpression.
+ * @param predicateExpression Specifies condition of where clause when creating an audit
+ * @return the next update stage
+ */
+ Update withPredicateExpression(String predicateExpression);
+ }
+
+ /**
+ * The stage of the extendedserverblobauditingpolicy update allowing to specify QueueDelayMs.
+ */
+ interface WithQueueDelayMs {
+ /**
+ * Specifies queueDelayMs.
+ * @param queueDelayMs Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed.
+ The default minimum value is 1000 (1 second). The maximum is 2,147,483,647
+ * @return the next update stage
+ */
+ Update withQueueDelayMs(Integer queueDelayMs);
+ }
+
+ /**
+ * The stage of the extendedserverblobauditingpolicy update allowing to specify RetentionDays.
+ */
+ interface WithRetentionDays {
+ /**
+ * Specifies retentionDays.
+ * @param retentionDays Specifies the number of days to keep in the audit logs in the storage account
+ * @return the next update stage
+ */
+ Update withRetentionDays(Integer retentionDays);
+ }
+
+ /**
+ * The stage of the extendedserverblobauditingpolicy update allowing to specify StorageAccountAccessKey.
+ */
+ interface WithStorageAccountAccessKey {
+ /**
+ * Specifies storageAccountAccessKey.
+ * @param storageAccountAccessKey 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)
+ * @return the next update stage
+ */
+ Update withStorageAccountAccessKey(String storageAccountAccessKey);
+ }
+
+ /**
+ * The stage of the extendedserverblobauditingpolicy update allowing to specify StorageAccountSubscriptionId.
+ */
+ interface WithStorageAccountSubscriptionId {
+ /**
+ * Specifies storageAccountSubscriptionId.
+ * @param storageAccountSubscriptionId Specifies the blob storage subscription Id
+ * @return the next update stage
+ */
+ Update withStorageAccountSubscriptionId(UUID storageAccountSubscriptionId);
+ }
+
+ /**
+ * The stage of the extendedserverblobauditingpolicy update allowing to specify StorageEndpoint.
+ */
+ interface WithStorageEndpoint {
+ /**
+ * Specifies storageEndpoint.
+ * @param storageEndpoint Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required
+ * @return the next update stage
+ */
+ Update withStorageEndpoint(String storageEndpoint);
+ }
+
+ }
+}
diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/ExtendedSqlPoolBlobAuditingPolicies.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/ExtendedSqlPoolBlobAuditingPolicies.java
new file mode 100644
index 0000000000000..c6f441c78a601
--- /dev/null
+++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/ExtendedSqlPoolBlobAuditingPolicies.java
@@ -0,0 +1,42 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.synapse.v2019_06_01_preview;
+
+import com.microsoft.azure.arm.collection.SupportsCreating;
+import rx.Observable;
+import com.microsoft.azure.management.synapse.v2019_06_01_preview.implementation.ExtendedSqlPoolBlobAuditingPoliciesInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing ExtendedSqlPoolBlobAuditingPolicies.
+ */
+public interface ExtendedSqlPoolBlobAuditingPolicies extends SupportsCreating, HasInner {
+ /**
+ * Gets an extended Sql pool's blob auditing policy.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace
+ * @param sqlPoolName SQL pool name
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAsync(String resourceGroupName, String workspaceName, String sqlPoolName);
+
+ /**
+ * Lists extended auditing settings of a Sql pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace
+ * @param sqlPoolName SQL pool name
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listBySqlPoolAsync(final String resourceGroupName, final String workspaceName, final String sqlPoolName);
+
+}
diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/ExtendedSqlPoolBlobAuditingPolicy.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/ExtendedSqlPoolBlobAuditingPolicy.java
new file mode 100644
index 0000000000000..8baed87a7cc58
--- /dev/null
+++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/ExtendedSqlPoolBlobAuditingPolicy.java
@@ -0,0 +1,483 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.synapse.v2019_06_01_preview;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.synapse.v2019_06_01_preview.implementation.ExtendedSqlPoolBlobAuditingPolicyInner;
+import com.microsoft.azure.arm.model.Indexable;
+import com.microsoft.azure.arm.model.Refreshable;
+import com.microsoft.azure.arm.model.Updatable;
+import com.microsoft.azure.arm.model.Appliable;
+import com.microsoft.azure.arm.model.Creatable;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.synapse.v2019_06_01_preview.implementation.SynapseManager;
+import java.util.List;
+import java.util.UUID;
+
+/**
+ * Type representing ExtendedSqlPoolBlobAuditingPolicy.
+ */
+public interface ExtendedSqlPoolBlobAuditingPolicy extends HasInner, Indexable, Refreshable, Updatable, HasManager {
+ /**
+ * @return the auditActionsAndGroups value.
+ */
+ List auditActionsAndGroups();
+
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the isAzureMonitorTargetEnabled value.
+ */
+ Boolean isAzureMonitorTargetEnabled();
+
+ /**
+ * @return the isStorageSecondaryKeyInUse value.
+ */
+ Boolean isStorageSecondaryKeyInUse();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the predicateExpression value.
+ */
+ String predicateExpression();
+
+ /**
+ * @return the queueDelayMs value.
+ */
+ Integer queueDelayMs();
+
+ /**
+ * @return the retentionDays value.
+ */
+ Integer retentionDays();
+
+ /**
+ * @return the state value.
+ */
+ BlobAuditingPolicyState state();
+
+ /**
+ * @return the storageAccountAccessKey value.
+ */
+ String storageAccountAccessKey();
+
+ /**
+ * @return the storageAccountSubscriptionId value.
+ */
+ UUID storageAccountSubscriptionId();
+
+ /**
+ * @return the storageEndpoint value.
+ */
+ String storageEndpoint();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * The entirety of the ExtendedSqlPoolBlobAuditingPolicy definition.
+ */
+ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithSqlPool, DefinitionStages.WithState, DefinitionStages.WithCreate {
+ }
+
+ /**
+ * Grouping of ExtendedSqlPoolBlobAuditingPolicy definition stages.
+ */
+ interface DefinitionStages {
+ /**
+ * The first stage of a ExtendedSqlPoolBlobAuditingPolicy definition.
+ */
+ interface Blank extends WithSqlPool {
+ }
+
+ /**
+ * The stage of the extendedsqlpoolblobauditingpolicy definition allowing to specify SqlPool.
+ */
+ interface WithSqlPool {
+ /**
+ * Specifies resourceGroupName, workspaceName, sqlPoolName.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive
+ * @param workspaceName The name of the workspace
+ * @param sqlPoolName SQL pool name
+ * @return the next definition stage
+ */
+ WithState withExistingSqlPool(String resourceGroupName, String workspaceName, String sqlPoolName);
+ }
+
+ /**
+ * The stage of the extendedsqlpoolblobauditingpolicy definition allowing to specify State.
+ */
+ interface WithState {
+ /**
+ * Specifies state.
+ * @param state Specifies the state of the policy. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. Possible values include: 'Enabled', 'Disabled'
+ * @return the next definition stage
+ */
+ WithCreate withState(BlobAuditingPolicyState state);
+ }
+
+ /**
+ * The stage of the extendedsqlpoolblobauditingpolicy definition allowing to specify AuditActionsAndGroups.
+ */
+ interface WithAuditActionsAndGroups {
+ /**
+ * Specifies auditActionsAndGroups.
+ * @param auditActionsAndGroups 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 <object> in the above format can refer to an object like a table, view, or stored procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively.
+ For example:
+ SELECT on dbo.myTable by public
+ SELECT on DATABASE::myDatabase by public
+ SELECT on SCHEMA::mySchema by public
+ For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions)
+ * @return the next definition stage
+ */
+ WithCreate withAuditActionsAndGroups(List auditActionsAndGroups);
+ }
+
+ /**
+ * The stage of the extendedsqlpoolblobauditingpolicy definition allowing to specify IsAzureMonitorTargetEnabled.
+ */
+ interface WithIsAzureMonitorTargetEnabled {
+ /**
+ * Specifies isAzureMonitorTargetEnabled.
+ * @param isAzureMonitorTargetEnabled Specifies whether audit events are sent to Azure Monitor.
+ In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as true.
+ When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created.
+ Note that for server level audit you should use the 'master' database as {databaseName}.
+ Diagnostic Settings URI format:
+ PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview
+ For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207)
+ or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043)
+ * @return the next definition stage
+ */
+ WithCreate withIsAzureMonitorTargetEnabled(Boolean isAzureMonitorTargetEnabled);
+ }
+
+ /**
+ * The stage of the extendedsqlpoolblobauditingpolicy definition allowing to specify IsStorageSecondaryKeyInUse.
+ */
+ interface WithIsStorageSecondaryKeyInUse {
+ /**
+ * Specifies isStorageSecondaryKeyInUse.
+ * @param isStorageSecondaryKeyInUse Specifies whether storageAccountAccessKey value is the storage's secondary key
+ * @return the next definition stage
+ */
+ WithCreate withIsStorageSecondaryKeyInUse(Boolean isStorageSecondaryKeyInUse);
+ }
+
+ /**
+ * The stage of the extendedsqlpoolblobauditingpolicy definition allowing to specify PredicateExpression.
+ */
+ interface WithPredicateExpression {
+ /**
+ * Specifies predicateExpression.
+ * @param predicateExpression Specifies condition of where clause when creating an audit
+ * @return the next definition stage
+ */
+ WithCreate withPredicateExpression(String predicateExpression);
+ }
+
+ /**
+ * The stage of the extendedsqlpoolblobauditingpolicy definition allowing to specify QueueDelayMs.
+ */
+ interface WithQueueDelayMs {
+ /**
+ * Specifies queueDelayMs.
+ * @param queueDelayMs Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed.
+ The default minimum value is 1000 (1 second). The maximum is 2,147,483,647
+ * @return the next definition stage
+ */
+ WithCreate withQueueDelayMs(Integer queueDelayMs);
+ }
+
+ /**
+ * The stage of the extendedsqlpoolblobauditingpolicy definition allowing to specify RetentionDays.
+ */
+ interface WithRetentionDays {
+ /**
+ * Specifies retentionDays.
+ * @param retentionDays Specifies the number of days to keep in the audit logs in the storage account
+ * @return the next definition stage
+ */
+ WithCreate withRetentionDays(Integer retentionDays);
+ }
+
+ /**
+ * The stage of the extendedsqlpoolblobauditingpolicy definition allowing to specify StorageAccountAccessKey.
+ */
+ interface WithStorageAccountAccessKey {
+ /**
+ * Specifies storageAccountAccessKey.
+ * @param storageAccountAccessKey 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)
+ * @return the next definition stage
+ */
+ WithCreate withStorageAccountAccessKey(String storageAccountAccessKey);
+ }
+
+ /**
+ * The stage of the extendedsqlpoolblobauditingpolicy definition allowing to specify StorageAccountSubscriptionId.
+ */
+ interface WithStorageAccountSubscriptionId {
+ /**
+ * Specifies storageAccountSubscriptionId.
+ * @param storageAccountSubscriptionId Specifies the blob storage subscription Id
+ * @return the next definition stage
+ */
+ WithCreate withStorageAccountSubscriptionId(UUID storageAccountSubscriptionId);
+ }
+
+ /**
+ * The stage of the extendedsqlpoolblobauditingpolicy definition allowing to specify StorageEndpoint.
+ */
+ interface WithStorageEndpoint {
+ /**
+ * Specifies storageEndpoint.
+ * @param storageEndpoint Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required
+ * @return the next definition stage
+ */
+ WithCreate withStorageEndpoint(String storageEndpoint);
+ }
+
+ /**
+ * The stage of the definition which contains all the minimum required inputs for
+ * the resource to be created (via {@link WithCreate#create()}), but also allows
+ * for any other optional settings to be specified.
+ */
+ interface WithCreate extends Creatable, DefinitionStages.WithAuditActionsAndGroups, DefinitionStages.WithIsAzureMonitorTargetEnabled, DefinitionStages.WithIsStorageSecondaryKeyInUse, DefinitionStages.WithPredicateExpression, DefinitionStages.WithQueueDelayMs, DefinitionStages.WithRetentionDays, DefinitionStages.WithStorageAccountAccessKey, DefinitionStages.WithStorageAccountSubscriptionId, DefinitionStages.WithStorageEndpoint {
+ }
+ }
+ /**
+ * The template for a ExtendedSqlPoolBlobAuditingPolicy update operation, containing all the settings that can be modified.
+ */
+ interface Update extends Appliable, UpdateStages.WithAuditActionsAndGroups, UpdateStages.WithIsAzureMonitorTargetEnabled, UpdateStages.WithIsStorageSecondaryKeyInUse, UpdateStages.WithPredicateExpression, UpdateStages.WithQueueDelayMs, UpdateStages.WithRetentionDays, UpdateStages.WithStorageAccountAccessKey, UpdateStages.WithStorageAccountSubscriptionId, UpdateStages.WithStorageEndpoint {
+ }
+
+ /**
+ * Grouping of ExtendedSqlPoolBlobAuditingPolicy update stages.
+ */
+ interface UpdateStages {
+ /**
+ * The stage of the extendedsqlpoolblobauditingpolicy update allowing to specify AuditActionsAndGroups.
+ */
+ interface WithAuditActionsAndGroups {
+ /**
+ * Specifies auditActionsAndGroups.
+ * @param auditActionsAndGroups 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 <object> in the above format can refer to an object like a table, view, or stored procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively.
+ For example:
+ SELECT on dbo.myTable by public
+ SELECT on DATABASE::myDatabase by public
+ SELECT on SCHEMA::mySchema by public
+ For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions)
+ * @return the next update stage
+ */
+ Update withAuditActionsAndGroups(List auditActionsAndGroups);
+ }
+
+ /**
+ * The stage of the extendedsqlpoolblobauditingpolicy update allowing to specify IsAzureMonitorTargetEnabled.
+ */
+ interface WithIsAzureMonitorTargetEnabled {
+ /**
+ * Specifies isAzureMonitorTargetEnabled.
+ * @param isAzureMonitorTargetEnabled Specifies whether audit events are sent to Azure Monitor.
+ In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as true.
+ When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created.
+ Note that for server level audit you should use the 'master' database as {databaseName}.
+ Diagnostic Settings URI format:
+ PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview
+ For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207)
+ or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043)
+ * @return the next update stage
+ */
+ Update withIsAzureMonitorTargetEnabled(Boolean isAzureMonitorTargetEnabled);
+ }
+
+ /**
+ * The stage of the extendedsqlpoolblobauditingpolicy update allowing to specify IsStorageSecondaryKeyInUse.
+ */
+ interface WithIsStorageSecondaryKeyInUse {
+ /**
+ * Specifies isStorageSecondaryKeyInUse.
+ * @param isStorageSecondaryKeyInUse Specifies whether storageAccountAccessKey value is the storage's secondary key
+ * @return the next update stage
+ */
+ Update withIsStorageSecondaryKeyInUse(Boolean isStorageSecondaryKeyInUse);
+ }
+
+ /**
+ * The stage of the extendedsqlpoolblobauditingpolicy update allowing to specify PredicateExpression.
+ */
+ interface WithPredicateExpression {
+ /**
+ * Specifies predicateExpression.
+ * @param predicateExpression Specifies condition of where clause when creating an audit
+ * @return the next update stage
+ */
+ Update withPredicateExpression(String predicateExpression);
+ }
+
+ /**
+ * The stage of the extendedsqlpoolblobauditingpolicy update allowing to specify QueueDelayMs.
+ */
+ interface WithQueueDelayMs {
+ /**
+ * Specifies queueDelayMs.
+ * @param queueDelayMs Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed.
+ The default minimum value is 1000 (1 second). The maximum is 2,147,483,647
+ * @return the next update stage
+ */
+ Update withQueueDelayMs(Integer queueDelayMs);
+ }
+
+ /**
+ * The stage of the extendedsqlpoolblobauditingpolicy update allowing to specify RetentionDays.
+ */
+ interface WithRetentionDays {
+ /**
+ * Specifies retentionDays.
+ * @param retentionDays Specifies the number of days to keep in the audit logs in the storage account
+ * @return the next update stage
+ */
+ Update withRetentionDays(Integer retentionDays);
+ }
+
+ /**
+ * The stage of the extendedsqlpoolblobauditingpolicy update allowing to specify StorageAccountAccessKey.
+ */
+ interface WithStorageAccountAccessKey {
+ /**
+ * Specifies storageAccountAccessKey.
+ * @param storageAccountAccessKey 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)
+ * @return the next update stage
+ */
+ Update withStorageAccountAccessKey(String storageAccountAccessKey);
+ }
+
+ /**
+ * The stage of the extendedsqlpoolblobauditingpolicy update allowing to specify StorageAccountSubscriptionId.
+ */
+ interface WithStorageAccountSubscriptionId {
+ /**
+ * Specifies storageAccountSubscriptionId.
+ * @param storageAccountSubscriptionId Specifies the blob storage subscription Id
+ * @return the next update stage
+ */
+ Update withStorageAccountSubscriptionId(UUID storageAccountSubscriptionId);
+ }
+
+ /**
+ * The stage of the extendedsqlpoolblobauditingpolicy update allowing to specify StorageEndpoint.
+ */
+ interface WithStorageEndpoint {
+ /**
+ * Specifies storageEndpoint.
+ * @param storageEndpoint Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required
+ * @return the next update stage
+ */
+ Update withStorageEndpoint(String storageEndpoint);
+ }
+
+ }
+}
diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/IntegrationRuntimeAuthKeysOperations.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/IntegrationRuntimeAuthKeysOperations.java
index 819e56cf7ec2b..cdac41612dd83 100644
--- a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/IntegrationRuntimeAuthKeysOperations.java
+++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/IntegrationRuntimeAuthKeysOperations.java
@@ -21,7 +21,7 @@ public interface IntegrationRuntimeAuthKeysOperations extends HasInner getAsync(String resourceGroupName, String workspaceName, String integrationRuntimeName);
+ Observable listAsync(String resourceGroupName, String workspaceName, String integrationRuntimeName);
}
diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/IntegrationRuntimeNodeIpAddressOperations.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/IntegrationRuntimeNodeIpAddressOperations.java
index 064254a394291..80597a65d231c 100644
--- a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/IntegrationRuntimeNodeIpAddressOperations.java
+++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/IntegrationRuntimeNodeIpAddressOperations.java
@@ -21,7 +21,7 @@ public interface IntegrationRuntimeNodeIpAddressOperations extends HasInner getAsync(String resourceGroupName, String workspaceName, String integrationRuntimeName);
+ Observable listAsync(String resourceGroupName, String workspaceName, String integrationRuntimeName);
/**
* Refresh integration runtime object metadata.
* Refresh the object metadata in an integration runtime.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace
+ * @param workspaceName The name of the workspace.
* @param integrationRuntimeName Integration runtime name
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/IntegrationRuntimeStatusOperations.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/IntegrationRuntimeStatusOperations.java
index 68bcf6b12e95c..2375f73a7056e 100644
--- a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/IntegrationRuntimeStatusOperations.java
+++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/IntegrationRuntimeStatusOperations.java
@@ -21,7 +21,7 @@ public interface IntegrationRuntimeStatusOperations extends HasInner, Indexable, Refreshable, Updatable, HasManager {
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the isActiveCMK value.
+ */
+ Boolean isActiveCMK();
+
+ /**
+ * @return the keyVaultUrl value.
+ */
+ String keyVaultUrl();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * The entirety of the Key definition.
+ */
+ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithWorkspace, DefinitionStages.WithCreate {
+ }
+
+ /**
+ * Grouping of Key definition stages.
+ */
+ interface DefinitionStages {
+ /**
+ * The first stage of a Key definition.
+ */
+ interface Blank extends WithWorkspace {
+ }
+
+ /**
+ * The stage of the key definition allowing to specify Workspace.
+ */
+ interface WithWorkspace {
+ /**
+ * Specifies resourceGroupName, workspaceName.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive
+ * @param workspaceName The name of the workspace
+ * @return the next definition stage
+ */
+ WithCreate withExistingWorkspace(String resourceGroupName, String workspaceName);
+ }
+
+ /**
+ * The stage of the key definition allowing to specify IsActiveCMK.
+ */
+ interface WithIsActiveCMK {
+ /**
+ * Specifies isActiveCMK.
+ * @param isActiveCMK Used to activate the workspace after a customer managed key is provided
+ * @return the next definition stage
+ */
+ WithCreate withIsActiveCMK(Boolean isActiveCMK);
+ }
+
+ /**
+ * The stage of the key definition allowing to specify KeyVaultUrl.
+ */
+ interface WithKeyVaultUrl {
+ /**
+ * Specifies keyVaultUrl.
+ * @param keyVaultUrl The Key Vault Url of the workspace key
+ * @return the next definition stage
+ */
+ WithCreate withKeyVaultUrl(String keyVaultUrl);
+ }
+
+ /**
+ * The stage of the definition which contains all the minimum required inputs for
+ * the resource to be created (via {@link WithCreate#create()}), but also allows
+ * for any other optional settings to be specified.
+ */
+ interface WithCreate extends Creatable, DefinitionStages.WithIsActiveCMK, DefinitionStages.WithKeyVaultUrl {
+ }
+ }
+ /**
+ * The template for a Key update operation, containing all the settings that can be modified.
+ */
+ interface Update extends Appliable, UpdateStages.WithIsActiveCMK, UpdateStages.WithKeyVaultUrl {
+ }
+
+ /**
+ * Grouping of Key update stages.
+ */
+ interface UpdateStages {
+ /**
+ * The stage of the key update allowing to specify IsActiveCMK.
+ */
+ interface WithIsActiveCMK {
+ /**
+ * Specifies isActiveCMK.
+ * @param isActiveCMK Used to activate the workspace after a customer managed key is provided
+ * @return the next update stage
+ */
+ Update withIsActiveCMK(Boolean isActiveCMK);
+ }
+
+ /**
+ * The stage of the key update allowing to specify KeyVaultUrl.
+ */
+ interface WithKeyVaultUrl {
+ /**
+ * Specifies keyVaultUrl.
+ * @param keyVaultUrl The Key Vault Url of the workspace key
+ * @return the next update stage
+ */
+ Update withKeyVaultUrl(String keyVaultUrl);
+ }
+
+ }
+}
diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/Keys.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/Keys.java
new file mode 100644
index 0000000000000..5c91e9f4a6269
--- /dev/null
+++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/Keys.java
@@ -0,0 +1,53 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.synapse.v2019_06_01_preview;
+
+import com.microsoft.azure.arm.collection.SupportsCreating;
+import rx.Completable;
+import rx.Observable;
+import com.microsoft.azure.management.synapse.v2019_06_01_preview.implementation.KeysInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing Keys.
+ */
+public interface Keys extends SupportsCreating, HasInner {
+ /**
+ * Gets a workspace key.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace
+ * @param keyName The name of the workspace key
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAsync(String resourceGroupName, String workspaceName, String keyName);
+
+ /**
+ * Returns a list of keys in a workspace.
+ *
+ * @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
+ * @return the observable for the request
+ */
+ Observable listByWorkspaceAsync(final String resourceGroupName, final String workspaceName);
+
+ /**
+ * Deletes a workspace key.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace
+ * @param keyName The name of the workspace key
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Completable deleteAsync(String resourceGroupName, String workspaceName, String keyName);
+
+}
diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/LibraryInfo.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/LibraryInfo.java
new file mode 100644
index 0000000000000..9f9a8dc03133e
--- /dev/null
+++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/LibraryInfo.java
@@ -0,0 +1,179 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.synapse.v2019_06_01_preview;
+
+import org.joda.time.DateTime;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Information about a library/package created at the workspace level.
+ * Library/package information of a Big Data pool powered by Apache Spark.
+ */
+public class LibraryInfo {
+ /**
+ * Name of the library.
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /**
+ * Storage blob path of library.
+ */
+ @JsonProperty(value = "path")
+ private String path;
+
+ /**
+ * Storage blob container name.
+ */
+ @JsonProperty(value = "containerName")
+ private String containerName;
+
+ /**
+ * The last update time of the library.
+ */
+ @JsonProperty(value = "uploadedTimestamp")
+ private DateTime uploadedTimestamp;
+
+ /**
+ * Type of the library.
+ */
+ @JsonProperty(value = "type")
+ private String type;
+
+ /**
+ * Provisioning status of the library/package.
+ */
+ @JsonProperty(value = "provisioningStatus", access = JsonProperty.Access.WRITE_ONLY)
+ private String provisioningStatus;
+
+ /**
+ * Creator Id of the library/package.
+ */
+ @JsonProperty(value = "creatorId", access = JsonProperty.Access.WRITE_ONLY)
+ private String creatorId;
+
+ /**
+ * Get name of the library.
+ *
+ * @return the name value
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set name of the library.
+ *
+ * @param name the name value to set
+ * @return the LibraryInfo object itself.
+ */
+ public LibraryInfo withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get storage blob path of library.
+ *
+ * @return the path value
+ */
+ public String path() {
+ return this.path;
+ }
+
+ /**
+ * Set storage blob path of library.
+ *
+ * @param path the path value to set
+ * @return the LibraryInfo object itself.
+ */
+ public LibraryInfo withPath(String path) {
+ this.path = path;
+ return this;
+ }
+
+ /**
+ * Get storage blob container name.
+ *
+ * @return the containerName value
+ */
+ public String containerName() {
+ return this.containerName;
+ }
+
+ /**
+ * Set storage blob container name.
+ *
+ * @param containerName the containerName value to set
+ * @return the LibraryInfo object itself.
+ */
+ public LibraryInfo withContainerName(String containerName) {
+ this.containerName = containerName;
+ return this;
+ }
+
+ /**
+ * Get the last update time of the library.
+ *
+ * @return the uploadedTimestamp value
+ */
+ public DateTime uploadedTimestamp() {
+ return this.uploadedTimestamp;
+ }
+
+ /**
+ * Set the last update time of the library.
+ *
+ * @param uploadedTimestamp the uploadedTimestamp value to set
+ * @return the LibraryInfo object itself.
+ */
+ public LibraryInfo withUploadedTimestamp(DateTime uploadedTimestamp) {
+ this.uploadedTimestamp = uploadedTimestamp;
+ return this;
+ }
+
+ /**
+ * Get type of the library.
+ *
+ * @return the type value
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Set type of the library.
+ *
+ * @param type the type value to set
+ * @return the LibraryInfo object itself.
+ */
+ public LibraryInfo withType(String type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * Get provisioning status of the library/package.
+ *
+ * @return the provisioningStatus value
+ */
+ public String provisioningStatus() {
+ return this.provisioningStatus;
+ }
+
+ /**
+ * Get creator Id of the library/package.
+ *
+ * @return the creatorId value
+ */
+ public String creatorId() {
+ return this.creatorId;
+ }
+
+}
diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/ManagedIdentity.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/ManagedIdentity.java
index 1943857a966fa..12cd7529ea578 100644
--- a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/ManagedIdentity.java
+++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/ManagedIdentity.java
@@ -8,6 +8,7 @@
package com.microsoft.azure.management.synapse.v2019_06_01_preview;
+import java.util.UUID;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
@@ -24,7 +25,7 @@ public class ManagedIdentity {
* The tenant ID of the workspace managed identity.
*/
@JsonProperty(value = "tenantId", access = JsonProperty.Access.WRITE_ONLY)
- private String tenantId;
+ private UUID tenantId;
/**
* The type of managed identity for the workspace. Possible values include:
@@ -47,7 +48,7 @@ public String principalId() {
*
* @return the tenantId value
*/
- public String tenantId() {
+ public UUID tenantId() {
return this.tenantId;
}
diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/ManagedVirtualNetworkSettings.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/ManagedVirtualNetworkSettings.java
new file mode 100644
index 0000000000000..7026bf83a2e07
--- /dev/null
+++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/ManagedVirtualNetworkSettings.java
@@ -0,0 +1,96 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.synapse.v2019_06_01_preview;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Managed Virtual Network Settings.
+ */
+public class ManagedVirtualNetworkSettings {
+ /**
+ * Prevent Data Exfiltration.
+ */
+ @JsonProperty(value = "preventDataExfiltration")
+ private Boolean preventDataExfiltration;
+
+ /**
+ * Linked Access Check On Target Resource.
+ */
+ @JsonProperty(value = "linkedAccessCheckOnTargetResource")
+ private Boolean linkedAccessCheckOnTargetResource;
+
+ /**
+ * Allowed Aad Tenant Ids For Linking.
+ */
+ @JsonProperty(value = "allowedAadTenantIdsForLinking")
+ private List allowedAadTenantIdsForLinking;
+
+ /**
+ * Get prevent Data Exfiltration.
+ *
+ * @return the preventDataExfiltration value
+ */
+ public Boolean preventDataExfiltration() {
+ return this.preventDataExfiltration;
+ }
+
+ /**
+ * Set prevent Data Exfiltration.
+ *
+ * @param preventDataExfiltration the preventDataExfiltration value to set
+ * @return the ManagedVirtualNetworkSettings object itself.
+ */
+ public ManagedVirtualNetworkSettings withPreventDataExfiltration(Boolean preventDataExfiltration) {
+ this.preventDataExfiltration = preventDataExfiltration;
+ return this;
+ }
+
+ /**
+ * Get linked Access Check On Target Resource.
+ *
+ * @return the linkedAccessCheckOnTargetResource value
+ */
+ public Boolean linkedAccessCheckOnTargetResource() {
+ return this.linkedAccessCheckOnTargetResource;
+ }
+
+ /**
+ * Set linked Access Check On Target Resource.
+ *
+ * @param linkedAccessCheckOnTargetResource the linkedAccessCheckOnTargetResource value to set
+ * @return the ManagedVirtualNetworkSettings object itself.
+ */
+ public ManagedVirtualNetworkSettings withLinkedAccessCheckOnTargetResource(Boolean linkedAccessCheckOnTargetResource) {
+ this.linkedAccessCheckOnTargetResource = linkedAccessCheckOnTargetResource;
+ return this;
+ }
+
+ /**
+ * Get allowed Aad Tenant Ids For Linking.
+ *
+ * @return the allowedAadTenantIdsForLinking value
+ */
+ public List allowedAadTenantIdsForLinking() {
+ return this.allowedAadTenantIdsForLinking;
+ }
+
+ /**
+ * Set allowed Aad Tenant Ids For Linking.
+ *
+ * @param allowedAadTenantIdsForLinking the allowedAadTenantIdsForLinking value to set
+ * @return the ManagedVirtualNetworkSettings object itself.
+ */
+ public ManagedVirtualNetworkSettings withAllowedAadTenantIdsForLinking(List allowedAadTenantIdsForLinking) {
+ this.allowedAadTenantIdsForLinking = allowedAadTenantIdsForLinking;
+ return this;
+ }
+
+}
diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/MetadataSyncConfig.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/MetadataSyncConfig.java
index c783f99492df6..1450e8a7a92f5 100644
--- a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/MetadataSyncConfig.java
+++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/MetadataSyncConfig.java
@@ -32,6 +32,11 @@ public interface MetadataSyncConfig extends HasInner, H
*/
String name();
+ /**
+ * @return the syncIntervalInMinutes value.
+ */
+ Integer syncIntervalInMinutes();
+
/**
* @return the type value.
*/
diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/NodeSize.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/NodeSize.java
index cb6f27c30786a..7d6ac544e88eb 100644
--- a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/NodeSize.java
+++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/NodeSize.java
@@ -34,6 +34,9 @@ public final class NodeSize extends ExpandableStringEnum {
/** Static value XXLarge for NodeSize. */
public static final NodeSize XXLARGE = fromString("XXLarge");
+ /** Static value XXXLarge for NodeSize. */
+ public static final NodeSize XXXLARGE = fromString("XXXLarge");
+
/**
* Creates or finds a NodeSize from its string representation.
* @param name a name to look for
diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/OperationResource.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/OperationResource.java
new file mode 100644
index 0000000000000..cdb8aa72e68d3
--- /dev/null
+++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/OperationResource.java
@@ -0,0 +1,63 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.synapse.v2019_06_01_preview;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.synapse.v2019_06_01_preview.implementation.OperationResourceInner;
+import com.microsoft.azure.arm.model.Indexable;
+import com.microsoft.azure.arm.model.Refreshable;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.synapse.v2019_06_01_preview.implementation.SynapseManager;
+import org.joda.time.DateTime;
+
+/**
+ * Type representing OperationResource.
+ */
+public interface OperationResource extends HasInner, Indexable, Refreshable, HasManager {
+ /**
+ * @return the endTime value.
+ */
+ DateTime endTime();
+
+ /**
+ * @return the error value.
+ */
+ ErrorDetail error();
+
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the percentComplete value.
+ */
+ Double percentComplete();
+
+ /**
+ * @return the properties value.
+ */
+ Object properties();
+
+ /**
+ * @return the startTime value.
+ */
+ DateTime startTime();
+
+ /**
+ * @return the status value.
+ */
+ OperationStatus status();
+
+}
diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/Operations.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/Operations.java
index 597bcb8889200..a2e09baf1e353 100644
--- a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/Operations.java
+++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/Operations.java
@@ -8,18 +8,18 @@
package com.microsoft.azure.management.synapse.v2019_06_01_preview;
-import rx.Completable;
import rx.Observable;
import com.microsoft.azure.management.synapse.v2019_06_01_preview.implementation.OperationsInner;
import com.microsoft.azure.arm.model.HasInner;
+import rx.Completable;
/**
* Type representing Operations.
*/
public interface Operations extends HasInner {
/**
- * Get operation result.
- * Get the result of an operation.
+ * Get operation status.
+ * Get the status of an operation.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace
@@ -27,11 +27,11 @@ public interface Operations extends HasInner {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
- Completable getLocationHeaderResultAsync(String resourceGroupName, String workspaceName, String operationId);
+ Observable getAzureAsyncHeaderResultAsync(String resourceGroupName, String workspaceName, String operationId);
/**
- * Get operation status.
- * Get the status of an operation.
+ * Get operation result.
+ * Get the result of an operation.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace
@@ -39,7 +39,7 @@ public interface Operations extends HasInner {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
- Observable