Skip to content

Commit 5a873c2

Browse files
author
SDKAuto
committed
CodeGen from PR 24738 in Azure/azure-rest-api-specs
Merge d1d6e0b2c6701892cdd9143c33df79ef9a59ae44 into 5758cc23b0022e403d876662d9799f02c9bba3e6
1 parent 00b1a70 commit 5a873c2

File tree

49 files changed

+114
-70
lines changed

Some content is hidden

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

49 files changed

+114
-70
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "dc92283b118284e79f4ed3837763e2bb079ffa09",
2+
"commit": "f2d13c30eda9012fc781979f60c1a7dd746981d5",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.9.2",
55
"use": [
6-
"@autorest/python@6.4.12",
6+
"@autorest/python@6.6.0",
77
"@autorest/[email protected]"
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.12 --use=@autorest/[email protected] --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=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.6.0 --use=@autorest/[email protected] --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/_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.0b10"
9+
VERSION = "1.0.0b1"

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
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 io import IOBase
910
from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload
1011

1112
from azure.core.exceptions import (
@@ -126,7 +127,7 @@ async def execute(
126127
content_type = content_type or "application/json"
127128
_json = None
128129
_content = None
129-
if isinstance(name_availability_request, (IO, bytes)):
130+
if isinstance(name_availability_request, (IOBase, bytes)):
130131
_content = name_availability_request
131132
else:
132133
_json = self._serialize.body(name_availability_request, "NameAvailabilityRequest")

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
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 io import IOBase
910
from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload
1011

1112
from azure.core.async_paging import AsyncItemPaged, AsyncList
@@ -85,7 +86,7 @@ async def _create_or_update_initial(
8586
content_type = content_type or "application/json"
8687
_json = None
8788
_content = None
88-
if isinstance(parameters, (IO, bytes)):
89+
if isinstance(parameters, (IOBase, bytes)):
8990
_content = parameters
9091
else:
9192
_json = self._serialize.body(parameters, "Configuration")

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
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 io import IOBase
910
from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload
1011

1112
from azure.core.async_paging import AsyncItemPaged, AsyncList
@@ -86,7 +87,7 @@ async def _create_or_update_initial(
8687
content_type = content_type or "application/json"
8788
_json = None
8889
_content = None
89-
if isinstance(parameters, (IO, bytes)):
90+
if isinstance(parameters, (IOBase, bytes)):
9091
_content = parameters
9192
else:
9293
_json = self._serialize.body(parameters, "Database")

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
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 io import IOBase
910
from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload
1011

1112
from azure.core.async_paging import AsyncItemPaged, AsyncList
@@ -86,7 +87,7 @@ async def _create_or_update_initial(
8687
content_type = content_type or "application/json"
8788
_json = None
8889
_content = None
89-
if isinstance(parameters, (IO, bytes)):
90+
if isinstance(parameters, (IOBase, bytes)):
9091
_content = parameters
9192
else:
9293
_json = self._serialize.body(parameters, "FirewallRule")

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ async def reset_query_performance_insight_data(
102102
"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/resetQueryPerformanceInsightData"
103103
}
104104

105-
async def _create_recommended_action_session_initial( # pylint: disable=inconsistent-return-statements,name-too-long
105+
async def _create_recommended_action_session_initial( # pylint: disable=inconsistent-return-statements
106106
self, resource_group_name: str, server_name: str, advisor_name: str, database_name: str, **kwargs: Any
107107
) -> None:
108108
error_map = {

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
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 io import IOBase
910
from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload
1011

1112
from azure.core.async_paging import AsyncItemPaged, AsyncList
@@ -154,7 +155,7 @@ async def _create_or_update_initial(
154155
content_type = content_type or "application/json"
155156
_json = None
156157
_content = None
157-
if isinstance(parameters, (IO, bytes)):
158+
if isinstance(parameters, (IOBase, bytes)):
158159
_content = parameters
159160
else:
160161
_json = self._serialize.body(parameters, "PrivateEndpointConnection")
@@ -508,7 +509,7 @@ async def _update_tags_initial(
508509
content_type = content_type or "application/json"
509510
_json = None
510511
_content = None
511-
if isinstance(parameters, (IO, bytes)):
512+
if isinstance(parameters, (IOBase, bytes)):
512513
_content = parameters
513514
else:
514515
_json = self._serialize.body(parameters, "TagsObject")

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
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 io import IOBase
910
from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload
1011

1112
from azure.core.async_paging import AsyncItemPaged, AsyncList
@@ -149,7 +150,7 @@ async def _create_or_update_initial(
149150
content_type = content_type or "application/json"
150151
_json = None
151152
_content = None
152-
if isinstance(properties, (IO, bytes)):
153+
if isinstance(properties, (IOBase, bytes)):
153154
_content = properties
154155
else:
155156
_json = self._serialize.body(properties, "ServerAdministratorResource")

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
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 io import IOBase
910
from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload
1011

1112
from azure.core.async_paging import AsyncItemPaged, AsyncList
@@ -229,7 +230,7 @@ async def _create_or_update_initial(
229230
content_type = content_type or "application/json"
230231
_json = None
231232
_content = None
232-
if isinstance(parameters, (IO, bytes)):
233+
if isinstance(parameters, (IOBase, bytes)):
233234
_content = parameters
234235
else:
235236
_json = self._serialize.body(parameters, "ServerKey")

0 commit comments

Comments
 (0)