Skip to content

Commit 868d6d0

Browse files
author
SDKAuto
committed
CodeGen from PR 15709 in Azure/azure-rest-api-specs
Merge 2e3ff67f900b92616ef1fc0338beff4e7c818bb6 into 44017a2
1 parent 986302f commit 868d6d0

File tree

4,065 files changed

+36658
-36179
lines changed

Some content is hidden

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

4,065 files changed

+36658
-36179
lines changed
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
2-
"autorest": "3.4.2",
3-
"use": "@autorest/[email protected]",
4-
"commit": "f5fb71085c6846fd5d11b59a57381a5fcfd36840",
2+
"autorest": "3.4.5",
3+
"use": [
4+
"@autorest/[email protected]",
5+
"@autorest/[email protected]"
6+
],
7+
"commit": "3d888a5e5b1dbb06dfbf6a09dda30db3014e1272",
58
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
6-
"autorest_command": "autorest specification/network/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.6.6 --version=3.4.2",
9+
"autorest_command": "autorest specification/network/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.4 --use=@autorest/[email protected] --version=3.4.5",
710
"readme": "specification/network/resource-manager/readme.md"
811
}

sdk/network/azure-mgmt-network/azure/mgmt/network/_operations_mixin.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ def begin_delete_bastion_shareable_link(
4444
:type bsl_request: ~azure.mgmt.network.v2021_02_01.models.BastionShareableLinkListRequest
4545
:keyword callable cls: A custom type or function that will be passed the direct response
4646
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
47-
:keyword polling: Pass in True if you'd like the ARMPolling polling method,
48-
False for no polling, or your own initialized polling object for a personal polling strategy.
47+
:keyword polling: By default, your polling method will be ARMPolling.
48+
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
4949
:paramtype polling: bool or ~azure.core.polling.PollingMethod
5050
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
5151
:return: An instance of LROPoller that returns either None or the result of cls(response)
@@ -105,8 +105,8 @@ def begin_generatevirtualwanvpnserverconfigurationvpnprofile(
105105
:type vpn_client_params: ~azure.mgmt.network.v2021_02_01.models.VirtualWanVpnProfileParameters
106106
:keyword callable cls: A custom type or function that will be passed the direct response
107107
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
108-
:keyword polling: Pass in True if you'd like the ARMPolling polling method,
109-
False for no polling, or your own initialized polling object for a personal polling strategy.
108+
:keyword polling: By default, your polling method will be ARMPolling.
109+
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
110110
:paramtype polling: bool or ~azure.core.polling.PollingMethod
111111
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
112112
:return: An instance of LROPoller that returns either VpnProfileResponse or the result of cls(response)
@@ -162,8 +162,8 @@ def begin_get_active_sessions(
162162
:type bastion_host_name: str
163163
:keyword callable cls: A custom type or function that will be passed the direct response
164164
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
165-
:keyword polling: Pass in True if you'd like the ARMPolling polling method,
166-
False for no polling, or your own initialized polling object for a personal polling strategy.
165+
:keyword polling: By default, your polling method will be ARMPolling.
166+
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
167167
:paramtype polling: bool or ~azure.core.polling.PollingMethod
168168
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
169169
:return: An instance of LROPoller that returns an iterator like instance of either BastionActiveSessionListResult or the result of cls(response)
@@ -220,8 +220,8 @@ def begin_put_bastion_shareable_link(
220220
:type bsl_request: ~azure.mgmt.network.v2021_02_01.models.BastionShareableLinkListRequest
221221
:keyword callable cls: A custom type or function that will be passed the direct response
222222
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
223-
:keyword polling: Pass in True if you'd like the ARMPolling polling method,
224-
False for no polling, or your own initialized polling object for a personal polling strategy.
223+
:keyword polling: By default, your polling method will be ARMPolling.
224+
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
225225
:paramtype polling: bool or ~azure.core.polling.PollingMethod
226226
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
227227
:return: An instance of LROPoller that returns an iterator like instance of either BastionShareableLinkListResult or the result of cls(response)

sdk/network/azure-mgmt-network/azure/mgmt/network/aio/_operations_mixin.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async def begin_delete_bastion_shareable_link(
2828
resource_group_name: str,
2929
bastion_host_name: str,
3030
bsl_request: "_models.BastionShareableLinkListRequest",
31-
**kwargs
31+
**kwargs: Any
3232
) -> AsyncLROPoller[None]:
3333
"""Deletes the Bastion Shareable Links for all the VMs specified in the request.
3434
@@ -40,8 +40,8 @@ async def begin_delete_bastion_shareable_link(
4040
:type bsl_request: ~azure.mgmt.network.v2021_02_01.models.BastionShareableLinkListRequest
4141
:keyword callable cls: A custom type or function that will be passed the direct response
4242
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
43-
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
44-
False for no polling, or your own initialized polling object for a personal polling strategy.
43+
:keyword polling: By default, your polling method will be AsyncARMPolling.
44+
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
4545
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
4646
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
4747
:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
@@ -86,7 +86,7 @@ async def begin_generatevirtualwanvpnserverconfigurationvpnprofile(
8686
resource_group_name: str,
8787
virtual_wan_name: str,
8888
vpn_client_params: "_models.VirtualWanVpnProfileParameters",
89-
**kwargs
89+
**kwargs: Any
9090
) -> AsyncLROPoller["_models.VpnProfileResponse"]:
9191
"""Generates a unique VPN profile for P2S clients for VirtualWan and associated
9292
VpnServerConfiguration combination in the specified resource group.
@@ -101,8 +101,8 @@ async def begin_generatevirtualwanvpnserverconfigurationvpnprofile(
101101
:type vpn_client_params: ~azure.mgmt.network.v2021_02_01.models.VirtualWanVpnProfileParameters
102102
:keyword callable cls: A custom type or function that will be passed the direct response
103103
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
104-
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
105-
False for no polling, or your own initialized polling object for a personal polling strategy.
104+
:keyword polling: By default, your polling method will be AsyncARMPolling.
105+
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
106106
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
107107
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
108108
:return: An instance of AsyncLROPoller that returns either VpnProfileResponse or the result of cls(response)
@@ -148,7 +148,7 @@ def begin_get_active_sessions(
148148
self,
149149
resource_group_name: str,
150150
bastion_host_name: str,
151-
**kwargs
151+
**kwargs: Any
152152
) -> AsyncLROPoller[AsyncItemPaged["_models.BastionActiveSessionListResult"]]:
153153
"""Returns the list of currently active sessions on the Bastion.
154154
@@ -158,8 +158,8 @@ def begin_get_active_sessions(
158158
:type bastion_host_name: str
159159
:keyword callable cls: A custom type or function that will be passed the direct response
160160
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
161-
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
162-
False for no polling, or your own initialized polling object for a personal polling strategy.
161+
:keyword polling: By default, your polling method will be AsyncARMPolling.
162+
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
163163
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
164164
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
165165
:return: An instance of AsyncLROPoller that returns an iterator like instance of either BastionActiveSessionListResult or the result of cls(response)
@@ -204,7 +204,7 @@ def begin_put_bastion_shareable_link(
204204
resource_group_name: str,
205205
bastion_host_name: str,
206206
bsl_request: "_models.BastionShareableLinkListRequest",
207-
**kwargs
207+
**kwargs: Any
208208
) -> AsyncLROPoller[AsyncItemPaged["_models.BastionShareableLinkListResult"]]:
209209
"""Creates a Bastion Shareable Links for all the VMs specified in the request.
210210
@@ -216,8 +216,8 @@ def begin_put_bastion_shareable_link(
216216
:type bsl_request: ~azure.mgmt.network.v2021_02_01.models.BastionShareableLinkListRequest
217217
:keyword callable cls: A custom type or function that will be passed the direct response
218218
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
219-
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
220-
False for no polling, or your own initialized polling object for a personal polling strategy.
219+
:keyword polling: By default, your polling method will be AsyncARMPolling.
220+
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
221221
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
222222
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
223223
:return: An instance of AsyncLROPoller that returns an iterator like instance of either BastionShareableLinkListResult or the result of cls(response)
@@ -261,7 +261,7 @@ async def check_dns_name_availability(
261261
self,
262262
location: str,
263263
domain_name_label: str,
264-
**kwargs
264+
**kwargs: Any
265265
) -> "_models.DnsNameAvailabilityResult":
266266
"""Checks whether a domain name in the cloudapp.azure.com zone is available for use.
267267
@@ -359,7 +359,7 @@ def disconnect_active_sessions(
359359
resource_group_name: str,
360360
bastion_host_name: str,
361361
session_ids: "_models.SessionIds",
362-
**kwargs
362+
**kwargs: Any
363363
) -> AsyncItemPaged["_models.BastionSessionDeleteResult"]:
364364
"""Returns the list of currently active sessions on the Bastion.
365365
@@ -412,7 +412,7 @@ def get_bastion_shareable_link(
412412
resource_group_name: str,
413413
bastion_host_name: str,
414414
bsl_request: "_models.BastionShareableLinkListRequest",
415-
**kwargs
415+
**kwargs: Any
416416
) -> AsyncItemPaged["_models.BastionShareableLinkListResult"]:
417417
"""Return the Bastion Shareable Links for all the VMs specified in the request.
418418
@@ -464,7 +464,7 @@ async def supported_security_providers(
464464
self,
465465
resource_group_name: str,
466466
virtual_wan_name: str,
467-
**kwargs
467+
**kwargs: Any
468468
) -> "_models.VirtualWanSecurityProviders":
469469
"""Gives the supported security providers for the virtual wan.
470470

sdk/network/azure-mgmt-network/azure/mgmt/network/v2015_06_15/__init__.py

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

99
from ._network_management_client import NetworkManagementClient
10+
from ._version import VERSION
11+
12+
__version__ = VERSION
1013
__all__ = ['NetworkManagementClient']
1114

1215
try:

sdk/network/azure-mgmt-network/azure/mgmt/network/v2015_06_15/_configuration.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@
1212
from azure.core.pipeline import policies
1313
from azure.mgmt.core.policies import ARMHttpLoggingPolicy
1414

15+
from ._version import VERSION
16+
1517
if TYPE_CHECKING:
1618
# pylint: disable=unused-import,ungrouped-imports
1719
from typing import Any
1820

1921
from azure.core.credentials import TokenCredential
2022

21-
VERSION = "unknown"
2223

2324
class NetworkManagementClientConfiguration(Configuration):
2425
"""Configuration for NetworkManagementClient.

sdk/network/azure-mgmt-network/azure/mgmt/network/v2015_06_15/_metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
},
129129
"async": {
130130
"coroutine": true,
131-
"signature": "async def check_dns_name_availability(\n self,\n location: str,\n domain_name_label: Optional[str] = None,\n **kwargs\n) -\u003e \"_models.DnsNameAvailabilityResult\":\n",
131+
"signature": "async def check_dns_name_availability(\n self,\n location: str,\n domain_name_label: Optional[str] = None,\n **kwargs: Any\n) -\u003e \"_models.DnsNameAvailabilityResult\":\n",
132132
"doc": "\"\"\"Checks whether a domain name in the cloudapp.net zone is available for use.\n\n:param location: The location of the domain name.\n:type location: str\n:param domain_name_label: The domain name to be verified. It must conform to the following\n regular expression: ^[a-z][a-z0-9-]{1,61}[a-z0-9]$.\n:type domain_name_label: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: DnsNameAvailabilityResult, or the result of cls(response)\n:rtype: ~azure.mgmt.network.v2015_06_15.models.DnsNameAvailabilityResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
133133
},
134134
"call": "location, domain_name_label"
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for license information.
5+
# Code generated by Microsoft (R) AutoRest Code Generator.
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# --------------------------------------------------------------------------
8+
9+
VERSION = "1.0.0b1"

sdk/network/azure-mgmt-network/azure/mgmt/network/v2015_06_15/aio/_configuration.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212
from azure.core.pipeline import policies
1313
from azure.mgmt.core.policies import ARMHttpLoggingPolicy
1414

15+
from .._version import VERSION
16+
1517
if TYPE_CHECKING:
1618
# pylint: disable=unused-import,ungrouped-imports
1719
from azure.core.credentials_async import AsyncTokenCredential
1820

19-
VERSION = "unknown"
2021

2122
class NetworkManagementClientConfiguration(Configuration):
2223
"""Configuration for NetworkManagementClient.

0 commit comments

Comments
 (0)