SQL breaking changes to fix Swagger spec validation errors/warnings#2927
SQL breaking changes to fix Swagger spec validation errors/warnings#2927cormacpayne merged 5 commits intoAzure:AutoRestfrom
Conversation
|
@jaredmoo, |
|
Swagger changes are all merged now. |
|
btw project.json isn't updated because 1.2.0-preview hasn't been published yet. |
Also renamed several types and operations for improved clarify and consistency. Additions: - BlobAuditingPolicy APIs (e.g. Databases.CreateOrUpdateBlobAuditingPolicy) - ThreatDetectionPolicy APIs (e.g. Databases.CreateOrUpdateThreatDetectionPolicy) - Databases.ListByServer now supports $expand parameter - Capabilities APIs (e.g. Capabilities.ListByLocation) Types renamed: - ServerFirewallRule -> FirewallRule - DatabaseEditions -> DatabaseEdition - ElasticPoolEditions -> ElasticPoolEdition - ImportRequestParameters -> ImportRequest - ExportRequestParameters -> ExportRequest - ImportExportOperationResponse -> ImportExportResponse - OperationMode -> ImportOperationMode - TransparentDataEncryptionStates -> TransparentDataEncryptionStatus Types removed: - Unused types: UpgradeHint, Schema, Table, Column Operations renamed: - Servers.GetByResourceGroup -> Servers.Get - Servers.CreateOrUpdateFirewallRule -> FirewallRule.CreateOrUpdate, and similar for Get, List, and Delete - Databases.Import -> Databases.CreateImportOperation - Servers.Import -> Databases.Import - Databases.PauseDataWarehouse -> Databases.Pause - Databases.ResumeDataWarehouse -> Databases.Resume Operations removed: - Removed ImportExport operation results APIs since these are handled automatically by Azure async pattern.
cd65b6a to
5ef6c83
Compare
|
Yes, since all swagger changes are now merged, all generated files in this change are based on rest-api-specs master branch. I have squashed into a single commit and described all the breaking changes. |
|
@cormacpayne can I get a review? |
cormacpayne
left a comment
There was a problem hiding this comment.
@jaredmoo some comments that need to be resolved
Also, what is the UpgradeLog.htm file? I was unable to view it on GitHub or CodeFlow
global.json
Outdated
| "src/ResourceManagement/Monitor/Microsoft.Azure.Monitor" | ||
| ] | ||
| ], | ||
| "sdk": { |
src/ClientRuntime/global.json
Outdated
| "Microsoft.Rest.ClientRuntime.Log4Net", "Microsoft.Rest.ClientRuntime.Tracing.Tests" ] | ||
| "Microsoft.Rest.ClientRuntime.Log4Net", "Microsoft.Rest.ClientRuntime.Tracing.Tests" ], | ||
| "sdk": { | ||
| "version": "1.0.0-preview2-003121" |
| "projects": [ "../../TestFramework", "Microsoft.Azure.Management.Sql", "Sql.Tests" ] | ||
| "projects": [ "../../TestFramework", "Microsoft.Azure.Management.Sql", "Sql.Tests" ], | ||
| "sdk": { | ||
| "version": "1.0.0-preview2-003121" |
src/TestFramework/global.json
Outdated
| "projects": [ "Microsoft.Rest.ClientRuntime.Azure.TestFramework", "Microsoft.Azure.Test.HttpRecorder" ] | ||
| "projects": [ "Microsoft.Rest.ClientRuntime.Azure.TestFramework", "Microsoft.Azure.Test.HttpRecorder" ], | ||
| "sdk": { | ||
| "version": "1.0.0-preview2-003121" |
| }); | ||
| } | ||
|
|
||
| // List Server import/export operations |
There was a problem hiding this comment.
@jaredmoo is this removed block being tested somewhere else? Making sure there isn't any test regression with this being removed
There was a problem hiding this comment.
This API is removed so no test is needed.
| @@ -0,0 +1,183 @@ | |||
| using Microsoft.Azure.Management.Resources; | |||
| @@ -0,0 +1,166 @@ | |||
| using Microsoft.Azure.Management.Resources; | |||
|
|
|
@cormacpayne - I have addressed feedback. Not changing project.json since then it doesn't build for me. I think project.json goes away when #2815 is done. |
|
@jaredmoo it looks like there is a merge conflict from a pull request that was merged earlier today |
|
Ok, I reverted my change to this file in order to resolve the conflict. |
|
@cormacpayne ready to merge again :) |
AutoRest enabled several new validation rules which exposed some naming issues in SQL swagger specs. I also noticed that several classes are no longer supported.
Corresponding Swagger change: Azure/azure-rest-api-specs#1005
This checklist is used to make sure that common guidelines for a pull request are followed.
General Guidelines
Testing Guidelines
SDK Generation Guidelines
project.jsonandAssemblyInfo.csfiles have been updated with the new version of the SDK.