-
Notifications
You must be signed in to change notification settings - Fork 5k
Removing default usage of deprecating 2014-04-01 SQL APIs #50381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Update SQL management SDK to use the latest stable API version (2023-08-01) instead of the deprecated 2014-04-01 across resource clients, collections, and REST operations.
- Bumped default API version strings in XML doc comments and default constructor parameters
- Ensured consistency across all
Custom
resource, collection, and rest operation classes
Reviewed Changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
SqlServerResource.cs | Updated XML <description> version tag to 2023-08-01 |
SqlServerCommunicationLinkResource.cs | Updated XML <description> version tag to 2023-08-01 |
SqlServerCommunicationLinkCollection.cs | Updated XML <description> version tag to 2023-08-01 |
SqlDatabaseResource.cs | Updated XML <description> version tag to 2023-08-01 |
ServiceObjectiveResource.cs | Updated XML <description> version tag to 2023-08-01 |
ServiceObjectiveCollection.cs | Updated XML <description> version tag to 2023-08-01 |
ServiceObjectivesRestOperations.cs | Bumped default _apiVersion to 2023-08-01 |
ServerCommunicationLinksRestOperations.cs | Bumped default _apiVersion to 2023-08-01 |
MetricsRestOperations.cs | Bumped default _apiVersion to 2023-08-01 |
MetricDefinitionsRestOperations.cs | Bumped default _apiVersion to 2023-08-01 |
ElasticPoolDatabaseActivitiesRestOperations.cs | Bumped default _apiVersion to 2023-08-01 |
ElasticPoolActivitiesRestOperations.cs | Bumped default _apiVersion to 2023-08-01 |
ElasticPoolResource.cs | Updated XML <description> version tag to 2023-08-01 |
DataMaskingPolicyResource.cs | Updated XML <description> version tag to 2023-08-01 |
/// </summary> | ||
/// <param name="cancellationToken"> The cancellation token to use. </param> | ||
/// <returns> An async collection of <see cref="ElasticPoolActivity"/> that may take multiple service requests to iterate over. </returns> | ||
public virtual AsyncPageable<ElasticPoolActivity> GetElasticPoolActivitiesAsync(CancellationToken cancellationToken = default) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please retain all public members, but mark them as obsolete.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Run 'eng\scripts\Export-API.ps1 sqlmanagement' after mark it as obsolete.
/// <returns> An async collection of <see cref="ElasticPoolActivity"/> that may take multiple service requests to iterate over. </returns> | ||
public virtual AsyncPageable<ElasticPoolActivity> GetElasticPoolActivitiesAsync(CancellationToken cancellationToken = default) | ||
{ | ||
HttpMessage FirstPageRequest(int? pageSizeHint) => _elasticPoolActivitiesRestClient.CreateListByElasticPoolRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Throw NotSupportedException here.
Removing default usage of deprecating 2014-04-01 SQL APIs. Updating to latest stable version of 2023-08-01. Additionally updating relevant comments.