Skip to content

Commit

Permalink
Users/v sparatala/merge allx ms mutability (#20749)
Browse files Browse the repository at this point in the history
* Remove "keyVaultUrl" in PUT schema reponse

* Revert "Remove "keyVaultUrl" in PUT schema reponse"

This reverts commit de3fcd0.

* Update keyVaultUrl property to readOnly true

* Removed read-only and annotated to x-ms-mutability

* Update Workspaces_Get property to x-ms-mutability

* Updated SqlPoolSecurityAlertPolicies_Get properties to x-ms-mutability

* Update dynamicExecutorAllocation property with x-ms-mutability

* Update Workspaces_Get createManagedPrivateEndpoint to x-ms-mutability

* Updated workspace_Get property managedResourceGroupName to x-ms-mutability

* Update SqlPools_Get property restorePointInTime to x-ms-mutability

* Update WorkspaceManagedSqlServerBlobAuditingPolicies_Get property to x-ms-mutability

* Update SqlPools_Get collation to x-ms-mutability

* Update KustoPools_Get KustoPool workspaceUID to x-ms-mutability

* Fix model validation error

* Fixed review comments

* Fix R2064 - LROStatusCodesReturnTypeSchema

* Fix lint, model validation error

* Removed lro options

* Fix LRO lint error

* Fix lint error

* Fix lint error

* Fix lint error

* Fix lint error

* Fix lint error

* Fix lint error

* Fix lint error

* Fix lint error

* Resolved review comments

* Fix review comments

* Fix review comments

* Resolve exception in kustoPool.json:

* Resolve lint error

* Resolve Model validation error

* Resolve model validation error

* Resolve LRO error

* Resolve lint, model validation error

* Resolve Model Validation error

* Resolve model validation error

* Resolve model validation error

* Resolve Model validation error

* Resolve model validation error

* Resolve review comments

* Resolve model validation error

* Remove header location

* Resolve runtime exception for schema violation

* Resolve model validation error

* Resolve schema violation exception
  • Loading branch information
sparatala authored Oct 3, 2022
1 parent 33d5054 commit 7f538dc
Show file tree
Hide file tree
Showing 26 changed files with 379 additions and 111 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
},
"responses": {
"200": {
"headers": {
"location": "West US"
},
"body": {
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/synapseWorkspaceName/kustopools/KustoClusterRPTest4/Databases/KustoDatabase8/DataConnections/DataConnections8",
"name": "KustoClusterRPTest4/KustoDatabase8/DataConnections8",
Expand All @@ -31,6 +34,9 @@
}
},
"201": {
"headers": {
"location": "West US"
},
"body": {
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/synapseWorkspaceName/kustopools/KustoClusterRPTest4/Databases/KustoDatabase8/DataConnections/DataConnections8",
"name": "KustoClusterRPTest4/KustoDatabase8/DataConnections8",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
},
"responses": {
"200": {
"headers": {
"location": true
},
"body": {
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/synapseWorkspaceName/kustopools/KustoClusterRPTest4/Databases/KustoDatabase8",
"name": "KustoClusterRPTest4/KustoDatabase8",
Expand All @@ -28,6 +31,9 @@
}
},
"201": {
"headers": {
"location": true
},
"body": {
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/synapseWorkspaceName/kustopools/KustoClusterRPTest4/Databases/KustoDatabase8",
"name": "KustoClusterRPTest4/KustoDatabase8",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
},
"responses": {
"200": {
"headers": {
"location": "West US"
},
"body": {
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/synapseWorkspaceName/kustopools/KustoClusterRPTest4",
"name": "KustoClusterRPTest4",
Expand All @@ -36,6 +39,9 @@
}
},
"201": {
"headers": {
"location": "West US"
},
"body": {
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/synapseWorkspaceName/kustopools/KustoClusterRPTest4",
"name": "KustoClusterRPTest4",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,15 +253,15 @@
"responses": {
"200": {
"schema": {
"type": "object"
"$ref": "#/definitions/BigDataPoolResourceInfo"
},
"description": "OK"
},
"202": {
"schema": {
"type": "object"
"$ref": "#/definitions/BigDataPoolResourceInfo"
},
"description": ""
"description": "Created"
},
"204": {
"description": ""
Expand Down Expand Up @@ -457,7 +457,8 @@
"type": "array",
"items": {
"$ref": "../../../../common/v1/types.json#/definitions/LibraryInfo"
}
},
"x-ms-identifiers": []
},
"sparkConfigProperties": {
"$ref": "#/definitions/SparkConfigProperties",
Expand Down Expand Up @@ -566,12 +567,20 @@
"minExecutors": {
"type": "integer",
"format": "int32",
"description": "The minimum number of executors alloted"
"description": "The minimum number of executors alloted",
"x-ms-mutability": [
"create",
"update"
]
},
"maxExecutors": {
"type": "integer",
"format": "int32",
"description": "The maximum number of executors alloted"
"description": "The maximum number of executors alloted",
"x-ms-mutability": [
"create",
"update"
]
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,17 @@
}
}
},
"201": {}
"201": {
"body": {
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup1/providers/Microsoft.Synapse/workspaces/workspace1/managedIdentitySqlControlSettings/default",
"name": "default",
"properties": {
"grantSqlControlToManagedIdentity": {
"desiredState": "Enabled",
"actualState": "Enabling"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"id": "/subscriptions/cde3513f-fbc4-414d-abc2-c4b2ad011bd8/resourceGroups/kedodd2021synrg1/providers/Microsoft.Synapse/workspaces/kedoddsynprodws/sqlPools/kedoddsqlpool1/dataWarehouseQueries/QID683040/steps/0",
"type": "Microsoft.Synapse/workspaces/sqlPools/dataWarehouseQueries/steps",
"name": "0",
"location": "null",
"properties": {
"queryId": "QID683040",
"startTime": "2022-08-01T02:27:39.36",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"responses": {
"204": {},
"200": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
},
"body": {
"id": "/subscriptions/01234567-89ab-4def-0123-456789abcdef/resourceGroups/ExampleResourceGroup/providers/Microsoft.Synapse/workspaces/ExampleWorkspace/bigDataPools/ExamplePool",
"type": "Microsoft.Synapse/workspaces/bigDataPools",
Expand Down Expand Up @@ -43,6 +46,9 @@
}
},
"202": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
},
"body": {
"id": "/subscriptions/01234567-89ab-4def-0123-456789abcdef/resourceGroups/ExampleResourceGroup/providers/Microsoft.Synapse/workspaces/ExampleWorkspace/bigDataPools/ExamplePool",
"type": "Microsoft.Synapse/workspaces/bigDataPools",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
},
"responses": {
"200": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
},
"body": {
"id": "/subscriptions/01234567-89ab-4def-0123-456789abcdef/resourceGroups/ExampleResourceGroup/providers/Microsoft.Synapse/workspaces/ExampleWorkspace/sqlPools/ExampleSqlPool",
"name": "ExampleSqlPool",
Expand All @@ -20,6 +23,9 @@
}
},
"202": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
},
"body": {
"id": "/subscriptions/01234567-89ab-4def-0123-456789abcdef/resourceGroups/ExampleResourceGroup/providers/Microsoft.Synapse/workspaces/ExampleWorkspace/sqlPools/ExampleSqlPool",
"name": "ExampleSqlPool",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"id": "/subscriptions/cde3513f-fbc4-414d-abc2-c4b2ad011bd8/resourceGroups/kedodd2021synrg1/providers/Microsoft.Synapse/workspaces/kedoddsynprodws/sqlPools/kedoddsqlpool1/datawarehousequeries/QID683040",
"type": "Microsoft.Synapse/workspaces/sqlPools/dataWarehouseQueries",
"name": "QID683040",
"location": "null",
"properties": {
"queryId": "QID683040",
"startTime": "2022-08-01T02:27:39.36",
Expand All @@ -30,7 +29,7 @@
"login": "System",
"progress": 100,
"sessionId": "SID41961",
"resourceClass": "N/A",
"resourceClass": "smallrc",
"concurrencySlots": "N/A"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,11 @@
"200": {
"body": {
"sku": {},
"kind": "v12.0,user,datawarehouse,gen2",
"properties": {
"collation": "SQL_Latin1_General_CP1_CI_AS",
"maxSizeBytes": 263882790666240,
"status": "Paused",
"databaseId": "00000000-1111-2222-3333-444444444444",
"creationDate": "2022-08-25T09:22:46.68Z",
"currentServiceObjectiveName": "DW100c",
"defaultSecondaryLocation": "westus",
"catalogCollation": "SQL_Latin1_General_CP1_CI_AS"
"creationDate": "2022-08-25T09:22:46.68Z"
},
"location": "eastus",
"tags": {},
Expand All @@ -32,16 +27,11 @@
"202": {
"body": {
"sku": {},
"kind": "v12.0,user,datawarehouse,gen2",
"properties": {
"collation": "SQL_Latin1_General_CP1_CI_AS",
"maxSizeBytes": 263882790666240,
"status": "Paused",
"databaseId": "00000000-1111-2222-3333-444444444444",
"creationDate": "2022-08-25T09:22:46.68Z",
"currentServiceObjectiveName": "DW100c",
"defaultSecondaryLocation": "westus",
"catalogCollation": "SQL_Latin1_General_CP1_CI_AS"
"creationDate": "2022-08-25T09:22:46.68Z"
},
"location": "eastus",
"tags": {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
},
"responses": {
"200": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
},
"body": {
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/synapseWorkspaceName/kustopools/KustoClusterRPTest4/Databases/KustoDatabase8/DataConnections/DataConnections8",
"name": "KustoClusterRPTest4/KustoDatabase8/DataConnections8",
Expand All @@ -31,6 +34,9 @@
}
},
"202": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
},
"body": {
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/synapseWorkspaceName/kustopools/KustoClusterRPTest4/Databases/KustoDatabase8/DataConnections/DataConnections8",
"name": "KustoClusterRPTest4/KustoDatabase8/DataConnections8",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
},
"responses": {
"200": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
},
"body": {
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/synapseWorkspaceName/kustopools/KustoClusterRPTest4/Databases/KustoDatabase8",
"name": "KustoClusterRPTest4/KustoDatabase8",
Expand All @@ -28,6 +31,9 @@
}
},
"202": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
},
"body": {
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/synapseWorkspaceName/kustopools/KustoClusterRPTest4/Databases/KustoDatabase8",
"name": "KustoClusterRPTest4/KustoDatabase8",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
},
"responses": {
"200": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
},
"body": {
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/synapseWorkspaceName/kustopools/KustoClusterRPTest4",
"name": "KustoClusterRPTest4",
Expand All @@ -39,6 +42,9 @@
}
},
"202": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
},
"body": {
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/synapseWorkspaceName/kustopools/KustoClusterRPTest4",
"name": "KustoClusterRPTest4",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,11 @@
},
"keyVaultUrl": {
"type": "string",
"description": "The Key Vault Url of the workspace key."
"description": "The Key Vault Url of the workspace key.",
"x-ms-mutability": [
"create",
"read"
]
}
}
}
Expand Down
Loading

0 comments on commit 7f538dc

Please sign in to comment.