Skip to content

Commit b04d631

Browse files
author
SDKAuto
committed
CodeGen from PR 11840 in Azure/azure-rest-api-specs
Merge 2382a3b1c11562eeba18480e7b8fd5490ae0129f into 915aef603e22ddc3b90871e0690514e5af89162e
1 parent 33362b5 commit b04d631

File tree

40 files changed

+1305
-91
lines changed

40 files changed

+1305
-91
lines changed

sdk/sql/mgmt-v2017_03_01_preview/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<parent>
1212
<groupId>com.microsoft.azure</groupId>
1313
<artifactId>azure-arm-parent</artifactId>
14-
<version>1.2.0</version>
15-
<relativePath>../../parents/azure-arm-parent</relativePath>
14+
<version>1.1.0</version>
15+
<relativePath>../../../pom.management.xml</relativePath>
1616
</parent>
1717
<artifactId>azure-mgmt-sql</artifactId>
1818
<version>1.0.0-beta</version>

sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/DatabaseBlobAuditingPolicy.java

Lines changed: 47 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ public interface DatabaseBlobAuditingPolicy extends HasInner<DatabaseBlobAuditin
5454
*/
5555
String name();
5656

57+
/**
58+
* @return the queueDelayMs value.
59+
*/
60+
Integer queueDelayMs();
61+
5762
/**
5863
* @return the retentionDays value.
5964
*/
@@ -213,6 +218,19 @@ interface WithIsStorageSecondaryKeyInUse {
213218
WithCreate withIsStorageSecondaryKeyInUse(Boolean isStorageSecondaryKeyInUse);
214219
}
215220

