Skip to content

Commit 16693b7

Browse files
authored
code and test (#35897)
Co-authored-by: azure-sdk <PythonSdkPipelines>
1 parent 736c5a9 commit 16693b7

File tree

150 files changed

+1539
-499
lines changed

Some content is hidden

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

150 files changed

+1539
-499
lines changed

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

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

3+
## 10.2.0b17 (2024-06-03)
4+
5+
### Features Added
6+
7+
- Added model ServerDetachVNetParameter
8+
- Added model StorageRedundancyEnum
9+
310
## 10.2.0b16 (2024-04-22)
411

512
### Features Added
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "71a0c7adf2a6e169ab9a33c7cf36bb93db083e86",
2+
"commit": "67e8e173b7a52626d07b4bd4001abcb5bd413b34",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
4-
"autorest": "3.9.7",
4+
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/[email protected].7",
6+
"@autorest/[email protected].16",
77
"@autorest/[email protected]"
88
],
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/[email protected].7 --use=@autorest/[email protected] --version=3.9.7 --version-tolerant=False",
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/[email protected].16 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/mysql/resource-manager/readme.md"
1111
}

sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# license information.
66
# --------------------------------------------------------------------------
77

8-
VERSION = "10.2.0b16"
8+
VERSION = "10.2.0b17"

sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "10.2.0b16"
9+
VERSION = "10.2.0b17"

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#
2626
# --------------------------------------------------------------------------
2727

28+
2829
# This file is used for handwritten extensions to the generated code. Example:
2930
# https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md
3031
def patch_sdk():

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "10.2.0b16"
9+
VERSION = "10.2.0b17"

sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql/aio/_patch.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#
2626
# --------------------------------------------------------------------------
2727

28+
2829
# This file is used for handwritten extensions to the generated code. Example:
2930
# https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md
3031
def patch_sdk():

sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql/aio/operations/_advisors_operations.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
# Code generated by Microsoft (R) AutoRest Code Generator.
77
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
88
# --------------------------------------------------------------------------
9-
from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar
9+
import sys
10+
from typing import Any, AsyncIterable, Callable, Dict, Optional, Type, TypeVar
1011

1112
from azure.core.async_paging import AsyncItemPaged, AsyncList
1213
from azure.core.exceptions import (
@@ -30,6 +31,10 @@
3031
from ...operations._advisors_operations import build_get_request, build_list_by_server_request
3132
from .._vendor import MySQLManagementClientMixinABC
3233

34+
if sys.version_info >= (3, 9):
35+
from collections.abc import MutableMapping
36+
else:
37+
from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
3338
T = TypeVar("T")
3439
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
3540

@@ -70,7 +75,7 @@ async def get(
7075
:rtype: ~azure.mgmt.rdbms.mysql.models.Advisor
7176
:raises ~azure.core.exceptions.HttpResponseError:
7277
"""
73-
error_map = {
78+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
7479
401: ClientAuthenticationError,
7580
404: ResourceNotFoundError,
7681
409: ResourceExistsError,
@@ -135,7 +140,7 @@ def list_by_server(
135140
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01"))
136141
cls: ClsType[_models.AdvisorsResultList] = kwargs.pop("cls", None)
137142

138-
error_map = {
143+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
139144
401: ClientAuthenticationError,
140145
404: ResourceNotFoundError,
141146
409: ResourceExistsError,

sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql/aio/operations/_check_name_availability_operations.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
88
# --------------------------------------------------------------------------
99
from io import IOBase
10-
from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload
10+
import sys
11+
from typing import Any, Callable, Dict, IO, Optional, Type, TypeVar, Union, overload
1112

1213
from azure.core.exceptions import (
1314
ClientAuthenticationError,
@@ -29,6 +30,10 @@
2930
from ...operations._check_name_availability_operations import build_execute_request
3031
from .._vendor import MySQLManagementClientMixinABC
3132

33+
if sys.version_info >= (3, 9):
34+
from collections.abc import MutableMapping
35+
else:
36+
from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
3237
T = TypeVar("T")
3338
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
3439

@@ -104,7 +109,7 @@ async def execute(
104109
:rtype: ~azure.mgmt.rdbms.mysql.models.NameAvailability
105110
:raises ~azure.core.exceptions.HttpResponseError:
106111
"""
107-
error_map = {
112+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
108113
401: ClientAuthenticationError,
109114
404: ResourceNotFoundError,
110115
409: ResourceExistsError,

sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql/aio/operations/_configurations_operations.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
88
# --------------------------------------------------------------------------
99
from io import IOBase
10-
from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload
10+
import sys
11+
from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, Type, TypeVar, Union, cast, overload
1112

1213
from azure.core.async_paging import AsyncItemPaged, AsyncList
1314
from azure.core.exceptions import (
@@ -37,6 +38,10 @@
3738
)
3839
from .._vendor import MySQLManagementClientMixinABC
3940

41+
if sys.version_info >= (3, 9):
42+
from collections.abc import MutableMapping
43+
else:
44+
from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
4045
T = TypeVar("T")
4146
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
4247

@@ -68,7 +73,7 @@ async def _create_or_update_initial(
6873
parameters: Union[_models.Configuration, IO[bytes]],
6974
**kwargs: Any
7075
) -> Optional[_models.Configuration]:
71-
error_map = {
76+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
7277
401: ClientAuthenticationError,
7378
404: ResourceNotFoundError,
7479
409: ResourceExistsError,
@@ -278,7 +283,7 @@ async def get(
278283
:rtype: ~azure.mgmt.rdbms.mysql.models.Configuration
279284
:raises ~azure.core.exceptions.HttpResponseError:
280285
"""
281-
error_map = {
286+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
282287
401: ClientAuthenticationError,
283288
404: ResourceNotFoundError,
284289
409: ResourceExistsError,
@@ -343,7 +348,7 @@ def list_by_server(
343348
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2017-12-01"))
344349
cls: ClsType[_models.ConfigurationListResult] = kwargs.pop("cls", None)
345350

346-
error_map = {
351+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
347352
401: ClientAuthenticationError,
348353
404: ResourceNotFoundError,
349354
409: ResourceExistsError,

0 commit comments

Comments
 (0)