Skip to content

Commit 43d1f37

Browse files
author
SDKAuto
committed
CodeGen from PR 16902 in Azure/azure-rest-api-specs
Merge c7144760e2fddd0b9328f113cff6a03b2a8c8987 into b22180c
1 parent d769535 commit 43d1f37

File tree

46 files changed

+394
-300
lines changed

Some content is hidden

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

46 files changed

+394
-300
lines changed
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
2-
"autorest": "3.3.0",
3-
"use": "@autorest/python@5.6.5",
4-
"commit": "6fa6101166a28f1fd82d6a60b8038c9af236e2be",
2+
"autorest": "3.4.5",
3+
"use": [
4+
"@autorest/python@5.8.4",
5+
"@autorest/modelerfour@4.19.2"
6+
],
7+
"commit": "3d1c5d45f465ee873b46edacd52d045cf75cb7c3",
58
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
6-
"autorest_command": "autorest specification/dns/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.5 --version=3.3.0",
9+
"autorest_command": "autorest specification/dns/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/modelerfour@4.19.2 --version=3.4.5",
710
"readme": "specification/dns/resource-manager/readme.md"
811
}

sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/_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 = "8.0.0"
9+
VERSION = "1.0.0b1"

sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/aio/operations/_record_sets_operations.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ async def update(
4949
record_type: Union[str, "_models.RecordType"],
5050
parameters: "_models.RecordSet",
5151
if_match: Optional[str] = None,
52-
**kwargs
52+
**kwargs: Any
5353
) -> "_models.RecordSet":
5454
"""Updates a record set within a DNS zone.
5555
@@ -84,7 +84,7 @@ async def update(
8484
# Construct URL
8585
url = self.update.metadata['url'] # type: ignore
8686
path_format_arguments = {
87-
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
87+
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
8888
'zoneName': self._serialize.url("zone_name", zone_name, 'str'),
8989
'relativeRecordSetName': self._serialize.url("relative_record_set_name", relative_record_set_name, 'str', skip_quote=True),
9090
'recordType': self._serialize.url("record_type", record_type, 'str'),
@@ -131,7 +131,7 @@ async def create_or_update(
131131
parameters: "_models.RecordSet",
132132
if_match: Optional[str] = None,
133133
if_none_match: Optional[str] = None,
134-
**kwargs
134+
**kwargs: Any
135135
) -> "_models.RecordSet":
136136
"""Creates or updates a record set within a DNS zone.
137137
@@ -170,7 +170,7 @@ async def create_or_update(
170170
# Construct URL
171171
url = self.create_or_update.metadata['url'] # type: ignore
172172
path_format_arguments = {
173-
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
173+
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
174174
'zoneName': self._serialize.url("zone_name", zone_name, 'str'),
175175
'relativeRecordSetName': self._serialize.url("relative_record_set_name", relative_record_set_name, 'str', skip_quote=True),
176176
'recordType': self._serialize.url("record_type", record_type, 'str'),
@@ -221,7 +221,7 @@ async def delete(
221221
relative_record_set_name: str,
222222
record_type: Union[str, "_models.RecordType"],
223223
if_match: Optional[str] = None,
224-
**kwargs
224+
**kwargs: Any
225225
) -> None:
226226
"""Deletes a record set from a DNS zone. This operation cannot be undone.
227227
@@ -254,7 +254,7 @@ async def delete(
254254
# Construct URL
255255
url = self.delete.metadata['url'] # type: ignore
256256
path_format_arguments = {
257-
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
257+
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
258258
'zoneName': self._serialize.url("zone_name", zone_name, 'str'),
259259
'relativeRecordSetName': self._serialize.url("relative_record_set_name", relative_record_set_name, 'str', skip_quote=True),
260260
'recordType': self._serialize.url("record_type", record_type, 'str'),
@@ -291,7 +291,7 @@ async def get(
291291
zone_name: str,
292292
relative_record_set_name: str,
293293
record_type: Union[str, "_models.RecordType"],
294-
**kwargs
294+
**kwargs: Any
295295
) -> "_models.RecordSet":
296296
"""Gets a record set.
297297
@@ -319,7 +319,7 @@ async def get(
319319
# Construct URL
320320
url = self.get.metadata['url'] # type: ignore
321321
path_format_arguments = {
322-
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
322+
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
323323
'zoneName': self._serialize.url("zone_name", zone_name, 'str'),
324324
'relativeRecordSetName': self._serialize.url("relative_record_set_name", relative_record_set_name, 'str', skip_quote=True),
325325
'recordType': self._serialize.url("record_type", record_type, 'str'),
@@ -358,7 +358,7 @@ def list_by_type(
358358
record_type: Union[str, "_models.RecordType"],
359359
top: Optional[int] = None,
360360
recordsetnamesuffix: Optional[str] = None,
361-
**kwargs
361+
**kwargs: Any
362362
) -> AsyncIterable["_models.RecordSetListResult"]:
363363
"""Lists the record sets of a specified type in a DNS zone.
364364
@@ -397,7 +397,7 @@ def prepare_request(next_link=None):
397397
# Construct URL
398398
url = self.list_by_type.metadata['url'] # type: ignore
399399
path_format_arguments = {
400-
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
400+
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
401401
'zoneName': self._serialize.url("zone_name", zone_name, 'str'),
402402
'recordType': self._serialize.url("record_type", record_type, 'str'),
403403
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
@@ -448,7 +448,7 @@ def list_by_dns_zone(
448448
zone_name: str,
449449
top: Optional[int] = None,
450450
recordsetnamesuffix: Optional[str] = None,
451-
**kwargs
451+
**kwargs: Any
452452
) -> AsyncIterable["_models.RecordSetListResult"]:
453453
"""Lists all record sets in a DNS zone.
454454
@@ -485,7 +485,7 @@ def prepare_request(next_link=None):
485485
# Construct URL
486486
url = self.list_by_dns_zone.metadata['url'] # type: ignore
487487
path_format_arguments = {
488-
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
488+
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
489489
'zoneName': self._serialize.url("zone_name", zone_name, 'str'),
490490
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
491491
}

sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/aio/operations/_zones_operations.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ async def create_or_update(
5050
parameters: "_models.Zone",
5151
if_match: Optional[str] = None,
5252
if_none_match: Optional[str] = None,
53-
**kwargs
53+
**kwargs: Any
5454
) -> "_models.Zone":
5555
"""Creates or updates a DNS zone. Does not modify DNS records within the zone.
5656
@@ -84,7 +84,7 @@ async def create_or_update(
8484
# Construct URL
8585
url = self.create_or_update.metadata['url'] # type: ignore
8686
path_format_arguments = {
87-
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
87+
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
8888
'zoneName': self._serialize.url("zone_name", zone_name, 'str'),
8989
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
9090
}
@@ -131,7 +131,7 @@ async def _delete_initial(
131131
resource_group_name: str,
132132
zone_name: str,
133133
if_match: Optional[str] = None,
134-
**kwargs
134+
**kwargs: Any
135135
) -> Optional["_models.ZoneDeleteResult"]:
136136
cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.ZoneDeleteResult"]]
137137
error_map = {
@@ -144,7 +144,7 @@ async def _delete_initial(
144144
# Construct URL
145145
url = self._delete_initial.metadata['url'] # type: ignore
146146
path_format_arguments = {
147-
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
147+
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
148148
'zoneName': self._serialize.url("zone_name", zone_name, 'str'),
149149
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
150150
}
@@ -183,7 +183,7 @@ async def begin_delete(
183183
resource_group_name: str,
184184
zone_name: str,
185185
if_match: Optional[str] = None,
186-
**kwargs
186+
**kwargs: Any
187187
) -> AsyncLROPoller["_models.ZoneDeleteResult"]:
188188
"""Deletes a DNS zone. WARNING: All DNS records in the zone will also be deleted. This operation
189189
cannot be undone.
@@ -197,8 +197,8 @@ async def begin_delete(
197197
:type if_match: str
198198
:keyword callable cls: A custom type or function that will be passed the direct response
199199
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
200-
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
201-
False for no polling, or your own initialized polling object for a personal polling strategy.
200+
:keyword polling: By default, your polling method will be AsyncARMPolling.
201+
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
202202
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
203203
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
204204
:return: An instance of AsyncLROPoller that returns either ZoneDeleteResult or the result of cls(response)
@@ -232,7 +232,7 @@ def get_long_running_output(pipeline_response):
232232
return deserialized
233233

234234
path_format_arguments = {
235-
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
235+
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
236236
'zoneName': self._serialize.url("zone_name", zone_name, 'str'),
237237
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
238238
}
@@ -255,7 +255,7 @@ async def get(
255255
self,
256256
resource_group_name: str,
257257
zone_name: str,
258-
**kwargs
258+
**kwargs: Any
259259
) -> "_models.Zone":
260260
"""Gets a DNS zone. Retrieves the zone properties, but not the record sets within the zone.
261261
@@ -279,7 +279,7 @@ async def get(
279279
# Construct URL
280280
url = self.get.metadata['url'] # type: ignore
281281
path_format_arguments = {
282-
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
282+
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
283283
'zoneName': self._serialize.url("zone_name", zone_name, 'str'),
284284
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
285285
}
@@ -313,7 +313,7 @@ def list_by_resource_group(
313313
self,
314314
resource_group_name: str,
315315
top: Optional[int] = None,
316-
**kwargs
316+
**kwargs: Any
317317
) -> AsyncIterable["_models.ZoneListResult"]:
318318
"""Lists the DNS zones within a resource group.
319319
@@ -344,7 +344,7 @@ def prepare_request(next_link=None):
344344
# Construct URL
345345
url = self.list_by_resource_group.metadata['url'] # type: ignore
346346
path_format_arguments = {
347-
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
347+
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
348348
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
349349
}
350350
url = self._client.format_url(url, **path_format_arguments)
@@ -388,7 +388,7 @@ async def get_next(next_link=None):
388388
def list(
389389
self,
390390
top: Optional[int] = None,
391-
**kwargs
391+
**kwargs: Any
392392
) -> AsyncIterable["_models.ZoneListResult"]:
393393
"""Lists the DNS zones in all resource groups in a subscription.
394394

sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/operations/_record_sets_operations.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def update(
8989
# Construct URL
9090
url = self.update.metadata['url'] # type: ignore
9191
path_format_arguments = {
92-
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
92+
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
9393
'zoneName': self._serialize.url("zone_name", zone_name, 'str'),
9494
'relativeRecordSetName': self._serialize.url("relative_record_set_name", relative_record_set_name, 'str', skip_quote=True),
9595
'recordType': self._serialize.url("record_type", record_type, 'str'),
@@ -176,7 +176,7 @@ def create_or_update(
176176
# Construct URL
177177
url = self.create_or_update.metadata['url'] # type: ignore
178178
path_format_arguments = {
179-
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
179+
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
180180
'zoneName': self._serialize.url("zone_name", zone_name, 'str'),
181181
'relativeRecordSetName': self._serialize.url("relative_record_set_name", relative_record_set_name, 'str', skip_quote=True),
182182
'recordType': self._serialize.url("record_type", record_type, 'str'),
@@ -261,7 +261,7 @@ def delete(
261261
# Construct URL
262262
url = self.delete.metadata['url'] # type: ignore
263263
path_format_arguments = {
264-
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
264+
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
265265
'zoneName': self._serialize.url("zone_name", zone_name, 'str'),
266266
'relativeRecordSetName': self._serialize.url("relative_record_set_name", relative_record_set_name, 'str', skip_quote=True),
267267
'recordType': self._serialize.url("record_type", record_type, 'str'),
@@ -327,7 +327,7 @@ def get(
327327
# Construct URL
328328
url = self.get.metadata['url'] # type: ignore
329329
path_format_arguments = {
330-
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
330+
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
331331
'zoneName': self._serialize.url("zone_name", zone_name, 'str'),
332332
'relativeRecordSetName': self._serialize.url("relative_record_set_name", relative_record_set_name, 'str', skip_quote=True),
333333
'recordType': self._serialize.url("record_type", record_type, 'str'),
@@ -406,7 +406,7 @@ def prepare_request(next_link=None):
406406
# Construct URL
407407
url = self.list_by_type.metadata['url'] # type: ignore
408408
path_format_arguments = {
409-
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
409+
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
410410
'zoneName': self._serialize.url("zone_name", zone_name, 'str'),
411411
'recordType': self._serialize.url("record_type", record_type, 'str'),
412412
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
@@ -495,7 +495,7 @@ def prepare_request(next_link=None):
495495
# Construct URL
496496
url = self.list_by_dns_zone.metadata['url'] # type: ignore
497497
path_format_arguments = {
498-
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
498+
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
499499
'zoneName': self._serialize.url("zone_name", zone_name, 'str'),
500500
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
501501
}

0 commit comments

Comments
 (0)