Skip to content

Commit

Permalink
CodeGen from PR 24675 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
add 'location' in example parameter (Azure#24675)
  • Loading branch information
SDKAuto committed Jul 3, 2023
1 parent 1f9192a commit 07d4ecc
Show file tree
Hide file tree
Showing 29 changed files with 57 additions and 46 deletions.
6 changes: 3 additions & 3 deletions sdk/network/azure-mgmt-frontdoor/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "7a65f22cf67826187f75981e914c7e679039257b",
"commit": "0609292aabadff5d81eeb674dabe3e2e2187ba54",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.2",
"use": [
"@autorest/python@6.4.8",
"@autorest/python@6.6.0",
"@autorest/[email protected]"
],
"autorest_command": "autorest specification/frontdoor/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.8 --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
"autorest_command": "autorest specification/frontdoor/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",
"readme": "specification/frontdoor/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 = "1.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
from io import IOBase
from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload

from azure.core.exceptions import (
Expand Down Expand Up @@ -77,7 +78,7 @@ async def _purge_content_initial( # pylint: disable=inconsistent-return-stateme
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(content_file_paths, (IO, bytes)):
if isinstance(content_file_paths, (IOBase, bytes)):
_content = content_file_paths
else:
_json = self._serialize.body(content_file_paths, "PurgeParameters")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
from io import IOBase
from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload

from azure.core.async_paging import AsyncItemPaged, AsyncList
Expand Down Expand Up @@ -237,7 +238,7 @@ async def _create_or_update_initial(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(parameters, (IO, bytes)):
if isinstance(parameters, (IOBase, bytes)):
_content = parameters
else:
_json = self._serialize.body(parameters, "Experiment")
Expand Down Expand Up @@ -480,7 +481,7 @@ async def _update_initial(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(parameters, (IO, bytes)):
if isinstance(parameters, (IOBase, bytes)):
_content = parameters
else:
_json = self._serialize.body(parameters, "ExperimentUpdateModel")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
from io import IOBase
from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload

from azure.core.exceptions import (
Expand Down Expand Up @@ -125,7 +126,7 @@ async def check(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(check_front_door_name_availability_input, (IO, bytes)):
if isinstance(check_front_door_name_availability_input, (IOBase, bytes)):
_content = check_front_door_name_availability_input
else:
_json = self._serialize.body(check_front_door_name_availability_input, "CheckNameAvailabilityInput")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
from io import IOBase
from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload

from azure.core.exceptions import (
Expand Down Expand Up @@ -125,7 +126,7 @@ async def check(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(check_front_door_name_availability_input, (IO, bytes)):
if isinstance(check_front_door_name_availability_input, (IOBase, bytes)):
_content = check_front_door_name_availability_input
else:
_json = self._serialize.body(check_front_door_name_availability_input, "CheckNameAvailabilityInput")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
from io import IOBase
from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload

from azure.core.async_paging import AsyncItemPaged, AsyncList
Expand Down Expand Up @@ -294,7 +295,7 @@ async def _create_or_update_initial(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(front_door_parameters, (IO, bytes)):
if isinstance(front_door_parameters, (IOBase, bytes)):
_content = front_door_parameters
else:
_json = self._serialize.body(front_door_parameters, "FrontDoor")
Expand Down Expand Up @@ -717,7 +718,7 @@ async def validate_custom_domain(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(custom_domain_properties, (IO, bytes)):
if isinstance(custom_domain_properties, (IOBase, bytes)):
_content = custom_domain_properties
else:
_json = self._serialize.body(custom_domain_properties, "ValidateCustomDomainInput")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
from io import IOBase
from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload

from azure.core.async_paging import AsyncItemPaged, AsyncList
Expand Down Expand Up @@ -233,7 +234,7 @@ async def _enable_https_initial( # pylint: disable=inconsistent-return-statemen
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(custom_https_configuration, (IO, bytes)):
if isinstance(custom_https_configuration, (IOBase, bytes)):
_content = custom_https_configuration
else:
_json = self._serialize.body(custom_https_configuration, "CustomHttpsConfiguration")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
from io import IOBase
from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload

from azure.core.async_paging import AsyncItemPaged, AsyncList
Expand Down Expand Up @@ -295,7 +296,7 @@ async def _create_or_update_initial(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(parameters, (IO, bytes)):
if isinstance(parameters, (IOBase, bytes)):
_content = parameters
else:
_json = self._serialize.body(parameters, "Profile")
Expand Down Expand Up @@ -523,7 +524,7 @@ async def _update_initial(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(parameters, (IO, bytes)):
if isinstance(parameters, (IOBase, bytes)):
_content = parameters
else:
_json = self._serialize.body(parameters, "ProfileUpdateModel")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
from io import IOBase
from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload

from azure.core.async_paging import AsyncItemPaged, AsyncList
Expand Down Expand Up @@ -301,7 +302,7 @@ async def _create_or_update_initial(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(parameters, (IO, bytes)):
if isinstance(parameters, (IOBase, bytes)):
_content = parameters
else:
_json = self._serialize.body(parameters, "WebApplicationFirewallPolicy")
Expand Down Expand Up @@ -526,7 +527,7 @@ async def _update_initial(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(parameters, (IO, bytes)):
if isinstance(parameters, (IOBase, bytes)):
_content = parameters
else:
_json = self._serialize.body(parameters, "TagsObject")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
from io import IOBase
from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload

from azure.core.async_paging import AsyncItemPaged, AsyncList
Expand Down Expand Up @@ -233,7 +234,7 @@ async def _create_or_update_initial(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(rules_engine_parameters, (IO, bytes)):
if isinstance(rules_engine_parameters, (IOBase, bytes)):
_content = rules_engine_parameters
else:
_json = self._serialize.body(rules_engine_parameters, "RulesEngine")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
from io import IOBase
from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload

from azure.core.exceptions import (
Expand Down Expand Up @@ -128,7 +129,7 @@ def _purge_content_initial( # pylint: disable=inconsistent-return-statements
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(content_file_paths, (IO, bytes)):
if isinstance(content_file_paths, (IOBase, bytes)):
_content = content_file_paths
else:
_json = self._serialize.body(content_file_paths, "PurgeParameters")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
from io import IOBase
from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload

from azure.core.exceptions import (
Expand Down Expand Up @@ -441,7 +442,7 @@ def _create_or_update_initial(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(parameters, (IO, bytes)):
if isinstance(parameters, (IOBase, bytes)):
_content = parameters
else:
_json = self._serialize.body(parameters, "Experiment")
Expand Down Expand Up @@ -681,7 +682,7 @@ def _update_initial(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(parameters, (IO, bytes)):
if isinstance(parameters, (IOBase, bytes)):
_content = parameters
else:
_json = self._serialize.body(parameters, "ExperimentUpdateModel")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
from io import IOBase
from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload

from azure.core.exceptions import (
Expand Down Expand Up @@ -150,7 +151,7 @@ def check(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(check_front_door_name_availability_input, (IO, bytes)):
if isinstance(check_front_door_name_availability_input, (IOBase, bytes)):
_content = check_front_door_name_availability_input
else:
_json = self._serialize.body(check_front_door_name_availability_input, "CheckNameAvailabilityInput")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
from io import IOBase
from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload

from azure.core.exceptions import (
Expand Down Expand Up @@ -157,7 +158,7 @@ def check(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(check_front_door_name_availability_input, (IO, bytes)):
if isinstance(check_front_door_name_availability_input, (IOBase, bytes)):
_content = check_front_door_name_availability_input
else:
_json = self._serialize.body(check_front_door_name_availability_input, "CheckNameAvailabilityInput")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
from io import IOBase
from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload

from azure.core.exceptions import (
Expand Down Expand Up @@ -534,7 +535,7 @@ def _create_or_update_initial(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(front_door_parameters, (IO, bytes)):
if isinstance(front_door_parameters, (IOBase, bytes)):
_content = front_door_parameters
else:
_json = self._serialize.body(front_door_parameters, "FrontDoor")
Expand Down Expand Up @@ -952,7 +953,7 @@ def validate_custom_domain(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(custom_domain_properties, (IO, bytes)):
if isinstance(custom_domain_properties, (IOBase, bytes)):
_content = custom_domain_properties
else:
_json = self._serialize.body(custom_domain_properties, "ValidateCustomDomainInput")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
from io import IOBase
from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload

from azure.core.exceptions import (
Expand Down Expand Up @@ -437,7 +438,7 @@ def _enable_https_initial( # pylint: disable=inconsistent-return-statements
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(custom_https_configuration, (IO, bytes)):
if isinstance(custom_https_configuration, (IOBase, bytes)):
_content = custom_https_configuration
else:
_json = self._serialize.body(custom_https_configuration, "CustomHttpsConfiguration")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
from io import IOBase
from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload

from azure.core.exceptions import (
Expand Down Expand Up @@ -507,7 +508,7 @@ def _create_or_update_initial(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(parameters, (IO, bytes)):
if isinstance(parameters, (IOBase, bytes)):
_content = parameters
else:
_json = self._serialize.body(parameters, "Profile")
Expand Down Expand Up @@ -732,7 +733,7 @@ def _update_initial(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(parameters, (IO, bytes)):
if isinstance(parameters, (IOBase, bytes)):
_content = parameters
else:
_json = self._serialize.body(parameters, "ProfileUpdateModel")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
from io import IOBase
from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload

from azure.core.exceptions import (
Expand Down Expand Up @@ -504,7 +505,7 @@ def _create_or_update_initial(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(parameters, (IO, bytes)):
if isinstance(parameters, (IOBase, bytes)):
_content = parameters
else:
_json = self._serialize.body(parameters, "WebApplicationFirewallPolicy")
Expand Down Expand Up @@ -729,7 +730,7 @@ def _update_initial(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(parameters, (IO, bytes)):
if isinstance(parameters, (IOBase, bytes)):
_content = parameters
else:
_json = self._serialize.body(parameters, "TagsObject")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
from io import IOBase
from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload

from azure.core.exceptions import (
Expand Down Expand Up @@ -437,7 +438,7 @@ def _create_or_update_initial(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(rules_engine_parameters, (IO, bytes)):
if isinstance(rules_engine_parameters, (IOBase, bytes)):
_content = rules_engine_parameters
else:
_json = self._serialize.body(rules_engine_parameters, "RulesEngine")
Expand Down
Loading

0 comments on commit 07d4ecc

Please sign in to comment.