Skip to content

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jeremyfrosti
Copy link
Member

Removing default usage of deprecating 2014-04-01 SQL APIs. Updating to latest stable version of 2023-08-01. Additionally updating relevant comments.

@Copilot Copilot AI review requested due to automatic review settings June 3, 2025 16:16
Copy link
Contributor

@Copilot Copilot AI left a 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

@github-actions github-actions bot added the Mgmt This issue is related to a management-plane library. label Jun 3, 2025
/// </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)
Copy link
Member

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.

Copy link
Member

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);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Throw NotSupportedException here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mgmt This issue is related to a management-plane library.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants