-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating Data Classification Swaggers. (#5148)
* Update data classification swaggers. Update data classification swaggers. * Update readme.md * Update managedDatabaseSensitivityLabels.json * Update managedDatabaseSensitivityLabels.json * Update managedDatabaseSensitivityLabels.json * Update managedDatabaseSensitivityLabels.json * Updating examples. * Fixing java codegen
- Loading branch information
1 parent
27d10c9
commit d7a6444
Showing
14 changed files
with
306 additions
and
419 deletions.
There are no files selected for viewing
78 changes: 42 additions & 36 deletions
78
...er/Microsoft.Sql/preview/2017-03-01-preview/examples/ColumnSensitivityLabelCreateMax.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,49 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "myRG", | ||
"serverName": "myServer", | ||
"databaseName": "myDatabase", | ||
"schemaName": "dbo", | ||
"tableName": "myTable", | ||
"columnName": "myColumn", | ||
"sensitivityLabelSource": "current", | ||
"api-version": "2017-03-01-preview", | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "myRG", | ||
"serverName": "myServer", | ||
"databaseName": "myDatabase", | ||
"schemaName": "dbo", | ||
"tableName": "myTable", | ||
"columnName": "myColumn", | ||
"sensitivityLabelSource": "current", | ||
"api-version": "2017-03-01-preview", | ||
"parameters": { | ||
"properties": { | ||
"labelName": "PII", | ||
"informationType": "PhoneNumber" | ||
} | ||
"properties": { | ||
"informationType": "PhoneNumber", | ||
"informationTypeId": "d22fa6e9-5ee4-3bde-4c2b-a409604c4646", | ||
"labelId": "bf91e08c-f4f0-478a-b016-25164b2a65ff", | ||
"labelName": "PII" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/servers/myServer/databases/myDatabase/schemas/dbo/tables/myTable/columns/myColumn/sensitivityLabels/current", | ||
"name": "current", | ||
"type": "Microsoft.Sql/servers/databases/schemas/tables/columns/sensitivityLabels", | ||
"properties": { | ||
"informationType": "PhoneNumber", | ||
"informationTypeId": "d22fa6e9-5ee4-3bde-4c2b-a409604c4646", | ||
"labelId": "bf91e08c-f4f0-478a-b016-25164b2a65ff", | ||
"labelName": "PII" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/servers/myServer/databases/myDatabase/schemas/dbo/tables/myTable/columns/myColumn/sensitivityLabels/current", | ||
"name": "current", | ||
"type": "Microsoft.Sql/servers/databases/schemas/tables/columns/sensitivityLabels", | ||
"properties": { | ||
"labelName": "PII", | ||
"informationType": "PhoneNumber" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/servers/myServer/databases/myDatabase/schemas/dbo/tables/myTable/columns/myColumn/sensitivityLabels/current", | ||
"name": "current", | ||
"type": "Microsoft.Sql/servers/databases/schemas/tables/columns/sensitivityLabels", | ||
"properties": { | ||
"labelName": "PII", | ||
"informationType": "PhoneNumber" | ||
} | ||
} | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/servers/myServer/databases/myDatabase/schemas/dbo/tables/myTable/columns/myColumn/sensitivityLabels/current", | ||
"name": "current", | ||
"type": "Microsoft.Sql/servers/databases/schemas/tables/columns/sensitivityLabels", | ||
"properties": { | ||
"informationType": "PhoneNumber", | ||
"informationTypeId": "d22fa6e9-5ee4-3bde-4c2b-a409604c4646", | ||
"labelId": "bf91e08c-f4f0-478a-b016-25164b2a65ff", | ||
"labelName": "PII" | ||
} | ||
} | ||
} | ||
} | ||
} |
46 changes: 24 additions & 22 deletions
46
...-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/ColumnSensitivityLabelGet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,28 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "myRG", | ||
"serverName": "myServer", | ||
"databaseName": "myDatabase", | ||
"schemaName": "dbo", | ||
"tableName": "myTable", | ||
"columnName": "myColumn", | ||
"sensitivityLabelSource": "current", | ||
"api-version": "2017-03-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/servers/myServer/databases/myDatabase/schemas/dbo/tables/myTable/columns/myColumn/sensitivityLabels/current", | ||
"name": "current", | ||
"type": "Microsoft.Sql/servers/databases/schemas/tables/columns/sensitivityLabels", | ||
"properties": { | ||
"labelName": "PII", | ||
"informationType": "PhoneNumber" | ||
} | ||
} | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "myRG", | ||
"serverName": "myServer", | ||
"databaseName": "myDatabase", | ||
"schemaName": "dbo", | ||
"tableName": "myTable", | ||
"columnName": "myColumn", | ||
"sensitivityLabelSource": "current", | ||
"api-version": "2017-03-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/servers/myServer/databases/myDatabase/schemas/dbo/tables/myTable/columns/myColumn/sensitivityLabels/current", | ||
"name": "current", | ||
"type": "Microsoft.Sql/servers/databases/schemas/tables/columns/sensitivityLabels", | ||
"properties": { | ||
"informationType": "PhoneNumber", | ||
"informationTypeId": "d22fa6e9-5ee4-3bde-4c2b-a409604c4646", | ||
"labelId": "bf91e08c-f4f0-478a-b016-25164b2a65ff", | ||
"labelName": "PII" | ||
} | ||
} | ||
} | ||
} | ||
} |
35 changes: 0 additions & 35 deletions
35
...er/Microsoft.Sql/preview/2017-03-01-preview/examples/SensitivityLabelsListByDatabase.json
This file was deleted.
Oops, something went wrong.
66 changes: 35 additions & 31 deletions
66
...preview/2017-03-01-preview/examples/SensitivityLabelsListByDatabaseWithSourceCurrent.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,39 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "myRG", | ||
"serverName": "myServer", | ||
"databaseName": "myDatabase", | ||
"api-version": "2017-03-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/servers/myServer/databases/myDatabase/schemas/dbo/tables/myTable/columns/myColumn3/sensitivityLabels/current", | ||
"name": "current", | ||
"type": "Microsoft.Sql/servers/databases/schemas/tables/columns/sensitivityLabels", | ||
"properties": { | ||
"labelName": "Sensitive", | ||
"informationType": "Financial" | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/servers/myServer/databases/myDatabase/schemas/dbo/tables/myTable/columns/myColumn4/sensitivityLabels/current", | ||
"name": "current", | ||
"type": "Microsoft.Sql/servers/databases/schemas/tables/columns/sensitivityLabels", | ||
"properties": { | ||
"labelName": "PII", | ||
"informationType": "Email" | ||
} | ||
} | ||
] | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "myRG", | ||
"serverName": "myServer", | ||
"databaseName": "myDatabase", | ||
"api-version": "2017-03-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/servers/myServer/databases/myDatabase/schemas/dbo/tables/myTable/columns/myColumn3/sensitivityLabels/current", | ||
"name": "current", | ||
"type": "Microsoft.Sql/servers/databases/schemas/tables/columns/sensitivityLabels", | ||
"properties": { | ||
"informationType": "Financial", | ||
"informationTypeId": "d22fa6e9-5ee4-3bde-4c2b-a409604c4646", | ||
"labelId": "05e6eaa1-075a-4fb4-a732-a92215a2444a", | ||
"labelName": "Sensitive" | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/servers/myServer/databases/myDatabase/schemas/dbo/tables/myTable/columns/myColumn4/sensitivityLabels/current", | ||
"name": "current", | ||
"type": "Microsoft.Sql/servers/databases/schemas/tables/columns/sensitivityLabels", | ||
"properties": { | ||
"informationType": "Email", | ||
"informationTypeId": "d22fa6e9-5ee4-3bde-4c2b-a409604c4646", | ||
"labelId": "bf91e08c-f4f0-478a-b016-25164b2a65ff", | ||
"labelName": "PII" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
66 changes: 35 additions & 31 deletions
66
...iew/2017-03-01-preview/examples/SensitivityLabelsListByDatabaseWithSourceRecommended.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,39 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "myRG", | ||
"serverName": "myServer", | ||
"databaseName": "myDatabase", | ||
"api-version": "2017-03-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/servers/myServer/databases/myDatabase/schemas/dbo/tables/myTable/columns/myColumn/sensitivityLabels/recommended", | ||
"name": "recommended", | ||
"type": "Microsoft.Sql/servers/databases/schemas/tables/columns/sensitivityLabels", | ||
"properties": { | ||
"labelName": "Sensitive", | ||
"informationType": "Financial" | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/servers/myServer/databases/myDatabase/schemas/dbo/tables/myTable/columns/myColumn2/sensitivityLabels/recommended", | ||
"name": "recommended", | ||
"type": "Microsoft.Sql/servers/databases/schemas/tables/columns/sensitivityLabels", | ||
"properties": { | ||
"labelName": "PII", | ||
"informationType": "Email" | ||
} | ||
} | ||
] | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "myRG", | ||
"serverName": "myServer", | ||
"databaseName": "myDatabase", | ||
"api-version": "2017-03-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/servers/myServer/databases/myDatabase/schemas/dbo/tables/myTable/columns/myColumn/sensitivityLabels/recommended", | ||
"name": "recommended", | ||
"type": "Microsoft.Sql/servers/databases/schemas/tables/columns/sensitivityLabels", | ||
"properties": { | ||
"informationType": "Financial", | ||
"informationTypeId": "d22fa6e9-5ee4-3bde-4c2b-a409604c4646", | ||
"labelId": "05e6eaa1-075a-4fb4-a732-a92215a2444a", | ||
"labelName": "Sensitive" | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/servers/myServer/databases/myDatabase/schemas/dbo/tables/myTable/columns/myColumn2/sensitivityLabels/recommended", | ||
"name": "recommended", | ||
"type": "Microsoft.Sql/servers/databases/schemas/tables/columns/sensitivityLabels", | ||
"properties": { | ||
"informationType": "Email", | ||
"informationTypeId": "d22fa6e9-5ee4-3bde-4c2b-a409604c4646", | ||
"labelId": "bf91e08c-f4f0-478a-b016-25164b2a65ff", | ||
"labelName": "PII" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.