Skip to content

Commit 6a3db4f

Browse files
author
SDKAuto
committed
CodeGen from PR 19471 in Azure/azure-rest-api-specs
Merge 0fa44acca5f7df0d2872a3c9328cbaf1491f1ef9 into 2139e4c0f3a5df27ed4b08008c20d76410a58f91
1 parent f9bf3cf commit 6a3db4f

25 files changed

+1726
-1192
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"autorest": "3.7.2",
33
"use": [
4-
"@autorest/python@5.13.0",
4+
"@autorest/python@5.16.0",
55
"@autorest/modelerfour@4.19.3"
66
],
7-
"commit": "08894fa8d66cb44dc62a73f7a09530f905985fa3",
7+
"commit": "fa02e085ef321b3a62d69d98d7adf2651800b472",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
9-
"autorest_command": "autorest specification/sqlvirtualmachine/resource-manager/readme.md --multiapi --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.13.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
9+
"autorest_command": "autorest specification/sqlvirtualmachine/resource-manager/readme.md --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.16.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
1010
"readme": "specification/sqlvirtualmachine/resource-manager/readme.md"
1111
}

sdk/sql/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/__init__.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,14 @@
1010
from ._version import VERSION
1111

1212
__version__ = VERSION
13+
14+
try:
15+
from ._patch import __all__ as _patch_all
16+
from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import
17+
except ImportError:
18+
_patch_all = []
19+
from ._patch import patch_sdk as _patch_sdk
1320
__all__ = ['SqlVirtualMachineManagementClient']
21+
__all__.extend([p for p in _patch_all if p not in __all__])
1422

15-
# `._patch.py` is used for handwritten extensions to the generated code
16-
# Example: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md
17-
from ._patch import patch_sdk
18-
patch_sdk()
23+
_patch_sdk()

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ class SqlVirtualMachineManagementClientConfiguration(Configuration): # pylint:
2929
:type credential: ~azure.core.credentials.TokenCredential
3030
:param subscription_id: Subscription ID that identifies an Azure subscription.
3131
:type subscription_id: str
32-
:keyword api_version: Api Version. Default value is "2021-11-01-preview". Note that overriding
33-
this default value may result in unsupported behavior.
32+
:keyword api_version: Api Version. Default value is "2022-02-01". Note that overriding this
33+
default value may result in unsupported behavior.
3434
:paramtype api_version: str
3535
"""
3636

@@ -41,7 +41,7 @@ def __init__(
4141
**kwargs: Any
4242
) -> None:
4343
super(SqlVirtualMachineManagementClientConfiguration, self).__init__(**kwargs)
44-
api_version = kwargs.pop('api_version', "2021-11-01-preview") # type: str
44+
api_version = kwargs.pop('api_version', "2022-02-01") # type: str
4545

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

sdk/sql/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/_metadata.json

Lines changed: 0 additions & 105 deletions
This file was deleted.

sdk/sql/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/_sql_virtual_machine_management_client.py

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ class SqlVirtualMachineManagementClient:
4545
:type subscription_id: str
4646
:param base_url: Service URL. Default value is "https://management.azure.com".
4747
:type base_url: str
48-
:keyword api_version: Api Version. Default value is "2021-11-01-preview". Note that overriding
49-
this default value may result in unsupported behavior.
48+
:keyword api_version: Api Version. Default value is "2022-02-01". Note that overriding this
49+
default value may result in unsupported behavior.
5050
:paramtype api_version: str
5151
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
5252
Retry-After header is present.
@@ -66,10 +66,18 @@ def __init__(
6666
self._serialize = Serializer(client_models)
6767
self._deserialize = Deserializer(client_models)
6868
self._serialize.client_side_validation = False
69-
self.availability_group_listeners = AvailabilityGroupListenersOperations(self._client, self._config, self._serialize, self._deserialize)
70-
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
71-
self.sql_virtual_machine_groups = SqlVirtualMachineGroupsOperations(self._client, self._config, self._serialize, self._deserialize)
72-
self.sql_virtual_machines = SqlVirtualMachinesOperations(self._client, self._config, self._serialize, self._deserialize)
69+
self.availability_group_listeners = AvailabilityGroupListenersOperations(
70+
self._client, self._config, self._serialize, self._deserialize
71+
)
72+
self.operations = Operations(
73+
self._client, self._config, self._serialize, self._deserialize
74+
)
75+
self.sql_virtual_machine_groups = SqlVirtualMachineGroupsOperations(
76+
self._client, self._config, self._serialize, self._deserialize
77+
)
78+
self.sql_virtual_machines = SqlVirtualMachinesOperations(
79+
self._client, self._config, self._serialize, self._deserialize
80+
)
7381

7482

7583
def _send_request(

sdk/sql/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/_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 = "1.0.0b3"
9+
VERSION = "1.0.0b1"

sdk/sql/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/aio/__init__.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,14 @@
77
# --------------------------------------------------------------------------
88

99
from ._sql_virtual_machine_management_client import SqlVirtualMachineManagementClient
10+
11+
try:
12+
from ._patch import __all__ as _patch_all
13+
from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import
14+
except ImportError:
15+
_patch_all = []
16+
from ._patch import patch_sdk as _patch_sdk
1017
__all__ = ['SqlVirtualMachineManagementClient']
18+
__all__.extend([p for p in _patch_all if p not in __all__])
1119

12-
# `._patch.py` is used for handwritten extensions to the generated code
13-
# Example: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md
14-
from ._patch import patch_sdk
15-
patch_sdk()
20+
_patch_sdk()

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ class SqlVirtualMachineManagementClientConfiguration(Configuration): # pylint:
2929
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
3030
:param subscription_id: Subscription ID that identifies an Azure subscription.
3131
:type subscription_id: str
32-
:keyword api_version: Api Version. Default value is "2021-11-01-preview". Note that overriding
33-
this default value may result in unsupported behavior.
32+
:keyword api_version: Api Version. Default value is "2022-02-01". Note that overriding this
33+
default value may result in unsupported behavior.
3434
:paramtype api_version: str
3535
"""
3636

