Skip to content

Commit

Permalink
Add package-composite-v5 tag to SqlVulnerabilityAssessment API (#19953)
Browse files Browse the repository at this point in the history
* Add package-composite-v5 tag to SqlVulnerabilityAssessment API

* Fix duplicate ids for baseline APIs for SQL vulnerability assessment

* Fix ids mix up

* Fix duplicate ids for delete baseline rules

* update read me

* add directive to mitigate Go stuttering removal collision

Co-authored-by: Ahmad Abas <ahabas@microsoft.com>
Co-authored-by: tadelesh <tadelesh.shi@live.cn>
  • Loading branch information
3 people authored Aug 26, 2022
1 parent 1646226 commit b23f35d
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
"SqlVulnerabilityAssessmentBaseline"
],
"description": "Add a database's vulnerability assessment rule baseline list.",
"operationId": "DatabaseSqlVulnerabilityAssessmentBaselines_CreateOrUpdate",
"operationId": "SqlVulnerabilityAssessmentBaselines_CreateOrUpdate",
"parameters": [
{
"$ref": "../../../common/v1/types.json#/parameters/ResourceGroupParameter"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@
"SqlVulnerabilityAssessmentRuleBaseline"
],
"description": "Removes the database's vulnerability assessment rule baseline.",
"operationId": "DatabaseSqlVulnerabilityAssessmentRuleBaselines_Delete",
"operationId": "SqlVulnerabilityAssessmentRuleBaselines_Delete",
"parameters": [
{
"$ref": "../../../common/v1/types.json#/parameters/ResourceGroupParameter"
Expand Down
16 changes: 16 additions & 0 deletions specification/sql/resource-manager/readme.go.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,22 @@ module-name: sdk/resourcemanager/sql/armsql
module: github.com/Azure/azure-sdk-for-go/$(module-name)
output-folder: $(go-sdk-folder)/$(module-name)
azure-arm: true
directive:
- rename-model:
from: 'SqlVulnerabilityAssessmentScanRecord'
to: 'VulnerabilityAssessmentScanRecordForSql'
- rename-model:
from: 'SqlVulnerabilityAssessmentScanRecordListResult'
to: 'VulnerabilityAssessmentScanRecordForSqlListResult'
- rename-model:
from: 'SQLVulnerabilityAssessmentScanRecordProperties'
to: 'VulnerabilityAssessmentScanRecordForSqlProperties'
- rename-model:
from: 'SqlVulnerabilityAssessmentScanRecordProperties'
to: 'VulnerabilityAssessmentScanRecordForSqlProperties'
- rename-model:
from: 'SqlVulnerabilityAssessmentScanError'
to: 'VulnerabilityAssessmentScanForSqlError'
```
``` yaml $(go) && !$(track2)
Expand Down
12 changes: 12 additions & 0 deletions specification/sql/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -540,10 +540,22 @@ input-file:
- ./Microsoft.Sql/preview/2021-11-01-preview/ServerAdvancedThreatProtectionSettings.json
- ./Microsoft.Sql/preview/2021-11-01-preview/ManagedServerDnsAliases.json
- ./Microsoft.Sql/preview/2022-02-01-preview/Databases.json
- ./Microsoft.Sql/preview/2022-02-01-preview/DatabaseSqlVulnerabilityAssessmentBaselines.json
- ./Microsoft.Sql/preview/2022-02-01-preview/DatabaseSqlVulnerabilityAssessmentExecuteScan.json
- ./Microsoft.Sql/preview/2022-02-01-preview/DatabaseSqlVulnerabilityAssessmentRuleBaselines.json
- ./Microsoft.Sql/preview/2022-02-01-preview/DatabaseSqlVulnerabilityAssessmentScanResult.json
- ./Microsoft.Sql/preview/2022-02-01-preview/DatabaseSqlVulnerabilityAssessmentScans.json
- ./Microsoft.Sql/preview/2022-02-01-preview/DatabaseSqlVulnerabilityAssessmentsSettings.json
- ./Microsoft.Sql/preview/2022-02-01-preview/ManagedInstanceDtcs.json
- ./Microsoft.Sql/preview/2022-02-01-preview/ManagedDatabaseAdvancedThreatProtectionSettings.json
- ./Microsoft.Sql/preview/2022-02-01-preview/ManagedInstanceAdvancedThreatProtectionSettings.json
- ./Microsoft.Sql/preview/2022-02-01-preview/ReplicationLinks.json
- ./Microsoft.Sql/preview/2022-02-01-preview/SqlVulnerabilityAssessmentBaseline.json
- ./Microsoft.Sql/preview/2022-02-01-preview/SqlVulnerabilityAssessmentExecuteScan.json
- ./Microsoft.Sql/preview/2022-02-01-preview/SqlVulnerabilityAssessmentRuleBaseline.json
- ./Microsoft.Sql/preview/2022-02-01-preview/SqlVulnerabilityAssessmentScanResult.json
- ./Microsoft.Sql/preview/2022-02-01-preview/SqlVulnerabilityAssessmentScans.json
- ./Microsoft.Sql/preview/2022-02-01-preview/SqlVulnerabilityAssessmentsSettings.json
# Needed when there is more than one input file
Expand Down

0 comments on commit b23f35d

Please sign in to comment.