Skip to content

Commit

Permalink
Added missing APIs in Synapse Swagger. (Azure#12424)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
2 people authored and mkarmark committed Jul 20, 2021
1 parent 28bb376 commit 16b59ca
Show file tree
Hide file tree
Showing 14 changed files with 1,184 additions and 20 deletions.
2 changes: 1 addition & 1 deletion custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2066,4 +2066,4 @@ checkin
regionality
Resource
Metastores

maintenancewindows
Original file line number Diff line number Diff line change
Expand Up @@ -416,14 +416,19 @@
"type": "boolean",
"description": "Whether compute isolation is required or not."
},
"haveLibraryRequirementsChanged": {
"type": "boolean",
"description": "Whether library requirements changed."
},
"sessionLevelPackagesEnabled": {
"type": "boolean",
"description": "Whether session level packages enabled."
},
"cacheSize": {
"type": "integer",
"format": "int32",
"description": "The cache size"
},
"dynamicExecutorAllocation": {
"$ref": "#/definitions/DynamicExecutorAllocation",
"description": "Dynamic Executor Allocation"
},
"sparkEventsFolder": {
"type": "string",
"description": "The Spark events folder"
Expand Down Expand Up @@ -517,6 +522,16 @@
}
}
},
"DynamicExecutorAllocation": {
"type": "object",
"description": "Dynamic Executor Allocation Properties",
"properties": {
"enabled": {
"type": "boolean",
"description": "Indicates whether Dynamic Executor Allocation is enabled or not."
}
}
},
"LibraryRequirements": {
"type": "object",
"description": "Library requirements for a Big Data pool powered by Apache Spark",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "testrg",
"workspaceName": "testws",
"sqlPoolName": "testdw",
"geoBackupPolicyName": "Default",
"api-version": "2019-06-01-preview",
"parameters": {
"properties": {
"state": "Enabled"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Synapse/workspaces/testws/databases/testdw/geoBackupPolicies/Default",
"name": "Default",
"type": "Microsoft.Synapse/workspaces/sqlpools/geoBackupPolicies",
"location": null,
"kind": null,
"properties": {
"state": "Enabled",
"storageType": null
}
}
},
"201": {
"body": {
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Synapse/workspaces/testws/databases/testdw/geoBackupPolicies/Default",
"name": "Default",
"type": "Microsoft.Synapse/workspaces/sqlpools/geoBackupPolicies",
"location": null,
"kind": null,
"properties": {
"state": "Enabled",
"storageType": null
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "samplerg",
"workspaceName": "testworkspace",
"sqlPoolName": "testsp",
"maintenanceWindowName": "current",
"api-version": "2019-06-01-preview",
"parameters": {
"properties": {
"timeRanges": [
{
"dayOfWeek": "Saturday",
"startTime": "00:00:00",
"duration": "PT60M"
}
]
}
}
},
"responses": {
"200": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "sqlcrudtest-6852",
"workspaceName": "sqlcrudtest-2080",
"sqlPoolName": "sqlcrudtest-331",
"dataMaskingPolicyName": "Default",
"dataMaskingRuleName": "rule1",
"api-version": "2019-06-01-preview"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Synapse/workspaces/sqlcrudtest-6852/sqlPools/sqlcrudtest-331/dataMaskingPolicies/Default/rules/",
"name": "rule1",
"type": "Microsoft.Synapse/workspaces/sqlPools/dataMaskingPolicies/rules",
"location": "Central US",
"kind": null,
"properties": {
"id": "dbo_Table_1_test1",
"ruleState": "Enabled",
"schemaName": "dbo",
"tableName": "Table_1",
"columnName": "test1",
"aliasName": null,
"maskingFunction": "Text",
"numberFrom": null,
"numberTo": null,
"prefixSize": "1",
"suffixSize": "0",
"replacementString": "asdf"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "samplerg",
"workspaceName": "testworkspace",
"sqlPoolName": "testsp",
"maintenanceWindowOptionsName": "current",
"api-version": "2019-06-01-preview"
},
"responses": {
"200": {
"body": {
"properties": {
"isEnabled": true,
"maintenanceWindowCycles": [
{
"dayOfWeek": "Saturday",
"startTime": "00:00:00",
"duration": "PT60M"
}
],
"minDurationInMinutes": 60,
"defaultDurationInMinutes": 120,
"minCycles": 2,
"timeGranularityInMinutes": 5,
"allowMultipleMaintenanceWindowsPerCycle": true
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/samplerg/providers/Microsoft.Synapse/workspaces/testworkspace/sqlPools/testsp/maintenanceWindowOptions/current",
"name": "current",
"type": "Microsoft.Synapse/workspaces/sqlPools/maintenanceWindowOptions"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "samplerg",
"workspaceName": "testworkspace",
"sqlPoolName": "testsp",
"maintenanceWindowName": "current",
"api-version": "2019-06-01-preview"
},
"responses": {
"200": {
"body": {
"properties": {
"timeRanges": [
{
"dayOfWeek": "Saturday",
"startTime": "00:00:00",
"duration": "PT60M"
}
]
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/samplerg/providers/Microsoft.Synapse/workspaces/testworkspace/sqlPools/testsp/maintenancewindows/current",
"name": "current",
"type": "Microsoft.Synapse/workspaces/sqlPools/maintenancewindows"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"parameters": {
"subscriptionId": "01234567-89ab-4def-0123-456789abcdef",
"resourceGroupName": "ExampleResourceGroup",
"privateLinkHubName": "ExamplePrivateLinkHub",
"privateLinkResourceName": "sql",
"api-version": "2019-06-01-preview"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/01234567-89ab-4def-0123-456789abcdef/resourceGroups/ExampleResourceGroup/providers/Microsoft.Synapse/privateLinkHubs/ExamplePrivateLinkHub/privateLinkResources/sql",
"name": "sql",
"type": "Microsoft.Synapse/privateLinkHubs/privateLinkResources",
"properties": {
"groupId": "sql",
"requiredMembers": [
"sql"
],
"requiredZoneNames": [
"privatelink.sql.azuresynapse.net"
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"parameters": {
"subscriptionId": "01234567-89ab-4def-0123-456789abcdef",
"resourceGroupName": "ExampleResourceGroup",
"privateLinkHubName": "ExamplePrivateLinkHub",
"api-version": "2019-06-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/01234567-89ab-4def-0123-456789abcdef/resourceGroups/ExampleResourceGroup/providers/Microsoft.Synapse/privateLinkHubs/ExamplePrivateLinkHub/privateLinkResources/sql",
"name": "sql",
"type": "Microsoft.Synapse/privateLinkHubs/privateLinkResources",
"properties": {
"groupId": "sql",
"requiredMembers": [
"sql"
],
"requiredZoneNames": [
"privatelink.sql.azuresynapse.net"
]
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "myRG",
"workspaceName": "myWorkspace",
"sqlPoolName": "mySqlPool",
"api-version": "2019-06-01-preview",
"parameters": {
"operations": [
{
"properties": {
"op": "set",
"schema": "dbo",
"table": "table1",
"column": "column1",
"sensitivityLabel": {
"properties": {
"labelName": "Highly Confidential",
"labelId": "3A477B16-9423-432B-AA97-6069B481CEC3",
"informationType": "Financial",
"informationTypeId": "1D3652D6-422C-4115-82F1-65DAEBC665C8",
"rank": "Low"
}
}
}
},
{
"properties": {
"op": "set",
"schema": "dbo",
"table": "table2",
"column": "column2",
"sensitivityLabel": {
"properties": {
"informationType": "PhoneNumber",
"informationTypeId": "d22fa6e9-5ee4-3bde-4c2b-a409604c4646",
"labelId": "bf91e08c-f4f0-478a-b016-25164b2a65ff",
"labelName": "PII",
"rank": "Critical"
}
}
}
},
{
"properties": {
"op": "remove",
"schema": "dbo",
"table": "Table1",
"column": "Column3"
}
}
]
}
},
"responses": {
"200": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "myRG",
"workspaceName": "myWorkspace",
"sqlPoolName": "mySqlPool",
"api-version": "2019-06-01-preview",
"parameters": {
"operations": [
{
"properties": {
"op": "enable",
"schema": "dbo",
"table": "table1",
"column": "column1"
}
},
{
"properties": {
"op": "enable",
"schema": "dbo",
"table": "table2",
"column": "column2"
}
},
{
"properties": {
"op": "disable",
"schema": "dbo",
"table": "table1",
"column": "column3"
}
}
]
}
},
"responses": {
"200": {}
}
}
Loading

0 comments on commit 16b59ca

Please sign in to comment.