Skip to content

Commit

Permalink
CodeGen from PR 16902 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge c7144760e2fddd0b9328f113cff6a03b2a8c8987 into b22180c
  • Loading branch information
SDKAuto committed Nov 30, 2021
1 parent d769535 commit 57384e7
Show file tree
Hide file tree
Showing 46 changed files with 394 additions and 300 deletions.
11 changes: 7 additions & 4 deletions sdk/network/azure-mgmt-dns/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"autorest": "3.3.0",
"use": "@autorest/[email protected]",
"commit": "6fa6101166a28f1fd82d6a60b8038c9af236e2be",
"autorest": "3.4.5",
"use": [
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"commit": "3d1c5d45f465ee873b46edacd52d045cf75cb7c3",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"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",
"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/[email protected] --version=3.4.5",
"readme": "specification/dns/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "8.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ async def update(
record_type: Union[str, "_models.RecordType"],
parameters: "_models.RecordSet",
if_match: Optional[str] = None,
**kwargs
**kwargs: Any
) -> "_models.RecordSet":
"""Updates a record set within a DNS zone.
Expand Down Expand Up @@ -84,7 +84,7 @@ async def update(
# Construct URL
url = self.update.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'zoneName': self._serialize.url("zone_name", zone_name, 'str'),
'relativeRecordSetName': self._serialize.url("relative_record_set_name", relative_record_set_name, 'str', skip_quote=True),
'recordType': self._serialize.url("record_type", record_type, 'str'),
Expand Down Expand Up @@ -131,7 +131,7 @@ async def create_or_update(
parameters: "_models.RecordSet",
if_match: Optional[str] = None,
if_none_match: Optional[str] = None,
**kwargs
**kwargs: Any
) -> "_models.RecordSet":
"""Creates or updates a record set within a DNS zone.
Expand Down Expand Up @@ -170,7 +170,7 @@ async def create_or_update(
# Construct URL
url = self.create_or_update.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'zoneName': self._serialize.url("zone_name", zone_name, 'str'),
'relativeRecordSetName': self._serialize.url("relative_record_set_name", relative_record_set_name, 'str', skip_quote=True),
'recordType': self._serialize.url("record_type", record_type, 'str'),
Expand Down Expand Up @@ -221,7 +221,7 @@ async def delete(
relative_record_set_name: str,
record_type: Union[str, "_models.RecordType"],
if_match: Optional[str] = None,
**kwargs
**kwargs: Any
) -> None:
"""Deletes a record set from a DNS zone. This operation cannot be undone.
Expand Down Expand Up @@ -254,7 +254,7 @@ async def delete(
# Construct URL
url = self.delete.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'zoneName': self._serialize.url("zone_name", zone_name, 'str'),
'relativeRecordSetName': self._serialize.url("relative_record_set_name", relative_record_set_name, 'str', skip_quote=True),
'recordType': self._serialize.url("record_type", record_type, 'str'),
Expand Down Expand Up @@ -291,7 +291,7 @@ async def get(
zone_name: str,
relative_record_set_name: str,
record_type: Union[str, "_models.RecordType"],
**kwargs
**kwargs: Any
) -> "_models.RecordSet":
"""Gets a record set.
Expand Down Expand Up @@ -319,7 +319,7 @@ async def get(
# Construct URL
url = self.get.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'zoneName': self._serialize.url("zone_name", zone_name, 'str'),
'relativeRecordSetName': self._serialize.url("relative_record_set_name", relative_record_set_name, 'str', skip_quote=True),
'recordType': self._serialize.url("record_type", record_type, 'str'),
Expand Down Expand Up @@ -358,7 +358,7 @@ def list_by_type(
record_type: Union[str, "_models.RecordType"],
top: Optional[int] = None,
recordsetnamesuffix: Optional[str] = None,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.RecordSetListResult"]:
"""Lists the record sets of a specified type in a DNS zone.
Expand Down Expand Up @@ -397,7 +397,7 @@ def prepare_request(next_link=None):
# Construct URL
url = self.list_by_type.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'zoneName': self._serialize.url("zone_name", zone_name, 'str'),
'recordType': self._serialize.url("record_type", record_type, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
Expand Down Expand Up @@ -448,7 +448,7 @@ def list_by_dns_zone(
zone_name: str,
top: Optional[int] = None,
recordsetnamesuffix: Optional[str] = None,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.RecordSetListResult"]:
"""Lists all record sets in a DNS zone.
Expand Down Expand Up @@ -485,7 +485,7 @@ def prepare_request(next_link=None):
# Construct URL
url = self.list_by_dns_zone.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'zoneName': self._serialize.url("zone_name", zone_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async def create_or_update(
parameters: "_models.Zone",
if_match: Optional[str] = None,
if_none_match: Optional[str] = None,
**kwargs
**kwargs: Any
) -> "_models.Zone":
"""Creates or updates a DNS zone. Does not modify DNS records within the zone.
Expand Down Expand Up @@ -84,7 +84,7 @@ async def create_or_update(
# Construct URL
url = self.create_or_update.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'zoneName': self._serialize.url("zone_name", zone_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
}
Expand Down Expand Up @@ -131,7 +131,7 @@ async def _delete_initial(
resource_group_name: str,
zone_name: str,
if_match: Optional[str] = None,
**kwargs
**kwargs: Any
) -> Optional["_models.ZoneDeleteResult"]:
cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.ZoneDeleteResult"]]
error_map = {
Expand All @@ -144,7 +144,7 @@ async def _delete_initial(
# Construct URL
url = self._delete_initial.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'zoneName': self._serialize.url("zone_name", zone_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
}
Expand Down Expand Up @@ -183,7 +183,7 @@ async def begin_delete(
resource_group_name: str,
zone_name: str,
if_match: Optional[str] = None,
**kwargs
**kwargs: Any
) -> AsyncLROPoller["_models.ZoneDeleteResult"]:
"""Deletes a DNS zone. WARNING: All DNS records in the zone will also be deleted. This operation
cannot be undone.
Expand All @@ -197,8 +197,8 @@ async def begin_delete(
:type if_match: str
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be AsyncARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either ZoneDeleteResult or the result of cls(response)
Expand Down Expand Up @@ -232,7 +232,7 @@ def get_long_running_output(pipeline_response):
return deserialized

path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'zoneName': self._serialize.url("zone_name", zone_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
}
Expand All @@ -255,7 +255,7 @@ async def get(
self,
resource_group_name: str,
zone_name: str,
**kwargs
**kwargs: Any
) -> "_models.Zone":
"""Gets a DNS zone. Retrieves the zone properties, but not the record sets within the zone.
Expand All @@ -279,7 +279,7 @@ async def get(
# Construct URL
url = self.get.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'zoneName': self._serialize.url("zone_name", zone_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
}
Expand Down Expand Up @@ -313,7 +313,7 @@ def list_by_resource_group(
self,
resource_group_name: str,
top: Optional[int] = None,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.ZoneListResult"]:
"""Lists the DNS zones within a resource group.
Expand Down Expand Up @@ -344,7 +344,7 @@ def prepare_request(next_link=None):
# Construct URL
url = self.list_by_resource_group.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
}
url = self._client.format_url(url, **path_format_arguments)
Expand Down Expand Up @@ -388,7 +388,7 @@ async def get_next(next_link=None):
def list(
self,
top: Optional[int] = None,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.ZoneListResult"]:
"""Lists the DNS zones in all resource groups in a subscription.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def update(
# Construct URL
url = self.update.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'zoneName': self._serialize.url("zone_name", zone_name, 'str'),
'relativeRecordSetName': self._serialize.url("relative_record_set_name", relative_record_set_name, 'str', skip_quote=True),
'recordType': self._serialize.url("record_type", record_type, 'str'),
Expand Down Expand Up @@ -176,7 +176,7 @@ def create_or_update(
# Construct URL
url = self.create_or_update.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'zoneName': self._serialize.url("zone_name", zone_name, 'str'),
'relativeRecordSetName': self._serialize.url("relative_record_set_name", relative_record_set_name, 'str', skip_quote=True),
'recordType': self._serialize.url("record_type", record_type, 'str'),
Expand Down Expand Up @@ -261,7 +261,7 @@ def delete(
# Construct URL
url = self.delete.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'zoneName': self._serialize.url("zone_name", zone_name, 'str'),
'relativeRecordSetName': self._serialize.url("relative_record_set_name", relative_record_set_name, 'str', skip_quote=True),
'recordType': self._serialize.url("record_type", record_type, 'str'),
Expand Down Expand Up @@ -327,7 +327,7 @@ def get(
# Construct URL
url = self.get.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'zoneName': self._serialize.url("zone_name", zone_name, 'str'),
'relativeRecordSetName': self._serialize.url("relative_record_set_name", relative_record_set_name, 'str', skip_quote=True),
'recordType': self._serialize.url("record_type", record_type, 'str'),
Expand Down Expand Up @@ -406,7 +406,7 @@ def prepare_request(next_link=None):
# Construct URL
url = self.list_by_type.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'zoneName': self._serialize.url("zone_name", zone_name, 'str'),
'recordType': self._serialize.url("record_type", record_type, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
Expand Down Expand Up @@ -495,7 +495,7 @@ def prepare_request(next_link=None):
# Construct URL
url = self.list_by_dns_zone.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'zoneName': self._serialize.url("zone_name", zone_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
}
Expand Down
Loading

0 comments on commit 57384e7

Please sign in to comment.