Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Commit

Permalink
Merge pull request #4038 from Azure/restapi_auto_sql/resource-manager
Browse files Browse the repository at this point in the history
[AutoPR] sql/resource-manager
  • Loading branch information
Dan Schulte authored Nov 6, 2018
2 parents c7bb59c + 53d3a6f commit c465d3a
Show file tree
Hide file tree
Showing 11 changed files with 191 additions and 153 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ class DatabaseBlobAuditingPolicy extends models['ProxyResource'] {
* REFERENCES
*
* The general form for defining an action to be audited is:
* <action> ON <object> BY <principal>
* {action} ON {object} BY {principal}
*
* Note that <object> in the above format can refer to an object like a
* table, view, or stored procedure, or an entire database or schema. For the
* latter cases, the forms DATABASE::<db_name> and SCHEMA::<schema_name> are
* latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are
* used, respectively.
*
* For example:
Expand All @@ -117,10 +117,11 @@ class DatabaseBlobAuditingPolicy extends models['ProxyResource'] {
* '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>.
* {databaseName}.
*
* Diagnostic Settings URI format:
* PUT
* https://management.azure.com/subscriptions/<subscriptionId>/resourceGroups/<resourceGroup>/providers/Microsoft.Sql/servers/<serverName>/databases/<databaseName>/providers/microsoft.insights/diagnosticSettings/<settingsName>?api-version=2017-05-01-preview
* https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview
*
* For more information, see [Diagnostic Settings REST
* API](https://go.microsoft.com/fwlink/?linkid=2033207)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ class ExtendedDatabaseBlobAuditingPolicy extends models['ProxyResource'] {
* REFERENCES
*
* The general form for defining an action to be audited is:
* <action> ON <object> BY <principal>
* {action} ON {object} BY {principal}
*
* Note that <object> in the above format can refer to an object like a
* table, view, or stored procedure, or an entire database or schema. For the
* latter cases, the forms DATABASE::<db_name> and SCHEMA::<schema_name> are
* latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are
* used, respectively.
*
* For example:
Expand All @@ -118,10 +118,11 @@ class ExtendedDatabaseBlobAuditingPolicy extends models['ProxyResource'] {
* '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>.
* {databaseName}.
*
* Diagnostic Settings URI format:
* PUT
* https://management.azure.com/subscriptions/<subscriptionId>/resourceGroups/<resourceGroup>/providers/Microsoft.Sql/servers/<serverName>/databases/<databaseName>/providers/microsoft.insights/diagnosticSettings/<settingsName>?api-version=2017-05-01-preview
* https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview
*
* For more information, see [Diagnostic Settings REST
* API](https://go.microsoft.com/fwlink/?linkid=2033207)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ class ExtendedServerBlobAuditingPolicy extends models['ProxyResource'] {
* REFERENCES
*
* The general form for defining an action to be audited is:
* <action> ON <object> BY <principal>
* {action} ON {object} BY {principal}
*
* Note that <object> in the above format can refer to an object like a
* table, view, or stored procedure, or an entire database or schema. For the
* latter cases, the forms DATABASE::<db_name> and SCHEMA::<schema_name> are
* latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are
* used, respectively.
*
* For example:
Expand All @@ -118,10 +118,11 @@ class ExtendedServerBlobAuditingPolicy extends models['ProxyResource'] {
* '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>.
* {databaseName}.
*
* Diagnostic Settings URI format:
* PUT
* https://management.azure.com/subscriptions/<subscriptionId>/resourceGroups/<resourceGroup>/providers/Microsoft.Sql/servers/<serverName>/databases/<databaseName>/providers/microsoft.insights/diagnosticSettings/<settingsName>?api-version=2017-05-01-preview
* https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview
*
* For more information, see [Diagnostic Settings REST
* API](https://go.microsoft.com/fwlink/?linkid=2033207)
Expand Down
36 changes: 20 additions & 16 deletions lib/services/sqlManagement2/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1946,11 +1946,11 @@ export interface VirtualNetworkRule extends ProxyResource {
* REFERENCES
*
* The general form for defining an action to be audited is:
* <action> ON <object> BY <principal>
* {action} ON {object} BY {principal}
*
* Note that <object> in the above format can refer to an object like a table,
* view, or stored procedure, or an entire database or schema. For the latter
* cases, the forms DATABASE::<db_name> and SCHEMA::<schema_name> are used,
* cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used,
* respectively.
*
* For example:
Expand All @@ -1973,10 +1973,11 @@ export interface VirtualNetworkRule extends ProxyResource {
* '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>.
* {databaseName}.
*
* Diagnostic Settings URI format:
* PUT
* https://management.azure.com/subscriptions/<subscriptionId>/resourceGroups/<resourceGroup>/providers/Microsoft.Sql/servers/<serverName>/databases/<databaseName>/providers/microsoft.insights/diagnosticSettings/<settingsName>?api-version=2017-05-01-preview
* https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview
*
* For more information, see [Diagnostic Settings REST
* API](https://go.microsoft.com/fwlink/?linkid=2033207)
Expand Down Expand Up @@ -2072,11 +2073,11 @@ export interface ExtendedDatabaseBlobAuditingPolicy extends ProxyResource {
* REFERENCES
*
* The general form for defining an action to be audited is:
* <action> ON <object> BY <principal>
* {action} ON {object} BY {principal}
*
* Note that <object> in the above format can refer to an object like a table,
* view, or stored procedure, or an entire database or schema. For the latter
* cases, the forms DATABASE::<db_name> and SCHEMA::<schema_name> are used,
* cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used,
* respectively.
*
* For example:
Expand All @@ -2099,10 +2100,11 @@ export interface ExtendedDatabaseBlobAuditingPolicy extends ProxyResource {
* '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>.
* {databaseName}.
*
* Diagnostic Settings URI format:
* PUT
* https://management.azure.com/subscriptions/<subscriptionId>/resourceGroups/<resourceGroup>/providers/Microsoft.Sql/servers/<serverName>/databases/<databaseName>/providers/microsoft.insights/diagnosticSettings/<settingsName>?api-version=2017-05-01-preview
* https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview
*
* For more information, see [Diagnostic Settings REST
* API](https://go.microsoft.com/fwlink/?linkid=2033207)
Expand Down Expand Up @@ -2196,11 +2198,11 @@ export interface ExtendedServerBlobAuditingPolicy extends ProxyResource {
* REFERENCES
*
* The general form for defining an action to be audited is:
* <action> ON <object> BY <principal>
* {action} ON {object} BY {principal}
*
* Note that <object> in the above format can refer to an object like a table,
* view, or stored procedure, or an entire database or schema. For the latter
* cases, the forms DATABASE::<db_name> and SCHEMA::<schema_name> are used,
* cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used,
* respectively.
*
* For example:
Expand All @@ -2223,10 +2225,11 @@ export interface ExtendedServerBlobAuditingPolicy extends ProxyResource {
* '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>.
* {databaseName}.
*
* Diagnostic Settings URI format:
* PUT
* https://management.azure.com/subscriptions/<subscriptionId>/resourceGroups/<resourceGroup>/providers/Microsoft.Sql/servers/<serverName>/databases/<databaseName>/providers/microsoft.insights/diagnosticSettings/<settingsName>?api-version=2017-05-01-preview
* https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview
*
* For more information, see [Diagnostic Settings REST
* API](https://go.microsoft.com/fwlink/?linkid=2033207)
Expand Down Expand Up @@ -2320,11 +2323,11 @@ export interface ServerBlobAuditingPolicy extends ProxyResource {
* REFERENCES
*
* The general form for defining an action to be audited is:
* <action> ON <object> BY <principal>
* {action} ON {object} BY {principal}
*
* Note that <object> in the above format can refer to an object like a table,
* view, or stored procedure, or an entire database or schema. For the latter
* cases, the forms DATABASE::<db_name> and SCHEMA::<schema_name> are used,
* cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used,
* respectively.
*
* For example:
Expand All @@ -2347,10 +2350,11 @@ export interface ServerBlobAuditingPolicy extends ProxyResource {
* '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>.
* {databaseName}.
*
* Diagnostic Settings URI format:
* PUT
* https://management.azure.com/subscriptions/<subscriptionId>/resourceGroups/<resourceGroup>/providers/Microsoft.Sql/servers/<serverName>/databases/<databaseName>/providers/microsoft.insights/diagnosticSettings/<settingsName>?api-version=2017-05-01-preview
* https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview
*
* For more information, see [Diagnostic Settings REST
* API](https://go.microsoft.com/fwlink/?linkid=2033207)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ class ServerBlobAuditingPolicy extends models['ProxyResource'] {
* REFERENCES
*
* The general form for defining an action to be audited is:
* <action> ON <object> BY <principal>
* {action} ON {object} BY {principal}
*
* Note that <object> in the above format can refer to an object like a
* table, view, or stored procedure, or an entire database or schema. For the
* latter cases, the forms DATABASE::<db_name> and SCHEMA::<schema_name> are
* latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are
* used, respectively.
*
* For example:
Expand All @@ -116,10 +116,11 @@ class ServerBlobAuditingPolicy extends models['ProxyResource'] {
* '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>.
* {databaseName}.
*
* Diagnostic Settings URI format:
* PUT
* https://management.azure.com/subscriptions/<subscriptionId>/resourceGroups/<resourceGroup>/providers/Microsoft.Sql/servers/<serverName>/databases/<databaseName>/providers/microsoft.insights/diagnosticSettings/<settingsName>?api-version=2017-05-01-preview
* https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview
*
* For more information, see [Diagnostic Settings REST
* API](https://go.microsoft.com/fwlink/?linkid=2033207)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,11 @@ function _get(resourceGroupName, serverName, databaseName, options, callback) {
* REFERENCES
*
* The general form for defining an action to be audited is:
* <action> ON <object> BY <principal>
* {action} ON {object} BY {principal}
*
* Note that <object> in the above format can refer to an object like a table,
* view, or stored procedure, or an entire database or schema. For the latter
* cases, the forms DATABASE::<db_name> and SCHEMA::<schema_name> are used,
* cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used,
* respectively.
*
* For example:
Expand All @@ -284,10 +284,11 @@ function _get(resourceGroupName, serverName, databaseName, options, callback) {
* '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>.
* {databaseName}.
*
* Diagnostic Settings URI format:
* PUT
* https://management.azure.com/subscriptions/<subscriptionId>/resourceGroups/<resourceGroup>/providers/Microsoft.Sql/servers/<serverName>/databases/<databaseName>/providers/microsoft.insights/diagnosticSettings/<settingsName>?api-version=2017-05-01-preview
* https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview
*
* For more information, see [Diagnostic Settings REST
* API](https://go.microsoft.com/fwlink/?linkid=2033207)
Expand Down Expand Up @@ -665,11 +666,11 @@ class DatabaseBlobAuditingPolicies {
* REFERENCES
*
* The general form for defining an action to be audited is:
* <action> ON <object> BY <principal>
* {action} ON {object} BY {principal}
*
* Note that <object> in the above format can refer to an object like a table,
* view, or stored procedure, or an entire database or schema. For the latter
* cases, the forms DATABASE::<db_name> and SCHEMA::<schema_name> are used,
* cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used,
* respectively.
*
* For example:
Expand All @@ -695,10 +696,11 @@ class DatabaseBlobAuditingPolicies {
* '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>.
* {databaseName}.
*
* Diagnostic Settings URI format:
* PUT
* https://management.azure.com/subscriptions/<subscriptionId>/resourceGroups/<resourceGroup>/providers/Microsoft.Sql/servers/<serverName>/databases/<databaseName>/providers/microsoft.insights/diagnosticSettings/<settingsName>?api-version=2017-05-01-preview
* https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview
*
* For more information, see [Diagnostic Settings REST
* API](https://go.microsoft.com/fwlink/?linkid=2033207)
Expand Down Expand Up @@ -817,11 +819,11 @@ class DatabaseBlobAuditingPolicies {
* REFERENCES
*
* The general form for defining an action to be audited is:
* <action> ON <object> BY <principal>
* {action} ON {object} BY {principal}
*
* Note that <object> in the above format can refer to an object like a table,
* view, or stored procedure, or an entire database or schema. For the latter
* cases, the forms DATABASE::<db_name> and SCHEMA::<schema_name> are used,
* cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used,
* respectively.
*
* For example:
Expand All @@ -847,10 +849,11 @@ class DatabaseBlobAuditingPolicies {
* '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>.
* {databaseName}.
*
* Diagnostic Settings URI format:
* PUT
* https://management.azure.com/subscriptions/<subscriptionId>/resourceGroups/<resourceGroup>/providers/Microsoft.Sql/servers/<serverName>/databases/<databaseName>/providers/microsoft.insights/diagnosticSettings/<settingsName>?api-version=2017-05-01-preview
* https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview
*
* For more information, see [Diagnostic Settings REST
* API](https://go.microsoft.com/fwlink/?linkid=2033207)
Expand Down
Loading

0 comments on commit c465d3a

Please sign in to comment.