Skip to content

Commit 4376081

Browse files
azure-sdkmsyyc
andauthored
[AutoRelease] t2-rdbms-2023-04-18-13898(can only be merged by SDK owner) (Azure#29935)
* code and test * Update CHANGELOG.md --------- Co-authored-by: PythonSdkPipelines <PythonSdkPipelines> Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
1 parent 0852764 commit 4376081

File tree

208 files changed

+7191
-4238
lines changed

Some content is hidden

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

208 files changed

+7191
-4238
lines changed

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

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

3-
## 10.2.0b7 (2023-04-20)
3+
## 10.2.0b7 (2023-04-18)
4+
5+
### Features Added
6+
7+
- Added operation group BackupAndExportOperations
48

59
### Breaking Changes
610

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "6b992c049ed7d6a95465d5c0a2234fc54c87b9bf",
2+
"commit": "87589a8b18e6dc791e0b49fadc74c5a513c5dd73",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.9.2",
55
"use": [
6-
"@autorest/python@6.4.7",
6+
"@autorest/python@6.4.8",
77
"@autorest/modelerfour@4.24.3"
88
],
9-
"autorest_command": "autorest specification/postgresql/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.4.7 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
10-
"readme": "specification/postgresql/resource-manager/readme.md"
9+
"autorest_command": "autorest specification/mysql/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.4.8 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
10+
"readme": "specification/mysql/resource-manager/readme.md"
1111
}

sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
try:
1515
from ._patch import __all__ as _patch_all
16-
from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import
16+
from ._patch import * # pylint: disable=unused-wildcard-import
1717
except ImportError:
1818
_patch_all = []
1919
from ._patch import patch_sdk as _patch_sdk

sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql/_configuration.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,7 @@ def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs
4444
kwargs.setdefault("sdk_moniker", "mgmt-rdbms/{}".format(VERSION))
4545
self._configure(**kwargs)
4646

47-
def _configure(
48-
self, **kwargs # type: Any
49-
):
50-
# type: (...) -> None
47+
def _configure(self, **kwargs: Any) -> None:
5148
self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs)
5249
self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs)
5350
self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs)

sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql/_my_sql_management_client.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from azure.core.rest import HttpRequest, HttpResponse
1313
from azure.mgmt.core import ARMPipelineClient
1414

15-
from . import models
15+
from . import models as _models
1616
from ._configuration import MySQLManagementClientConfiguration
1717
from ._serialization import Deserializer, Serializer
1818
from .operations import (
@@ -137,9 +137,9 @@ def __init__(
137137
self._config = MySQLManagementClientConfiguration(
138138
credential=credential, subscription_id=subscription_id, **kwargs
139139
)
140-
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
140+
self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
141141

142-
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
142+
client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
143143
self._serialize = Serializer(client_models)
144144
self._deserialize = Deserializer(client_models)
145145
self._serialize.client_side_validation = False
@@ -221,15 +221,12 @@ def _send_request(self, request: HttpRequest, **kwargs: Any) -> HttpResponse:
221221
request_copy.url = self._client.format_url(request_copy.url)
222222
return self._client.send_request(request_copy, **kwargs)
223223

224-
def close(self):
225-
# type: () -> None
224+
def close(self) -> None:
226225
self._client.close()
227226

228-
def __enter__(self):
229-
# type: () -> MySQLManagementClient
227+
def __enter__(self) -> "MySQLManagementClient":
230228
self._client.__enter__()
231229
return self
232230

233-
def __exit__(self, *exc_details):
234-
# type: (Any) -> None
231+
def __exit__(self, *exc_details: Any) -> None:
235232
self._client.__exit__(*exc_details)

0 commit comments

Comments
 (0)