Skip to content

Commit

Permalink
Sql: update 2017 03 01 preview (#6276)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenTanyi authored Nov 12, 2019
1 parent efe1dfc commit a044649
Show file tree
Hide file tree
Showing 106 changed files with 12,244 additions and 374 deletions.
2 changes: 2 additions & 0 deletions sql/resource-manager/v2017_03_01_preview/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@
<artifactId>azure-arm-client-runtime</artifactId>
<type>test-jar</type>
<scope>test</scope>
<!--Below version for test jar needs to be removed, this will be done as part of v1-runtime 1.6.7-->
<version>1.6.5</version>
</dependency>
</dependencies>
<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,15 @@ public interface DatabaseBlobAuditingPolicies extends SupportsCreating<DatabaseB
*/
Observable<DatabaseBlobAuditingPolicy> getAsync(String resourceGroupName, String serverName, String databaseName);

/**
* Lists auditing settings of a database.
*
* @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.
* @param serverName The name of the server.
* @param databaseName The name of the database.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<DatabaseBlobAuditingPolicy> listByDatabaseAsync(final String resourceGroupName, final String serverName, final String databaseName);

}
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ 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.
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:
Expand Down Expand Up @@ -342,7 +342,7 @@ 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.
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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ interface WithStorageContainerPath {
interface WithStorageContainerSasKey {
/**
* Specifies storageContainerSasKey.
* @param storageContainerSasKey A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required
* @param storageContainerSasKey A shared access signature (SAS Key) that has read and write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required
* @return the next definition stage
*/
WithCreate withStorageContainerSasKey(String storageContainerSasKey);
Expand Down Expand Up @@ -195,7 +195,7 @@ interface WithStorageContainerPath {
interface WithStorageContainerSasKey {
/**
* Specifies storageContainerSasKey.
* @param storageContainerSasKey A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required
* @param storageContainerSasKey A shared access signature (SAS Key) that has read and write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required
* @return the next update stage
*/
Update withStorageContainerSasKey(String storageContainerSasKey);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
import com.microsoft.azure.management.sql.v2017_03_01_preview.implementation.SqlManager;

/**
* Type representing ManagedBackupShortTermRetentionPolicy.
* Type representing DatabasisManagedInstanceManagedBackupShortTermRetentionPolicy.
*/
public interface ManagedBackupShortTermRetentionPolicy extends HasInner<ManagedBackupShortTermRetentionPolicyInner>, Indexable, Refreshable<ManagedBackupShortTermRetentionPolicy>, Updatable<ManagedBackupShortTermRetentionPolicy.Update>, HasManager<SqlManager> {
public interface DatabasisManagedInstanceManagedBackupShortTermRetentionPolicy extends HasInner<ManagedBackupShortTermRetentionPolicyInner>, Indexable, Refreshable<DatabasisManagedInstanceManagedBackupShortTermRetentionPolicy>, Updatable<DatabasisManagedInstanceManagedBackupShortTermRetentionPolicy.Update>, HasManager<SqlManager> {
/**
* @return the id value.
*/
Expand All @@ -43,23 +43,23 @@ public interface ManagedBackupShortTermRetentionPolicy extends HasInner<ManagedB
String type();

/**
* The entirety of the ManagedBackupShortTermRetentionPolicy definition.
* The entirety of the DatabasisManagedInstanceManagedBackupShortTermRetentionPolicy definition.
*/
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithDatabasis, DefinitionStages.WithRetentionDays, DefinitionStages.WithCreate {
}

/**
* Grouping of ManagedBackupShortTermRetentionPolicy definition stages.
* Grouping of DatabasisManagedInstanceManagedBackupShortTermRetentionPolicy definition stages.
*/
interface DefinitionStages {
/**
* The first stage of a ManagedBackupShortTermRetentionPolicy definition.
* The first stage of a DatabasisManagedInstanceManagedBackupShortTermRetentionPolicy definition.
*/
interface Blank extends WithDatabasis {
}

/**
* The stage of the managedbackupshorttermretentionpolicy definition allowing to specify Databasis.
* The stage of the databasismanagedinstancemanagedbackupshorttermretentionpolicy definition allowing to specify Databasis.
*/
interface WithDatabasis {
/**
Expand All @@ -73,7 +73,7 @@ interface WithDatabasis {
}

/**
* The stage of the managedbackupshorttermretentionpolicy definition allowing to specify RetentionDays.
* The stage of the databasismanagedinstancemanagedbackupshorttermretentionpolicy definition allowing to specify RetentionDays.
*/
interface WithRetentionDays {
/**
Expand All @@ -89,21 +89,21 @@ interface WithRetentionDays {
* the resource to be created (via {@link WithCreate#create()}), but also allows
* for any other optional settings to be specified.
*/
interface WithCreate extends Creatable<ManagedBackupShortTermRetentionPolicy> {
interface WithCreate extends Creatable<DatabasisManagedInstanceManagedBackupShortTermRetentionPolicy> {
}
}
/**
* The template for a ManagedBackupShortTermRetentionPolicy update operation, containing all the settings that can be modified.
* The template for a DatabasisManagedInstanceManagedBackupShortTermRetentionPolicy update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<ManagedBackupShortTermRetentionPolicy>, UpdateStages.WithRetentionDays {
interface Update extends Appliable<DatabasisManagedInstanceManagedBackupShortTermRetentionPolicy>, UpdateStages.WithRetentionDays {
}

/**
* Grouping of ManagedBackupShortTermRetentionPolicy update stages.
* Grouping of DatabasisManagedInstanceManagedBackupShortTermRetentionPolicy update stages.
*/
interface UpdateStages {
/**
* The stage of the managedbackupshorttermretentionpolicy update allowing to specify RetentionDays.
* The stage of the databasismanagedinstancemanagedbackupshorttermretentionpolicy update allowing to specify RetentionDays.
*/
interface WithRetentionDays {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
/**
* 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.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.management.sql.v2017_03_01_preview.implementation.SensitivityLabelInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.sql.v2017_03_01_preview.implementation.SqlManager;

/**
* Type representing DatabasisServerSensitivityLabel.
*/
public interface DatabasisServerSensitivityLabel extends HasInner<SensitivityLabelInner>, HasManager<SqlManager> {
/**
* @return the id value.
*/
String id();

/**
* @return the informationType value.
*/
String informationType();

/**
* @return the informationTypeId value.
*/
String informationTypeId();

/**
* @return the isDisabled value.
*/
Boolean isDisabled();

/**
* @return the labelId value.
*/
String labelId();

/**
* @return the labelName value.
*/
String labelName();

/**
* @return the name value.
*/
String name();

/**
* @return the type value.
*/
String type();

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
/**
* 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.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.management.sql.v2017_03_01_preview.implementation.SensitivityLabelInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.sql.v2017_03_01_preview.implementation.SqlManager;

/**
* Type representing DatabasisServerSensitivityLabelModel.
*/
public interface DatabasisServerSensitivityLabelModel extends HasInner<SensitivityLabelInner>, HasManager<SqlManager> {
/**
* @return the id value.
*/
String id();

/**
* @return the informationType value.
*/
String informationType();

/**
* @return the informationTypeId value.
*/
String informationTypeId();

/**
* @return the isDisabled value.
*/
Boolean isDisabled();

/**
* @return the labelId value.
*/
String labelId();

/**
* @return the labelName value.
*/
String labelName();

/**
* @return the name value.
*/
String name();

/**
* @return the type value.
*/
String type();

}
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ 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.
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:
Expand Down Expand Up @@ -354,7 +354,7 @@ 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.
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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ 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.
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:
Expand Down Expand Up @@ -353,7 +353,7 @@ 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.
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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class JobSchedule {
private Boolean enabled;

/**
* Value of the schedule's recurring interval, if the scheduletype is
* Value of the schedule's recurring interval, if the schedule type is
* recurring. ISO8601 duration format.
*/
@JsonProperty(value = "interval")
Expand Down Expand Up @@ -127,7 +127,7 @@ public JobSchedule withEnabled(Boolean enabled) {
}

/**
* Get value of the schedule's recurring interval, if the scheduletype is recurring. ISO8601 duration format.
* Get value of the schedule's recurring interval, if the schedule type is recurring. ISO8601 duration format.
*
* @return the interval value
*/
Expand All @@ -136,7 +136,7 @@ public String interval() {
}

/**
* Set value of the schedule's recurring interval, if the scheduletype is recurring. ISO8601 duration format.
* Set value of the schedule's recurring interval, if the schedule type is recurring. ISO8601 duration format.
*
* @param interval the interval value to set
* @return the JobSchedule object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
package com.microsoft.azure.management.sql.v2017_03_01_preview;

import rx.Observable;
import com.microsoft.azure.management.sql.v2017_03_01_preview.ExecutionJobJobAgentServerJobExecution;

import java.util.UUID;

Expand Down
Loading

0 comments on commit a044649

Please sign in to comment.