diff --git a/sdk/sql/mgmt-v2017_03_01_preview/pom.xml b/sdk/sql/mgmt-v2017_03_01_preview/pom.xml
index 6d596a51a2d96..1d1bfe7ff99d3 100644
--- a/sdk/sql/mgmt-v2017_03_01_preview/pom.xml
+++ b/sdk/sql/mgmt-v2017_03_01_preview/pom.xml
@@ -11,7 +11,7 @@
com.microsoft.azure
azure-arm-parent
- 1.2.0
+ 1.1.0
../../../pom.management.xml
azure-mgmt-sql
diff --git a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/DatabaseBlobAuditingPolicy.java b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/DatabaseBlobAuditingPolicy.java
index 8c34b03f2cbe5..b7579d11d5078 100644
--- a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/DatabaseBlobAuditingPolicy.java
+++ b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/DatabaseBlobAuditingPolicy.java
@@ -54,6 +54,11 @@ public interface DatabaseBlobAuditingPolicy extends HasInner, DefinitionStages.WithAuditActionsAndGroups, DefinitionStages.WithIsAzureMonitorTargetEnabled, DefinitionStages.WithIsStorageSecondaryKeyInUse, DefinitionStages.WithRetentionDays, DefinitionStages.WithStorageAccountAccessKey, DefinitionStages.WithStorageAccountSubscriptionId, DefinitionStages.WithStorageEndpoint {
+ interface WithCreate extends Creatable, DefinitionStages.WithAuditActionsAndGroups, DefinitionStages.WithIsAzureMonitorTargetEnabled, DefinitionStages.WithIsStorageSecondaryKeyInUse, DefinitionStages.WithQueueDelayMs, DefinitionStages.WithRetentionDays, DefinitionStages.WithStorageAccountAccessKey, DefinitionStages.WithStorageAccountSubscriptionId, DefinitionStages.WithStorageEndpoint {
}
}
/**
* The template for a DatabaseBlobAuditingPolicy update operation, containing all the settings that can be modified.
*/
- interface Update extends Appliable, UpdateStages.WithAuditActionsAndGroups, UpdateStages.WithIsAzureMonitorTargetEnabled, UpdateStages.WithIsStorageSecondaryKeyInUse, UpdateStages.WithRetentionDays, UpdateStages.WithStorageAccountAccessKey, UpdateStages.WithStorageAccountSubscriptionId, UpdateStages.WithStorageEndpoint {
+ interface Update extends Appliable, UpdateStages.WithAuditActionsAndGroups, UpdateStages.WithIsAzureMonitorTargetEnabled, UpdateStages.WithIsStorageSecondaryKeyInUse, UpdateStages.WithQueueDelayMs, UpdateStages.WithRetentionDays, UpdateStages.WithStorageAccountAccessKey, UpdateStages.WithStorageAccountSubscriptionId, UpdateStages.WithStorageEndpoint {
}
/**
@@ -366,6 +384,19 @@ interface WithIsStorageSecondaryKeyInUse {
Update withIsStorageSecondaryKeyInUse(Boolean isStorageSecondaryKeyInUse);
}
+ /**
+ * The stage of the databaseblobauditingpolicy 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 databaseblobauditingpolicy update allowing to specify RetentionDays.
*/
@@ -408,7 +439,7 @@ interface WithStorageAccountSubscriptionId {
interface WithStorageEndpoint {
/**
* Specifies storageEndpoint.
- * @param storageEndpoint Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint is required
+ * @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/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/DatabasisServerSensitivityLabel.java b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/DatabasisServerSensitivityLabel.java
index 21c1e23aca524..c62bfaa2fd037 100644
--- a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/DatabasisServerSensitivityLabel.java
+++ b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/DatabasisServerSensitivityLabel.java
@@ -52,6 +52,11 @@ public interface DatabasisServerSensitivityLabel extends HasInner, DefinitionStages.WithAuditActionsAndGroups, DefinitionStages.WithIsAzureMonitorTargetEnabled, DefinitionStages.WithIsStorageSecondaryKeyInUse, DefinitionStages.WithPredicateExpression, DefinitionStages.WithRetentionDays, DefinitionStages.WithStorageAccountAccessKey, DefinitionStages.WithStorageAccountSubscriptionId, DefinitionStages.WithStorageEndpoint {
+ 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 ExtendedDatabaseBlobAuditingPolicy update operation, containing all the settings that can be modified.
*/
- interface Update extends Appliable, UpdateStages.WithAuditActionsAndGroups, UpdateStages.WithIsAzureMonitorTargetEnabled, UpdateStages.WithIsStorageSecondaryKeyInUse, UpdateStages.WithPredicateExpression, UpdateStages.WithRetentionDays, UpdateStages.WithStorageAccountAccessKey, UpdateStages.WithStorageAccountSubscriptionId, UpdateStages.WithStorageEndpoint {
+ interface Update extends Appliable, UpdateStages.WithAuditActionsAndGroups, UpdateStages.WithIsAzureMonitorTargetEnabled, UpdateStages.WithIsStorageSecondaryKeyInUse, UpdateStages.WithPredicateExpression, UpdateStages.WithQueueDelayMs, UpdateStages.WithRetentionDays, UpdateStages.WithStorageAccountAccessKey, UpdateStages.WithStorageAccountSubscriptionId, UpdateStages.WithStorageEndpoint {
}
/**
@@ -390,6 +408,19 @@ interface WithPredicateExpression {
Update withPredicateExpression(String predicateExpression);
}
+ /**
+ * The stage of the extendeddatabaseblobauditingpolicy 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 extendeddatabaseblobauditingpolicy update allowing to specify RetentionDays.
*/
@@ -432,7 +463,7 @@ interface WithStorageAccountSubscriptionId {
interface WithStorageEndpoint {
/**
* Specifies storageEndpoint.
- * @param storageEndpoint Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint is required
+ * @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/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/ExtendedServerBlobAuditingPolicy.java b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/ExtendedServerBlobAuditingPolicy.java
index 40e44bbda5098..b70afa809869e 100644
--- a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/ExtendedServerBlobAuditingPolicy.java
+++ b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/ExtendedServerBlobAuditingPolicy.java
@@ -54,6 +54,11 @@ public interface ExtendedServerBlobAuditingPolicy extends HasInner, DefinitionStages.WithAuditActionsAndGroups, DefinitionStages.WithIsAzureMonitorTargetEnabled, DefinitionStages.WithIsStorageSecondaryKeyInUse, DefinitionStages.WithPredicateExpression, DefinitionStages.WithRetentionDays, DefinitionStages.WithStorageAccountAccessKey, DefinitionStages.WithStorageAccountSubscriptionId, DefinitionStages.WithStorageEndpoint {
+ 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.WithRetentionDays, UpdateStages.WithStorageAccountAccessKey, UpdateStages.WithStorageAccountSubscriptionId, UpdateStages.WithStorageEndpoint {
+ interface Update extends Appliable, UpdateStages.WithAuditActionsAndGroups, UpdateStages.WithIsAzureMonitorTargetEnabled, UpdateStages.WithIsStorageSecondaryKeyInUse, UpdateStages.WithPredicateExpression, UpdateStages.WithQueueDelayMs, UpdateStages.WithRetentionDays, UpdateStages.WithStorageAccountAccessKey, UpdateStages.WithStorageAccountSubscriptionId, UpdateStages.WithStorageEndpoint {
}
/**
@@ -389,6 +407,19 @@ interface WithPredicateExpression {
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.
*/
@@ -431,7 +462,7 @@ interface WithStorageAccountSubscriptionId {
interface WithStorageEndpoint {
/**
* Specifies storageEndpoint.
- * @param storageEndpoint Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint is required
+ * @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/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/JobStepExecutions.java b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/JobStepExecutions.java
index 4296594557f9d..d096a4ddb832f 100644
--- a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/JobStepExecutions.java
+++ b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/JobStepExecutions.java
@@ -11,8 +11,6 @@
import rx.Observable;
import com.microsoft.azure.management.sql.v2017_03_01_preview.ExecutionJobJobAgentServerJobExecution;
-import java.util.UUID;
-
/**
* Type representing JobStepExecutions.
*/
diff --git a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/ManagedDatabase.java b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/ManagedDatabase.java
index c41adf6979a48..489b39dcd56f9 100644
--- a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/ManagedDatabase.java
+++ b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/ManagedDatabase.java
@@ -69,6 +69,11 @@ public interface ManagedDatabase extends HasInner, Indexab
*/
String location();
+ /**
+ * @return the longTermRetentionBackupResourceId value.
+ */
+ String longTermRetentionBackupResourceId();
+
/**
* @return the name value.
*/
@@ -190,12 +195,24 @@ interface WithCollation {
interface WithCreateMode {
/**
* Specifies createMode.
- * @param createMode Managed database create mode. PointInTimeRestore: Create a database by restoring a point in time backup of an existing database. SourceDatabaseName, SourceManagedInstanceName and PointInTime must be specified. RestoreExternalBackup: Create a database by restoring from external backup files. Collation, StorageContainerUri and StorageContainerSasToken must be specified. Recovery: Creates a database by restoring a geo-replicated backup. RecoverableDatabaseId must be specified as the recoverable database resource ID to restore. Possible values include: 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery'
+ * @param createMode Managed database create mode. PointInTimeRestore: Create a database by restoring a point in time backup of an existing database. SourceDatabaseName, SourceManagedInstanceName and PointInTime must be specified. RestoreExternalBackup: Create a database by restoring from external backup files. Collation, StorageContainerUri and StorageContainerSasToken must be specified. Recovery: Creates a database by restoring a geo-replicated backup. RecoverableDatabaseId must be specified as the recoverable database resource ID to restore. Possible values include: 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery', 'RestoreLongTermRetentionBackup'
* @return the next definition stage
*/
WithCreate withCreateMode(ManagedDatabaseCreateMode createMode);
}
+ /**
+ * The stage of the manageddatabase definition allowing to specify LongTermRetentionBackupResourceId.
+ */
+ interface WithLongTermRetentionBackupResourceId {
+ /**
+ * Specifies longTermRetentionBackupResourceId.
+ * @param longTermRetentionBackupResourceId The name of the Long Term Retention backup to be used for restore of this managed database
+ * @return the next definition stage
+ */
+ WithCreate withLongTermRetentionBackupResourceId(String longTermRetentionBackupResourceId);
+ }
+
/**
* The stage of the manageddatabase definition allowing to specify RecoverableDatabaseId.
*/
@@ -285,13 +302,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.WithCatalogCollation, DefinitionStages.WithCollation, DefinitionStages.WithCreateMode, DefinitionStages.WithRecoverableDatabaseId, DefinitionStages.WithRestorableDroppedDatabaseId, DefinitionStages.WithRestorePointInTime, DefinitionStages.WithSourceDatabaseId, DefinitionStages.WithStorageContainerSasToken, DefinitionStages.WithStorageContainerUri, DefinitionStages.WithTags {
+ interface WithCreate extends Creatable, DefinitionStages.WithCatalogCollation, DefinitionStages.WithCollation, DefinitionStages.WithCreateMode, DefinitionStages.WithLongTermRetentionBackupResourceId, DefinitionStages.WithRecoverableDatabaseId, DefinitionStages.WithRestorableDroppedDatabaseId, DefinitionStages.WithRestorePointInTime, DefinitionStages.WithSourceDatabaseId, DefinitionStages.WithStorageContainerSasToken, DefinitionStages.WithStorageContainerUri, DefinitionStages.WithTags {
}
}
/**
* The template for a ManagedDatabase update operation, containing all the settings that can be modified.
*/
- interface Update extends Appliable, UpdateStages.WithCatalogCollation, UpdateStages.WithCollation, UpdateStages.WithCreateMode, UpdateStages.WithRecoverableDatabaseId, UpdateStages.WithRestorableDroppedDatabaseId, UpdateStages.WithRestorePointInTime, UpdateStages.WithSourceDatabaseId, UpdateStages.WithStorageContainerSasToken, UpdateStages.WithStorageContainerUri, UpdateStages.WithTags {
+ interface Update extends Appliable, UpdateStages.WithCatalogCollation, UpdateStages.WithCollation, UpdateStages.WithCreateMode, UpdateStages.WithLongTermRetentionBackupResourceId, UpdateStages.WithRecoverableDatabaseId, UpdateStages.WithRestorableDroppedDatabaseId, UpdateStages.WithRestorePointInTime, UpdateStages.WithSourceDatabaseId, UpdateStages.WithStorageContainerSasToken, UpdateStages.WithStorageContainerUri, UpdateStages.WithTags {
}
/**
@@ -328,12 +345,24 @@ interface WithCollation {
interface WithCreateMode {
/**
* Specifies createMode.
- * @param createMode Managed database create mode. PointInTimeRestore: Create a database by restoring a point in time backup of an existing database. SourceDatabaseName, SourceManagedInstanceName and PointInTime must be specified. RestoreExternalBackup: Create a database by restoring from external backup files. Collation, StorageContainerUri and StorageContainerSasToken must be specified. Recovery: Creates a database by restoring a geo-replicated backup. RecoverableDatabaseId must be specified as the recoverable database resource ID to restore. Possible values include: 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery'
+ * @param createMode Managed database create mode. PointInTimeRestore: Create a database by restoring a point in time backup of an existing database. SourceDatabaseName, SourceManagedInstanceName and PointInTime must be specified. RestoreExternalBackup: Create a database by restoring from external backup files. Collation, StorageContainerUri and StorageContainerSasToken must be specified. Recovery: Creates a database by restoring a geo-replicated backup. RecoverableDatabaseId must be specified as the recoverable database resource ID to restore. Possible values include: 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery', 'RestoreLongTermRetentionBackup'
* @return the next update stage
*/
Update withCreateMode(ManagedDatabaseCreateMode createMode);
}
+ /**
+ * The stage of the manageddatabase update allowing to specify LongTermRetentionBackupResourceId.
+ */
+ interface WithLongTermRetentionBackupResourceId {
+ /**
+ * Specifies longTermRetentionBackupResourceId.
+ * @param longTermRetentionBackupResourceId The name of the Long Term Retention backup to be used for restore of this managed database
+ * @return the next update stage
+ */
+ Update withLongTermRetentionBackupResourceId(String longTermRetentionBackupResourceId);
+ }
+
/**
* The stage of the manageddatabase update allowing to specify RecoverableDatabaseId.
*/
diff --git a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/ManagedDatabaseCreateMode.java b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/ManagedDatabaseCreateMode.java
index f54d0ace4220f..09598fcc2ea10 100644
--- a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/ManagedDatabaseCreateMode.java
+++ b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/ManagedDatabaseCreateMode.java
@@ -28,6 +28,9 @@ public final class ManagedDatabaseCreateMode extends ExpandableStringEnum, Index
*/
String name();
+ /**
+ * @return the rank value.
+ */
+ SensitivityLabelRank rank();
+
/**
* @return the type value.
*/
@@ -143,18 +148,30 @@ interface WithLabelName {
WithCreate withLabelName(String labelName);
}
+ /**
+ * The stage of the sensitivitylabel definition allowing to specify Rank.
+ */
+ interface WithRank {
+ /**
+ * Specifies rank.
+ * @param rank Possible values include: 'None', 'Low', 'Medium', 'High', 'Critical'
+ * @return the next definition stage
+ */
+ WithCreate withRank(SensitivityLabelRank rank);
+ }
+
/**
* 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.WithInformationType, DefinitionStages.WithInformationTypeId, DefinitionStages.WithLabelId, DefinitionStages.WithLabelName {
+ interface WithCreate extends Creatable, DefinitionStages.WithInformationType, DefinitionStages.WithInformationTypeId, DefinitionStages.WithLabelId, DefinitionStages.WithLabelName, DefinitionStages.WithRank {
}
}
/**
* The template for a SensitivityLabel update operation, containing all the settings that can be modified.
*/
- interface Update extends Appliable, UpdateStages.WithInformationType, UpdateStages.WithInformationTypeId, UpdateStages.WithLabelId, UpdateStages.WithLabelName {
+ interface Update extends Appliable, UpdateStages.WithInformationType, UpdateStages.WithInformationTypeId, UpdateStages.WithLabelId, UpdateStages.WithLabelName, UpdateStages.WithRank {
}
/**
@@ -209,5 +226,17 @@ interface WithLabelName {
Update withLabelName(String labelName);
}
+ /**
+ * The stage of the sensitivitylabel update allowing to specify Rank.
+ */
+ interface WithRank {
+ /**
+ * Specifies rank.
+ * @param rank Possible values include: 'None', 'Low', 'Medium', 'High', 'Critical'
+ * @return the next update stage
+ */
+ Update withRank(SensitivityLabelRank rank);
+ }
+
}
}
diff --git a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/SensitivityLabelRank.java b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/SensitivityLabelRank.java
new file mode 100644
index 0000000000000..06ecf37091c7e
--- /dev/null
+++ b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/SensitivityLabelRank.java
@@ -0,0 +1,62 @@
+/**
+ * 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.sql.v2017_03_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+/**
+ * Defines values for SensitivityLabelRank.
+ */
+public enum SensitivityLabelRank {
+ /** Enum value None. */
+ NONE("None"),
+
+ /** Enum value Low. */
+ LOW("Low"),
+
+ /** Enum value Medium. */
+ MEDIUM("Medium"),
+
+ /** Enum value High. */
+ HIGH("High"),
+
+ /** Enum value Critical. */
+ CRITICAL("Critical");
+
+ /** The actual serialized value for a SensitivityLabelRank instance. */
+ private String value;
+
+ SensitivityLabelRank(String value) {
+ this.value = value;
+ }
+
+ /**
+ * Parses a serialized value to a SensitivityLabelRank instance.
+ *
+ * @param value the serialized value to parse.
+ * @return the parsed SensitivityLabelRank object, or null if unable to parse.
+ */
+ @JsonCreator
+ public static SensitivityLabelRank fromString(String value) {
+ SensitivityLabelRank[] items = SensitivityLabelRank.values();
+ for (SensitivityLabelRank item : items) {
+ if (item.toString().equalsIgnoreCase(value)) {
+ return item;
+ }
+ }
+ return null;
+ }
+
+ @JsonValue
+ @Override
+ public String toString() {
+ return this.value;
+ }
+}
diff --git a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/ServerBlobAuditingPolicy.java b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/ServerBlobAuditingPolicy.java
index c7b80116c48b7..5b462aef1614c 100644
--- a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/ServerBlobAuditingPolicy.java
+++ b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/ServerBlobAuditingPolicy.java
@@ -49,6 +49,11 @@ public interface ServerBlobAuditingPolicy extends HasInner, DefinitionStages.WithAuditActionsAndGroups, DefinitionStages.WithIsAzureMonitorTargetEnabled, DefinitionStages.WithIsStorageSecondaryKeyInUse, DefinitionStages.WithRetentionDays, DefinitionStages.WithStorageAccountAccessKey, DefinitionStages.WithStorageAccountSubscriptionId, DefinitionStages.WithStorageEndpoint {
+ interface WithCreate extends Creatable, DefinitionStages.WithAuditActionsAndGroups, DefinitionStages.WithIsAzureMonitorTargetEnabled, DefinitionStages.WithIsStorageSecondaryKeyInUse, DefinitionStages.WithQueueDelayMs, DefinitionStages.WithRetentionDays, DefinitionStages.WithStorageAccountAccessKey, DefinitionStages.WithStorageAccountSubscriptionId, DefinitionStages.WithStorageEndpoint {
}
}
/**
* The template for a ServerBlobAuditingPolicy update operation, containing all the settings that can be modified.
*/
- interface Update extends Appliable, UpdateStages.WithAuditActionsAndGroups, UpdateStages.WithIsAzureMonitorTargetEnabled, UpdateStages.WithIsStorageSecondaryKeyInUse, UpdateStages.WithRetentionDays, UpdateStages.WithStorageAccountAccessKey, UpdateStages.WithStorageAccountSubscriptionId, UpdateStages.WithStorageEndpoint {
+ interface Update extends Appliable, UpdateStages.WithAuditActionsAndGroups, UpdateStages.WithIsAzureMonitorTargetEnabled, UpdateStages.WithIsStorageSecondaryKeyInUse, UpdateStages.WithQueueDelayMs, UpdateStages.WithRetentionDays, UpdateStages.WithStorageAccountAccessKey, UpdateStages.WithStorageAccountSubscriptionId, UpdateStages.WithStorageEndpoint {
}
/**
@@ -360,6 +378,19 @@ interface WithIsStorageSecondaryKeyInUse {
Update withIsStorageSecondaryKeyInUse(Boolean isStorageSecondaryKeyInUse);
}
+ /**
+ * The stage of the serverblobauditingpolicy 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 serverblobauditingpolicy update allowing to specify RetentionDays.
*/
@@ -402,7 +433,7 @@ interface WithStorageAccountSubscriptionId {
interface WithStorageEndpoint {
/**
* Specifies storageEndpoint.
- * @param storageEndpoint Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint is required
+ * @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/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/DatabaseBlobAuditingPolicyImpl.java b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/DatabaseBlobAuditingPolicyImpl.java
index 4503419d93472..53adfb5a237a2 100644
--- a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/DatabaseBlobAuditingPolicyImpl.java
+++ b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/DatabaseBlobAuditingPolicyImpl.java
@@ -102,6 +102,11 @@ public String name() {
return this.inner().name();
}
+ @Override
+ public Integer queueDelayMs() {
+ return this.inner().queueDelayMs();
+ }
+
@Override
public Integer retentionDays() {
return this.inner().retentionDays();
@@ -164,6 +169,12 @@ public DatabaseBlobAuditingPolicyImpl withIsStorageSecondaryKeyInUse(Boolean isS
return this;
}
+ @Override
+ public DatabaseBlobAuditingPolicyImpl withQueueDelayMs(Integer queueDelayMs) {
+ this.inner().withQueueDelayMs(queueDelayMs);
+ return this;
+ }
+
@Override
public DatabaseBlobAuditingPolicyImpl withRetentionDays(Integer retentionDays) {
this.inner().withRetentionDays(retentionDays);
diff --git a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/DatabaseBlobAuditingPolicyInner.java b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/DatabaseBlobAuditingPolicyInner.java
index dc9f0fde563f7..801ed2796b2f6 100644
--- a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/DatabaseBlobAuditingPolicyInner.java
+++ b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/DatabaseBlobAuditingPolicyInner.java
@@ -37,7 +37,7 @@ public class DatabaseBlobAuditingPolicyInner extends ProxyResource {
/**
* Specifies the blob storage endpoint (e.g.
* https://MyAccount.blob.core.windows.net). If state is Enabled,
- * storageEndpoint is required.
+ * storageEndpoint or isAzureMonitorTargetEnabled is required.
*/
@JsonProperty(value = "properties.storageEndpoint")
private String storageEndpoint;
@@ -169,6 +169,15 @@ public class DatabaseBlobAuditingPolicyInner extends ProxyResource {
@JsonProperty(value = "properties.isAzureMonitorTargetEnabled")
private Boolean isAzureMonitorTargetEnabled;
+ /**
+ * 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.
+ */
+ @JsonProperty(value = "properties.queueDelayMs")
+ private Integer queueDelayMs;
+
/**
* Get resource kind.
*
@@ -199,7 +208,7 @@ public DatabaseBlobAuditingPolicyInner withState(BlobAuditingPolicyState state)
}
/**
- * Get specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint is required.
+ * Get specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required.
*
* @return the storageEndpoint value
*/
@@ -208,7 +217,7 @@ public String storageEndpoint() {
}
/**
- * Set specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint is required.
+ * Set specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required.
*
* @param storageEndpoint the storageEndpoint value to set
* @return the DatabaseBlobAuditingPolicyInner object itself.
@@ -440,4 +449,26 @@ public DatabaseBlobAuditingPolicyInner withIsAzureMonitorTargetEnabled(Boolean i
return this;
}
+ /**
+ * Get 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 queueDelayMs value
+ */
+ public Integer queueDelayMs() {
+ return this.queueDelayMs;
+ }
+
+ /**
+ * Set 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.
+ *
+ * @param queueDelayMs the queueDelayMs value to set
+ * @return the DatabaseBlobAuditingPolicyInner object itself.
+ */
+ public DatabaseBlobAuditingPolicyInner withQueueDelayMs(Integer queueDelayMs) {
+ this.queueDelayMs = queueDelayMs;
+ return this;
+ }
+
}
diff --git a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/DatabaseVulnerabilityAssessmentRuleBaselineImpl.java b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/DatabaseVulnerabilityAssessmentRuleBaselineImpl.java
index ef7856abaed19..023610ad1fa24 100644
--- a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/DatabaseVulnerabilityAssessmentRuleBaselineImpl.java
+++ b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/DatabaseVulnerabilityAssessmentRuleBaselineImpl.java
@@ -29,7 +29,7 @@ class DatabaseVulnerabilityAssessmentRuleBaselineImpl extends CreatableUpdatable
super(name, new DatabaseVulnerabilityAssessmentRuleBaselineInner());
this.manager = manager;
// Set resource name
- this.baselineName = VulnerabilityAssessmentPolicyBaselineName.valueOf(name);
+ this.baselineName = name;
//
}
@@ -37,7 +37,7 @@ class DatabaseVulnerabilityAssessmentRuleBaselineImpl extends CreatableUpdatable
super(inner.name(), inner);
this.manager = manager;
// Set resource name
- this.baselineName = VulnerabilityAssessmentPolicyBaselineName.valueOf(inner.name());
+ this.baselineName = inner.name();
// set resource ancestor and positional variables
this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups");
this.serverName = IdParsingUtils.getValueFromIdByName(inner.id(), "servers");
diff --git a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/DatabaseVulnerabilityAssessmentRuleBaselinesImpl.java b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/DatabaseVulnerabilityAssessmentRuleBaselinesImpl.java
index 1eef0059641f3..ab89c89b7f2f8 100644
--- a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/DatabaseVulnerabilityAssessmentRuleBaselinesImpl.java
+++ b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/DatabaseVulnerabilityAssessmentRuleBaselinesImpl.java
@@ -11,7 +11,6 @@
import com.microsoft.azure.arm.model.implementation.WrapperImpl;
import com.microsoft.azure.management.sql.v2017_03_01_preview.DatabaseVulnerabilityAssessmentRuleBaselines;
-import com.microsoft.azure.management.sql.v2017_03_01_preview.VulnerabilityAssessmentPolicyBaselineName;
import rx.Observable;
import rx.functions.Func1;
import com.microsoft.azure.management.sql.v2017_03_01_preview.DatabaseVulnerabilityAssessmentRuleBaseline;
@@ -47,7 +46,7 @@ private Observable getDatabase
String serverName = IdParsingUtils.getValueFromIdByName(id, "servers");
String databaseName = IdParsingUtils.getValueFromIdByName(id, "databases");
String ruleId = IdParsingUtils.getValueFromIdByName(id, "rules");
- VulnerabilityAssessmentPolicyBaselineName baselineName = VulnerabilityAssessmentPolicyBaselineName.valueOf(IdParsingUtils.getValueFromIdByName(id, "baselines"));
+ String baselineName = VulnerabilityAssessmentPolicyBaselineName.valueOf(IdParsingUtils.getValueFromIdByName(id, "baselines"));
DatabaseVulnerabilityAssessmentRuleBaselinesInner client = this.inner();
return client.getAsync(resourceGroupName, serverName, databaseName, ruleId, baselineName);
}
diff --git a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/DatabasisServerSensitivityLabelImpl.java b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/DatabasisServerSensitivityLabelImpl.java
index e2c221572a2d0..644af26ecf878 100644
--- a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/DatabasisServerSensitivityLabelImpl.java
+++ b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/DatabasisServerSensitivityLabelImpl.java
@@ -11,6 +11,7 @@
import com.microsoft.azure.management.sql.v2017_03_01_preview.DatabasisServerSensitivityLabel;
import com.microsoft.azure.arm.model.implementation.WrapperImpl;
import rx.Observable;
+import com.microsoft.azure.management.sql.v2017_03_01_preview.SensitivityLabelRank;
class DatabasisServerSensitivityLabelImpl extends WrapperImpl implements DatabasisServerSensitivityLabel {
private final SqlManager manager;
@@ -62,6 +63,11 @@ public String name() {
return this.inner().name();
}
+ @Override
+ public SensitivityLabelRank rank() {
+ return this.inner().rank();
+ }
+
@Override
public String type() {
return this.inner().type();
diff --git a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/DatabasisServerSensitivityLabelModelImpl.java b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/DatabasisServerSensitivityLabelModelImpl.java
index 6757d22ea4541..96a2171deb242 100644
--- a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/DatabasisServerSensitivityLabelModelImpl.java
+++ b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/DatabasisServerSensitivityLabelModelImpl.java
@@ -11,6 +11,7 @@
import com.microsoft.azure.management.sql.v2017_03_01_preview.DatabasisServerSensitivityLabelModel;
import com.microsoft.azure.arm.model.implementation.WrapperImpl;
import rx.Observable;
+import com.microsoft.azure.management.sql.v2017_03_01_preview.SensitivityLabelRank;
class DatabasisServerSensitivityLabelModelImpl extends WrapperImpl implements DatabasisServerSensitivityLabelModel {
private final SqlManager manager;
@@ -62,6 +63,11 @@ public String name() {
return this.inner().name();
}
+ @Override
+ public SensitivityLabelRank rank() {
+ return this.inner().rank();
+ }
+
@Override
public String type() {
return this.inner().type();
diff --git a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/ExtendedDatabaseBlobAuditingPolicyImpl.java b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/ExtendedDatabaseBlobAuditingPolicyImpl.java
index 99262e9e82058..f72b7d00e111a 100644
--- a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/ExtendedDatabaseBlobAuditingPolicyImpl.java
+++ b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/ExtendedDatabaseBlobAuditingPolicyImpl.java
@@ -102,6 +102,11 @@ public String predicateExpression() {
return this.inner().predicateExpression();
}
+ @Override
+ public Integer queueDelayMs() {
+ return this.inner().queueDelayMs();
+ }
+
@Override
public Integer retentionDays() {
return this.inner().retentionDays();
@@ -170,6 +175,12 @@ public ExtendedDatabaseBlobAuditingPolicyImpl withPredicateExpression(String pre
return this;
}
+ @Override
+ public ExtendedDatabaseBlobAuditingPolicyImpl withQueueDelayMs(Integer queueDelayMs) {
+ this.inner().withQueueDelayMs(queueDelayMs);
+ return this;
+ }
+
@Override
public ExtendedDatabaseBlobAuditingPolicyImpl withRetentionDays(Integer retentionDays) {
this.inner().withRetentionDays(retentionDays);
diff --git a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/ExtendedDatabaseBlobAuditingPolicyInner.java b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/ExtendedDatabaseBlobAuditingPolicyInner.java
index a7c294fea9d70..893f2bc2d90df 100644
--- a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/ExtendedDatabaseBlobAuditingPolicyInner.java
+++ b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/ExtendedDatabaseBlobAuditingPolicyInner.java
@@ -37,7 +37,7 @@ public class ExtendedDatabaseBlobAuditingPolicyInner extends ProxyResource {
/**
* Specifies the blob storage endpoint (e.g.
* https://MyAccount.blob.core.windows.net). If state is Enabled,
- * storageEndpoint is required.
+ * storageEndpoint or isAzureMonitorTargetEnabled is required.
*/
@JsonProperty(value = "properties.storageEndpoint")
private String storageEndpoint;
@@ -169,6 +169,15 @@ public class ExtendedDatabaseBlobAuditingPolicyInner extends ProxyResource {
@JsonProperty(value = "properties.isAzureMonitorTargetEnabled")
private Boolean isAzureMonitorTargetEnabled;
+ /**
+ * 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.
+ */
+ @JsonProperty(value = "properties.queueDelayMs")
+ private Integer queueDelayMs;
+
/**
* Get specifies condition of where clause when creating an audit.
*
@@ -210,7 +219,7 @@ public ExtendedDatabaseBlobAuditingPolicyInner withState(BlobAuditingPolicyState
}
/**
- * Get specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint is required.
+ * Get specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required.
*
* @return the storageEndpoint value
*/
@@ -219,7 +228,7 @@ public String storageEndpoint() {
}
/**
- * Set specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint is required.
+ * Set specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required.
*
* @param storageEndpoint the storageEndpoint value to set
* @return the ExtendedDatabaseBlobAuditingPolicyInner object itself.
@@ -451,4 +460,26 @@ public ExtendedDatabaseBlobAuditingPolicyInner withIsAzureMonitorTargetEnabled(B
return this;
}
+ /**
+ * Get 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 queueDelayMs value
+ */
+ public Integer queueDelayMs() {
+ return this.queueDelayMs;
+ }
+
+ /**
+ * Set 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.
+ *
+ * @param queueDelayMs the queueDelayMs value to set
+ * @return the ExtendedDatabaseBlobAuditingPolicyInner object itself.
+ */
+ public ExtendedDatabaseBlobAuditingPolicyInner withQueueDelayMs(Integer queueDelayMs) {
+ this.queueDelayMs = queueDelayMs;
+ return this;
+ }
+
}
diff --git a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/ExtendedServerBlobAuditingPolicyImpl.java b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/ExtendedServerBlobAuditingPolicyImpl.java
index fcb17e6eb92dc..e7e7aa478aff3 100644
--- a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/ExtendedServerBlobAuditingPolicyImpl.java
+++ b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/ExtendedServerBlobAuditingPolicyImpl.java
@@ -100,6 +100,11 @@ public String predicateExpression() {
return this.inner().predicateExpression();
}
+ @Override
+ public Integer queueDelayMs() {
+ return this.inner().queueDelayMs();
+ }
+
@Override
public Integer retentionDays() {
return this.inner().retentionDays();
@@ -167,6 +172,12 @@ public ExtendedServerBlobAuditingPolicyImpl withPredicateExpression(String predi
return this;
}
+ @Override
+ public ExtendedServerBlobAuditingPolicyImpl withQueueDelayMs(Integer queueDelayMs) {
+ this.inner().withQueueDelayMs(queueDelayMs);
+ return this;
+ }
+
@Override
public ExtendedServerBlobAuditingPolicyImpl withRetentionDays(Integer retentionDays) {
this.inner().withRetentionDays(retentionDays);
diff --git a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/ExtendedServerBlobAuditingPolicyInner.java b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/ExtendedServerBlobAuditingPolicyInner.java
index 415c84123878a..23067a60bce01 100644
--- a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/ExtendedServerBlobAuditingPolicyInner.java
+++ b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/ExtendedServerBlobAuditingPolicyInner.java
@@ -37,7 +37,7 @@ public class ExtendedServerBlobAuditingPolicyInner extends ProxyResource {
/**
* Specifies the blob storage endpoint (e.g.
* https://MyAccount.blob.core.windows.net). If state is Enabled,
- * storageEndpoint is required.
+ * storageEndpoint or isAzureMonitorTargetEnabled is required.
*/
@JsonProperty(value = "properties.storageEndpoint")
private String storageEndpoint;
@@ -169,6 +169,15 @@ public class ExtendedServerBlobAuditingPolicyInner extends ProxyResource {
@JsonProperty(value = "properties.isAzureMonitorTargetEnabled")
private Boolean isAzureMonitorTargetEnabled;
+ /**
+ * 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.
+ */
+ @JsonProperty(value = "properties.queueDelayMs")
+ private Integer queueDelayMs;
+
/**
* Get specifies condition of where clause when creating an audit.
*
@@ -210,7 +219,7 @@ public ExtendedServerBlobAuditingPolicyInner withState(BlobAuditingPolicyState s
}
/**
- * Get specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint is required.
+ * Get specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required.
*
* @return the storageEndpoint value
*/
@@ -219,7 +228,7 @@ public String storageEndpoint() {
}
/**
- * Set specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint is required.
+ * Set specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required.
*
* @param storageEndpoint the storageEndpoint value to set
* @return the ExtendedServerBlobAuditingPolicyInner object itself.
@@ -451,4 +460,26 @@ public ExtendedServerBlobAuditingPolicyInner withIsAzureMonitorTargetEnabled(Boo
return this;
}
+ /**
+ * Get 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 queueDelayMs value
+ */
+ public Integer queueDelayMs() {
+ return this.queueDelayMs;
+ }
+
+ /**
+ * Set 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.
+ *
+ * @param queueDelayMs the queueDelayMs value to set
+ * @return the ExtendedServerBlobAuditingPolicyInner object itself.
+ */
+ public ExtendedServerBlobAuditingPolicyInner withQueueDelayMs(Integer queueDelayMs) {
+ this.queueDelayMs = queueDelayMs;
+ return this;
+ }
+
}
diff --git a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/JobAgentServerJobExecutionImpl.java b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/JobAgentServerJobExecutionImpl.java
index 4e0e2e0cdc69a..e6525639104e1 100644
--- a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/JobAgentServerJobExecutionImpl.java
+++ b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/JobAgentServerJobExecutionImpl.java
@@ -29,7 +29,7 @@ class JobAgentServerJobExecutionImpl extends CreatableUpdatableImpl implements JobStepExecutions {
private final SqlManager manager;
@@ -39,7 +37,7 @@ private Observable getJobExecutionInnerUsingJobStepExecutions
String serverName = IdParsingUtils.getValueFromIdByName(id, "servers");
String jobAgentName = IdParsingUtils.getValueFromIdByName(id, "jobAgents");
String jobName = IdParsingUtils.getValueFromIdByName(id, "jobs");
- UUID jobExecutionId = UUID.fromString(IdParsingUtils.getValueFromIdByName(id, "executions"));
+ String jobExecutionId = UUID.fromString(IdParsingUtils.getValueFromIdByName(id, "executions"));
String stepName = IdParsingUtils.getValueFromIdByName(id, "steps");
JobStepExecutionsInner client = this.inner();
return client.getAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, stepName);
diff --git a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/JobStepImpl.java b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/JobStepImpl.java
index 4c57c31d99fb4..324af6f0ef570 100644
--- a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/JobStepImpl.java
+++ b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/JobStepImpl.java
@@ -67,7 +67,7 @@ public Observable updateResourceAsync() {
@Override
protected Observable getInnerAsync() {
JobStepsInner client = this.manager().inner().jobSteps();
- return client.getAsync(this.resourceGroupName, this.serverName, this.jobAgentName, this.jobName, this.stepName);
+ return client.getByVersionAsync(this.resourceGroupName, this.serverName, this.jobAgentName, this.jobName, this.stepName);
}
@Override
diff --git a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/ManagedDatabaseImpl.java b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/ManagedDatabaseImpl.java
index 1ccab4d6b2ec4..e8470d5d7b5db 100644
--- a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/ManagedDatabaseImpl.java
+++ b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/ManagedDatabaseImpl.java
@@ -141,6 +141,11 @@ public String location() {
return this.inner().location();
}
+ @Override
+ public String longTermRetentionBackupResourceId() {
+ return this.inner().longTermRetentionBackupResourceId();
+ }
+
@Override
public String name() {
return this.inner().name();
@@ -234,6 +239,16 @@ public ManagedDatabaseImpl withCreateMode(ManagedDatabaseCreateMode createMode)
return this;
}
+ @Override
+ public ManagedDatabaseImpl withLongTermRetentionBackupResourceId(String longTermRetentionBackupResourceId) {
+ if (isInCreateMode()) {
+ this.inner().withLongTermRetentionBackupResourceId(longTermRetentionBackupResourceId);
+ } else {
+ this.updateParameter.withLongTermRetentionBackupResourceId(longTermRetentionBackupResourceId);
+ }
+ return this;
+ }
+
@Override
public ManagedDatabaseImpl withRecoverableDatabaseId(String recoverableDatabaseId) {
if (isInCreateMode()) {
diff --git a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/ManagedDatabaseInner.java b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/ManagedDatabaseInner.java
index d02e6a1de06e0..806d6c3934e29 100644
--- a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/ManagedDatabaseInner.java
+++ b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/ManagedDatabaseInner.java
@@ -29,7 +29,7 @@ public class ManagedDatabaseInner extends Resource {
/**
* Status of the database. Possible values include: 'Online', 'Offline',
- * 'Shutdown', 'Creating', 'Inaccessible', 'Updating'.
+ * 'Shutdown', 'Creating', 'Inaccessible', 'Restoring', 'Updating'.
*/
@JsonProperty(value = "properties.status", access = JsonProperty.Access.WRITE_ONLY)
private ManagedDatabaseStatus status;
@@ -77,7 +77,7 @@ public class ManagedDatabaseInner extends Resource {
* by restoring a geo-replicated backup. RecoverableDatabaseId must be
* specified as the recoverable database resource ID to restore. Possible
* values include: 'Default', 'RestoreExternalBackup',
- * 'PointInTimeRestore', 'Recovery'.
+ * 'PointInTimeRestore', 'Recovery', 'RestoreLongTermRetentionBackup'.
*/
@JsonProperty(value = "properties.createMode")
private ManagedDatabaseCreateMode createMode;
@@ -125,6 +125,13 @@ public class ManagedDatabaseInner extends Resource {
@JsonProperty(value = "properties.recoverableDatabaseId")
private String recoverableDatabaseId;
+ /**
+ * The name of the Long Term Retention backup to be used for restore of
+ * this managed database.
+ */
+ @JsonProperty(value = "properties.longTermRetentionBackupResourceId")
+ private String longTermRetentionBackupResourceId;
+
/**
* Get collation of the managed database.
*
@@ -146,7 +153,7 @@ public ManagedDatabaseInner withCollation(String collation) {
}
/**
- * Get status of the database. Possible values include: 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible', 'Updating'.
+ * Get status of the database. Possible values include: 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible', 'Restoring', 'Updating'.
*
* @return the status value
*/
@@ -222,7 +229,7 @@ public ManagedDatabaseInner withCatalogCollation(CatalogCollationType catalogCol
}
/**
- * Get managed database create mode. PointInTimeRestore: Create a database by restoring a point in time backup of an existing database. SourceDatabaseName, SourceManagedInstanceName and PointInTime must be specified. RestoreExternalBackup: Create a database by restoring from external backup files. Collation, StorageContainerUri and StorageContainerSasToken must be specified. Recovery: Creates a database by restoring a geo-replicated backup. RecoverableDatabaseId must be specified as the recoverable database resource ID to restore. Possible values include: 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery'.
+ * Get managed database create mode. PointInTimeRestore: Create a database by restoring a point in time backup of an existing database. SourceDatabaseName, SourceManagedInstanceName and PointInTime must be specified. RestoreExternalBackup: Create a database by restoring from external backup files. Collation, StorageContainerUri and StorageContainerSasToken must be specified. Recovery: Creates a database by restoring a geo-replicated backup. RecoverableDatabaseId must be specified as the recoverable database resource ID to restore. Possible values include: 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery', 'RestoreLongTermRetentionBackup'.
*
* @return the createMode value
*/
@@ -231,7 +238,7 @@ public ManagedDatabaseCreateMode createMode() {
}
/**
- * Set managed database create mode. PointInTimeRestore: Create a database by restoring a point in time backup of an existing database. SourceDatabaseName, SourceManagedInstanceName and PointInTime must be specified. RestoreExternalBackup: Create a database by restoring from external backup files. Collation, StorageContainerUri and StorageContainerSasToken must be specified. Recovery: Creates a database by restoring a geo-replicated backup. RecoverableDatabaseId must be specified as the recoverable database resource ID to restore. Possible values include: 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery'.
+ * Set managed database create mode. PointInTimeRestore: Create a database by restoring a point in time backup of an existing database. SourceDatabaseName, SourceManagedInstanceName and PointInTime must be specified. RestoreExternalBackup: Create a database by restoring from external backup files. Collation, StorageContainerUri and StorageContainerSasToken must be specified. Recovery: Creates a database by restoring a geo-replicated backup. RecoverableDatabaseId must be specified as the recoverable database resource ID to restore. Possible values include: 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery', 'RestoreLongTermRetentionBackup'.
*
* @param createMode the createMode value to set
* @return the ManagedDatabaseInner object itself.
@@ -350,4 +357,24 @@ public ManagedDatabaseInner withRecoverableDatabaseId(String recoverableDatabase
return this;
}
+ /**
+ * Get the name of the Long Term Retention backup to be used for restore of this managed database.
+ *
+ * @return the longTermRetentionBackupResourceId value
+ */
+ public String longTermRetentionBackupResourceId() {
+ return this.longTermRetentionBackupResourceId;
+ }
+
+ /**
+ * Set the name of the Long Term Retention backup to be used for restore of this managed database.
+ *
+ * @param longTermRetentionBackupResourceId the longTermRetentionBackupResourceId value to set
+ * @return the ManagedDatabaseInner object itself.
+ */
+ public ManagedDatabaseInner withLongTermRetentionBackupResourceId(String longTermRetentionBackupResourceId) {
+ this.longTermRetentionBackupResourceId = longTermRetentionBackupResourceId;
+ return this;
+ }
+
}
diff --git a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/SensitivityLabelImpl.java b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/SensitivityLabelImpl.java
index 2479cc3ff241c..8754a664e7d3e 100644
--- a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/SensitivityLabelImpl.java
+++ b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/SensitivityLabelImpl.java
@@ -10,8 +10,8 @@
import com.microsoft.azure.management.sql.v2017_03_01_preview.SensitivityLabel;
import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl;
-import com.microsoft.azure.management.sql.v2017_03_01_preview.SensitivityLabelSource;
import rx.Observable;
+import com.microsoft.azure.management.sql.v2017_03_01_preview.SensitivityLabelRank;
class SensitivityLabelImpl extends CreatableUpdatableImpl implements SensitivityLabel, SensitivityLabel.Definition, SensitivityLabel.Update {
private final SqlManager manager;
@@ -21,7 +21,6 @@ class SensitivityLabelImpl extends CreatableUpdatableImpl updateResourceAsync() {
@Override
protected Observable getInnerAsync() {
SensitivityLabelsInner client = this.manager().inner().sensitivityLabels();
- return client.getAsync(this.resourceGroupName, this.serverName, this.databaseName, this.schemaName, this.tableName, this.columnName, this.sensitivityLabelSource);
+ return client.getAsync(this.resourceGroupName, this.serverName, this.databaseName, this.schemaName, this.tableName, this.columnName);
}
@Override
@@ -113,6 +111,11 @@ public String name() {
return this.inner().name();
}
+ @Override
+ public SensitivityLabelRank rank() {
+ return this.inner().rank();
+ }
+
@Override
public String type() {
return this.inner().type();
@@ -153,4 +156,10 @@ public SensitivityLabelImpl withLabelName(String labelName) {
return this;
}
+ @Override
+ public SensitivityLabelImpl withRank(SensitivityLabelRank rank) {
+ this.inner().withRank(rank);
+ return this;
+ }
+
}
diff --git a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/SensitivityLabelInner.java b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/SensitivityLabelInner.java
index 521015f7fb240..9554dd9f0ea20 100644
--- a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/SensitivityLabelInner.java
+++ b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/SensitivityLabelInner.java
@@ -8,6 +8,7 @@
package com.microsoft.azure.management.sql.v2017_03_01_preview.implementation;
+import com.microsoft.azure.management.sql.v2017_03_01_preview.SensitivityLabelRank;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.azure.ProxyResource;
@@ -49,6 +50,12 @@ public class SensitivityLabelInner extends ProxyResource {
@JsonProperty(value = "properties.isDisabled", access = JsonProperty.Access.WRITE_ONLY)
private Boolean isDisabled;
+ /**
+ * Possible values include: 'None', 'Low', 'Medium', 'High', 'Critical'.
+ */
+ @JsonProperty(value = "properties.rank")
+ private SensitivityLabelRank rank;
+
/**
* Get the label name.
*
@@ -138,4 +145,24 @@ public Boolean isDisabled() {
return this.isDisabled;
}
+ /**
+ * Get possible values include: 'None', 'Low', 'Medium', 'High', 'Critical'.
+ *
+ * @return the rank value
+ */
+ public SensitivityLabelRank rank() {
+ return this.rank;
+ }
+
+ /**
+ * Set possible values include: 'None', 'Low', 'Medium', 'High', 'Critical'.
+ *
+ * @param rank the rank value to set
+ * @return the SensitivityLabelInner object itself.
+ */
+ public SensitivityLabelInner withRank(SensitivityLabelRank rank) {
+ this.rank = rank;
+ return this;
+ }
+
}
diff --git a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/SensitivityLabelsImpl.java b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/SensitivityLabelsImpl.java
index 54e8c11323e04..e3e500d584b2a 100644
--- a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/SensitivityLabelsImpl.java
+++ b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/SensitivityLabelsImpl.java
@@ -10,7 +10,6 @@
package com.microsoft.azure.management.sql.v2017_03_01_preview.implementation;
import com.microsoft.azure.arm.model.implementation.WrapperImpl;
-import com.microsoft.azure.management.sql.v2017_03_01_preview.SensitivityLabelSource;
import com.microsoft.azure.management.sql.v2017_03_01_preview.SensitivityLabels;
import rx.Completable;
import rx.Observable;
diff --git a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/ServerBlobAuditingPolicyImpl.java b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/ServerBlobAuditingPolicyImpl.java
index aeaef86f68f08..8ef4adc3f43bb 100644
--- a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/ServerBlobAuditingPolicyImpl.java
+++ b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/ServerBlobAuditingPolicyImpl.java
@@ -95,6 +95,11 @@ public String name() {
return this.inner().name();
}
+ @Override
+ public Integer queueDelayMs() {
+ return this.inner().queueDelayMs();
+ }
+
@Override
public Integer retentionDays() {
return this.inner().retentionDays();
@@ -156,6 +161,12 @@ public ServerBlobAuditingPolicyImpl withIsStorageSecondaryKeyInUse(Boolean isSto
return this;
}
+ @Override
+ public ServerBlobAuditingPolicyImpl withQueueDelayMs(Integer queueDelayMs) {
+ this.inner().withQueueDelayMs(queueDelayMs);
+ return this;
+ }
+
@Override
public ServerBlobAuditingPolicyImpl withRetentionDays(Integer retentionDays) {
this.inner().withRetentionDays(retentionDays);
diff --git a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/ServerBlobAuditingPolicyInner.java b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/ServerBlobAuditingPolicyInner.java
index d2e3e69e66c42..7dad40727dc60 100644
--- a/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/ServerBlobAuditingPolicyInner.java
+++ b/sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/ServerBlobAuditingPolicyInner.java
@@ -31,7 +31,7 @@ public class ServerBlobAuditingPolicyInner extends ProxyResource {
/**
* Specifies the blob storage endpoint (e.g.
* https://MyAccount.blob.core.windows.net). If state is Enabled,
- * storageEndpoint is required.
+ * storageEndpoint or isAzureMonitorTargetEnabled is required.
*/
@JsonProperty(value = "properties.storageEndpoint")
private String storageEndpoint;
@@ -163,6 +163,15 @@ public class ServerBlobAuditingPolicyInner extends ProxyResource {
@JsonProperty(value = "properties.isAzureMonitorTargetEnabled")
private Boolean isAzureMonitorTargetEnabled;
+ /**
+ * 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.
+ */
+ @JsonProperty(value = "properties.queueDelayMs")
+ private Integer queueDelayMs;
+
/**
* Get specifies the state of the policy. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. Possible values include: 'Enabled', 'Disabled'.
*
@@ -184,7 +193,7 @@ public ServerBlobAuditingPolicyInner withState(BlobAuditingPolicyState state) {
}
/**
- * Get specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint is required.
+ * Get specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required.
*
* @return the storageEndpoint value
*/
@@ -193,7 +202,7 @@ public String storageEndpoint() {
}
/**
- * Set specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint is required.
+ * Set specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required.
*
* @param storageEndpoint the storageEndpoint value to set
* @return the ServerBlobAuditingPolicyInner object itself.
@@ -425,4 +434,26 @@ public ServerBlobAuditingPolicyInner withIsAzureMonitorTargetEnabled(Boolean isA
return this;
}
+ /**
+ * Get 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 queueDelayMs value
+ */
+ public Integer queueDelayMs() {
+ return this.queueDelayMs;
+ }
+
+ /**
+ * Set 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.
+ *
+ * @param queueDelayMs the queueDelayMs value to set
+ * @return the ServerBlobAuditingPolicyInner object itself.
+ */
+ public ServerBlobAuditingPolicyInner withQueueDelayMs(Integer queueDelayMs) {
+ this.queueDelayMs = queueDelayMs;
+ return this;
+ }
+
}