221+
/**
222+
* The stage of the databaseblobauditingpolicy definition allowing to specify QueueDelayMs.
223+
*/
224+
interface WithQueueDelayMs {
225+
/**
226+
* Specifies queueDelayMs.
227+
* @param queueDelayMs Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed.
228+
The default minimum value is 1000 (1 second). The maximum is 2,147,483,647
229+
* @return the next definition stage
230+
*/
231+
WithCreate withQueueDelayMs(Integer queueDelayMs);
232+
}
233+
216234
/**
217235
* The stage of the databaseblobauditingpolicy definition allowing to specify RetentionDays.
218236
*/
@@ -231,7 +249,12 @@ interface WithRetentionDays {
231249
interface WithStorageAccountAccessKey {
232250
/**
233251
* Specifies storageAccountAccessKey.
234-
* @param storageAccountAccessKey Specifies the identifier key of the auditing storage account. If state is Enabled and storageEndpoint is specified, storageAccountAccessKey is required
252+
* @param storageAccountAccessKey Specifies the identifier key of the auditing storage account.
253+
If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage.
254+
Prerequisites for using managed identity authentication:
255+
1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD).
256+
2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity.
257+
For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355)
235258
* @return the next definition stage
236259
*/
237260
WithCreate withStorageAccountAccessKey(String storageAccountAccessKey);
@@ -255,7 +278,7 @@ interface WithStorageAccountSubscriptionId {
255278
interface WithStorageEndpoint {
256279
/**
257280
* Specifies storageEndpoint.
258-
* @param storageEndpoint Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint is required
281+
* @param storageEndpoint Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required
259282
* @return the next definition stage
260283
*/
261284
WithCreate withStorageEndpoint(String storageEndpoint);
@@ -266,13 +289,13 @@ interface WithStorageEndpoint {
266289
* the resource to be created (via {@link WithCreate#create()}), but also allows
267290
* for any other optional settings to be specified.
268291
*/
269-
interface WithCreate extends Creatable<DatabaseBlobAuditingPolicy>, DefinitionStages.WithAuditActionsAndGroups, DefinitionStages.WithIsAzureMonitorTargetEnabled, DefinitionStages.WithIsStorageSecondaryKeyInUse, DefinitionStages.WithRetentionDays, DefinitionStages.WithStorageAccountAccessKey, DefinitionStages.WithStorageAccountSubscriptionId, DefinitionStages.WithStorageEndpoint {
292+
interface WithCreate extends Creatable<DatabaseBlobAuditingPolicy>, DefinitionStages.WithAuditActionsAndGroups, DefinitionStages.WithIsAzureMonitorTargetEnabled, DefinitionStages.WithIsStorageSecondaryKeyInUse, DefinitionStages.WithQueueDelayMs, DefinitionStages.WithRetentionDays, DefinitionStages.WithStorageAccountAccessKey, DefinitionStages.WithStorageAccountSubscriptionId, DefinitionStages.WithStorageEndpoint {
270293
}
271294
}
272295
/**
273296
* The template for a DatabaseBlobAuditingPolicy update operation, containing all the settings that can be modified.
274297
*/
275-
interface Update extends Appliable<DatabaseBlobAuditingPolicy>, UpdateStages.WithAuditActionsAndGroups, UpdateStages.WithIsAzureMonitorTargetEnabled, UpdateStages.WithIsStorageSecondaryKeyInUse, UpdateStages.WithRetentionDays, UpdateStages.WithStorageAccountAccessKey, UpdateStages.WithStorageAccountSubscriptionId, UpdateStages.WithStorageEndpoint {
298+
interface Update extends Appliable<DatabaseBlobAuditingPolicy>, UpdateStages.WithAuditActionsAndGroups, UpdateStages.WithIsAzureMonitorTargetEnabled, UpdateStages.WithIsStorageSecondaryKeyInUse, UpdateStages.WithQueueDelayMs, UpdateStages.WithRetentionDays, UpdateStages.WithStorageAccountAccessKey, UpdateStages.WithStorageAccountSubscriptionId, UpdateStages.WithStorageEndpoint {
276299
}
277300

278301
/**
@@ -366,6 +389,19 @@ interface WithIsStorageSecondaryKeyInUse {
366389
Update withIsStorageSecondaryKeyInUse(Boolean isStorageSecondaryKeyInUse);
367390
}
368391

392+
/**
393+
* The stage of the databaseblobauditingpolicy update allowing to specify QueueDelayMs.
394+
*/
395+
interface WithQueueDelayMs {
396+
/**
397+
* Specifies queueDelayMs.
398+
* @param queueDelayMs Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed.
399+
The default minimum value is 1000 (1 second). The maximum is 2,147,483,647
400+
* @return the next update stage
401+
*/
402+
Update withQueueDelayMs(Integer queueDelayMs);
403+
}
404+
369405
/**
370406
* The stage of the databaseblobauditingpolicy update allowing to specify RetentionDays.
371407
*/
@@ -384,7 +420,12 @@ interface WithRetentionDays {
384420
interface WithStorageAccountAccessKey {
385421
/**
386422
* Specifies storageAccountAccessKey.
387-
* @param storageAccountAccessKey Specifies the identifier key of the auditing storage account. If state is Enabled and storageEndpoint is specified, storageAccountAccessKey is required
423+
* @param storageAccountAccessKey Specifies the identifier key of the auditing storage account.
424+
If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage.
425+
Prerequisites for using managed identity authentication:
426+
1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD).
427+
2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity.
428+
For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355)
388429
* @return the next update stage
389430
*/
390431
Update withStorageAccountAccessKey(String storageAccountAccessKey);
@@ -408,7 +449,7 @@ interface WithStorageAccountSubscriptionId {
408449
interface WithStorageEndpoint {
409450
/**
410451
* Specifies storageEndpoint.
411-
* @param storageEndpoint Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint is required
452+
* @param storageEndpoint Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required
412453
* @return the next update stage
413454
*/
414455
Update withStorageEndpoint(String storageEndpoint);

sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/DatabasisServerSensitivityLabel.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ public interface DatabasisServerSensitivityLabel extends HasInner<SensitivityLab
5252
*/
5353
String name();
5454

55+
/**
56+
* @return the rank value.
57+
*/
58+
SensitivityLabelRank rank();
59+
5560
/**
5661
* @return the type value.
5762
*/

sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/DatabasisServerSensitivityLabelModel.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ public interface DatabasisServerSensitivityLabelModel extends HasInner<Sensitivi
5252
*/
5353
String name();
5454

55+
/**
56+
* @return the rank value.
57+
*/
58+
SensitivityLabelRank rank();
59+
5560
/**
5661
* @return the type value.
5762
*/

sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/ExtendedDatabaseBlobAuditingPolicies.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,15 @@ public interface ExtendedDatabaseBlobAuditingPolicies extends SupportsCreating<E
2828
*/
2929
Observable<ExtendedDatabaseBlobAuditingPolicy> getAsync(String resourceGroupName, String serverName, String databaseName);
3030

31+
/**
32+
* Lists extended auditing settings of a database.
33+
*
34+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
35+
* @param serverName The name of the server.
36+
* @param databaseName The name of the database.
37+
* @throws IllegalArgumentException thrown if parameters fail the validation
38+
* @return the observable for the request
39+
*/
40+
Observable<ExtendedDatabaseBlobAuditingPolicy> listByDatabaseAsync(final String resourceGroupName, final String serverName, final String databaseName);
41+
3142
}

sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/ExtendedDatabaseBlobAuditingPolicy.java

Lines changed: 47 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ public interface ExtendedDatabaseBlobAuditingPolicy extends HasInner<ExtendedDat
5454
*/
5555
String predicateExpression();
5656

57+
/**
58+
* @return the queueDelayMs value.
59+
*/
60+
Integer queueDelayMs();
61+
5762
/**
5863
* @return the retentionDays value.
5964
*/
@@ -225,6 +230,19 @@ interface WithPredicateExpression {
225230
WithCreate withPredicateExpression(String predicateExpression);
226231
}
227232

233+
/**
234+
* The stage of the extendeddatabaseblobauditingpolicy definition allowing to specify QueueDelayMs.
235+
*/
236+
interface WithQueueDelayMs {
237+
/**
238+
* Specifies queueDelayMs.
239+
* @param queueDelayMs Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed.
240+
The default minimum value is 1000 (1 second). The maximum is 2,147,483,647
241+
* @return the next definition stage
242+
*/
243+
WithCreate withQueueDelayMs(Integer queueDelayMs);
244+
}
245+
228246
/**
229247
* The stage of the extendeddatabaseblobauditingpolicy definition allowing to specify RetentionDays.
230248
*/
@@ -243,7 +261,12 @@ interface WithRetentionDays {
243261
interface WithStorageAccountAccessKey {
244262
/**
245263
* Specifies storageAccountAccessKey.
246-
* @param storageAccountAccessKey Specifies the identifier key of the auditing storage account. If state is Enabled and storageEndpoint is specified, storageAccountAccessKey is required
264+
* @param storageAccountAccessKey Specifies the identifier key of the auditing storage account.
265+
If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage.
266+
Prerequisites for using managed identity authentication:
267+
1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD).
268+
2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity.
269+
For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355)
247270
* @return the next definition stage
248271
*/
249272
WithCreate withStorageAccountAccessKey(String storageAccountAccessKey);
@@ -267,7 +290,7 @@ interface WithStorageAccountSubscriptionId {
267290
interface WithStorageEndpoint {
268291
/**
269292
* Specifies storageEndpoint.
270-
* @param storageEndpoint Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint is required
293+
* @param storageEndpoint Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required
271294
* @return the next definition stage
272295
*/
273296
WithCreate withStorageEndpoint(String storageEndpoint);
@@ -278,13 +301,13 @@ interface WithStorageEndpoint {
278301
* the resource to be created (via {@link WithCreate#create()}), but also allows
279302
* for any other optional settings to be specified.
280303
*/
281-
interface WithCreate extends Creatable<ExtendedDatabaseBlobAuditingPolicy>, DefinitionStages.WithAuditActionsAndGroups, DefinitionStages.WithIsAzureMonitorTargetEnabled, DefinitionStages.WithIsStorageSecondaryKeyInUse, DefinitionStages.WithPredicateExpression, DefinitionStages.WithRetentionDays, DefinitionStages.WithStorageAccountAccessKey, DefinitionStages.WithStorageAccountSubscriptionId, DefinitionStages.WithStorageEndpoint {
304+
interface WithCreate extends Creatable<ExtendedDatabaseBlobAuditingPolicy>, DefinitionStages.WithAuditActionsAndGroups, DefinitionStages.WithIsAzureMonitorTargetEnabled, DefinitionStages.WithIsStorageSecondaryKeyInUse, DefinitionStages.WithPredicateExpression, DefinitionStages.WithQueueDelayMs, DefinitionStages.WithRetentionDays, DefinitionStages.WithStorageAccountAccessKey, DefinitionStages.WithStorageAccountSubscriptionId, DefinitionStages.WithStorageEndpoint {
282305
}
283306
}
284307
/**
285308
* The template for a ExtendedDatabaseBlobAuditingPolicy update operation, containing all the settings that can be modified.
286309
*/
287-
interface Update extends Appliable<ExtendedDatabaseBlobAuditingPolicy>, UpdateStages.WithAuditActionsAndGroups, UpdateStages.WithIsAzureMonitorTargetEnabled, UpdateStages.WithIsStorageSecondaryKeyInUse, UpdateStages.WithPredicateExpression, UpdateStages.WithRetentionDays, UpdateStages.WithStorageAccountAccessKey, UpdateStages.WithStorageAccountSubscriptionId, UpdateStages.WithStorageEndpoint {
310+
interface Update extends Appliable<ExtendedDatabaseBlobAuditingPolicy>, UpdateStages.WithAuditActionsAndGroups, UpdateStages.WithIsAzureMonitorTargetEnabled, UpdateStages.WithIsStorageSecondaryKeyInUse, UpdateStages.WithPredicateExpression, UpdateStages.WithQueueDelayMs, UpdateStages.WithRetentionDays, UpdateStages.WithStorageAccountAccessKey, UpdateStages.WithStorageAccountSubscriptionId, UpdateStages.WithStorageEndpoint {
288311
}
289312

290313
/**
@@ -390,6 +413,19 @@ interface WithPredicateExpression {
390413
Update withPredicateExpression(String predicateExpression);
391414
}
392415

416+
/**
417+
* The stage of the extendeddatabaseblobauditingpolicy update allowing to specify QueueDelayMs.
418+
*/
419+
interface WithQueueDelayMs {
420+
/**
421+
* Specifies queueDelayMs.
422+
* @param queueDelayMs Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed.
423+
The default minimum value is 1000 (1 second). The maximum is 2,147,483,647
424+
* @return the next update stage
425+
*/
426+
Update withQueueDelayMs(Integer queueDelayMs);
427+
}
428+
393429
/**
394430
* The stage of the extendeddatabaseblobauditingpolicy update allowing to specify RetentionDays.
395431
*/
@@ -408,7 +444,12 @@ interface WithRetentionDays {
408444
interface WithStorageAccountAccessKey {
409445
/**
410446
* Specifies storageAccountAccessKey.
411-
* @param storageAccountAccessKey Specifies the identifier key of the auditing storage account. If state is Enabled and storageEndpoint is specified, storageAccountAccessKey is required
447+
* @param storageAccountAccessKey Specifies the identifier key of the auditing storage account.
448+
If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage.
449+
Prerequisites for using managed identity authentication:
450+
1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD).
451+
2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity.
452+
For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355)
412453
* @return the next update stage
413454
*/
414455
Update withStorageAccountAccessKey(String storageAccountAccessKey);
@@ -432,7 +473,7 @@ interface WithStorageAccountSubscriptionId {
432473
interface WithStorageEndpoint {
433474
/**
434475
* Specifies storageEndpoint.
435-
* @param storageEndpoint Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint is required
476+
* @param storageEndpoint Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required
436477
* @return the next update stage
437478
*/
438479
Update withStorageEndpoint(String storageEndpoint);

sdk/sql/mgmt-v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/ExtendedServerBlobAuditingPolicies.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,14 @@ public interface ExtendedServerBlobAuditingPolicies extends SupportsCreating<Ext
2727
*/
2828
Observable<ExtendedServerBlobAuditingPolicy> getAsync(String resourceGroupName, String serverName);
2929

30+
/**
31+
* Lists extended auditing settings of a server.
32+
*
33+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
34+
* @param serverName The name of the server.
35+
* @throws IllegalArgumentException thrown if parameters fail the validation
36+
* @return the observable for the request
37+
*/
38+
Observable<ExtendedServerBlobAuditingPolicy> listByServerAsync(final String resourceGroupName, final String serverName);
39+
3040
}

0 commit comments

Comments
 (0)