Skip to content

Commit 663c9d2

Browse files
[AutoRelease] t2-sql-2024-05-01-93001(can only be merged by SDK owner) (#35431)
* code and test * Update assets.json --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <[email protected]>
1 parent b0882ed commit 663c9d2

File tree

972 files changed

+12961
-24747
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

972 files changed

+12961
-24747
lines changed

sdk/sql/azure-mgmt-sql/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Release History
22

3+
## 4.0.0b17 (2024-05-20)
4+
5+
### Features Added
6+
7+
- Model DatabaseOperation has a new parameter operation_phase_details
8+
39
## 4.0.0b16 (2024-04-07)
410

511
### Features Added

sdk/sql/azure-mgmt-sql/_meta.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "b5a069b591621be48ffbfbb131b79e5100ec7829",
2+
"commit": "33c4457b1d13f83965f4fe3367dca4a6df898100",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.9.7",
55
"use": [
6-
"@autorest/python@6.7.1",
7-
"@autorest/modelerfour@4.26.2"
6+
"@autorest/python@6.13.7",
7+
"@autorest/modelerfour@4.27.0"
88
],
9-
"autorest_command": "autorest specification/sql/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.7.1 --use=@autorest/modelerfour@4.26.2 --version=3.9.7 --version-tolerant=False",
9+
"autorest_command": "autorest specification/sql/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.13.7 --use=@autorest/modelerfour@4.27.0 --version=3.9.7 --version-tolerant=False",
1010
"readme": "specification/sql/resource-manager/readme.md"
1111
}

sdk/sql/azure-mgmt-sql/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "python",
44
"TagPrefix": "python/sql/azure-mgmt-sql",
5-
"Tag": "python/sql/azure-mgmt-sql_13e2a955a9"
5+
"Tag": "python/sql/azure-mgmt-sql_3957d80cf6"
66
}

sdk/sql/azure-mgmt-sql/azure/mgmt/sql/_configuration.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
from typing import Any, TYPE_CHECKING
1010

11-
from azure.core.configuration import Configuration
1211
from azure.core.pipeline import policies
1312
from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy
1413

@@ -19,7 +18,7 @@
1918
from azure.core.credentials import TokenCredential
2019

2120

22-
class SqlManagementClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes
21+
class SqlManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
2322
"""Configuration for SqlManagementClient.
2423
2524
Note that all parameters used to create this instance are saved as instance
@@ -32,7 +31,6 @@ class SqlManagementClientConfiguration(Configuration): # pylint: disable=too-ma
3231
"""
3332

3433
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
35-
super(SqlManagementClientConfiguration, self).__init__(**kwargs)
3634
if credential is None:
3735
raise ValueError("Parameter 'credential' must not be None.")
3836
if subscription_id is None:
@@ -42,6 +40,7 @@ def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs
4240
self.subscription_id = subscription_id
4341
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
4442
kwargs.setdefault("sdk_moniker", "mgmt-sql/{}".format(VERSION))
43+
self.polling_interval = kwargs.get("polling_interval", 30)
4544
self._configure(**kwargs)
4645

4746
def _configure(self, **kwargs: Any) -> None:
@@ -50,9 +49,9 @@ def _configure(self, **kwargs: Any) -> None:
5049
self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs)
5150
self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs)
5251
self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs)
53-
self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs)
5452
self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs)
5553
self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs)
54+
self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs)
5655
self.authentication_policy = kwargs.get("authentication_policy")
5756
if self.credential and not self.authentication_policy:
5857
self.authentication_policy = ARMChallengeAuthenticationPolicy(

0 commit comments

Comments
 (0)