Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. */
package com.microsoft.azure.management.sql; import com.microsoft.azure.management.apigeneration.Beta; import com.microsoft.azure.management.apigeneration.Fluent; import com.microsoft.azure.management.apigeneration.Method; import com.microsoft.azure.management.resources.fluentcore.model.Creatable; import rx.Observable;
A representation of the Azure SQL Server Security Alert Policy operations.
/** * A representation of the Azure SQL Server Security Alert Policy operations. */
@Fluent @Beta(Beta.SinceVersion.V1_15_0) public interface SqlServerSecurityAlertPolicyOperations {
Begins a definition for a new SQL Server Security Alert Policy resource.
Returns:the first stage of the resource definition
/** * Begins a definition for a new SQL Server Security Alert Policy resource. * * @return the first stage of the resource definition */
@Method SqlServerSecurityAlertPolicyOperations.DefinitionStages.WithSqlServer define();
Gets the information about a SQL Server Security Alert Policy resource from Azure SQL server, identifying it by its resource group.
Params:
  • resourceGroupName – the name of resource group
  • sqlServerName – the name of SQL server parent resource
Returns:an immutable representation of the resource
/** * Gets the information about a SQL Server Security Alert Policy resource from Azure SQL server, identifying it by * its resource group. * * @param resourceGroupName the name of resource group * @param sqlServerName the name of SQL server parent resource * @return an immutable representation of the resource */
SqlServerSecurityAlertPolicy getBySqlServer(String resourceGroupName, String sqlServerName);
Asynchronously gets the information about a SQL Server Security Alert Policy resource from Azure SQL server, identifying it by its resource group.
Params:
  • resourceGroupName – the name of resource group
  • sqlServerName – the name of SQL server parent resource
Returns:a representation of the deferred computation of this call returning the found resource
/** * Asynchronously gets the information about a SQL Server Security Alert Policy resource from Azure SQL server, * identifying it by its resource group. * * @param resourceGroupName the name of resource group * @param sqlServerName the name of SQL server parent resource * @return a representation of the deferred computation of this call returning the found resource */
Observable<SqlServerSecurityAlertPolicy> getBySqlServerAsync(String resourceGroupName, String sqlServerName);
Gets the information about a SQL Server Security Alert Policy resource from Azure SQL server, identifying it by its parent SQL Server.
Params:
  • sqlServer – the SQL server parent resource
Returns:an immutable representation of the resource
/** * Gets the information about a SQL Server Security Alert Policy resource from Azure SQL server, identifying it by * its parent SQL Server. * * @param sqlServer the SQL server parent resource * @return an immutable representation of the resource */
SqlServerSecurityAlertPolicy getBySqlServer(SqlServer sqlServer);
Asynchronously gets the information about a SQL Server Security Alert Policy resource from Azure SQL server, identifying it by its parent SQL server.
Params:
  • sqlServer – the SQL server parent resource
Returns:a representation of the deferred computation of this call returning the found resource
/** * Asynchronously gets the information about a SQL Server Security Alert Policy resource from Azure SQL server, * identifying it by its parent SQL server. * * @param sqlServer the SQL server parent resource * @return a representation of the deferred computation of this call returning the found resource */
@Beta(Beta.SinceVersion.V1_8_0) Observable<SqlServerSecurityAlertPolicy> getBySqlServerAsync(SqlServer sqlServer);
Gets the information about a SQL Server Security Alert Policy resource from Azure SQL server using the resource ID.
Params:
  • id – the ID of the resource.
Returns:an immutable representation of the resource
/** * Gets the information about a SQL Server Security Alert Policy resource from Azure SQL server using the resource ID. * * @param id the ID of the resource. * @return an immutable representation of the resource */
SqlServerSecurityAlertPolicy getById(String id);
Asynchronously gets the information about a SQL Server Security Alert Policy resource from Azure SQL server using the resource ID.
Params:
  • id – the ID of the resource.
Returns:a representation of the deferred computation of this call
/** * Asynchronously gets the information about a SQL Server Security Alert Policy resource from Azure SQL server using * the resource ID. * * @param id the ID of the resource. * @return a representation of the deferred computation of this call */
Observable<SqlServerSecurityAlertPolicy> getByIdAsync(String id);
Container interface for all the definitions that need to be implemented.
/** * Container interface for all the definitions that need to be implemented. */
@Beta(Beta.SinceVersion.V1_15_0) interface SqlServerSecurityAlertPolicyOperationsDefinition extends SqlServerSecurityAlertPolicyOperations.DefinitionStages.WithSqlServer, SqlServerSecurityAlertPolicyOperations.DefinitionStages.WithState, SqlServerSecurityAlertPolicyOperations.DefinitionStages.WithEmailAccountAdmins, SqlServerSecurityAlertPolicyOperations.DefinitionStages.WithStorageAccount, SqlServerSecurityAlertPolicyOperations.DefinitionStages.WithEmailAddresses, SqlServerSecurityAlertPolicyOperations.DefinitionStages.WithDisabledAlerts, SqlServerSecurityAlertPolicyOperations.DefinitionStages.WithRetentionDays, SqlServerSecurityAlertPolicyOperations.DefinitionStages.WithCreate { }
Grouping of all the SQL Server Security Alert Policy definition stages.
/** * Grouping of all the SQL Server Security Alert Policy definition stages. */
@Beta(Beta.SinceVersion.V1_15_0) interface DefinitionStages {
The first stage of the SQL Server Security Alert Policy definition.
/** * The first stage of the SQL Server Security Alert Policy definition. */
@Beta(Beta.SinceVersion.V1_15_0) interface WithSqlServer {
Sets the parent SQL server name and resource group it belongs to.
Params:
  • resourceGroupName – the name of the resource group the parent SQL server
  • sqlServerName – the parent SQL server name
Returns:The next stage of the definition.
/** * Sets the parent SQL server name and resource group it belongs to. * * @param resourceGroupName the name of the resource group the parent SQL server * @param sqlServerName the parent SQL server name * @return The next stage of the definition. */
SqlServerSecurityAlertPolicyOperations.DefinitionStages.WithState withExistingSqlServer(String resourceGroupName, String sqlServerName);
Sets the parent SQL server for the new Server Security Alert Policy.
Params:
  • sqlServerId – the parent SQL server ID
Returns:The next stage of the definition.
/** * Sets the parent SQL server for the new Server Security Alert Policy. * * @param sqlServerId the parent SQL server ID * @return The next stage of the definition. */
SqlServerSecurityAlertPolicyOperations.DefinitionStages.WithState withExistingSqlServerId(String sqlServerId);
Sets the parent SQL server for the new Server Security Alert Policy.
Params:
  • sqlServer – the parent SQL server
Returns:The next stage of the definition.
/** * Sets the parent SQL server for the new Server Security Alert Policy. * * @param sqlServer the parent SQL server * @return The next stage of the definition. */
SqlServerSecurityAlertPolicyOperations.DefinitionStages.WithState withExistingSqlServer(SqlServer sqlServer); }
The SQL Server Security Alert Policy definition to set the state.
/** * The SQL Server Security Alert Policy definition to set the state. */
@Beta(Beta.SinceVersion.V1_15_0) interface WithState {
Specifies the state of the policy, whether it is enabled or disabled.
Params:
  • state – the state of the policy, whether it is enabled or disabled
Returns:The next stage of the definition.
/** * Specifies the state of the policy, whether it is enabled or disabled. * * @param state the state of the policy, whether it is enabled or disabled * @return The next stage of the definition. */
SqlServerSecurityAlertPolicyOperations.DefinitionStages.WithEmailAccountAdmins withState(SecurityAlertPolicyState state); }
The SQL Server Security Alert Policy definition to set if an alert will be sent to the account administrators.
/** * The SQL Server Security Alert Policy definition to set if an alert will be sent to the account administrators. */
@Beta(Beta.SinceVersion.V1_15_0) interface WithEmailAccountAdmins {
Specifies that an alert will be sent to the account administrators.
Returns:The next stage of the definition.
/** * Specifies that an alert will be sent to the account administrators. * * @return The next stage of the definition. */
SqlServerSecurityAlertPolicyOperations.DefinitionStages.WithStorageAccount withEmailAccountAdmins();
Specifies that an alert will not be sent to the account administrators.
Returns:The next stage of the definition.
/** * Specifies that an alert will not be sent to the account administrators. * * @return The next stage of the definition. */
SqlServerSecurityAlertPolicyOperations.DefinitionStages.WithStorageAccount withoutEmailAccountAdmins(); }
The SQL Server Security Alert Policy definition to specify the storage account blob endpoint and access key.
/** * The SQL Server Security Alert Policy definition to specify the storage account blob endpoint and access key. */
@Beta(Beta.SinceVersion.V1_15_0) interface WithStorageAccount {
Specifies the storage account blob endpoint and access key.
Params:
  • storageEndpointUri – the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net); this blob storage will hold all Threat Detection audit logs
  • storageAccessKey – the identifier key of the Threat Detection audit storage account
Returns:The next stage of the definition.
/** * Specifies the storage account blob endpoint and access key. * * @param storageEndpointUri the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net); this * blob storage will hold all Threat Detection audit logs * @param storageAccessKey the identifier key of the Threat Detection audit storage account * @return The next stage of the definition. */
SqlServerSecurityAlertPolicyOperations.DefinitionStages.WithCreate withStorageEndpoint(String storageEndpointUri, String storageAccessKey); }
The SQL Server Security Alert Policy definition to set an array of e-mail addresses to which the alert is sent.
/** * The SQL Server Security Alert Policy definition to set an array of e-mail addresses to which the alert is sent. */
@Beta(Beta.SinceVersion.V1_15_0) interface WithEmailAddresses {
Specifies an array of e-mail addresses to which the alert is sent.
Params:
  • emailAddresses – an array of e-mail addresses to which the alert is sent to
Returns:The next stage of the definition.
/** * Specifies an array of e-mail addresses to which the alert is sent. * * @param emailAddresses an array of e-mail addresses to which the alert is sent to * @return The next stage of the definition. */
SqlServerSecurityAlertPolicyOperations.DefinitionStages.WithCreate withEmailAddresses(String... emailAddresses); }
The SQL Server Security Alert Policy definition to set an array of alerts that are disabled.
/** * The SQL Server Security Alert Policy definition to set an array of alerts that are disabled. */
@Beta(Beta.SinceVersion.V1_15_0) interface WithDisabledAlerts {
Specifies an array of alerts that are disabled.
Params:
  • disabledAlerts – an array of alerts that are disabled
Returns:The next stage of the definition.
/** * Specifies an array of alerts that are disabled. * * @param disabledAlerts an array of alerts that are disabled * @return The next stage of the definition. */
SqlServerSecurityAlertPolicyOperations.DefinitionStages.WithCreate withDisabledAlerts(String... disabledAlerts); }
The SQL Server Security Alert Policy definition to set the number of days to keep in the Threat Detection audit logs.
/** * The SQL Server Security Alert Policy definition to set the number of days to keep in the Threat Detection audit logs. */
@Beta(Beta.SinceVersion.V1_15_0) interface WithRetentionDays {
Specifies the number of days to keep in the Threat Detection audit logs.
Params:
  • days – the number of days to keep in the Threat Detection audit logs
Returns:The next stage of the definition.
/** * Specifies the number of days to keep in the Threat Detection audit logs. * * @param days the number of days to keep in the Threat Detection audit logs * @return The next stage of the definition. */
SqlServerSecurityAlertPolicyOperations.DefinitionStages.WithCreate withRetentionDays(int days); }
The final stage of the SQL Server Security Alert Policy definition.
/** * The final stage of the SQL Server Security Alert Policy definition. */
interface WithCreate extends SqlServerSecurityAlertPolicyOperations.DefinitionStages.WithEmailAddresses, SqlServerSecurityAlertPolicyOperations.DefinitionStages.WithDisabledAlerts, SqlServerSecurityAlertPolicyOperations.DefinitionStages.WithRetentionDays, Creatable<SqlServerSecurityAlertPolicy> { } }
Grouping of the Azure SQL Server Security Alert Policy common actions.
/** * Grouping of the Azure SQL Server Security Alert Policy common actions. */
@Beta(Beta.SinceVersion.V1_15_0) interface SqlServerSecurityAlertPolicyActionsDefinition {
Begins the definition of a new SQL Server Security Alert Policy to be added to this server.
Returns:the first stage of the new SQL Server Security Alert Policy definition
/** * Begins the definition of a new SQL Server Security Alert Policy to be added to this server. * * @return the first stage of the new SQL Server Security Alert Policy definition */
@Method SqlServerSecurityAlertPolicyOperations.DefinitionStages.WithState define();
Gets the information about a SQL Server Security Alert Policy resource from Azure SQL server.
Returns:an immutable representation of the resource
/** * Gets the information about a SQL Server Security Alert Policy resource from Azure SQL server. * * @return an immutable representation of the resource */
SqlServerSecurityAlertPolicy get();
Asynchronously gets the information about a SQL Server Security Alert Policy resource from Azure SQL server.
Returns:a representation of the deferred computation of this call returning the found resource
/** * Asynchronously gets the information about a SQL Server Security Alert Policy resource from Azure SQL server. * * @return a representation of the deferred computation of this call returning the found resource */
Observable<SqlServerSecurityAlertPolicy> getAsync(); } }