diff --git a/sdk/network/azure-mgmt-frontdoor/_meta.json b/sdk/network/azure-mgmt-frontdoor/_meta.json index 8c7152a71be1..19792149da8c 100644 --- a/sdk/network/azure-mgmt-frontdoor/_meta.json +++ b/sdk/network/azure-mgmt-frontdoor/_meta.json @@ -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/modelerfour@4.24.3" ], - "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/modelerfour@4.24.3 --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/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False", "readme": "specification/frontdoor/resource-manager/readme.md" } \ No newline at end of file diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/_version.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/_version.py index 59deb8c7263b..e5754a47ce68 100644 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/_version.py +++ b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/_version.py @@ -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" diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/aio/operations/_endpoints_operations.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/aio/operations/_endpoints_operations.py index 40d5999308f3..733ebecdf360 100644 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/aio/operations/_endpoints_operations.py +++ b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/aio/operations/_endpoints_operations.py @@ -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 ( @@ -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") diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/aio/operations/_experiments_operations.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/aio/operations/_experiments_operations.py index cdcd47385315..eaf5f48b3347 100644 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/aio/operations/_experiments_operations.py +++ b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/aio/operations/_experiments_operations.py @@ -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 @@ -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") @@ -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") diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/aio/operations/_front_door_name_availability_operations.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/aio/operations/_front_door_name_availability_operations.py index 881f230a2396..723cb7b18d73 100644 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/aio/operations/_front_door_name_availability_operations.py +++ b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/aio/operations/_front_door_name_availability_operations.py @@ -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 ( @@ -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") diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/aio/operations/_front_door_name_availability_with_subscription_operations.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/aio/operations/_front_door_name_availability_with_subscription_operations.py index fb04feb68f12..2c7636b8fc11 100644 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/aio/operations/_front_door_name_availability_with_subscription_operations.py +++ b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/aio/operations/_front_door_name_availability_with_subscription_operations.py @@ -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 ( @@ -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") diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/aio/operations/_front_doors_operations.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/aio/operations/_front_doors_operations.py index 20a76e7b39fd..5e74f9355479 100644 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/aio/operations/_front_doors_operations.py +++ b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/aio/operations/_front_doors_operations.py @@ -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 @@ -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") @@ -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") diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/aio/operations/_frontend_endpoints_operations.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/aio/operations/_frontend_endpoints_operations.py index 3673c79b455c..ba7a0b807f1e 100644 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/aio/operations/_frontend_endpoints_operations.py +++ b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/aio/operations/_frontend_endpoints_operations.py @@ -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 @@ -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") diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/aio/operations/_network_experiment_profiles_operations.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/aio/operations/_network_experiment_profiles_operations.py index 6ba3a9f03f81..1015ffb2e96f 100644 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/aio/operations/_network_experiment_profiles_operations.py +++ b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/aio/operations/_network_experiment_profiles_operations.py @@ -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 @@ -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") @@ -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") diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/aio/operations/_policies_operations.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/aio/operations/_policies_operations.py index e73b1f1eaaed..38f9a480b1c4 100644 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/aio/operations/_policies_operations.py +++ b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/aio/operations/_policies_operations.py @@ -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 @@ -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") @@ -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") diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/aio/operations/_rules_engines_operations.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/aio/operations/_rules_engines_operations.py index d82b4d05cf25..39bbf6d7d9d5 100644 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/aio/operations/_rules_engines_operations.py +++ b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/aio/operations/_rules_engines_operations.py @@ -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 @@ -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") diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_endpoints_operations.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_endpoints_operations.py index 41719157f0c3..7e6e91feff69 100644 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_endpoints_operations.py +++ b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_endpoints_operations.py @@ -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 ( @@ -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") diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_experiments_operations.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_experiments_operations.py index 78e7f5421195..f61668eb7bf2 100644 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_experiments_operations.py +++ b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_experiments_operations.py @@ -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 ( @@ -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") @@ -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") diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_front_door_name_availability_operations.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_front_door_name_availability_operations.py index a163ac3203f2..16d0381651b0 100644 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_front_door_name_availability_operations.py +++ b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_front_door_name_availability_operations.py @@ -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 ( @@ -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") diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_front_door_name_availability_with_subscription_operations.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_front_door_name_availability_with_subscription_operations.py index bacd2f57cc9d..60e474e07365 100644 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_front_door_name_availability_with_subscription_operations.py +++ b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_front_door_name_availability_with_subscription_operations.py @@ -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 ( @@ -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") diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_front_doors_operations.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_front_doors_operations.py index 83f109e7381c..09dffc2428f1 100644 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_front_doors_operations.py +++ b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_front_doors_operations.py @@ -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 ( @@ -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") @@ -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") diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_frontend_endpoints_operations.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_frontend_endpoints_operations.py index d5c62ed59498..33ff8ce699d2 100644 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_frontend_endpoints_operations.py +++ b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_frontend_endpoints_operations.py @@ -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 ( @@ -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") diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_network_experiment_profiles_operations.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_network_experiment_profiles_operations.py index 49bc844c141e..cc8959902989 100644 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_network_experiment_profiles_operations.py +++ b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_network_experiment_profiles_operations.py @@ -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 ( @@ -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") @@ -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") diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_policies_operations.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_policies_operations.py index 80730fe215ca..02ed1ddffa79 100644 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_policies_operations.py +++ b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_policies_operations.py @@ -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 ( @@ -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") @@ -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") diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_rules_engines_operations.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_rules_engines_operations.py index 5d6af17391c1..3703611f7b59 100644 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_rules_engines_operations.py +++ b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_rules_engines_operations.py @@ -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 ( @@ -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") diff --git a/sdk/network/azure-mgmt-frontdoor/generated_samples/frontdoor_delete.py b/sdk/network/azure-mgmt-frontdoor/generated_samples/frontdoor_delete.py index 79fac4012b5b..60c9b79b6b1d 100644 --- a/sdk/network/azure-mgmt-frontdoor/generated_samples/frontdoor_delete.py +++ b/sdk/network/azure-mgmt-frontdoor/generated_samples/frontdoor_delete.py @@ -29,11 +29,10 @@ def main(): subscription_id="subid", ) - response = client.front_doors.begin_delete( + client.front_doors.begin_delete( resource_group_name="rg1", front_door_name="frontDoor1", ).result() - print(response) # x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorDelete.json diff --git a/sdk/network/azure-mgmt-frontdoor/generated_samples/frontdoor_disable_https.py b/sdk/network/azure-mgmt-frontdoor/generated_samples/frontdoor_disable_https.py index adaf8e519d16..e041b9f77dcc 100644 --- a/sdk/network/azure-mgmt-frontdoor/generated_samples/frontdoor_disable_https.py +++ b/sdk/network/azure-mgmt-frontdoor/generated_samples/frontdoor_disable_https.py @@ -29,12 +29,11 @@ def main(): subscription_id="subid", ) - response = client.frontend_endpoints.begin_disable_https( + client.frontend_endpoints.begin_disable_https( resource_group_name="rg1", front_door_name="frontDoor1", frontend_endpoint_name="frontendEndpoint1", ).result() - print(response) # x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorDisableHttps.json diff --git a/sdk/network/azure-mgmt-frontdoor/generated_samples/frontdoor_enable_https.py b/sdk/network/azure-mgmt-frontdoor/generated_samples/frontdoor_enable_https.py index b2526453588e..25e375ca8477 100644 --- a/sdk/network/azure-mgmt-frontdoor/generated_samples/frontdoor_enable_https.py +++ b/sdk/network/azure-mgmt-frontdoor/generated_samples/frontdoor_enable_https.py @@ -29,7 +29,7 @@ def main(): subscription_id="subid", ) - response = client.frontend_endpoints.begin_enable_https( + client.frontend_endpoints.begin_enable_https( resource_group_name="rg1", front_door_name="frontDoor1", frontend_endpoint_name="frontendEndpoint1", @@ -44,7 +44,6 @@ def main(): "protocolType": "ServerNameIndication", }, ).result() - print(response) # x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorEnableHttps.json diff --git a/sdk/network/azure-mgmt-frontdoor/generated_samples/frontdoor_purge_content.py b/sdk/network/azure-mgmt-frontdoor/generated_samples/frontdoor_purge_content.py index aee709a6ae11..d3466c086ab8 100644 --- a/sdk/network/azure-mgmt-frontdoor/generated_samples/frontdoor_purge_content.py +++ b/sdk/network/azure-mgmt-frontdoor/generated_samples/frontdoor_purge_content.py @@ -29,12 +29,11 @@ def main(): subscription_id="subid", ) - response = client.endpoints.begin_purge_content( + client.endpoints.begin_purge_content( resource_group_name="rg1", front_door_name="frontDoor1", content_file_paths={"contentPaths": ["/pictures.aspx", "/pictures/*"]}, ).result() - print(response) # x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorPurgeContent.json diff --git a/sdk/network/azure-mgmt-frontdoor/generated_samples/frontdoor_rules_engine_delete.py b/sdk/network/azure-mgmt-frontdoor/generated_samples/frontdoor_rules_engine_delete.py index 5f3e65a9cf6e..6fc6bdbcdd0b 100644 --- a/sdk/network/azure-mgmt-frontdoor/generated_samples/frontdoor_rules_engine_delete.py +++ b/sdk/network/azure-mgmt-frontdoor/generated_samples/frontdoor_rules_engine_delete.py @@ -29,12 +29,11 @@ def main(): subscription_id="subid", ) - response = client.rules_engines.begin_delete( + client.rules_engines.begin_delete( resource_group_name="rg1", front_door_name="frontDoor1", rules_engine_name="rulesEngine1", ).result() - print(response) # x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorRulesEngineDelete.json diff --git a/sdk/network/azure-mgmt-frontdoor/generated_samples/network_experiment_delete_experiment.py b/sdk/network/azure-mgmt-frontdoor/generated_samples/network_experiment_delete_experiment.py index 1400eb4f843f..fafb9261e3c6 100644 --- a/sdk/network/azure-mgmt-frontdoor/generated_samples/network_experiment_delete_experiment.py +++ b/sdk/network/azure-mgmt-frontdoor/generated_samples/network_experiment_delete_experiment.py @@ -29,12 +29,11 @@ def main(): subscription_id="subid", ) - response = client.experiments.begin_delete( + client.experiments.begin_delete( resource_group_name="MyResourceGroup", profile_name="MyProfile", experiment_name="MyExperiment", ).result() - print(response) # x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/NetworkExperimentDeleteExperiment.json diff --git a/sdk/network/azure-mgmt-frontdoor/generated_samples/network_experiment_delete_profile.py b/sdk/network/azure-mgmt-frontdoor/generated_samples/network_experiment_delete_profile.py index ef51a7daa727..cd5eed3d6c8a 100644 --- a/sdk/network/azure-mgmt-frontdoor/generated_samples/network_experiment_delete_profile.py +++ b/sdk/network/azure-mgmt-frontdoor/generated_samples/network_experiment_delete_profile.py @@ -29,11 +29,10 @@ def main(): subscription_id="subid", ) - response = client.network_experiment_profiles.begin_delete( + client.network_experiment_profiles.begin_delete( resource_group_name="MyResourceGroup", profile_name="MyProfile", ).result() - print(response) # x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/NetworkExperimentDeleteProfile.json diff --git a/sdk/network/azure-mgmt-frontdoor/generated_samples/waf_policy_create_or_update.py b/sdk/network/azure-mgmt-frontdoor/generated_samples/waf_policy_create_or_update.py index 8ca465c67500..194cd57df51d 100644 --- a/sdk/network/azure-mgmt-frontdoor/generated_samples/waf_policy_create_or_update.py +++ b/sdk/network/azure-mgmt-frontdoor/generated_samples/waf_policy_create_or_update.py @@ -33,6 +33,7 @@ def main(): resource_group_name="rg1", policy_name="Policy1", parameters={ + "location": "WestUs", "properties": { "customRules": { "rules": [ diff --git a/sdk/network/azure-mgmt-frontdoor/generated_samples/waf_policy_delete.py b/sdk/network/azure-mgmt-frontdoor/generated_samples/waf_policy_delete.py index 9d7cc8a9b511..0101eb64e0b4 100644 --- a/sdk/network/azure-mgmt-frontdoor/generated_samples/waf_policy_delete.py +++ b/sdk/network/azure-mgmt-frontdoor/generated_samples/waf_policy_delete.py @@ -29,11 +29,10 @@ def main(): subscription_id="subid", ) - response = client.policies.begin_delete( + client.policies.begin_delete( resource_group_name="rg1", policy_name="Policy1", ).result() - print(response) # x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2022-05-01/examples/WafPolicyDelete.json