Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 4 additions & 1 deletion scripts/breaking_changes_checker/changelog_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,10 @@ def _build_md(content: list, title: str, buffer: list):
for _, bc in enumerate(content):
# Extract the message, skip the change type and the module name
msg, _, _,*args = bc
buffer.append(" - " + msg.format(*args))
try:
buffer.append(" - " + msg.format(*args))
except (IndexError, KeyError):
buffer.append(" - " + msg)
buffer.append("")
return buffer

Expand Down
19 changes: 19 additions & 0 deletions sdk/sql/azure-mgmt-sql/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# Release History

## 4.0.0b25 (2026-04-02)

### Features Added

- This version is generated from TypeSpec with API version `2025-02-01-preview`
- Client `SqlManagementClient` added method `send_request`

### Breaking Changes

- This version is now generated from TypeSpec. Breaking changes may exist comparing to the previous version
- Enum `MinimalTlsVersion` renamed its member `ENUM_1.0` to `TLS1_0`
- Enum `MinimalTlsVersion` renamed its member `ENUM_1.1` to `TLS1_1`
- Enum `MinimalTlsVersion` renamed its member `ENUM_1.2` to `TLS1_2`
- Enum `MinimalTlsVersion` renamed its member `ENUM_1.3` to `TLS1_3`

## 3.1.0 (2026-04-01)

skip changelog generation

## 4.0.0b24 (2025-10-09)

### Bugs Fixed
Expand Down
15 changes: 7 additions & 8 deletions sdk/sql/azure-mgmt-sql/_metadata.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
"commit": "8358c7473dfe057d84a6b6a921225063c040b31a",
"apiVersion": "2025-02-01-preview",
"apiVersions": {
"Microsoft.Sql": "2025-02-01-preview"
},
"commit": "3256c6764d5edc188ae06b8e20a180ac484bbfb7",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.10.2",
"use": [
"@autorest/python@6.40.0",
"@autorest/modelerfour@4.27.0"
],
"autorest_command": "autorest specification/sql/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --package-mode=azure-mgmt --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.40.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
"readme": "specification/sql/resource-manager/readme.md"
"typespec_src": "specification/sql/resource-manager/Microsoft.Sql/SQL",
"emitterVersion": "0.61.2"
}
3,393 changes: 1,712 additions & 1,681 deletions sdk/sql/azure-mgmt-sql/apiview-properties.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions sdk/sql/azure-mgmt-sql/azure/mgmt/sql/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Code generated by Microsoft (R) Python Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
# pylint: disable=wrong-import-position
Expand All @@ -12,7 +12,7 @@
if TYPE_CHECKING:
from ._patch import * # pylint: disable=unused-wildcard-import

from ._sql_management_client import SqlManagementClient # type: ignore
from ._client import SqlClient # type: ignore
from ._version import VERSION

__version__ = VERSION
Expand All @@ -25,7 +25,7 @@
from ._patch import patch_sdk as _patch_sdk

__all__ = [
"SqlManagementClient",
"SqlClient",
]
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore

Expand Down
1,097 changes: 1,097 additions & 0 deletions sdk/sql/azure-mgmt-sql/azure/mgmt/sql/_client.py

Large diffs are not rendered by default.

21 changes: 16 additions & 5 deletions sdk/sql/azure-mgmt-sql/azure/mgmt/sql/_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Code generated by Microsoft (R) Python Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

Expand All @@ -18,36 +18,47 @@
from azure.core.credentials import TokenCredential


class SqlManagementClientConfiguration: # pylint: disable=too-many-instance-attributes
"""Configuration for SqlManagementClient.
class SqlClientConfiguration: # pylint: disable=too-many-instance-attributes
"""Configuration for SqlClient.

Note that all parameters used to create this instance are saved as instance
attributes.

:param credential: Credential needed for the client to connect to Azure. Required.
:param credential: Credential used to authenticate requests to the service. Required.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The subscription ID that identifies an Azure subscription. Required.
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
:type subscription_id: str
:param base_url: Service host. Default value is "https://management.azure.com".
:type base_url: str
:param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
None.
:type cloud_setting: ~azure.core.AzureClouds
:keyword api_version: The API version to use for this operation. Known values are
"2025-02-01-preview". Default value is "2025-02-01-preview". Note that overriding this default
value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(
self,
credential: "TokenCredential",
subscription_id: str,
base_url: str = "https://management.azure.com",
cloud_setting: Optional["AzureClouds"] = None,
**kwargs: Any
) -> None:
api_version: str = kwargs.pop("api_version", "2025-02-01-preview")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")

self.credential = credential
self.subscription_id = subscription_id
self.base_url = base_url
self.cloud_setting = cloud_setting
self.api_version = api_version
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
kwargs.setdefault("sdk_moniker", "mgmt-sql/{}".format(VERSION))
self.polling_interval = kwargs.get("polling_interval", 30)
Expand Down
39 changes: 14 additions & 25 deletions sdk/sql/azure-mgmt-sql/azure/mgmt/sql/_patch.py
Original file line number Diff line number Diff line change
@@ -1,32 +1,21 @@
# coding=utf-8
# --------------------------------------------------------------------------
#
# Copyright (c) Microsoft Corporation. All rights reserved.
#
# The MIT License (MIT)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the ""Software""), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
#
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------
"""Customize generated code here.

Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
"""


__all__: list[str] = [] # Add all objects you want publicly available to users at this package level


# This file is used for handwritten extensions to the generated code. Example:
# https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md
def patch_sdk():
pass
"""Do not remove from this file.

`patch_sdk` is a last resort escape hatch that allows you to do customizations
you can't accomplish using the techniques described in
https://aka.ms/azsdk/python/dpcodegen/python/customize
"""
Loading
Loading