@@ -41,7 +41,7 @@ def __init__(
4141
**kwargs: Any
4242
) -> None:
4343
super(SqlVirtualMachineManagementClientConfiguration, self).__init__(**kwargs)
44-
api_version = kwargs.pop('api_version', "2021-11-01-preview") # type: str
44+
api_version = kwargs.pop('api_version', "2022-02-01") # type: str
4545

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

sdk/sql/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/aio/_sql_virtual_machine_management_client.py

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ class SqlVirtualMachineManagementClient:
4545
:type subscription_id: str
4646
:param base_url: Service URL. Default value is "https://management.azure.com".
4747
:type base_url: str
48-
:keyword api_version: Api Version. Default value is "2021-11-01-preview". Note that overriding
49-
this default value may result in unsupported behavior.
48+
:keyword api_version: Api Version. Default value is "2022-02-01". Note that overriding this
49+
default value may result in unsupported behavior.
5050
:paramtype api_version: str
5151
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
5252
Retry-After header is present.
@@ -66,10 +66,18 @@ def __init__(
6666
self._serialize = Serializer(client_models)
6767
self._deserialize = Deserializer(client_models)
6868
self._serialize.client_side_validation = False
69-
self.availability_group_listeners = AvailabilityGroupListenersOperations(self._client, self._config, self._serialize, self._deserialize)
70-
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
71-
self.sql_virtual_machine_groups = SqlVirtualMachineGroupsOperations(self._client, self._config, self._serialize, self._deserialize)
72-
self.sql_virtual_machines = SqlVirtualMachinesOperations(self._client, self._config, self._serialize, self._deserialize)
69+
self.availability_group_listeners = AvailabilityGroupListenersOperations(
70+
self._client, self._config, self._serialize, self._deserialize
71+
)
72+
self.operations = Operations(
73+
self._client, self._config, self._serialize, self._deserialize
74+
)
75+
self.sql_virtual_machine_groups = SqlVirtualMachineGroupsOperations(
76+
self._client, self._config, self._serialize, self._deserialize
77+
)
78+
self.sql_virtual_machines = SqlVirtualMachinesOperations(
79+
self._client, self._config, self._serialize, self._deserialize
80+
)
7381

7482

7583
def _send_request(

sdk/sql/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/aio/operations/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,14 @@
1111
from ._sql_virtual_machine_groups_operations import SqlVirtualMachineGroupsOperations
1212
from ._sql_virtual_machines_operations import SqlVirtualMachinesOperations
1313

14+
from ._patch import __all__ as _patch_all
15+
from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import
16+
from ._patch import patch_sdk as _patch_sdk
1417
__all__ = [
1518
'AvailabilityGroupListenersOperations',
1619
'Operations',
1720
'SqlVirtualMachineGroupsOperations',
1821
'SqlVirtualMachinesOperations',
1922
]
23+
__all__.extend([p for p in _patch_all if p not in __all__])
24+
_patch_sdk()

0 commit comments

Comments
 (0)