Skip to content

Commit 5dd055d

Browse files
amoghnatuAmogh Natu
andauthored
Added missing APIs in Synapse Swagger. (#12424)
* Added missing APIs in Synapse Swagger. * Fixed spell check error * Swagger correctness changes. * Fixed prettier issues * Minor correctness error fixes. * Fixed prettier check * fixed lint errors * Fixed some more missing APIs. * Added newly reported Missing API Co-authored-by: Amogh Natu <amnat@microsoft.com>
1 parent aef2821 commit 5dd055d

14 files changed

+1184
-20
lines changed

custom-words.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2065,4 +2065,4 @@ checkin
20652065
regionality
20662066
Resource
20672067
Metastores
2068-
2068+
maintenancewindows

specification/synapse/resource-manager/Microsoft.Synapse/preview/2019-06-01-preview/bigDataPool.json

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -416,14 +416,19 @@
416416
"type": "boolean",
417417
"description": "Whether compute isolation is required or not."
418418
},
419-
"haveLibraryRequirementsChanged": {
420-
"type": "boolean",
421-
"description": "Whether library requirements changed."
422-
},
423419
"sessionLevelPackagesEnabled": {
424420
"type": "boolean",
425421
"description": "Whether session level packages enabled."
426422
},
423+
"cacheSize": {
424+
"type": "integer",
425+
"format": "int32",
426+
"description": "The cache size"
427+
},
428+
"dynamicExecutorAllocation": {
429+
"$ref": "#/definitions/DynamicExecutorAllocation",
430+
"description": "Dynamic Executor Allocation"
431+
},
427432
"sparkEventsFolder": {
428433
"type": "string",
429434
"description": "The Spark events folder"
@@ -517,6 +522,16 @@
517522
}
518523
}
519524
},
525+
"DynamicExecutorAllocation": {
526+
"type": "object",
527+
"description": "Dynamic Executor Allocation Properties",
528+
"properties": {
529+
"enabled": {
530+
"type": "boolean",
531+
"description": "Indicates whether Dynamic Executor Allocation is enabled or not."
532+
}
533+
}
534+
},
520535
"LibraryRequirements": {
521536
"type": "object",
522537
"description": "Library requirements for a Big Data pool powered by Apache Spark",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-1111-2222-3333-444444444444",
4+
"resourceGroupName": "testrg",
5+
"workspaceName": "testws",
6+
"sqlPoolName": "testdw",
7+
"geoBackupPolicyName": "Default",
8+
"api-version": "2019-06-01-preview",
9+
"parameters": {
10+
"properties": {
11+
"state": "Enabled"
12+
}
13+
}
14+
},
15+
"responses": {
16+
"200": {
17+
"body": {
18+
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Synapse/workspaces/testws/databases/testdw/geoBackupPolicies/Default",
19+
"name": "Default",
20+
"type": "Microsoft.Synapse/workspaces/sqlpools/geoBackupPolicies",
21+
"location": null,
22+
"kind": null,
23+
"properties": {
24+
"state": "Enabled",
25+
"storageType": null
26+
}
27+
}
28+
},
29+
"201": {
30+
"body": {
31+
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Synapse/workspaces/testws/databases/testdw/geoBackupPolicies/Default",
32+
"name": "Default",
33+
"type": "Microsoft.Synapse/workspaces/sqlpools/geoBackupPolicies",
34+
"location": null,
35+
"kind": null,
36+
"properties": {
37+
"state": "Enabled",
38+
"storageType": null
39+
}
40+
}
41+
}
42+
}
43+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-1111-2222-3333-444444444444",
4+
"resourceGroupName": "samplerg",
5+
"workspaceName": "testworkspace",
6+
"sqlPoolName": "testsp",
7+
"maintenanceWindowName": "current",
8+
"api-version": "2019-06-01-preview",
9+
"parameters": {
10+
"properties": {
11+
"timeRanges": [
12+
{
13+
"dayOfWeek": "Saturday",
14+
"startTime": "00:00:00",
15+
"duration": "PT60M"
16+
}
17+
]
18+
}
19+
}
20+
},
21+
"responses": {
22+
"200": {}
23+
}
24+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-1111-2222-3333-444444444444",
4+
"resourceGroupName": "sqlcrudtest-6852",
5+
"workspaceName": "sqlcrudtest-2080",
6+
"sqlPoolName": "sqlcrudtest-331",
7+
"dataMaskingPolicyName": "Default",
8+
"dataMaskingRuleName": "rule1",
9+
"api-version": "2019-06-01-preview"
10+
},
11+
"responses": {
12+
"200": {
13+
"body": {
14+
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Synapse/workspaces/sqlcrudtest-6852/sqlPools/sqlcrudtest-331/dataMaskingPolicies/Default/rules/",
15+
"name": "rule1",
16+
"type": "Microsoft.Synapse/workspaces/sqlPools/dataMaskingPolicies/rules",
17+
"location": "Central US",
18+
"kind": null,
19+
"properties": {
20+
"id": "dbo_Table_1_test1",
21+
"ruleState": "Enabled",
22+
"schemaName": "dbo",
23+
"tableName": "Table_1",
24+
"columnName": "test1",
25+
"aliasName": null,
26+
"maskingFunction": "Text",
27+
"numberFrom": null,
28+
"numberTo": null,
29+
"prefixSize": "1",
30+
"suffixSize": "0",
31+
"replacementString": "asdf"
32+
}
33+
}
34+
}
35+
}
36+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-1111-2222-3333-444444444444",
4+
"resourceGroupName": "samplerg",
5+
"workspaceName": "testworkspace",
6+
"sqlPoolName": "testsp",
7+
"maintenanceWindowOptionsName": "current",
8+
"api-version": "2019-06-01-preview"
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"properties": {
14+
"isEnabled": true,
15+
"maintenanceWindowCycles": [
16+
{
17+
"dayOfWeek": "Saturday",
18+
"startTime": "00:00:00",
19+
"duration": "PT60M"
20+
}
21+
],
22+
"minDurationInMinutes": 60,
23+
"defaultDurationInMinutes": 120,
24+
"minCycles": 2,
25+
"timeGranularityInMinutes": 5,
26+
"allowMultipleMaintenanceWindowsPerCycle": true
27+
},
28+
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/samplerg/providers/Microsoft.Synapse/workspaces/testworkspace/sqlPools/testsp/maintenanceWindowOptions/current",
29+
"name": "current",
30+
"type": "Microsoft.Synapse/workspaces/sqlPools/maintenanceWindowOptions"
31+
}
32+
}
33+
}
34+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-1111-2222-3333-444444444444",
4+
"resourceGroupName": "samplerg",
5+
"workspaceName": "testworkspace",
6+
"sqlPoolName": "testsp",
7+
"maintenanceWindowName": "current",
8+
"api-version": "2019-06-01-preview"
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"properties": {
14+
"timeRanges": [
15+
{
16+
"dayOfWeek": "Saturday",
17+
"startTime": "00:00:00",
18+
"duration": "PT60M"
19+
}
20+
]
21+
},
22+
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/samplerg/providers/Microsoft.Synapse/workspaces/testworkspace/sqlPools/testsp/maintenancewindows/current",
23+
"name": "current",
24+
"type": "Microsoft.Synapse/workspaces/sqlPools/maintenancewindows"
25+
}
26+
}
27+
}
28+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "01234567-89ab-4def-0123-456789abcdef",
4+
"resourceGroupName": "ExampleResourceGroup",
5+
"privateLinkHubName": "ExamplePrivateLinkHub",
6+
"privateLinkResourceName": "sql",
7+
"api-version": "2019-06-01-preview"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"id": "/subscriptions/01234567-89ab-4def-0123-456789abcdef/resourceGroups/ExampleResourceGroup/providers/Microsoft.Synapse/privateLinkHubs/ExamplePrivateLinkHub/privateLinkResources/sql",
13+
"name": "sql",
14+
"type": "Microsoft.Synapse/privateLinkHubs/privateLinkResources",
15+
"properties": {
16+
"groupId": "sql",
17+
"requiredMembers": [
18+
"sql"
19+
],
20+
"requiredZoneNames": [
21+
"privatelink.sql.azuresynapse.net"
22+
]
23+
}
24+
}
25+
}
26+
}
27+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "01234567-89ab-4def-0123-456789abcdef",
4+
"resourceGroupName": "ExampleResourceGroup",
5+
"privateLinkHubName": "ExamplePrivateLinkHub",
6+
"api-version": "2019-06-01-preview"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"id": "/subscriptions/01234567-89ab-4def-0123-456789abcdef/resourceGroups/ExampleResourceGroup/providers/Microsoft.Synapse/privateLinkHubs/ExamplePrivateLinkHub/privateLinkResources/sql",
14+
"name": "sql",
15+
"type": "Microsoft.Synapse/privateLinkHubs/privateLinkResources",
16+
"properties": {
17+
"groupId": "sql",
18+
"requiredMembers": [
19+
"sql"
20+
],
21+
"requiredZoneNames": [
22+
"privatelink.sql.azuresynapse.net"
23+
]
24+
}
25+
}
26+
]
27+
}
28+
}
29+
}
30+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-1111-2222-3333-444444444444",
4+
"resourceGroupName": "myRG",
5+
"workspaceName": "myWorkspace",
6+
"sqlPoolName": "mySqlPool",
7+
"api-version": "2019-06-01-preview",
8+
"parameters": {
9+
"operations": [
10+
{
11+
"properties": {
12+
"op": "set",
13+
"schema": "dbo",
14+
"table": "table1",
15+
"column": "column1",
16+
"sensitivityLabel": {
17+
"properties": {
18+
"labelName": "Highly Confidential",
19+
"labelId": "3A477B16-9423-432B-AA97-6069B481CEC3",
20+
"informationType": "Financial",
21+
"informationTypeId": "1D3652D6-422C-4115-82F1-65DAEBC665C8",
22+
"rank": "Low"
23+
}
24+
}
25+
}
26+
},
27+
{
28+
"properties": {
29+
"op": "set",
30+
"schema": "dbo",
31+
"table": "table2",
32+
"column": "column2",
33+
"sensitivityLabel": {
34+
"properties": {
35+
"informationType": "PhoneNumber",
36+
"informationTypeId": "d22fa6e9-5ee4-3bde-4c2b-a409604c4646",
37+
"labelId": "bf91e08c-f4f0-478a-b016-25164b2a65ff",
38+
"labelName": "PII",
39+
"rank": "Critical"
40+
}
41+
}
42+
}
43+
},
44+
{
45+
"properties": {
46+
"op": "remove",
47+
"schema": "dbo",
48+
"table": "Table1",
49+
"column": "Column3"
50+
}
51+
}
52+
]
53+
}
54+
},
55+
"responses": {
56+
"200": {}
57+
}
58+
}

0 commit comments

Comments
 (0)