forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed/suppressed most linter warnings/errors for Microsoft.Sql (Azure…
…#1441) * Validation baseline * Fixed legit TrackedResourceListByImmediateParent warnings. * Fixed ARM resource model warnings. Microsoft.Sql has some resource types that do not contain "type" property. We had modeled these as "SubResource". However since "type" is not required in the ProxyResource definition, we can use ProxyResource instead, which fixed various resource model related warnings. * Removed "kind" enums. These are not real enums because they are actually semicolon-separated lists. e.g. server kind can be "v12.0;user". * Add example for Databases_FailoverReplicationLinkAllowDataLoss * Added missing import/export description * Normalize operation ids. In some cases we are not specifically following the ARM guidelines for operation ids. This change fixes most of the inconsistent cases. SDK breaking change. * Added restore points examples * Fixed model validation warnings * Added override-info to sql readme so .net generate succeeds. * Removed validation progress helper files
- Loading branch information
1 parent
978a5f1
commit 7370412
Showing
34 changed files
with
435 additions
and
328 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
61 changes: 61 additions & 0 deletions
61
...ql/resource-manager/Microsoft.Sql/2014-04-01/examples/DataWarehouseRestorePointsList.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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{ | ||
"parameters":{ | ||
"subscriptionId":"00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName":"sqlcrudtest-6730", | ||
"serverName":"sqlcrudtest-9007", | ||
"databaseName":"3481", | ||
"api-version":"2014-04-01" | ||
}, | ||
"responses":{ | ||
"200":{ | ||
"body":{ | ||
"value":[ | ||
{ | ||
"id":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/servers/9007/databases/3481/restorepoints/131448209670000000", | ||
"name":"131448209670000000", | ||
"location":"West US", | ||
"type":"Microsoft.Sql/servers/databases/restorePoints", | ||
"properties":{ | ||
"restorePointType":"DISCRETE", | ||
"earliestRestoreDate":null, | ||
"restorePointCreationDate":"2017-07-18T03:09:27Z" | ||
} | ||
}, | ||
{ | ||
"id":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/servers/9007/databases/3481/restorepoints/131448353660000000", | ||
"name":"131448353660000000", | ||
"location":"West US", | ||
"type":"Microsoft.Sql/servers/databases/restorePoints", | ||
"properties":{ | ||
"restorePointType":"DISCRETE", | ||
"earliestRestoreDate":null, | ||
"restorePointCreationDate":"2017-07-18T07:09:26Z" | ||
} | ||
}, | ||
{ | ||
"id":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/servers/9007/databases/3481/restorepoints/131448497660000000", | ||
"name":"131448497660000000", | ||
"location":"West US", | ||
"type":"Microsoft.Sql/servers/databases/restorePoints", | ||
"properties":{ | ||
"restorePointType":"DISCRETE", | ||
"earliestRestoreDate":null, | ||
"restorePointCreationDate":"2017-07-18T11:09:26Z" | ||
} | ||
}, | ||
{ | ||
"id":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/servers/9007/databases/3481/restorepoints/131448641650000000", | ||
"name":"131448641650000000", | ||
"location":"West US", | ||
"type":"Microsoft.Sql/servers/databases/restorePoints", | ||
"properties":{ | ||
"restorePointType":"DISCRETE", | ||
"earliestRestoreDate":null, | ||
"restorePointCreationDate":"2017-07-18T15:09:25Z" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...ion/sql/resource-manager/Microsoft.Sql/2014-04-01/examples/DatabaseRestorePointsList.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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"parameters":{ | ||
"subscriptionId":"00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName":"sqlcrudtest-6730", | ||
"serverName":"sqlcrudtest-9007", | ||
"databaseName":"3481", | ||
"api-version":"2014-04-01" | ||
}, | ||
"responses":{ | ||
"200":{ | ||
"body":{ | ||
"value":[ | ||
{ | ||
"id":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/servers/sqlcrudtest-9007/databases/3481/restorepoints/ContinuousRestorePoint", | ||
"name":"ContinuousRestorePoint", | ||
"location":"West US", | ||
"type":"Microsoft.Sql/servers/databases/restorePoints", | ||
"properties":{ | ||
"restorePointType":"CONTINUOUS", | ||
"earliestRestoreDate":"2017-06-12T00:00:00Z", | ||
"restorePointCreationDate":null | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
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
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
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
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
84 changes: 0 additions & 84 deletions
84
specification/sql/resource-manager/Microsoft.Sql/2014-04-01/examples/DatabaseUpdateMax.json
This file was deleted.
Oops, something went wrong.
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.