diff --git a/ChangeLog.md b/ChangeLog.md
index 34da4f4338c..7de75248bb4 100644
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -1,108 +1,130 @@
# Change Log
+### 2021-01-27 - 5.6.1
+
+Autorest core version: 3.0.6318
+
+Modelerfour version: 4.15.442
+
+**Bug Fixes**
+
+- Instead of throwing a `DeserializationError` in the case of failed error model deserialization, we swallow the error and return the `HttpResponseError` to users.
+ WARNING: You need to make sure your `msrest` version is `0.6.21` or above, or a lot of your calls will fail with an `AttributeError` message #870
+
### 2021-01-15 - 5.6.0
+
Autorest core version: 3.0.6318
Modelerfour version: 4.15.442
**New Features**
-- Add support for [`black`](https://pypi.org/project/black/) formatting of your generated files. Pass flag `--black` when generating to get this behavior. #836
+- Add support for [`black`](https://pypi.org/project/black/) formatting of your generated files. Pass flag `--black` when generating to get this behavior. #836
**Bug Fixes**
-- Wrap individual enum descriptions #844
-- Bump `Modelerfour` minimum version to `4.15.442` to fix [circular reference error](https://github.com/Azure/autorest/issues/3630). Special thanks to @amrElroumy for this PR. #866
+- Wrap individual enum descriptions #844
+- Bump `Modelerfour` minimum version to `4.15.442` to fix [circular reference error](https://github.com/Azure/autorest/issues/3630). Special thanks to @amrElroumy for this PR. #866
### 2020-11-12 - 5.5.0
+
Autorest core version: 3.0.6318
Modelerfour version: 4.15.421
**New Features**
-- Can now take in custom pollers and pagers through directives. This will override the defaults (`LROPoller` and `ItemPaged`, respectively). See [this readme](https://github.com/Azure/autorest.python/tree/autorestv3/test/azure/specification/custompollerpager) for the directive to use to override. #821
+- Can now take in custom pollers and pagers through directives. This will override the defaults (`LROPoller` and `ItemPaged`, respectively). See [this readme](https://github.com/Azure/autorest.python/tree/autorestv3/test/azure/specification/custompollerpager) for the directive to use to override. #821
### 2020-11-11 - 5.4.3
+
Autorest core version: 3.0.6320
Modelerfour version: 4.15.421
**Bug Fixes**
-- Correctly choose schema from response with 200 status code in the case of LRO operations with multiple responses #814
-- Fix conflict for model deserialization when operation has input param with name `models` #819
+- Correctly choose schema from response with 200 status code in the case of LRO operations with multiple responses #814
+- Fix conflict for model deserialization when operation has input param with name `models` #819
### 2020-11-09 - 5.4.2
+
Autorest core version: 3.0.6320
Modelerfour version: 4.15.421
**Bug Fixes**
-- Set discriminator value in cases where discriminator is readonly #815
+- Set discriminator value in cases where discriminator is readonly #815
### 2020-11-03 - 5.4.1
+
Autorest core version: 3.0.6318
Modelerfour version: 4.15.421
**Bug Fixes**
-- Honor default value for properties if `x-ms-client-default` value is passed #798
-- Can now generate services with no operations #801
+- Honor default value for properties if `x-ms-client-default` value is passed #798
+- Can now generate services with no operations #801
### 2020-10-19 - 5.4.0
+
Autorest core version: 3.0.6318
Modelerfour version: 4.15.421
**New Features**
-- Add support for `--python.debugger`. With this flag, you can start debugging using VS Code. Make sure to still set up your [debugging configuration](https://github.com/Azure/autorest.python/wiki/Autorest-v3-based-generator-cheatsheet#vscode-debug) #790
+- Add support for `--python.debugger`. With this flag, you can start debugging using VS Code. Make sure to still set up your [debugging configuration](https://github.com/Azure/autorest.python/wiki/Autorest-v3-based-generator-cheatsheet#vscode-debug) #790
**Bug Fixes**
-- Correctly handling inheritance of class properties for inheritance chains > 3 levels #795
+- Correctly handling inheritance of class properties for inheritance chains > 3 levels #795
### 2020-10-06 - 5.3.5
+
Autorest core version: 3.0.6318
Modelerfour version: 4.15.421
**Bug Fixes**
-- Can now correctly poll in the case of parameterized endpoints with relative polling urls #784
+- Can now correctly poll in the case of parameterized endpoints with relative polling urls #784
### 2020-09-24 - 5.3.4
+
Autorest core version: 3.0.6318
Modelerfour version: 4.15.421
**Bug Fixes**
-- Include `content_type` docstrings for LRO and paging operations in the case of multiple media types #778
+- Include `content_type` docstrings for LRO and paging operations in the case of multiple media types #778
- Return response body if its content type is `text/plain` (taken from m4 update - m4 PR #353)
### 2020-09-17 - 5.3.3
+
Autorest core version: 3.0.6318
Modelerfour version: 4.15.419
**Bug fixes**
-- Fix trailing comma issues in metadata.json (unblocks resource multiapi generation) #777
+- Fix trailing comma issues in metadata.json (unblocks resource multiapi generation) #777
### 2020-09-14 - 5.3.2
+
Autorest core version: 3.0.6318
Modelerfour version: 4.15.419
**Bug fixes**
-- Allow client side validation to be turned off for multiapi mixin operations #775
+- Allow client side validation to be turned off for multiapi mixin operations #775
### 2020-09-14 - 5.3.1
+
Autorest core version: 3.0.6318
Modelerfour version: 4.15.419
@@ -112,6 +134,7 @@ Modelerfour version: 4.15.419
- Min autorest core is now 3.0.6318 to ensure client-side-validation is disabled by default (per track2 guidelines) #772
### 2020-09-11 - 5.3.0
+
Autorest Core version: 3.0.6306
Modelerfour version: 4.15.419
@@ -120,104 +143,113 @@ GA of autorest V5!
**Breaking Changes**
-- Raise `ValueError` instead of `NotImplementedError` if API version code doesn't exist #764
+- Raise `ValueError` instead of `NotImplementedError` if API version code doesn't exist #764
### 2020-08-31 - 5.2.0-preview.1
+
Autorest Core version: 3.0.6306
Modelerfour version: 4.15.410
**Breaking Changes**
-- Removed the `_async` suffix from async files #759
+- Removed the `_async` suffix from async files #759
**New Features**
-- Add mapping of 401 to `ClientAuthenticationError` for default error map #763
-- Updated minimum `azure-core` version to 1.8.0 #747
-- Updated minimum `msrest` version to 0.6.18 #747
-- Support for `multipart/form-data` #746
+- Add mapping of 401 to `ClientAuthenticationError` for default error map #763
+- Updated minimum `azure-core` version to 1.8.0 #747
+- Updated minimum `msrest` version to 0.6.18 #747
+- Support for `multipart/form-data` #746
**Bug fixes**
- Fix "multi" in Swagger (will generate correctly multiple query param now)
### 2020-08-07 - 5.1.0-preview.7
+
Autorest Core version: 3.0.6302
Modelerfour version: 4.15.400
**New Features**
-- Add `azure-mgmt-core` as a dependency in the generated setup.py file #738
-- Correct typing for `credential` when default credential policy type is `AzureKeyCredentialPolicy` #744
-- Replace instead of extending `credential_scopes` if user has inputted their own #745
+- Add `azure-mgmt-core` as a dependency in the generated setup.py file #738
+- Correct typing for `credential` when default credential policy type is `AzureKeyCredentialPolicy` #744
+- Replace instead of extending `credential_scopes` if user has inputted their own #745
### 2020-08-04 - 5.1.0-preview.6
+
Autorest Core version: 3.0.6287
Modelerfour version: 4.15.378
**New Features**
-- Add support for `x-ms-text` XML extension #722
+- Add support for `x-ms-text` XML extension #722
- Allow users to pass the name of the key header for `AzureKeyCredentialPolicy` during generation. To use, pass in
-`AzureKeyCredentialPolicy` with the `--credential-default-policy-type` flag, and pass in the key header name using
-the `--credential-key-header-name` flag #736
+ `AzureKeyCredentialPolicy` with the `--credential-default-policy-type` flag, and pass in the key header name using
+ the `--credential-key-header-name` flag #736
**Bug Fixes**
-- Fix duplicate type signatures in multiapi async config file #727
-- Allowing single quote in regexp #726
+- Fix duplicate type signatures in multiapi async config file #727
+- Allowing single quote in regexp #726
### 2020-06-23 - 5.1.0-preview.5
+
Autorest Core version: 3.0.6287
Modelerfour version: 4.15.378
**Bug Fixes**
- Correctly have default behavior of csv for array query parameters when collection format is not specified in the swagger
-(taken from m4 update - perks PR #118)
-- Fix bug when generating parameters with client default value and constant schema #707
-- Make operation mixin signatures for multiapi default to default api version #715
-- Fix name in setup.py to default to `package-name` if set #721
-- Allow different custom base url host templates across API versions #719
+ (taken from m4 update - perks PR #118)
+- Fix bug when generating parameters with client default value and constant schema #707
+- Make operation mixin signatures for multiapi default to default api version #715
+- Fix name in setup.py to default to `package-name` if set #721
+- Allow different custom base url host templates across API versions #719
### 2020-07-07 - 5.1.0-preview.4
+
Modelerfour version: 4.15.378
**New Features**
-- Enum values are uppercase (with an alias from the lowercase version) #692
-- Add `http_logging_policy` setting for config, and users can override the default by passing in the kwarg `http_logging_policy` #698
+- Enum values are uppercase (with an alias from the lowercase version) #692
+- Add `http_logging_policy` setting for config, and users can override the default by passing in the kwarg `http_logging_policy` #698
### 2020-06-24 - 5.1.0-preview.3
+
Modelerfour version: 4.13.351
**New Features**
-- Supports a function that is both LRO and paging #689
+- Supports a function that is both LRO and paging #689
- We have added a `--credential-default-policy-type` flag. Its default value is `BearerTokenCredentialPolicy`, but it can also accept
-`AzureKeyCredentialPolicy`. The value passed in will be the default authentication policy in the client's config, so users using the
-generated library will use that auth policy unless they pass in a separate one through kwargs #686
-- Added support for a data plane multiapi client #693
+ `AzureKeyCredentialPolicy`. The value passed in will be the default authentication policy in the client's config, so users using the
+ generated library will use that auth policy unless they pass in a separate one through kwargs #686
+- Added support for a data plane multiapi client #693
**Bug Fixes**
-- Fix typing for discriminator values in models, so Python 3.5 can import py3 file for models #691
+- Fix typing for discriminator values in models, so Python 3.5 can import py3 file for models #691
**Bug Fixes**
- Make enum names all upper case. This fixes issues that arise if the name of an enum is also a method that can be applied to, say, a string.
-For example, if an enum's name is count. Made sure this fix will not break users currently accessing with lower case enum names #692
+ For example, if an enum's name is count. Made sure this fix will not break users currently accessing with lower case enum names #692
### 2020-06-08 - 5.1.0-preview.2
+
Modelerfour version: 4.13.351
**Bug Fixes**
+
- Fixed "Failed to install or start extension" issue arising when invoking autorest from a tar file, by correcctly calling Python 3. #678
-- Generating correct formatting for LRO and paging operation docstrings #652
-- Generating correct content and formatting for LRO and paging operations in multiapi mixin #652
+- Generating correct formatting for LRO and paging operation docstrings #652
+- Generating correct content and formatting for LRO and paging operations in multiapi mixin #652
### 2020-06-03 - 5.1.0-preview.1
+
Modelerfour version: 4.13.351
**Disclaimer**
@@ -226,160 +258,174 @@ This version requires azure-core 1.6.0 and contains features and bugfixes 5.0.0-
**Features**
-- Refactor async LRO poller with a AsyncLROPoller class + "begin_" prefix
+- Refactor async LRO poller with a AsyncLROPoller class + "begin\_" prefix
- Add continuation_token kwargs to LRO methods
**Bug Fixes**
-- Corrected generation of the item name of paging response when extracting data #648
-- Corrected return type typing annotation for operations that return an optional body #656
-- Fixed mypy issue by only setting the generated `deserialized` variable to None if the operation has an optional return type #656
-- Fixed generation of pkgutil init files #661
-- Have the next operation in a paging call use the HTTP verb GET if the next operation is not defined #664
+
+- Corrected generation of the item name of paging response when extracting data #648
+- Corrected return type typing annotation for operations that return an optional body #656
+- Fixed mypy issue by only setting the generated `deserialized` variable to None if the operation has an optional return type #656
+- Fixed generation of pkgutil init files #661
+- Have the next operation in a paging call use the HTTP verb GET if the next operation is not defined #664
### 2020-05-22 - 5.0.0-preview.8
+
Modelerfour version: 4.13.351
**Bug Fixes**
-- Corrected ordering of summary and description in generated methods #640
-- Have `IOSchema` call super init to get all of the properties shared in `BaseSchema` #642
+- Corrected ordering of summary and description in generated methods #640
+- Have `IOSchema` call super init to get all of the properties shared in `BaseSchema` #642
### 2020-05-15 - 5.0.0-preview.7
+
Modelerfour version: 4.13.351
**Bug Fixes**
-- Adding `self` as a reserved key word for parameters to avoid "duplicate argument 'self' in function definition" error #630
-- Removed `self` as a reserved key word for method and model names #630
+- Adding `self` as a reserved key word for parameters to avoid "duplicate argument 'self' in function definition" error #630
+- Removed `self` as a reserved key word for method and model names #630
### 2020-05-13 - 5.0.0-preview.6
+
Modelerfour version: 4.13.351
**Bug Fixes**
-- No longer assuming that response with body from an LRO call is an ObjectSchema #623
-- Checking whether "protocol" entry exists in yaml in name converter to remove erroneous "KeyError: 'protocol'" #628
+- No longer assuming that response with body from an LRO call is an ObjectSchema #623
+- Checking whether "protocol" entry exists in yaml in name converter to remove erroneous "KeyError: 'protocol'" #628
### 2020-05-08 - 5.0.0-preview.5
+
Modelerfour version: 4.13.351
**Bug Fixes**
-- Users can pass in content types with ';' inside (such as 'text/plain; encoding=UTF-8') #619
-- Allowing parameters to be of type `IO` as well #618
+- Users can pass in content types with ';' inside (such as 'text/plain; encoding=UTF-8') #619
+- Allowing parameters to be of type `IO` as well #618
- Can now generate without FATAL: bad indentation error (taken from m4 update - perks PR #105)
### 2020-05-06 - 5.0.0-preview.4
+
Modelerfour version: 4.13.346
**New Features**
-- Displaying the default and possible values for content type in the docstring for operations with multiple requests #615
+- Displaying the default and possible values for content type in the docstring for operations with multiple requests #615
**Bug Fixes**
-- Fixing `AsyncTokenCredential` typing import and adding to service client #591
-- Can now pass `content_type` and `error_map` kwargs to LRO functions without error #597
-- Now making sure to include the content type of exceptions when passing content types to 'Accept' header #602
-- `include_apis` in `Metrics` for tables swagger now cased correctly #603
-- Corrected spacing after `if cls:` block in operations #606
+- Fixing `AsyncTokenCredential` typing import and adding to service client #591
+- Can now pass `content_type` and `error_map` kwargs to LRO functions without error #597
+- Now making sure to include the content type of exceptions when passing content types to 'Accept' header #602
+- `include_apis` in `Metrics` for tables swagger now cased correctly #603
+- Corrected spacing after `if cls:` block in operations #606
### 2020-04-23 - 5.0.0-preview.3
+
Modelerfour version: 4.12.301
**Bug Fixes**
-- Fixed sync lro method naming in MultiAPI operation mixins #572
+- Fixed sync lro method naming in MultiAPI operation mixins #572
### 2020-04-22 - 5.0.0-preview.2
+
Modelerfour version: 4.12.301
**New Features**
-- User can now pass in credential scopes through kwargs #575
+- User can now pass in credential scopes through kwargs #575
- Default error map always contains a mapping of 404 to `ResourceNotFoundError` and 409 to `ResourceExistsError` #580
**Bug Fixes**
-- Not generating async multiapi client if `--no-async` flag is specified #586
-- Fixes query parameter handling in paging operations #172
-- Fixes losing 404/409 default is user pass a user_map #580
+- Not generating async multiapi client if `--no-async` flag is specified #586
+- Fixes query parameter handling in paging operations #172
+- Fixes losing 404/409 default is user pass a user_map #580
### 2020-04-16 - 5.0.0-preview.1
+
Modelerfour version: 4.12.301
**Breaking Changes**
-- If the user would like to add a patch file, they now must name the file `_patch.py` #573
+- If the user would like to add a patch file, they now must name the file `_patch.py` #573
**New features**
- Support non-ARM polling by default (azure-core 1.4.0)
-- Adding multiple inheritance #567
-- Accept polling_interval keyword passed to LRO operations #571
+- Adding multiple inheritance #567
+- Accept polling_interval keyword passed to LRO operations #571
**Bug Fixes**
- Fixed some generated typing hints (such as LROPoller) #507
### 2020-04-09 - 5.0.0-dev.20200409.1
+
Modelerfour version: 4.12.301
**Bug Fixes**
-- Separating out typing imports in TYPE_CHECKING block #538
-- Overriding a property inherited from a parent if they both have the same name #563
+- Separating out typing imports in TYPE_CHECKING block #538
+- Overriding a property inherited from a parent if they both have the same name #563
**New Features**
-- Client side validation is now disabled by default #558
-- We now also generate an async multiapi client when running multiapiscript # 480
+- Client side validation is now disabled by default #558
+- We now also generate an async multiapi client when running multiapiscript # 480
### 2020-04-06 - 5.0.0-dev.20200406.1
+
Modelerfour version: 4.12.294
**New Features**
-- Can now directly patch a client by defining a `patch.py` file in the top-level of the module with a `patch_sdk` function #548
-- Can now handle `time` formats #551
+- Can now directly patch a client by defining a `patch.py` file in the top-level of the module with a `patch_sdk` function #548
+- Can now handle `time` formats #551
### 2020-04-03 - 5.0.0-dev.20200403.1
+
Modelerfour version: 4.12.276
**Bug Fixes**
-- Fixes parameter ordering so parameters with default values are all ordered at the end #545
-- Fixes `TokenCredential` and `AsyncTokenCredential` sphinx docstring #546
+- Fixes parameter ordering so parameters with default values are all ordered at the end #545
+- Fixes `TokenCredential` and `AsyncTokenCredential` sphinx docstring #546
### 2020-04-01 - 5.0.0-dev.20200401.1
+
Modelerfour version: 4.12.276
**Bug Fixes**
-- Now the generic models file and python3 models file have the same behavior in regards to required properties and their default values #532
-- Can now specify non-string enums #534
-- Fixes `TokenCredential` typing #535
+- Now the generic models file and python3 models file have the same behavior in regards to required properties and their default values #532
+- Can now specify non-string enums #534
+- Fixes `TokenCredential` typing #535
### 2020-03-30 - 5.0.0-dev.20200330.1
+
Modelerfour version: 4.12.276
**Bug Fixes**
-- Fix enum default and required default #532
+- Fix enum default and required default #532
### 2020-03-26 - 5.0.0-dev.20200326.1
+
Modelerfour version: 4.12.276
**Bug Fixes**
-- Will no longer permit generated enums and models to have the same name #504
-- No longer exposing models from operation groups without importing them #486
-- Now correctly deserializes error's that have an empty object (AnySchema) as a model #516
-- Added a list of parameter names to reserved parameter words, so there won't be clashes #525
+- Will no longer permit generated enums and models to have the same name #504
+- No longer exposing models from operation groups without importing them #486
+- Now correctly deserializes error's that have an empty object (AnySchema) as a model #516
+- Added a list of parameter names to reserved parameter words, so there won't be clashes #525
- If a property's schema is readonly, we will show that property as being readonly (taken from m4 update #234)
-- Remove `"azure-"` prefix from user agent name #523
-- Correcting issue in generating multiapi with submodule, where generated user agent name included the `#` #505
-
+- Remove `"azure-"` prefix from user agent name #523
+- Correcting issue in generating multiapi with submodule, where generated user agent name included the `#` #505
### 2020-01-17 - 4.0.74
@@ -472,7 +518,7 @@ This version requires msrest 0.5.0
**Breaking changes**
- Model signatures are now using only keywords-arguments syntax. Every positional arguments are required to be rewritten as keywords-arguments.
- To keep auto-completion in most cases, models are now generated for Python 2 and Python 3. Python 3 uses the "*" syntax for keyword-only arguments.
+ To keep auto-completion in most cases, models are now generated for Python 2 and Python 3. Python 3 uses the "\*" syntax for keyword-only arguments.
- Enum type are now using the "str" mixin (`class AzureEnum(str, Enum)`) to improve experiences when unkown enum are met. This is not a breaking change,
but documentation about mixin enum and some recommendations should be known:
https://docs.python.org/3/library/enum.html#others
@@ -513,7 +559,7 @@ This version requires msrest 0.5.0
### 2017-12-13 - 2.1.28
-- All Model call super(XX, self).__init__()
+- All Model call super(XX, self).**init**()
### 2017-11-27 - 2.0.25
@@ -534,6 +580,7 @@ This version requires msrest 0.5.0
- Fix paging description
### 2017-10-10 - 2.0.16
+
- Improve polymorphic discriminator documentation (#17)
- Add deprecated support (#16)
- Fix invalid headers test (#15)
@@ -542,7 +589,9 @@ This version requires msrest 0.5.0
- Add client-side-validation to Autorest.Python (#11)
### 2017-09-27 - 2.0.14
+
- Improve documentation cross-reference (#9)
### 2017-09-26 - 2.0.13
+
- Remove constraint on array type, if array is used in the URL (#8)
diff --git a/autorest/codegen/templates/operation.py.jinja2 b/autorest/codegen/templates/operation.py.jinja2
index 82b63f90928..1a3830892ed 100644
--- a/autorest/codegen/templates/operation.py.jinja2
+++ b/autorest/codegen/templates/operation.py.jinja2
@@ -97,7 +97,7 @@
if response.status_code not in {{ operation.success_status_code|string() }}:
map_error(status_code=response.status_code, response=response, error_map=error_map)
{% if operation.default_exception %}
- error = self._deserialize({{ operation.default_exception }}, response)
+ error = self._deserialize.failsafe_deserialize({{ operation.default_exception }}, response)
{% endif %}
raise HttpResponseError(response=response{{ ", model=error" if operation.default_exception else "" }}{{ ", error_format=ARMErrorFormat" if code_model.options['azure_arm'] else "" }})
diff --git a/autorest/codegen/templates/paging_operation_helper.jinja2 b/autorest/codegen/templates/paging_operation_helper.jinja2
index 63a592262c0..ad58eed55d2 100644
--- a/autorest/codegen/templates/paging_operation_helper.jinja2
+++ b/autorest/codegen/templates/paging_operation_helper.jinja2
@@ -80,7 +80,7 @@ cls = kwargs.pop('cls', None) # type: ClsType[{{ op_tools.return_type_annotatio
if response.status_code not in {{ operation.success_status_code|string() }}:
{% if operation.default_exception %}
- error = self._deserialize({{ operation.default_exception }}, response)
+ error = self._deserialize.failsafe_deserialize({{ operation.default_exception }}, response)
{% endif %}
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response{{ ", model=error" if operation.default_exception else "" }}{{ ", error_format=ARMErrorFormat" if code_model.options['azure_arm'] else "" }})
diff --git a/autorest/codegen/templates/setup.py.jinja2 b/autorest/codegen/templates/setup.py.jinja2
index 09d8bfec8ae..f1433121652 100644
--- a/autorest/codegen/templates/setup.py.jinja2
+++ b/autorest/codegen/templates/setup.py.jinja2
@@ -16,7 +16,7 @@ VERSION = "{{ code_model.options.get('package_version', '0.0.0') }}"
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"{{ azure_mgmt_core_import }}]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"{{ azure_mgmt_core_import }}]
setup(
name=NAME,
diff --git a/docs/client/initializing.md b/docs/client/initializing.md
index e357b1c7a09..3bd16a3716e 100644
--- a/docs/client/initializing.md
+++ b/docs/client/initializing.md
@@ -1,4 +1,4 @@
-#
Initializing Your Python Client
+#
Initializing Your Python Client
The first step to using your generated client in code is to import and initialize your client. Our SDKs are modelled such
that the client is the main point of access to the generated code.
@@ -20,11 +20,11 @@ from azure.pets import PetsClient
The only scenario the generated code can force dependencies is if you generate with a `setup.py` file using the `--basic-setup-py` flag.
The following are core libraries your generated code depend on, and the minimum version we highly recommend:
-| Library | Description | Min Version
-|------------------|-------------|-------------
-|[`azure-core`][azure_core_library]|The most important library to have installed. It provides shared exceptions and modules for all the Python SDK client libraries.|1.8.2
-|[`msrest`][msrest_library]|Library mainly used for serializing and deserializing objects|0.6.18
-|[`azure-mgmt-core`][azure_mgmt_core_library]|Required if you're generating mgmt plane code (see `--azure-arm` flag in our [flag index][flag_index]. Provides mgmt plane specific shared exceptions and modules.|1.2.1
+| Library | Description | Min Version |
+| -------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------- |
+| [`azure-core`][azure_core_library] | The most important library to have installed. It provides shared exceptions and modules for all the Python SDK client libraries. | 1.8.2 |
+| [`msrest`][msrest_library] | Library mainly used for serializing and deserializing objects | 0.6.21 |
+| [`azure-mgmt-core`][azure_mgmt_core_library] | Required if you're generating mgmt plane code (see `--azure-arm` flag in our [flag index][flag_index]. Provides mgmt plane specific shared exceptions and modules. | 1.2.1 |
> Note: We highly recommend tying your library to a major version, for instance, adding `azure-core<2.0.0` to tie the `azure-core` library to `1.x.x`
@@ -57,10 +57,10 @@ client = PetsClient(credential=AzureKeyCredential(credential))
Each of these credential types also correspond to their own authentication policies that handle the credential. AutoRest automatically generates with the following default authentication policies based on the credential types:
-| Credential Type | Authentication Policy
-|------------------|-------------
-|[`TokenCredential`][aad_authentication] | [`BearerTokenCredentialPolicy`][bearer_token_credential_policy]
-|[`AzureKeyCredential`][azure_key_credential] | [`AzureKeyCredentialPolicy`][azure_key_credential_policy]
+| Credential Type | Authentication Policy |
+| -------------------------------------------- | --------------------------------------------------------------- |
+| [`TokenCredential`][aad_authentication] | [`BearerTokenCredentialPolicy`][bearer_token_credential_policy] |
+| [`AzureKeyCredential`][azure_key_credential] | [`AzureKeyCredentialPolicy`][azure_key_credential_policy] |
Currently, we only support generating credentials of type [`TokenCredential`][aad_authentication] and / or [`AzureKeyCredential`][azure_key_credential]. If you'd like to use your own custom credential,
you can pass the custom type into the client. However, you may have to use a custom authentication policy to handle the credential. That can also be passed in to the
@@ -85,6 +85,7 @@ client = PetsClient(credential=DefaultAzureCredential(), api_version="v1")
```
+
[multiapi_generation]: https://github.com/Azure/autorest.python/blob/autorestv3/docs/generate/multiapi.md
[azure_core_library]: https://pypi.org/project/azure-core/
[msrest_library]: https://pypi.org/project/msrest/
diff --git a/docs/samples/specification/azure_key_credential/generated/setup.py b/docs/samples/specification/azure_key_credential/generated/setup.py
index 55d98e4ad39..89127a7c061 100644
--- a/docs/samples/specification/azure_key_credential/generated/setup.py
+++ b/docs/samples/specification/azure_key_credential/generated/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/docs/samples/specification/basic/generated/setup.py b/docs/samples/specification/basic/generated/setup.py
index 7ac2e486923..252310d94f9 100644
--- a/docs/samples/specification/basic/generated/setup.py
+++ b/docs/samples/specification/basic/generated/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/docs/samples/specification/directives/generated/azure/directives/sample/aio/operations/_polling_paging_example_operations.py b/docs/samples/specification/directives/generated/azure/directives/sample/aio/operations/_polling_paging_example_operations.py
index 110d7e15d14..03c5b4ea376 100644
--- a/docs/samples/specification/directives/generated/azure/directives/sample/aio/operations/_polling_paging_example_operations.py
+++ b/docs/samples/specification/directives/generated/azure/directives/sample/aio/operations/_polling_paging_example_operations.py
@@ -58,7 +58,7 @@ async def _basic_polling_initial(
if response.status_code not in [200, 204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = None
diff --git a/docs/samples/specification/directives/generated/azure/directives/sample/operations/_polling_paging_example_operations.py b/docs/samples/specification/directives/generated/azure/directives/sample/operations/_polling_paging_example_operations.py
index bfedfeae15f..288a7769e5a 100644
--- a/docs/samples/specification/directives/generated/azure/directives/sample/operations/_polling_paging_example_operations.py
+++ b/docs/samples/specification/directives/generated/azure/directives/sample/operations/_polling_paging_example_operations.py
@@ -62,7 +62,7 @@ def _basic_polling_initial(
if response.status_code not in [200, 204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = None
diff --git a/docs/samples/specification/directives/generated/setup.py b/docs/samples/specification/directives/generated/setup.py
index 22e328c1d0f..ca368ccbca8 100644
--- a/docs/samples/specification/directives/generated/setup.py
+++ b/docs/samples/specification/directives/generated/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/docs/samples/specification/management/generated/setup.py b/docs/samples/specification/management/generated/setup.py
index 99f370cfcc1..841f7d16a88 100644
--- a/docs/samples/specification/management/generated/setup.py
+++ b/docs/samples/specification/management/generated/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2", "azure-mgmt-core<2.0.0,>=1.2.1"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2", "azure-mgmt-core<2.0.0,>=1.2.1"]
setup(
name=NAME,
diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/aio/operations/_multiapi_service_client_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/aio/operations/_multiapi_service_client_operations.py
index d3d44882d2a..358a33650d6 100644
--- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/aio/operations/_multiapi_service_client_operations.py
+++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/aio/operations/_multiapi_service_client_operations.py
@@ -68,7 +68,7 @@ async def test_one(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -112,7 +112,7 @@ async def _test_lro_initial(
if response.status_code not in [200, 204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = None
@@ -392,7 +392,7 @@ async def test_different_calls(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/aio/operations/_operation_group_one_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/aio/operations/_operation_group_one_operations.py
index ddef70e3cc5..5c0220d3445 100644
--- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/aio/operations/_operation_group_one_operations.py
+++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/aio/operations/_operation_group_one_operations.py
@@ -76,7 +76,7 @@ async def test_two(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/operations/_multiapi_service_client_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/operations/_multiapi_service_client_operations.py
index 0f679a112b2..59ff6a97e2d 100644
--- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/operations/_multiapi_service_client_operations.py
+++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/operations/_multiapi_service_client_operations.py
@@ -73,7 +73,7 @@ def test_one(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -118,7 +118,7 @@ def _test_lro_initial(
if response.status_code not in [200, 204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = None
@@ -402,7 +402,7 @@ def test_different_calls(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/operations/_operation_group_one_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/operations/_operation_group_one_operations.py
index 37c067e24e5..c646da51f03 100644
--- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/operations/_operation_group_one_operations.py
+++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/operations/_operation_group_one_operations.py
@@ -81,7 +81,7 @@ def test_two(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/operations/_multiapi_service_client_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/operations/_multiapi_service_client_operations.py
index 24d7856dbe4..f63f884c7af 100644
--- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/operations/_multiapi_service_client_operations.py
+++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/operations/_multiapi_service_client_operations.py
@@ -65,7 +65,7 @@ async def test_one(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = self._deserialize('ModelTwo', pipeline_response)
@@ -121,7 +121,7 @@ async def test_different_calls(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/operations/_operation_group_one_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/operations/_operation_group_one_operations.py
index 6e12b83a8b8..ec489678c15 100644
--- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/operations/_operation_group_one_operations.py
+++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/operations/_operation_group_one_operations.py
@@ -87,7 +87,7 @@ async def test_two(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = self._deserialize('ModelTwo', pipeline_response)
@@ -134,7 +134,7 @@ async def test_three(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/operations/_operation_group_two_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/operations/_operation_group_two_operations.py
index 7bd947bd451..2e5f49373a6 100644
--- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/operations/_operation_group_two_operations.py
+++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/operations/_operation_group_two_operations.py
@@ -80,7 +80,7 @@ async def test_four(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/operations/_multiapi_service_client_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/operations/_multiapi_service_client_operations.py
index 3a46cf9e141..897e76458d4 100644
--- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/operations/_multiapi_service_client_operations.py
+++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/operations/_multiapi_service_client_operations.py
@@ -70,7 +70,7 @@ def test_one(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = self._deserialize('ModelTwo', pipeline_response)
@@ -127,7 +127,7 @@ def test_different_calls(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/operations/_operation_group_one_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/operations/_operation_group_one_operations.py
index 9a376ac7151..1c19e8bf0f0 100644
--- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/operations/_operation_group_one_operations.py
+++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/operations/_operation_group_one_operations.py
@@ -92,7 +92,7 @@ def test_two(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = self._deserialize('ModelTwo', pipeline_response)
@@ -140,7 +140,7 @@ def test_three(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/operations/_operation_group_two_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/operations/_operation_group_two_operations.py
index f0cd0e65a75..9422a2f313a 100644
--- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/operations/_operation_group_two_operations.py
+++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/operations/_operation_group_two_operations.py
@@ -85,7 +85,7 @@ def test_four(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/operations/_multiapi_service_client_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/operations/_multiapi_service_client_operations.py
index 9b0e477f519..bab1550f252 100644
--- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/operations/_multiapi_service_client_operations.py
+++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/operations/_multiapi_service_client_operations.py
@@ -131,7 +131,7 @@ async def test_different_calls(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/operations/_operation_group_one_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/operations/_operation_group_one_operations.py
index a4a0c822d0b..44ea99fab74 100644
--- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/operations/_operation_group_one_operations.py
+++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/operations/_operation_group_one_operations.py
@@ -87,7 +87,7 @@ async def test_two(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = self._deserialize('ModelThree', pipeline_response)
diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/operations/_operation_group_two_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/operations/_operation_group_two_operations.py
index 1c4f5a8c416..d7970cf772e 100644
--- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/operations/_operation_group_two_operations.py
+++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/operations/_operation_group_two_operations.py
@@ -97,7 +97,7 @@ async def test_four(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -141,7 +141,7 @@ async def test_five(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/operations/_multiapi_service_client_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/operations/_multiapi_service_client_operations.py
index 59e2e3477f3..e9083836eb8 100644
--- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/operations/_multiapi_service_client_operations.py
+++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/operations/_multiapi_service_client_operations.py
@@ -137,7 +137,7 @@ def test_different_calls(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/operations/_operation_group_one_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/operations/_operation_group_one_operations.py
index 809b5a2bb68..f2162b42e8c 100644
--- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/operations/_operation_group_one_operations.py
+++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/operations/_operation_group_one_operations.py
@@ -92,7 +92,7 @@ def test_two(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = self._deserialize('ModelThree', pipeline_response)
diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/operations/_operation_group_two_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/operations/_operation_group_two_operations.py
index b390729d5cd..7f2bd86de66 100644
--- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/operations/_operation_group_two_operations.py
+++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/operations/_operation_group_two_operations.py
@@ -102,7 +102,7 @@ def test_four(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -147,7 +147,7 @@ def test_five(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/package.json b/package.json
index 67360a0544e..22933df99af 100644
--- a/package.json
+++ b/package.json
@@ -1,43 +1,43 @@
{
- "name": "@autorest/python",
- "version": "5.6.0",
- "description": "The Python extension for generators in AutoRest.",
- "scripts": {
- "prepare": "node run-python3.js prepare.py",
- "start": "node run-python3.js start.py",
- "install": "node run-python3.js install.py",
- "debug": "node run-python3.js start.py --debug"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/Azure/autorest.python/tree/autorestv3"
- },
- "readme": "https://github.com/Azure/autorest.python/blob/autorestv3/README.md",
- "keywords": [
- "autorest",
- "python"
- ],
- "author": "Microsoft Corporation",
- "license": "MIT",
- "bugs": {
- "url": "https://github.com/Azure/autorest.python/issues"
- },
- "homepage": "https://github.com/Azure/autorest.python/blob/autorestv3/README.md",
- "dependencies": {
- "@azure-tools/extension": "^3.0.249"
- },
- "devDependencies": {
- "@autorest/autorest": "^3.0.0",
- "@microsoft.azure/autorest.testserver": "^2.10.62"
- },
- "files": [
- "autorest/**/*.py",
- "autorest/**/*.jinja2",
- "setup.py",
- "install.py",
- "prepare.py",
- "start.py",
- "venvtools.py",
- "run-python3.js"
- ]
+ "name": "@autorest/python",
+ "version": "5.6.1",
+ "description": "The Python extension for generators in AutoRest.",
+ "scripts": {
+ "prepare": "node run-python3.js prepare.py",
+ "start": "node run-python3.js start.py",
+ "install": "node run-python3.js install.py",
+ "debug": "node run-python3.js start.py --debug"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/Azure/autorest.python/tree/autorestv3"
+ },
+ "readme": "https://github.com/Azure/autorest.python/blob/autorestv3/README.md",
+ "keywords": [
+ "autorest",
+ "python"
+ ],
+ "author": "Microsoft Corporation",
+ "license": "MIT",
+ "bugs": {
+ "url": "https://github.com/Azure/autorest.python/issues"
+ },
+ "homepage": "https://github.com/Azure/autorest.python/blob/autorestv3/README.md",
+ "dependencies": {
+ "@azure-tools/extension": "^3.0.249"
+ },
+ "devDependencies": {
+ "@autorest/autorest": "^3.0.0",
+ "@microsoft.azure/autorest.testserver": "^3.0.6"
+ },
+ "files": [
+ "autorest/**/*.py",
+ "autorest/**/*.jinja2",
+ "setup.py",
+ "install.py",
+ "prepare.py",
+ "start.py",
+ "venvtools.py",
+ "run-python3.js"
+ ]
}
diff --git a/tasks.py b/tasks.py
index f1d8dfbc555..85d34efe967 100644
--- a/tasks.py
+++ b/tasks.py
@@ -50,6 +50,7 @@ class _SwaggerGroup(Enum):
'ExtensibleEnums': 'extensible-enums-swagger.json',
'Header': 'header.json',
'Http': 'httpInfrastructure.json',
+ 'IncorrectErrorResponse': 'incorrect-error-response.json',
'Report': 'report.json',
'RequiredOptional': 'required-optional.json',
'Url': 'url.json',
diff --git a/test/azure/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/aio/operations/_duration_operations.py b/test/azure/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/aio/operations/_duration_operations.py
index 7df50e40cd0..538596c97f1 100644
--- a/test/azure/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/aio/operations/_duration_operations.py
+++ b/test/azure/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/aio/operations/_duration_operations.py
@@ -78,7 +78,7 @@ async def get_null(self, **kwargs) -> Optional[datetime.timedelta]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("duration", pipeline_response)
@@ -127,7 +127,7 @@ async def put_positive_duration(self, duration_body: datetime.timedelta, **kwarg
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -165,7 +165,7 @@ async def get_positive_duration(self, **kwargs) -> datetime.timedelta:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("duration", pipeline_response)
@@ -207,7 +207,7 @@ async def get_invalid(self, **kwargs) -> datetime.timedelta:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("duration", pipeline_response)
diff --git a/test/azure/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/operations/_duration_operations.py b/test/azure/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/operations/_duration_operations.py
index 3df245ea629..72de7e128df 100644
--- a/test/azure/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/operations/_duration_operations.py
+++ b/test/azure/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/operations/_duration_operations.py
@@ -85,7 +85,7 @@ def get_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("duration", pipeline_response)
@@ -139,7 +139,7 @@ def put_positive_duration(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -180,7 +180,7 @@ def get_positive_duration(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("duration", pipeline_response)
@@ -225,7 +225,7 @@ def get_invalid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("duration", pipeline_response)
diff --git a/test/azure/Expected/AcceptanceTests/AzureBodyDuration/setup.py b/test/azure/Expected/AcceptanceTests/AzureBodyDuration/setup.py
index 32b400cb2dc..47f4913beda 100644
--- a/test/azure/Expected/AcceptanceTests/AzureBodyDuration/setup.py
+++ b/test/azure/Expected/AcceptanceTests/AzureBodyDuration/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/azure/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/aio/operations/_parameter_grouping_operations.py b/test/azure/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/aio/operations/_parameter_grouping_operations.py
index 8ef4b1c521f..65b61149c49 100644
--- a/test/azure/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/aio/operations/_parameter_grouping_operations.py
+++ b/test/azure/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/aio/operations/_parameter_grouping_operations.py
@@ -104,7 +104,7 @@ async def post_required(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -158,7 +158,7 @@ async def post_optional(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -226,7 +226,7 @@ async def post_multi_param_groups(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -278,7 +278,7 @@ async def post_shared_parameter_group_object(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/azure/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/operations/_parameter_grouping_operations.py b/test/azure/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/operations/_parameter_grouping_operations.py
index c81b827c735..6527b4c94cd 100644
--- a/test/azure/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/operations/_parameter_grouping_operations.py
+++ b/test/azure/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/operations/_parameter_grouping_operations.py
@@ -111,7 +111,7 @@ def post_required(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -166,7 +166,7 @@ def post_optional(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -233,7 +233,7 @@ def post_multi_param_groups(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -288,7 +288,7 @@ def post_shared_parameter_group_object(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/azure/Expected/AcceptanceTests/AzureParameterGrouping/setup.py b/test/azure/Expected/AcceptanceTests/AzureParameterGrouping/setup.py
index fa06a712a97..c6a072189df 100644
--- a/test/azure/Expected/AcceptanceTests/AzureParameterGrouping/setup.py
+++ b/test/azure/Expected/AcceptanceTests/AzureParameterGrouping/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/azure/Expected/AcceptanceTests/AzureReport/azurereport/aio/operations/_auto_rest_report_service_for_azure_operations.py b/test/azure/Expected/AcceptanceTests/AzureReport/azurereport/aio/operations/_auto_rest_report_service_for_azure_operations.py
index 2997b4271f8..4b6aff582da 100644
--- a/test/azure/Expected/AcceptanceTests/AzureReport/azurereport/aio/operations/_auto_rest_report_service_for_azure_operations.py
+++ b/test/azure/Expected/AcceptanceTests/AzureReport/azurereport/aio/operations/_auto_rest_report_service_for_azure_operations.py
@@ -62,7 +62,7 @@ async def get_report(self, qualifier: Optional[str] = None, **kwargs) -> Dict[st
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{int}", pipeline_response)
diff --git a/test/azure/Expected/AcceptanceTests/AzureReport/azurereport/operations/_auto_rest_report_service_for_azure_operations.py b/test/azure/Expected/AcceptanceTests/AzureReport/azurereport/operations/_auto_rest_report_service_for_azure_operations.py
index b666da89ec9..35215d0ba1f 100644
--- a/test/azure/Expected/AcceptanceTests/AzureReport/azurereport/operations/_auto_rest_report_service_for_azure_operations.py
+++ b/test/azure/Expected/AcceptanceTests/AzureReport/azurereport/operations/_auto_rest_report_service_for_azure_operations.py
@@ -71,7 +71,7 @@ def get_report(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{int}", pipeline_response)
diff --git a/test/azure/Expected/AcceptanceTests/AzureReport/setup.py b/test/azure/Expected/AcceptanceTests/AzureReport/setup.py
index d1f2660dc94..0e5691390f5 100644
--- a/test/azure/Expected/AcceptanceTests/AzureReport/setup.py
+++ b/test/azure/Expected/AcceptanceTests/AzureReport/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_api_version_default_operations.py b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_api_version_default_operations.py
index 9921e7a5c61..2ab7724d8a8 100644
--- a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_api_version_default_operations.py
+++ b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_api_version_default_operations.py
@@ -80,7 +80,7 @@ async def get_method_global_valid(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -120,7 +120,7 @@ async def get_method_global_not_provided_valid(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -160,7 +160,7 @@ async def get_path_global_valid(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -200,7 +200,7 @@ async def get_swagger_global_valid(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_api_version_local_operations.py b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_api_version_local_operations.py
index f9dc90c944a..2b8ac940eb4 100644
--- a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_api_version_local_operations.py
+++ b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_api_version_local_operations.py
@@ -80,7 +80,7 @@ async def get_method_local_valid(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -123,7 +123,7 @@ async def get_method_local_null(self, api_version: Optional[str] = None, **kwarg
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -163,7 +163,7 @@ async def get_path_local_valid(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -203,7 +203,7 @@ async def get_swagger_local_valid(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_header_operations.py b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_header_operations.py
index 14c2f33758a..a31150a80ab 100644
--- a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_header_operations.py
+++ b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_header_operations.py
@@ -83,7 +83,7 @@ async def custom_named_request_id(self, foo_client_request_id: str, **kwargs) ->
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
response_headers = {}
@@ -138,7 +138,7 @@ async def custom_named_request_id_param_grouping(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
response_headers = {}
@@ -184,7 +184,7 @@ async def custom_named_request_id_head(self, foo_client_request_id: str, **kwarg
if response.status_code not in [200, 404]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
response_headers = {}
diff --git a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_odata_operations.py b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_odata_operations.py
index 24f2e4c7fff..cf4787bfab6 100644
--- a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_odata_operations.py
+++ b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_odata_operations.py
@@ -92,7 +92,7 @@ async def get_with_filter(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_skip_url_encoding_operations.py b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_skip_url_encoding_operations.py
index 70f569aeccd..883a08f20ba 100644
--- a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_skip_url_encoding_operations.py
+++ b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_skip_url_encoding_operations.py
@@ -86,7 +86,7 @@ async def get_method_path_valid(self, unencoded_path_param: str, **kwargs) -> No
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -132,7 +132,7 @@ async def get_path_valid(self, unencoded_path_param: str, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -177,7 +177,7 @@ async def get_swagger_path_valid(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -218,7 +218,7 @@ async def get_method_query_valid(self, q1: str, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -260,7 +260,7 @@ async def get_method_query_null(self, q1: Optional[str] = None, **kwargs) -> Non
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -301,7 +301,7 @@ async def get_path_query_valid(self, q1: str, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -341,7 +341,7 @@ async def get_swagger_query_valid(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_subscription_in_credentials_operations.py b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_subscription_in_credentials_operations.py
index 53fc89c75d2..43cecb7f2a9 100644
--- a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_subscription_in_credentials_operations.py
+++ b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_subscription_in_credentials_operations.py
@@ -83,7 +83,7 @@ async def post_method_global_valid(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -126,7 +126,7 @@ async def post_method_global_null(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -171,7 +171,7 @@ async def post_method_global_not_provided_valid(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -214,7 +214,7 @@ async def post_path_global_valid(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -257,7 +257,7 @@ async def post_swagger_global_valid(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_subscription_in_method_operations.py b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_subscription_in_method_operations.py
index 09b54f797f6..d0fc979112e 100644
--- a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_subscription_in_method_operations.py
+++ b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_subscription_in_method_operations.py
@@ -86,7 +86,7 @@ async def post_method_local_valid(self, subscription_id: str, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -132,7 +132,7 @@ async def post_method_local_null(self, subscription_id: str, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -177,7 +177,7 @@ async def post_path_local_valid(self, subscription_id: str, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -223,7 +223,7 @@ async def post_swagger_local_valid(self, subscription_id: str, **kwargs) -> None
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_xms_client_request_id_operations.py b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_xms_client_request_id_operations.py
index 5874cc01462..ca9b920a367 100644
--- a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_xms_client_request_id_operations.py
+++ b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_xms_client_request_id_operations.py
@@ -121,7 +121,7 @@ async def param_get(self, x_ms_client_request_id: str, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_api_version_default_operations.py b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_api_version_default_operations.py
index 93ae64ba24f..a0ce511a094 100644
--- a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_api_version_default_operations.py
+++ b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_api_version_default_operations.py
@@ -87,7 +87,7 @@ def get_method_global_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -130,7 +130,7 @@ def get_method_global_not_provided_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -173,7 +173,7 @@ def get_path_global_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -216,7 +216,7 @@ def get_swagger_global_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_api_version_local_operations.py b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_api_version_local_operations.py
index 29a9322232e..1d9bf1ad111 100644
--- a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_api_version_local_operations.py
+++ b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_api_version_local_operations.py
@@ -87,7 +87,7 @@ def get_method_local_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -135,7 +135,7 @@ def get_method_local_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -178,7 +178,7 @@ def get_path_local_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -221,7 +221,7 @@ def get_swagger_local_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_header_operations.py b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_header_operations.py
index 7b73f996eba..307de10663d 100644
--- a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_header_operations.py
+++ b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_header_operations.py
@@ -92,7 +92,7 @@ def custom_named_request_id(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
response_headers = {}
@@ -148,7 +148,7 @@ def custom_named_request_id_param_grouping(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
response_headers = {}
@@ -199,7 +199,7 @@ def custom_named_request_id_head(
if response.status_code not in [200, 404]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
response_headers = {}
diff --git a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_odata_operations.py b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_odata_operations.py
index 03085ca6356..ab9b86525c9 100644
--- a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_odata_operations.py
+++ b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_odata_operations.py
@@ -101,7 +101,7 @@ def get_with_filter(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_skip_url_encoding_operations.py b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_skip_url_encoding_operations.py
index 343f538aa7c..b316f75100e 100644
--- a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_skip_url_encoding_operations.py
+++ b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_skip_url_encoding_operations.py
@@ -95,7 +95,7 @@ def get_method_path_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -146,7 +146,7 @@ def get_path_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -194,7 +194,7 @@ def get_swagger_path_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -240,7 +240,7 @@ def get_method_query_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -287,7 +287,7 @@ def get_method_query_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -333,7 +333,7 @@ def get_path_query_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -376,7 +376,7 @@ def get_swagger_query_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_subscription_in_credentials_operations.py b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_subscription_in_credentials_operations.py
index 298de49bf4c..49fd7c1b342 100644
--- a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_subscription_in_credentials_operations.py
+++ b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_subscription_in_credentials_operations.py
@@ -90,7 +90,7 @@ def post_method_global_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -136,7 +136,7 @@ def post_method_global_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -184,7 +184,7 @@ def post_method_global_not_provided_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -230,7 +230,7 @@ def post_path_global_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -276,7 +276,7 @@ def post_swagger_global_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_subscription_in_method_operations.py b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_subscription_in_method_operations.py
index 3b3a8f38416..2cc4bdbae16 100644
--- a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_subscription_in_method_operations.py
+++ b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_subscription_in_method_operations.py
@@ -95,7 +95,7 @@ def post_method_local_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -146,7 +146,7 @@ def post_method_local_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -196,7 +196,7 @@ def post_path_local_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -247,7 +247,7 @@ def post_swagger_local_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_xms_client_request_id_operations.py b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_xms_client_request_id_operations.py
index 529f3483771..87874386680 100644
--- a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_xms_client_request_id_operations.py
+++ b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_xms_client_request_id_operations.py
@@ -133,7 +133,7 @@ def param_get(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/azure/Expected/AcceptanceTests/AzureSpecials/setup.py b/test/azure/Expected/AcceptanceTests/AzureSpecials/setup.py
index 0c518505f39..ce5fe349719 100644
--- a/test/azure/Expected/AcceptanceTests/AzureSpecials/setup.py
+++ b/test/azure/Expected/AcceptanceTests/AzureSpecials/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2", "azure-mgmt-core<2.0.0,>=1.2.1"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2", "azure-mgmt-core<2.0.0,>=1.2.1"]
setup(
name=NAME,
diff --git a/test/azure/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/operations/_paths_operations.py b/test/azure/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/operations/_paths_operations.py
index c03fc61fc53..abb7ece7162 100644
--- a/test/azure/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/operations/_paths_operations.py
+++ b/test/azure/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/operations/_paths_operations.py
@@ -84,7 +84,7 @@ async def get_empty(self, account_name: str, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/azure/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/operations/_paths_operations.py b/test/azure/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/operations/_paths_operations.py
index 0c00c0e8890..227cbbdefcc 100644
--- a/test/azure/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/operations/_paths_operations.py
+++ b/test/azure/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/operations/_paths_operations.py
@@ -93,7 +93,7 @@ def get_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/azure/Expected/AcceptanceTests/CustomBaseUri/setup.py b/test/azure/Expected/AcceptanceTests/CustomBaseUri/setup.py
index 186207a9e03..b41dddbf059 100644
--- a/test/azure/Expected/AcceptanceTests/CustomBaseUri/setup.py
+++ b/test/azure/Expected/AcceptanceTests/CustomBaseUri/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/azure/Expected/AcceptanceTests/CustomPollerPager/setup.py b/test/azure/Expected/AcceptanceTests/CustomPollerPager/setup.py
index 218b384bc43..87e10f75be9 100644
--- a/test/azure/Expected/AcceptanceTests/CustomPollerPager/setup.py
+++ b/test/azure/Expected/AcceptanceTests/CustomPollerPager/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2", "azure-mgmt-core<2.0.0,>=1.2.1"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2", "azure-mgmt-core<2.0.0,>=1.2.1"]
setup(
name=NAME,
diff --git a/test/azure/Expected/AcceptanceTests/CustomUrlPaging/setup.py b/test/azure/Expected/AcceptanceTests/CustomUrlPaging/setup.py
index 1ff007e87f2..276dac72b65 100644
--- a/test/azure/Expected/AcceptanceTests/CustomUrlPaging/setup.py
+++ b/test/azure/Expected/AcceptanceTests/CustomUrlPaging/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/azure/Expected/AcceptanceTests/Head/setup.py b/test/azure/Expected/AcceptanceTests/Head/setup.py
index 4d01dc2721f..170e4066562 100644
--- a/test/azure/Expected/AcceptanceTests/Head/setup.py
+++ b/test/azure/Expected/AcceptanceTests/Head/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2", "azure-mgmt-core<2.0.0,>=1.2.1"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2", "azure-mgmt-core<2.0.0,>=1.2.1"]
setup(
name=NAME,
diff --git a/test/azure/Expected/AcceptanceTests/HeadExceptions/setup.py b/test/azure/Expected/AcceptanceTests/HeadExceptions/setup.py
index e0683e3b9f2..f7c82611e00 100644
--- a/test/azure/Expected/AcceptanceTests/HeadExceptions/setup.py
+++ b/test/azure/Expected/AcceptanceTests/HeadExceptions/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2", "azure-mgmt-core<2.0.0,>=1.2.1"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2", "azure-mgmt-core<2.0.0,>=1.2.1"]
setup(
name=NAME,
diff --git a/test/azure/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/setup.py b/test/azure/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/setup.py
index 4d01dc2721f..170e4066562 100644
--- a/test/azure/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/setup.py
+++ b/test/azure/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2", "azure-mgmt-core<2.0.0,>=1.2.1"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2", "azure-mgmt-core<2.0.0,>=1.2.1"]
setup(
name=NAME,
diff --git a/test/azure/Expected/AcceptanceTests/Lro/setup.py b/test/azure/Expected/AcceptanceTests/Lro/setup.py
index 64958355ad8..ed6ad765f49 100644
--- a/test/azure/Expected/AcceptanceTests/Lro/setup.py
+++ b/test/azure/Expected/AcceptanceTests/Lro/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2", "azure-mgmt-core<2.0.0,>=1.2.1"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2", "azure-mgmt-core<2.0.0,>=1.2.1"]
setup(
name=NAME,
diff --git a/test/azure/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/aio/operations/_lro_with_paramaterized_endpoints_operations.py b/test/azure/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/aio/operations/_lro_with_paramaterized_endpoints_operations.py
index d817dade06f..f625e86065b 100644
--- a/test/azure/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/aio/operations/_lro_with_paramaterized_endpoints_operations.py
+++ b/test/azure/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/aio/operations/_lro_with_paramaterized_endpoints_operations.py
@@ -55,7 +55,7 @@ async def _poll_with_parameterized_endpoints_initial(self, account_name: str, **
if response.status_code not in [200, 202]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
diff --git a/test/azure/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/operations/_lro_with_paramaterized_endpoints_operations.py b/test/azure/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/operations/_lro_with_paramaterized_endpoints_operations.py
index 51a715fe430..c55804f4162 100644
--- a/test/azure/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/operations/_lro_with_paramaterized_endpoints_operations.py
+++ b/test/azure/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/operations/_lro_with_paramaterized_endpoints_operations.py
@@ -64,7 +64,7 @@ def _poll_with_parameterized_endpoints_initial(
if response.status_code not in [200, 202]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
diff --git a/test/azure/Expected/AcceptanceTests/LroWithParameterizedEndpoints/setup.py b/test/azure/Expected/AcceptanceTests/LroWithParameterizedEndpoints/setup.py
index 3f21d9046f8..a6f1bd63dae 100644
--- a/test/azure/Expected/AcceptanceTests/LroWithParameterizedEndpoints/setup.py
+++ b/test/azure/Expected/AcceptanceTests/LroWithParameterizedEndpoints/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/azure/Expected/AcceptanceTests/Paging/setup.py b/test/azure/Expected/AcceptanceTests/Paging/setup.py
index 81ce1fbb345..419a7bdb043 100644
--- a/test/azure/Expected/AcceptanceTests/Paging/setup.py
+++ b/test/azure/Expected/AcceptanceTests/Paging/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/azure/Expected/AcceptanceTests/StorageManagementClient/setup.py b/test/azure/Expected/AcceptanceTests/StorageManagementClient/setup.py
index cec3afe58cd..cb512b84aff 100644
--- a/test/azure/Expected/AcceptanceTests/StorageManagementClient/setup.py
+++ b/test/azure/Expected/AcceptanceTests/StorageManagementClient/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2", "azure-mgmt-core<2.0.0,>=1.2.1"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2", "azure-mgmt-core<2.0.0,>=1.2.1"]
setup(
name=NAME,
diff --git a/test/azure/Expected/AcceptanceTests/SubscriptionIdApiVersion/setup.py b/test/azure/Expected/AcceptanceTests/SubscriptionIdApiVersion/setup.py
index 5b9fe2fa228..1d5db6b9372 100644
--- a/test/azure/Expected/AcceptanceTests/SubscriptionIdApiVersion/setup.py
+++ b/test/azure/Expected/AcceptanceTests/SubscriptionIdApiVersion/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2", "azure-mgmt-core<2.0.0,>=1.2.1"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2", "azure-mgmt-core<2.0.0,>=1.2.1"]
setup(
name=NAME,
diff --git a/test/azure/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/operations/_group_operations.py b/test/azure/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/operations/_group_operations.py
index 2c611271fc3..12cc13e7bd7 100644
--- a/test/azure/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/operations/_group_operations.py
+++ b/test/azure/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/operations/_group_operations.py
@@ -87,7 +87,7 @@ async def get_sample_resource_group(self, resource_group_name: str, **kwargs) ->
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = self._deserialize("SampleResourceGroup", pipeline_response)
diff --git a/test/azure/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/operations/_group_operations.py b/test/azure/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/operations/_group_operations.py
index 27f37ce79f8..5de2366938a 100644
--- a/test/azure/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/operations/_group_operations.py
+++ b/test/azure/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/operations/_group_operations.py
@@ -96,7 +96,7 @@ def get_sample_resource_group(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = self._deserialize("SampleResourceGroup", pipeline_response)
diff --git a/test/azure/requirements.txt b/test/azure/requirements.txt
index a75a84aff03..9d76eb5a937 100644
--- a/test/azure/requirements.txt
+++ b/test/azure/requirements.txt
@@ -1,24 +1,24 @@
-requests>=2.14.0
-pytest
-pytest-cov
-pytest-asyncio;python_full_version>="3.5.2"
-async_generator;python_full_version>="3.5.2"
-azure-core>=1.8.2
-azure-mgmt-core>=1.2.1
-msrest>=0.6.10
-aiohttp;python_full_version>="3.5.2"
--e ./Expected/AcceptanceTests/AzureBodyDuration
--e ./Expected/AcceptanceTests/AzureParameterGrouping
--e ./Expected/AcceptanceTests/AzureReport
--e ./Expected/AcceptanceTests/AzureSpecials
--e ./Expected/AcceptanceTests/CustomBaseUri
--e ./Expected/AcceptanceTests/CustomUrlPaging
--e ./Expected/AcceptanceTests/Head
--e ./Expected/AcceptanceTests/HeadExceptions
--e ./Expected/AcceptanceTests/Lro
--e ./Expected/AcceptanceTests/LroWithParameterizedEndpoints
--e ./Expected/AcceptanceTests/Paging
--e ./Expected/AcceptanceTests/StorageManagementClient
--e ./Expected/AcceptanceTests/SubscriptionIdApiVersion
--e ./Expected/AcceptanceTests/CustomPollerPager
+requests>=2.14.0
+pytest
+pytest-cov
+pytest-asyncio;python_full_version>="3.5.2"
+async_generator;python_full_version>="3.5.2"
+azure-core>=1.8.2
+azure-mgmt-core>=1.2.1
+msrest>=0.6.21
+aiohttp;python_full_version>="3.5.2"
+-e ./Expected/AcceptanceTests/AzureBodyDuration
+-e ./Expected/AcceptanceTests/AzureParameterGrouping
+-e ./Expected/AcceptanceTests/AzureReport
+-e ./Expected/AcceptanceTests/AzureSpecials
+-e ./Expected/AcceptanceTests/CustomBaseUri
+-e ./Expected/AcceptanceTests/CustomUrlPaging
+-e ./Expected/AcceptanceTests/Head
+-e ./Expected/AcceptanceTests/HeadExceptions
+-e ./Expected/AcceptanceTests/Lro
+-e ./Expected/AcceptanceTests/LroWithParameterizedEndpoints
+-e ./Expected/AcceptanceTests/Paging
+-e ./Expected/AcceptanceTests/StorageManagementClient
+-e ./Expected/AcceptanceTests/SubscriptionIdApiVersion
+-e ./Expected/AcceptanceTests/CustomPollerPager
-e ./Expected/AcceptanceTests/CustomPollerPagerDefinitions
\ No newline at end of file
diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/aio/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/aio/operations/_multiapi_service_client_operations.py
index 641fff82f7e..d22c729490f 100644
--- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/aio/operations/_multiapi_service_client_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/aio/operations/_multiapi_service_client_operations.py
@@ -68,7 +68,7 @@ async def test_one(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -112,7 +112,7 @@ async def _test_lro_initial(
if response.status_code not in [200, 204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = None
@@ -392,7 +392,7 @@ async def test_different_calls(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/aio/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/aio/operations/_operation_group_one_operations.py
index e3be928c32d..55ecfdfe45f 100644
--- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/aio/operations/_operation_group_one_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/aio/operations/_operation_group_one_operations.py
@@ -76,7 +76,7 @@ async def test_two(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/operations/_multiapi_service_client_operations.py
index 4e31fc821a1..ddbd8a4cec0 100644
--- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/operations/_multiapi_service_client_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/operations/_multiapi_service_client_operations.py
@@ -73,7 +73,7 @@ def test_one(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -118,7 +118,7 @@ def _test_lro_initial(
if response.status_code not in [200, 204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = None
@@ -402,7 +402,7 @@ def test_different_calls(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/operations/_operation_group_one_operations.py
index d2cb0370eb6..66da9b3e93a 100644
--- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/operations/_operation_group_one_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/operations/_operation_group_one_operations.py
@@ -81,7 +81,7 @@ def test_two(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations/_multiapi_service_client_operations.py
index 9cab2e9371c..43609b7d276 100644
--- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations/_multiapi_service_client_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations/_multiapi_service_client_operations.py
@@ -65,7 +65,7 @@ async def test_one(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = self._deserialize('ModelTwo', pipeline_response)
@@ -121,7 +121,7 @@ async def test_different_calls(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations/_operation_group_one_operations.py
index c1e535a4578..a743a29e063 100644
--- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations/_operation_group_one_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations/_operation_group_one_operations.py
@@ -87,7 +87,7 @@ async def test_two(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = self._deserialize('ModelTwo', pipeline_response)
@@ -134,7 +134,7 @@ async def test_three(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations/_operation_group_two_operations.py
index e5daa3fb8bf..385af9f76dd 100644
--- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations/_operation_group_two_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations/_operation_group_two_operations.py
@@ -80,7 +80,7 @@ async def test_four(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/operations/_multiapi_service_client_operations.py
index 1433a3e3e50..22f15312362 100644
--- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/operations/_multiapi_service_client_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/operations/_multiapi_service_client_operations.py
@@ -70,7 +70,7 @@ def test_one(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = self._deserialize('ModelTwo', pipeline_response)
@@ -127,7 +127,7 @@ def test_different_calls(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/operations/_operation_group_one_operations.py
index c5d3476b8ea..4dfee7c8c0c 100644
--- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/operations/_operation_group_one_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/operations/_operation_group_one_operations.py
@@ -92,7 +92,7 @@ def test_two(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = self._deserialize('ModelTwo', pipeline_response)
@@ -140,7 +140,7 @@ def test_three(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/operations/_operation_group_two_operations.py
index 7e1e7e60e3d..13f1695a670 100644
--- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/operations/_operation_group_two_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/operations/_operation_group_two_operations.py
@@ -85,7 +85,7 @@ def test_four(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations/_multiapi_service_client_operations.py
index 030d258ccc0..f6f9a66c5ca 100644
--- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations/_multiapi_service_client_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations/_multiapi_service_client_operations.py
@@ -131,7 +131,7 @@ async def test_different_calls(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations/_operation_group_one_operations.py
index 7038cbdae67..8ed67639b30 100644
--- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations/_operation_group_one_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations/_operation_group_one_operations.py
@@ -87,7 +87,7 @@ async def test_two(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = self._deserialize('ModelThree', pipeline_response)
diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations/_operation_group_two_operations.py
index 7fa77cfa060..ce1fe26004e 100644
--- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations/_operation_group_two_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations/_operation_group_two_operations.py
@@ -97,7 +97,7 @@ async def test_four(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -141,7 +141,7 @@ async def test_five(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/operations/_multiapi_service_client_operations.py
index 3d7c604d642..9aaf7b9345f 100644
--- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/operations/_multiapi_service_client_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/operations/_multiapi_service_client_operations.py
@@ -137,7 +137,7 @@ def test_different_calls(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/operations/_operation_group_one_operations.py
index 8eefdc7cda0..ff0ec3e3732 100644
--- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/operations/_operation_group_one_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/operations/_operation_group_one_operations.py
@@ -92,7 +92,7 @@ def test_two(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = self._deserialize('ModelThree', pipeline_response)
diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/operations/_operation_group_two_operations.py
index 14f0471651b..c1ca76696c8 100644
--- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/operations/_operation_group_two_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/operations/_operation_group_two_operations.py
@@ -102,7 +102,7 @@ def test_four(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -147,7 +147,7 @@ def test_five(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/aio/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/aio/operations/_multiapi_service_client_operations.py
index 3b9613d4bcb..086df961b3c 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/aio/operations/_multiapi_service_client_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/aio/operations/_multiapi_service_client_operations.py
@@ -68,7 +68,7 @@ async def test_one(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -112,7 +112,7 @@ async def _test_lro_initial(
if response.status_code not in [200, 204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = None
@@ -392,7 +392,7 @@ async def test_different_calls(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/aio/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/aio/operations/_operation_group_one_operations.py
index df3d102ac9e..a65870fa20e 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/aio/operations/_operation_group_one_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/aio/operations/_operation_group_one_operations.py
@@ -76,7 +76,7 @@ async def test_two(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/operations/_multiapi_service_client_operations.py
index 589a7f427d6..81eef3b304e 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/operations/_multiapi_service_client_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/operations/_multiapi_service_client_operations.py
@@ -73,7 +73,7 @@ def test_one(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -118,7 +118,7 @@ def _test_lro_initial(
if response.status_code not in [200, 204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = None
@@ -402,7 +402,7 @@ def test_different_calls(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/operations/_operation_group_one_operations.py
index 65f676982ac..486b070ecb6 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/operations/_operation_group_one_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/operations/_operation_group_one_operations.py
@@ -81,7 +81,7 @@ def test_two(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/operations/_multiapi_service_client_operations.py
index d10ef391baf..906ed6654ad 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/operations/_multiapi_service_client_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/operations/_multiapi_service_client_operations.py
@@ -65,7 +65,7 @@ async def test_one(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = self._deserialize('ModelTwo', pipeline_response)
@@ -121,7 +121,7 @@ async def test_different_calls(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/operations/_operation_group_one_operations.py
index 051567ee7d4..754d9e4e049 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/operations/_operation_group_one_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/operations/_operation_group_one_operations.py
@@ -87,7 +87,7 @@ async def test_two(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = self._deserialize('ModelTwo', pipeline_response)
@@ -134,7 +134,7 @@ async def test_three(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/operations/_operation_group_two_operations.py
index f36e5c0eec4..62edc308f76 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/operations/_operation_group_two_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/operations/_operation_group_two_operations.py
@@ -80,7 +80,7 @@ async def test_four(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/operations/_multiapi_service_client_operations.py
index 332dd5f94de..e45f424a9b2 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/operations/_multiapi_service_client_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/operations/_multiapi_service_client_operations.py
@@ -70,7 +70,7 @@ def test_one(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = self._deserialize('ModelTwo', pipeline_response)
@@ -127,7 +127,7 @@ def test_different_calls(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/operations/_operation_group_one_operations.py
index 9ec852260a6..86f20d3b46f 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/operations/_operation_group_one_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/operations/_operation_group_one_operations.py
@@ -92,7 +92,7 @@ def test_two(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = self._deserialize('ModelTwo', pipeline_response)
@@ -140,7 +140,7 @@ def test_three(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/operations/_operation_group_two_operations.py
index 44656e52192..52c92f79d8b 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/operations/_operation_group_two_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/operations/_operation_group_two_operations.py
@@ -85,7 +85,7 @@ def test_four(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/operations/_multiapi_service_client_operations.py
index 483b67993a2..8b6f375024e 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/operations/_multiapi_service_client_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/operations/_multiapi_service_client_operations.py
@@ -131,7 +131,7 @@ async def test_different_calls(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/operations/_operation_group_one_operations.py
index e21c934b909..4252394a76d 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/operations/_operation_group_one_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/operations/_operation_group_one_operations.py
@@ -87,7 +87,7 @@ async def test_two(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = self._deserialize('ModelThree', pipeline_response)
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/operations/_operation_group_two_operations.py
index 89d30e346b2..3bef28f8907 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/operations/_operation_group_two_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/operations/_operation_group_two_operations.py
@@ -97,7 +97,7 @@ async def test_four(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -141,7 +141,7 @@ async def test_five(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/operations/_multiapi_service_client_operations.py
index 5ae5ca68fa1..472d51b348a 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/operations/_multiapi_service_client_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/operations/_multiapi_service_client_operations.py
@@ -137,7 +137,7 @@ def test_different_calls(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/operations/_operation_group_one_operations.py
index 436cddebab4..031e8fd3a9a 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/operations/_operation_group_one_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/operations/_operation_group_one_operations.py
@@ -92,7 +92,7 @@ def test_two(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = self._deserialize('ModelThree', pipeline_response)
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/operations/_operation_group_two_operations.py
index 00279f48b50..12027e7ece4 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/operations/_operation_group_two_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/operations/_operation_group_two_operations.py
@@ -102,7 +102,7 @@ def test_four(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -147,7 +147,7 @@ def test_five(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/aio/operations/_multiapi_custom_base_url_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/aio/operations/_multiapi_custom_base_url_service_client_operations.py
index bdc1950d183..5479a02db01 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/aio/operations/_multiapi_custom_base_url_service_client_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/aio/operations/_multiapi_custom_base_url_service_client_operations.py
@@ -64,7 +64,7 @@ async def test(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/operations/_multiapi_custom_base_url_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/operations/_multiapi_custom_base_url_service_client_operations.py
index f62dbf36785..313a30b2183 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/operations/_multiapi_custom_base_url_service_client_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/operations/_multiapi_custom_base_url_service_client_operations.py
@@ -69,7 +69,7 @@ def test(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/aio/operations/_multiapi_custom_base_url_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/aio/operations/_multiapi_custom_base_url_service_client_operations.py
index 60cd59b44f7..45cbc3c5944 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/aio/operations/_multiapi_custom_base_url_service_client_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/aio/operations/_multiapi_custom_base_url_service_client_operations.py
@@ -64,7 +64,7 @@ async def test(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/operations/_multiapi_custom_base_url_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/operations/_multiapi_custom_base_url_service_client_operations.py
index bce7a97e56a..49b5fed1263 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/operations/_multiapi_custom_base_url_service_client_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/operations/_multiapi_custom_base_url_service_client_operations.py
@@ -69,7 +69,7 @@ def test(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/aio/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/aio/operations/_multiapi_service_client_operations.py
index 58adf58feb8..6f4929aabac 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/aio/operations/_multiapi_service_client_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/aio/operations/_multiapi_service_client_operations.py
@@ -67,7 +67,7 @@ async def test_one(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -111,7 +111,7 @@ async def _test_lro_initial(
if response.status_code not in [200, 204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = None
@@ -391,7 +391,7 @@ async def test_different_calls(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/aio/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/aio/operations/_operation_group_one_operations.py
index 64cba90bfaf..4ca03d4b3d5 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/aio/operations/_operation_group_one_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/aio/operations/_operation_group_one_operations.py
@@ -75,7 +75,7 @@ async def test_two(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/operations/_multiapi_service_client_operations.py
index 43713bd712e..0b5f38cbed3 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/operations/_multiapi_service_client_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/operations/_multiapi_service_client_operations.py
@@ -72,7 +72,7 @@ def test_one(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -117,7 +117,7 @@ def _test_lro_initial(
if response.status_code not in [200, 204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = None
@@ -401,7 +401,7 @@ def test_different_calls(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/operations/_operation_group_one_operations.py
index 6c51a36e74b..19b94877e55 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/operations/_operation_group_one_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/operations/_operation_group_one_operations.py
@@ -80,7 +80,7 @@ def test_two(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/operations/_multiapi_service_client_operations.py
index 5d3f452e204..ac4081a8a17 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/operations/_multiapi_service_client_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/operations/_multiapi_service_client_operations.py
@@ -64,7 +64,7 @@ async def test_one(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize('ModelTwo', pipeline_response)
@@ -120,7 +120,7 @@ async def test_different_calls(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/operations/_operation_group_one_operations.py
index 07a72a10996..c3b54562c4c 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/operations/_operation_group_one_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/operations/_operation_group_one_operations.py
@@ -86,7 +86,7 @@ async def test_two(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize('ModelTwo', pipeline_response)
@@ -133,7 +133,7 @@ async def test_three(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/operations/_operation_group_two_operations.py
index 33b0fc701cd..8b583a8feea 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/operations/_operation_group_two_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/operations/_operation_group_two_operations.py
@@ -79,7 +79,7 @@ async def test_four(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/operations/_multiapi_service_client_operations.py
index b96f2b42094..299274facd3 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/operations/_multiapi_service_client_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/operations/_multiapi_service_client_operations.py
@@ -69,7 +69,7 @@ def test_one(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize('ModelTwo', pipeline_response)
@@ -126,7 +126,7 @@ def test_different_calls(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/operations/_operation_group_one_operations.py
index edb521a5ec5..2689023cb9f 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/operations/_operation_group_one_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/operations/_operation_group_one_operations.py
@@ -91,7 +91,7 @@ def test_two(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize('ModelTwo', pipeline_response)
@@ -139,7 +139,7 @@ def test_three(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/operations/_operation_group_two_operations.py
index 009de52819b..d78f1c3e0ac 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/operations/_operation_group_two_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/operations/_operation_group_two_operations.py
@@ -84,7 +84,7 @@ def test_four(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/operations/_multiapi_service_client_operations.py
index fee8756eadf..49574cd8d85 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/operations/_multiapi_service_client_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/operations/_multiapi_service_client_operations.py
@@ -130,7 +130,7 @@ async def test_different_calls(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/operations/_operation_group_one_operations.py
index 58ba581268a..d198d3b7910 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/operations/_operation_group_one_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/operations/_operation_group_one_operations.py
@@ -86,7 +86,7 @@ async def test_two(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize('ModelThree', pipeline_response)
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/operations/_operation_group_two_operations.py
index 42fd28e313a..e04d8f3513f 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/operations/_operation_group_two_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/operations/_operation_group_two_operations.py
@@ -96,7 +96,7 @@ async def test_four(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -140,7 +140,7 @@ async def test_five(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/operations/_multiapi_service_client_operations.py
index 4e5eaadd522..15709831798 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/operations/_multiapi_service_client_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/operations/_multiapi_service_client_operations.py
@@ -136,7 +136,7 @@ def test_different_calls(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/operations/_operation_group_one_operations.py
index 9d161337088..fe33a3c75fe 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/operations/_operation_group_one_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/operations/_operation_group_one_operations.py
@@ -91,7 +91,7 @@ def test_two(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize('ModelThree', pipeline_response)
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/operations/_operation_group_two_operations.py
index dc785778138..70551fb2934 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/operations/_operation_group_two_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/operations/_operation_group_two_operations.py
@@ -101,7 +101,7 @@ def test_four(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -146,7 +146,7 @@ def test_five(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v1/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v1/operations/_multiapi_service_client_operations.py
index c6177935399..c4c9ab7e5b5 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v1/operations/_multiapi_service_client_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v1/operations/_multiapi_service_client_operations.py
@@ -73,7 +73,7 @@ def test_one(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -118,7 +118,7 @@ def _test_lro_initial(
if response.status_code not in [200, 204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = None
@@ -402,7 +402,7 @@ def test_different_calls(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v1/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v1/operations/_operation_group_one_operations.py
index 8747d9845d3..291d562661f 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v1/operations/_operation_group_one_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v1/operations/_operation_group_one_operations.py
@@ -81,7 +81,7 @@ def test_two(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/operations/_multiapi_service_client_operations.py
index 6479f115fec..335613e4aa7 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/operations/_multiapi_service_client_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/operations/_multiapi_service_client_operations.py
@@ -70,7 +70,7 @@ def test_one(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = self._deserialize('ModelTwo', pipeline_response)
@@ -127,7 +127,7 @@ def test_different_calls(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/operations/_operation_group_one_operations.py
index a53e02fc903..ee8bc42ac80 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/operations/_operation_group_one_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/operations/_operation_group_one_operations.py
@@ -92,7 +92,7 @@ def test_two(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = self._deserialize('ModelTwo', pipeline_response)
@@ -140,7 +140,7 @@ def test_three(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/operations/_operation_group_two_operations.py
index cdcef6f3045..7bf734513ca 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/operations/_operation_group_two_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/operations/_operation_group_two_operations.py
@@ -85,7 +85,7 @@ def test_four(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/operations/_multiapi_service_client_operations.py
index 279abe65910..d9a9345b375 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/operations/_multiapi_service_client_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/operations/_multiapi_service_client_operations.py
@@ -137,7 +137,7 @@ def test_different_calls(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/operations/_operation_group_one_operations.py
index 666f5f5a329..67c8765a763 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/operations/_operation_group_one_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/operations/_operation_group_one_operations.py
@@ -92,7 +92,7 @@ def test_two(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = self._deserialize('ModelThree', pipeline_response)
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/operations/_operation_group_two_operations.py
index 7b9115a4edb..dd0592aeced 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/operations/_operation_group_two_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/operations/_operation_group_two_operations.py
@@ -102,7 +102,7 @@ def test_four(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -147,7 +147,7 @@ def test_five(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/aio/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/aio/operations/_multiapi_service_client_operations.py
index 6b1801e76d5..4a68b60793c 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/aio/operations/_multiapi_service_client_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/aio/operations/_multiapi_service_client_operations.py
@@ -68,7 +68,7 @@ async def test_one(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -112,7 +112,7 @@ async def _test_lro_initial(
if response.status_code not in [200, 204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = None
@@ -392,7 +392,7 @@ async def test_different_calls(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/aio/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/aio/operations/_operation_group_one_operations.py
index f49a071e387..bf077f27690 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/aio/operations/_operation_group_one_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/aio/operations/_operation_group_one_operations.py
@@ -76,7 +76,7 @@ async def test_two(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/operations/_multiapi_service_client_operations.py
index 2d77366f757..766eb29d0e9 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/operations/_multiapi_service_client_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/operations/_multiapi_service_client_operations.py
@@ -73,7 +73,7 @@ def test_one(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -118,7 +118,7 @@ def _test_lro_initial(
if response.status_code not in [200, 204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = None
@@ -402,7 +402,7 @@ def test_different_calls(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/operations/_operation_group_one_operations.py
index 529df4c28d3..323aecba747 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/operations/_operation_group_one_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/operations/_operation_group_one_operations.py
@@ -81,7 +81,7 @@ def test_two(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations/_multiapi_service_client_operations.py
index 0f45c7c516e..8c435fb4ce4 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations/_multiapi_service_client_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations/_multiapi_service_client_operations.py
@@ -65,7 +65,7 @@ async def test_one(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = self._deserialize('ModelTwo', pipeline_response)
@@ -121,7 +121,7 @@ async def test_different_calls(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations/_operation_group_one_operations.py
index 8e7da6d97f2..8c247f07769 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations/_operation_group_one_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations/_operation_group_one_operations.py
@@ -87,7 +87,7 @@ async def test_two(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = self._deserialize('ModelTwo', pipeline_response)
@@ -134,7 +134,7 @@ async def test_three(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations/_operation_group_two_operations.py
index ddf3a884980..4d32e33b0a6 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations/_operation_group_two_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations/_operation_group_two_operations.py
@@ -80,7 +80,7 @@ async def test_four(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/operations/_multiapi_service_client_operations.py
index b1896d7062b..8440038598d 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/operations/_multiapi_service_client_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/operations/_multiapi_service_client_operations.py
@@ -70,7 +70,7 @@ def test_one(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = self._deserialize('ModelTwo', pipeline_response)
@@ -127,7 +127,7 @@ def test_different_calls(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/operations/_operation_group_one_operations.py
index 7a5bfc4e2d5..5299f6e0acd 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/operations/_operation_group_one_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/operations/_operation_group_one_operations.py
@@ -92,7 +92,7 @@ def test_two(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = self._deserialize('ModelTwo', pipeline_response)
@@ -140,7 +140,7 @@ def test_three(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/operations/_operation_group_two_operations.py
index a0a1241536a..19bb156ff0c 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/operations/_operation_group_two_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/operations/_operation_group_two_operations.py
@@ -85,7 +85,7 @@ def test_four(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations/_multiapi_service_client_operations.py
index b5de7e881fc..35fb9d52885 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations/_multiapi_service_client_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations/_multiapi_service_client_operations.py
@@ -131,7 +131,7 @@ async def test_different_calls(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations/_operation_group_one_operations.py
index 85e8af3818d..cf34ccc152f 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations/_operation_group_one_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations/_operation_group_one_operations.py
@@ -87,7 +87,7 @@ async def test_two(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = self._deserialize('ModelThree', pipeline_response)
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations/_operation_group_two_operations.py
index f28bbfaae16..1c883fff8b3 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations/_operation_group_two_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations/_operation_group_two_operations.py
@@ -97,7 +97,7 @@ async def test_four(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -141,7 +141,7 @@ async def test_five(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/operations/_multiapi_service_client_operations.py
index 3671fda546b..571432f24b0 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/operations/_multiapi_service_client_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/operations/_multiapi_service_client_operations.py
@@ -137,7 +137,7 @@ def test_different_calls(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/operations/_operation_group_one_operations.py
index 6ae3e7c0847..44b973e7e07 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/operations/_operation_group_one_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/operations/_operation_group_one_operations.py
@@ -92,7 +92,7 @@ def test_two(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = self._deserialize('ModelThree', pipeline_response)
diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/operations/_operation_group_two_operations.py
index 2d594512da1..cf15b007b16 100644
--- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/operations/_operation_group_two_operations.py
+++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/operations/_operation_group_two_operations.py
@@ -102,7 +102,7 @@ def test_four(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
@@ -147,7 +147,7 @@ def test_five(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/test/multiapi/requirements.txt b/test/multiapi/requirements.txt
index 6afae2a0152..d553f550de0 100644
--- a/test/multiapi/requirements.txt
+++ b/test/multiapi/requirements.txt
@@ -1,4 +1,4 @@
-msrest>=0.6.11
+msrest>=0.6.21
azure-core>=1.7.0
azure-mgmt-core>=1.2.0
pytest
diff --git a/test/vanilla/AcceptanceTests/asynctests/test_incorrect_error_response.py b/test/vanilla/AcceptanceTests/asynctests/test_incorrect_error_response.py
new file mode 100644
index 00000000000..b9c39944480
--- /dev/null
+++ b/test/vanilla/AcceptanceTests/asynctests/test_incorrect_error_response.py
@@ -0,0 +1,34 @@
+# --------------------------------------------------------------------------
+#
+# Copyright (c) Microsoft Corporation. All rights reserved.
+#
+# The MIT License (MIT)
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the ""Software""), to
+# deal in the Software without restriction, including without limitation the
+# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+# sell copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+# IN THE SOFTWARE.
+#
+# --------------------------------------------------------------------------
+import pytest
+from azure.core.exceptions import HttpResponseError
+from incorrecterrorresponse.aio import IncorrectReturnedErrorModel
+
+@pytest.mark.asyncio
+async def test_swallow_deserialization_error_for_error_model():
+ client = IncorrectReturnedErrorModel(base_url="http://localhost:3000")
+ with pytest.raises(HttpResponseError):
+ await client.get_incorrect_error_from_server()
\ No newline at end of file
diff --git a/test/vanilla/AcceptanceTests/test_incorrect_error_response.py b/test/vanilla/AcceptanceTests/test_incorrect_error_response.py
new file mode 100644
index 00000000000..c1913a35b1a
--- /dev/null
+++ b/test/vanilla/AcceptanceTests/test_incorrect_error_response.py
@@ -0,0 +1,33 @@
+# --------------------------------------------------------------------------
+#
+# Copyright (c) Microsoft Corporation. All rights reserved.
+#
+# The MIT License (MIT)
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the ""Software""), to
+# deal in the Software without restriction, including without limitation the
+# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+# sell copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+# IN THE SOFTWARE.
+#
+# --------------------------------------------------------------------------
+import pytest
+from azure.core.exceptions import HttpResponseError
+from incorrecterrorresponse import IncorrectReturnedErrorModel
+
+def test_swallow_deserialization_error_for_error_model():
+ client = IncorrectReturnedErrorModel(base_url="http://localhost:3000")
+ with pytest.raises(HttpResponseError):
+ client.get_incorrect_error_from_server()
\ No newline at end of file
diff --git a/test/vanilla/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/aio/operations/_pets_operations.py b/test/vanilla/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/aio/operations/_pets_operations.py
index eb623505402..6fab023f865 100644
--- a/test/vanilla/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/aio/operations/_pets_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/aio/operations/_pets_operations.py
@@ -84,7 +84,7 @@ async def create_ap_true(self, create_parameters: "_models.PetAPTrue", **kwargs)
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("PetAPTrue", pipeline_response)
@@ -133,7 +133,7 @@ async def create_cat_ap_true(self, create_parameters: "_models.CatAPTrue", **kwa
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("CatAPTrue", pipeline_response)
@@ -182,7 +182,7 @@ async def create_ap_object(self, create_parameters: "_models.PetAPObject", **kwa
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("PetAPObject", pipeline_response)
@@ -231,7 +231,7 @@ async def create_ap_string(self, create_parameters: "_models.PetAPString", **kwa
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("PetAPString", pipeline_response)
@@ -282,7 +282,7 @@ async def create_ap_in_properties(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("PetAPInProperties", pipeline_response)
@@ -333,7 +333,7 @@ async def create_ap_in_properties_with_ap_string(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("PetAPInPropertiesWithAPString", pipeline_response)
diff --git a/test/vanilla/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/operations/_pets_operations.py b/test/vanilla/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/operations/_pets_operations.py
index 2c2b7aeeacd..754d2741cf3 100644
--- a/test/vanilla/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/operations/_pets_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/operations/_pets_operations.py
@@ -93,7 +93,7 @@ def create_ap_true(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("PetAPTrue", pipeline_response)
@@ -147,7 +147,7 @@ def create_cat_ap_true(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("CatAPTrue", pipeline_response)
@@ -201,7 +201,7 @@ def create_ap_object(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("PetAPObject", pipeline_response)
@@ -255,7 +255,7 @@ def create_ap_string(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("PetAPString", pipeline_response)
@@ -309,7 +309,7 @@ def create_ap_in_properties(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("PetAPInProperties", pipeline_response)
@@ -363,7 +363,7 @@ def create_ap_in_properties_with_ap_string(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("PetAPInPropertiesWithAPString", pipeline_response)
diff --git a/test/vanilla/Expected/AcceptanceTests/AdditionalProperties/setup.py b/test/vanilla/Expected/AcceptanceTests/AdditionalProperties/setup.py
index 4bde66d41e2..683ec3268f7 100644
--- a/test/vanilla/Expected/AcceptanceTests/AdditionalProperties/setup.py
+++ b/test/vanilla/Expected/AcceptanceTests/AdditionalProperties/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyArray/bodyarray/aio/operations/_array_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyArray/bodyarray/aio/operations/_array_operations.py
index bf08291a769..5dc2cdba8e2 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyArray/bodyarray/aio/operations/_array_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyArray/bodyarray/aio/operations/_array_operations.py
@@ -78,7 +78,7 @@ async def get_null(self, **kwargs) -> List[int]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[int]", pipeline_response)
@@ -120,7 +120,7 @@ async def get_invalid(self, **kwargs) -> List[int]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[int]", pipeline_response)
@@ -162,7 +162,7 @@ async def get_empty(self, **kwargs) -> List[int]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[int]", pipeline_response)
@@ -211,7 +211,7 @@ async def put_empty(self, array_body: List[str], **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -249,7 +249,7 @@ async def get_boolean_tfft(self, **kwargs) -> List[bool]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[bool]", pipeline_response)
@@ -298,7 +298,7 @@ async def put_boolean_tfft(self, array_body: List[bool], **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -336,7 +336,7 @@ async def get_boolean_invalid_null(self, **kwargs) -> List[bool]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[bool]", pipeline_response)
@@ -378,7 +378,7 @@ async def get_boolean_invalid_string(self, **kwargs) -> List[bool]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[bool]", pipeline_response)
@@ -420,7 +420,7 @@ async def get_integer_valid(self, **kwargs) -> List[int]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[int]", pipeline_response)
@@ -469,7 +469,7 @@ async def put_integer_valid(self, array_body: List[int], **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -507,7 +507,7 @@ async def get_int_invalid_null(self, **kwargs) -> List[int]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[int]", pipeline_response)
@@ -549,7 +549,7 @@ async def get_int_invalid_string(self, **kwargs) -> List[int]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[int]", pipeline_response)
@@ -591,7 +591,7 @@ async def get_long_valid(self, **kwargs) -> List[int]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[long]", pipeline_response)
@@ -640,7 +640,7 @@ async def put_long_valid(self, array_body: List[int], **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -678,7 +678,7 @@ async def get_long_invalid_null(self, **kwargs) -> List[int]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[long]", pipeline_response)
@@ -720,7 +720,7 @@ async def get_long_invalid_string(self, **kwargs) -> List[int]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[long]", pipeline_response)
@@ -762,7 +762,7 @@ async def get_float_valid(self, **kwargs) -> List[float]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[float]", pipeline_response)
@@ -811,7 +811,7 @@ async def put_float_valid(self, array_body: List[float], **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -849,7 +849,7 @@ async def get_float_invalid_null(self, **kwargs) -> List[float]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[float]", pipeline_response)
@@ -891,7 +891,7 @@ async def get_float_invalid_string(self, **kwargs) -> List[float]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[float]", pipeline_response)
@@ -933,7 +933,7 @@ async def get_double_valid(self, **kwargs) -> List[float]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[float]", pipeline_response)
@@ -982,7 +982,7 @@ async def put_double_valid(self, array_body: List[float], **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1020,7 +1020,7 @@ async def get_double_invalid_null(self, **kwargs) -> List[float]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[float]", pipeline_response)
@@ -1062,7 +1062,7 @@ async def get_double_invalid_string(self, **kwargs) -> List[float]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[float]", pipeline_response)
@@ -1104,7 +1104,7 @@ async def get_string_valid(self, **kwargs) -> List[str]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[str]", pipeline_response)
@@ -1153,7 +1153,7 @@ async def put_string_valid(self, array_body: List[str], **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1191,7 +1191,7 @@ async def get_enum_valid(self, **kwargs) -> List[Union[str, "_models.FooEnum"]]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[str]", pipeline_response)
@@ -1240,7 +1240,7 @@ async def put_enum_valid(self, array_body: List[Union[str, "_models.FooEnum"]],
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1278,7 +1278,7 @@ async def get_string_enum_valid(self, **kwargs) -> List[Union[str, "_models.Enum
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[str]", pipeline_response)
@@ -1327,7 +1327,7 @@ async def put_string_enum_valid(self, array_body: List[Union[str, "_models.Enum1
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1365,7 +1365,7 @@ async def get_string_with_null(self, **kwargs) -> List[str]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[str]", pipeline_response)
@@ -1407,7 +1407,7 @@ async def get_string_with_invalid(self, **kwargs) -> List[str]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[str]", pipeline_response)
@@ -1450,7 +1450,7 @@ async def get_uuid_valid(self, **kwargs) -> List[str]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[str]", pipeline_response)
@@ -1500,7 +1500,7 @@ async def put_uuid_valid(self, array_body: List[str], **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1538,7 +1538,7 @@ async def get_uuid_invalid_chars(self, **kwargs) -> List[str]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[str]", pipeline_response)
@@ -1580,7 +1580,7 @@ async def get_date_valid(self, **kwargs) -> List[datetime.date]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[date]", pipeline_response)
@@ -1629,7 +1629,7 @@ async def put_date_valid(self, array_body: List[datetime.date], **kwargs) -> Non
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1667,7 +1667,7 @@ async def get_date_invalid_null(self, **kwargs) -> List[datetime.date]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[date]", pipeline_response)
@@ -1709,7 +1709,7 @@ async def get_date_invalid_chars(self, **kwargs) -> List[datetime.date]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[date]", pipeline_response)
@@ -1752,7 +1752,7 @@ async def get_date_time_valid(self, **kwargs) -> List[datetime.datetime]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[iso-8601]", pipeline_response)
@@ -1802,7 +1802,7 @@ async def put_date_time_valid(self, array_body: List[datetime.datetime], **kwarg
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1840,7 +1840,7 @@ async def get_date_time_invalid_null(self, **kwargs) -> List[datetime.datetime]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[iso-8601]", pipeline_response)
@@ -1882,7 +1882,7 @@ async def get_date_time_invalid_chars(self, **kwargs) -> List[datetime.datetime]
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[iso-8601]", pipeline_response)
@@ -1925,7 +1925,7 @@ async def get_date_time_rfc1123_valid(self, **kwargs) -> List[datetime.datetime]
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[rfc-1123]", pipeline_response)
@@ -1975,7 +1975,7 @@ async def put_date_time_rfc1123_valid(self, array_body: List[datetime.datetime],
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -2013,7 +2013,7 @@ async def get_duration_valid(self, **kwargs) -> List[datetime.timedelta]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[duration]", pipeline_response)
@@ -2062,7 +2062,7 @@ async def put_duration_valid(self, array_body: List[datetime.timedelta], **kwarg
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -2101,7 +2101,7 @@ async def get_byte_valid(self, **kwargs) -> List[bytearray]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[bytearray]", pipeline_response)
@@ -2151,7 +2151,7 @@ async def put_byte_valid(self, array_body: List[bytearray], **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -2189,7 +2189,7 @@ async def get_byte_invalid_null(self, **kwargs) -> List[bytearray]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[bytearray]", pipeline_response)
@@ -2232,7 +2232,7 @@ async def get_base64_url(self, **kwargs) -> List[bytes]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[base64]", pipeline_response)
@@ -2274,7 +2274,7 @@ async def get_complex_null(self, **kwargs) -> List["_models.Product"]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[Product]", pipeline_response)
@@ -2316,7 +2316,7 @@ async def get_complex_empty(self, **kwargs) -> List["_models.Product"]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[Product]", pipeline_response)
@@ -2359,7 +2359,7 @@ async def get_complex_item_null(self, **kwargs) -> List["_models.Product"]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[Product]", pipeline_response)
@@ -2402,7 +2402,7 @@ async def get_complex_item_empty(self, **kwargs) -> List["_models.Product"]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[Product]", pipeline_response)
@@ -2445,7 +2445,7 @@ async def get_complex_valid(self, **kwargs) -> List["_models.Product"]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[Product]", pipeline_response)
@@ -2495,7 +2495,7 @@ async def put_complex_valid(self, array_body: List["_models.Product"], **kwargs)
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -2533,7 +2533,7 @@ async def get_array_null(self, **kwargs) -> List[List[str]]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[[str]]", pipeline_response)
@@ -2575,7 +2575,7 @@ async def get_array_empty(self, **kwargs) -> List[List[str]]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[[str]]", pipeline_response)
@@ -2617,7 +2617,7 @@ async def get_array_item_null(self, **kwargs) -> List[List[str]]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[[str]]", pipeline_response)
@@ -2659,7 +2659,7 @@ async def get_array_item_empty(self, **kwargs) -> List[List[str]]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[[str]]", pipeline_response)
@@ -2701,7 +2701,7 @@ async def get_array_valid(self, **kwargs) -> List[List[str]]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[[str]]", pipeline_response)
@@ -2750,7 +2750,7 @@ async def put_array_valid(self, array_body: List[List[str]], **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -2788,7 +2788,7 @@ async def get_dictionary_null(self, **kwargs) -> List[Dict[str, str]]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[{str}]", pipeline_response)
@@ -2830,7 +2830,7 @@ async def get_dictionary_empty(self, **kwargs) -> List[Dict[str, str]]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[{str}]", pipeline_response)
@@ -2873,7 +2873,7 @@ async def get_dictionary_item_null(self, **kwargs) -> List[Dict[str, str]]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[{str}]", pipeline_response)
@@ -2916,7 +2916,7 @@ async def get_dictionary_item_empty(self, **kwargs) -> List[Dict[str, str]]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[{str}]", pipeline_response)
@@ -2959,7 +2959,7 @@ async def get_dictionary_valid(self, **kwargs) -> List[Dict[str, str]]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[{str}]", pipeline_response)
@@ -3009,7 +3009,7 @@ async def put_dictionary_valid(self, array_body: List[Dict[str, str]], **kwargs)
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyArray/bodyarray/operations/_array_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyArray/bodyarray/operations/_array_operations.py
index 8dab7f8bf90..12b82270806 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyArray/bodyarray/operations/_array_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyArray/bodyarray/operations/_array_operations.py
@@ -85,7 +85,7 @@ def get_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[int]", pipeline_response)
@@ -130,7 +130,7 @@ def get_invalid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[int]", pipeline_response)
@@ -175,7 +175,7 @@ def get_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[int]", pipeline_response)
@@ -229,7 +229,7 @@ def put_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -270,7 +270,7 @@ def get_boolean_tfft(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[bool]", pipeline_response)
@@ -324,7 +324,7 @@ def put_boolean_tfft(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -365,7 +365,7 @@ def get_boolean_invalid_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[bool]", pipeline_response)
@@ -410,7 +410,7 @@ def get_boolean_invalid_string(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[bool]", pipeline_response)
@@ -455,7 +455,7 @@ def get_integer_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[int]", pipeline_response)
@@ -509,7 +509,7 @@ def put_integer_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -550,7 +550,7 @@ def get_int_invalid_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[int]", pipeline_response)
@@ -595,7 +595,7 @@ def get_int_invalid_string(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[int]", pipeline_response)
@@ -640,7 +640,7 @@ def get_long_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[long]", pipeline_response)
@@ -694,7 +694,7 @@ def put_long_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -735,7 +735,7 @@ def get_long_invalid_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[long]", pipeline_response)
@@ -780,7 +780,7 @@ def get_long_invalid_string(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[long]", pipeline_response)
@@ -825,7 +825,7 @@ def get_float_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[float]", pipeline_response)
@@ -879,7 +879,7 @@ def put_float_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -920,7 +920,7 @@ def get_float_invalid_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[float]", pipeline_response)
@@ -965,7 +965,7 @@ def get_float_invalid_string(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[float]", pipeline_response)
@@ -1010,7 +1010,7 @@ def get_double_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[float]", pipeline_response)
@@ -1064,7 +1064,7 @@ def put_double_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1105,7 +1105,7 @@ def get_double_invalid_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[float]", pipeline_response)
@@ -1150,7 +1150,7 @@ def get_double_invalid_string(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[float]", pipeline_response)
@@ -1195,7 +1195,7 @@ def get_string_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[str]", pipeline_response)
@@ -1249,7 +1249,7 @@ def put_string_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1290,7 +1290,7 @@ def get_enum_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[str]", pipeline_response)
@@ -1344,7 +1344,7 @@ def put_enum_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1385,7 +1385,7 @@ def get_string_enum_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[str]", pipeline_response)
@@ -1439,7 +1439,7 @@ def put_string_enum_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1480,7 +1480,7 @@ def get_string_with_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[str]", pipeline_response)
@@ -1525,7 +1525,7 @@ def get_string_with_invalid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[str]", pipeline_response)
@@ -1571,7 +1571,7 @@ def get_uuid_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[str]", pipeline_response)
@@ -1626,7 +1626,7 @@ def put_uuid_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1667,7 +1667,7 @@ def get_uuid_invalid_chars(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[str]", pipeline_response)
@@ -1712,7 +1712,7 @@ def get_date_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[date]", pipeline_response)
@@ -1766,7 +1766,7 @@ def put_date_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1807,7 +1807,7 @@ def get_date_invalid_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[date]", pipeline_response)
@@ -1852,7 +1852,7 @@ def get_date_invalid_chars(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[date]", pipeline_response)
@@ -1898,7 +1898,7 @@ def get_date_time_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[iso-8601]", pipeline_response)
@@ -1953,7 +1953,7 @@ def put_date_time_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1994,7 +1994,7 @@ def get_date_time_invalid_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[iso-8601]", pipeline_response)
@@ -2039,7 +2039,7 @@ def get_date_time_invalid_chars(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[iso-8601]", pipeline_response)
@@ -2085,7 +2085,7 @@ def get_date_time_rfc1123_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[rfc-1123]", pipeline_response)
@@ -2140,7 +2140,7 @@ def put_date_time_rfc1123_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -2181,7 +2181,7 @@ def get_duration_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[duration]", pipeline_response)
@@ -2235,7 +2235,7 @@ def put_duration_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -2277,7 +2277,7 @@ def get_byte_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[bytearray]", pipeline_response)
@@ -2332,7 +2332,7 @@ def put_byte_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -2373,7 +2373,7 @@ def get_byte_invalid_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[bytearray]", pipeline_response)
@@ -2419,7 +2419,7 @@ def get_base64_url(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[base64]", pipeline_response)
@@ -2464,7 +2464,7 @@ def get_complex_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[Product]", pipeline_response)
@@ -2509,7 +2509,7 @@ def get_complex_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[Product]", pipeline_response)
@@ -2555,7 +2555,7 @@ def get_complex_item_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[Product]", pipeline_response)
@@ -2601,7 +2601,7 @@ def get_complex_item_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[Product]", pipeline_response)
@@ -2647,7 +2647,7 @@ def get_complex_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[Product]", pipeline_response)
@@ -2702,7 +2702,7 @@ def put_complex_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -2743,7 +2743,7 @@ def get_array_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[[str]]", pipeline_response)
@@ -2788,7 +2788,7 @@ def get_array_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[[str]]", pipeline_response)
@@ -2833,7 +2833,7 @@ def get_array_item_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[[str]]", pipeline_response)
@@ -2878,7 +2878,7 @@ def get_array_item_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[[str]]", pipeline_response)
@@ -2923,7 +2923,7 @@ def get_array_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[[str]]", pipeline_response)
@@ -2977,7 +2977,7 @@ def put_array_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -3018,7 +3018,7 @@ def get_dictionary_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[{str}]", pipeline_response)
@@ -3063,7 +3063,7 @@ def get_dictionary_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[{str}]", pipeline_response)
@@ -3109,7 +3109,7 @@ def get_dictionary_item_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[{str}]", pipeline_response)
@@ -3155,7 +3155,7 @@ def get_dictionary_item_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[{str}]", pipeline_response)
@@ -3201,7 +3201,7 @@ def get_dictionary_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[{str}]", pipeline_response)
@@ -3256,7 +3256,7 @@ def put_dictionary_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyArray/setup.py b/test/vanilla/Expected/AcceptanceTests/BodyArray/setup.py
index 0dfdaab4152..3e920bf63ba 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyArray/setup.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyArray/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/setup.py b/test/vanilla/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/setup.py
index 0dfdaab4152..3e920bf63ba 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/setup.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/aio/operations/_array_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/aio/operations/_array_operations.py
index cdcc3cf7180..b3700a421b7 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/aio/operations/_array_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/aio/operations/_array_operations.py
@@ -78,7 +78,7 @@ async def get_null(self, **kwargs) -> List[int]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[int]", pipeline_response)
@@ -120,7 +120,7 @@ async def get_invalid(self, **kwargs) -> List[int]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[int]", pipeline_response)
@@ -162,7 +162,7 @@ async def get_empty(self, **kwargs) -> List[int]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[int]", pipeline_response)
@@ -211,7 +211,7 @@ async def put_empty(self, array_body: List[str], **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -249,7 +249,7 @@ async def get_boolean_tfft(self, **kwargs) -> List[bool]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[bool]", pipeline_response)
@@ -298,7 +298,7 @@ async def put_boolean_tfft(self, array_body: List[bool], **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -336,7 +336,7 @@ async def get_boolean_invalid_null(self, **kwargs) -> List[bool]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[bool]", pipeline_response)
@@ -378,7 +378,7 @@ async def get_boolean_invalid_string(self, **kwargs) -> List[bool]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[bool]", pipeline_response)
@@ -420,7 +420,7 @@ async def get_integer_valid(self, **kwargs) -> List[int]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[int]", pipeline_response)
@@ -469,7 +469,7 @@ async def put_integer_valid(self, array_body: List[int], **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -507,7 +507,7 @@ async def get_int_invalid_null(self, **kwargs) -> List[int]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[int]", pipeline_response)
@@ -549,7 +549,7 @@ async def get_int_invalid_string(self, **kwargs) -> List[int]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[int]", pipeline_response)
@@ -591,7 +591,7 @@ async def get_long_valid(self, **kwargs) -> List[int]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[long]", pipeline_response)
@@ -640,7 +640,7 @@ async def put_long_valid(self, array_body: List[int], **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -678,7 +678,7 @@ async def get_long_invalid_null(self, **kwargs) -> List[int]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[long]", pipeline_response)
@@ -720,7 +720,7 @@ async def get_long_invalid_string(self, **kwargs) -> List[int]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[long]", pipeline_response)
@@ -762,7 +762,7 @@ async def get_float_valid(self, **kwargs) -> List[float]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[float]", pipeline_response)
@@ -811,7 +811,7 @@ async def put_float_valid(self, array_body: List[float], **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -849,7 +849,7 @@ async def get_float_invalid_null(self, **kwargs) -> List[float]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[float]", pipeline_response)
@@ -891,7 +891,7 @@ async def get_float_invalid_string(self, **kwargs) -> List[float]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[float]", pipeline_response)
@@ -933,7 +933,7 @@ async def get_double_valid(self, **kwargs) -> List[float]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[float]", pipeline_response)
@@ -982,7 +982,7 @@ async def put_double_valid(self, array_body: List[float], **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1020,7 +1020,7 @@ async def get_double_invalid_null(self, **kwargs) -> List[float]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[float]", pipeline_response)
@@ -1062,7 +1062,7 @@ async def get_double_invalid_string(self, **kwargs) -> List[float]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[float]", pipeline_response)
@@ -1104,7 +1104,7 @@ async def get_string_valid(self, **kwargs) -> List[str]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[str]", pipeline_response)
@@ -1153,7 +1153,7 @@ async def put_string_valid(self, array_body: List[str], **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1191,7 +1191,7 @@ async def get_enum_valid(self, **kwargs) -> List[Union[str, "_models.FooEnum"]]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[str]", pipeline_response)
@@ -1240,7 +1240,7 @@ async def put_enum_valid(self, array_body: List[Union[str, "_models.FooEnum"]],
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1278,7 +1278,7 @@ async def get_string_enum_valid(self, **kwargs) -> List[Union[str, "_models.Enum
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[str]", pipeline_response)
@@ -1327,7 +1327,7 @@ async def put_string_enum_valid(self, array_body: List[Union[str, "_models.Enum1
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1365,7 +1365,7 @@ async def get_string_with_null(self, **kwargs) -> List[str]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[str]", pipeline_response)
@@ -1407,7 +1407,7 @@ async def get_string_with_invalid(self, **kwargs) -> List[str]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[str]", pipeline_response)
@@ -1450,7 +1450,7 @@ async def get_uuid_valid(self, **kwargs) -> List[str]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[str]", pipeline_response)
@@ -1500,7 +1500,7 @@ async def put_uuid_valid(self, array_body: List[str], **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1538,7 +1538,7 @@ async def get_uuid_invalid_chars(self, **kwargs) -> List[str]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[str]", pipeline_response)
@@ -1580,7 +1580,7 @@ async def get_date_valid(self, **kwargs) -> List[datetime.date]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[date]", pipeline_response)
@@ -1629,7 +1629,7 @@ async def put_date_valid(self, array_body: List[datetime.date], **kwargs) -> Non
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1667,7 +1667,7 @@ async def get_date_invalid_null(self, **kwargs) -> List[datetime.date]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[date]", pipeline_response)
@@ -1709,7 +1709,7 @@ async def get_date_invalid_chars(self, **kwargs) -> List[datetime.date]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[date]", pipeline_response)
@@ -1752,7 +1752,7 @@ async def get_date_time_valid(self, **kwargs) -> List[datetime.datetime]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[iso-8601]", pipeline_response)
@@ -1802,7 +1802,7 @@ async def put_date_time_valid(self, array_body: List[datetime.datetime], **kwarg
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1840,7 +1840,7 @@ async def get_date_time_invalid_null(self, **kwargs) -> List[datetime.datetime]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[iso-8601]", pipeline_response)
@@ -1882,7 +1882,7 @@ async def get_date_time_invalid_chars(self, **kwargs) -> List[datetime.datetime]
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[iso-8601]", pipeline_response)
@@ -1925,7 +1925,7 @@ async def get_date_time_rfc1123_valid(self, **kwargs) -> List[datetime.datetime]
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[rfc-1123]", pipeline_response)
@@ -1975,7 +1975,7 @@ async def put_date_time_rfc1123_valid(self, array_body: List[datetime.datetime],
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -2013,7 +2013,7 @@ async def get_duration_valid(self, **kwargs) -> List[datetime.timedelta]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[duration]", pipeline_response)
@@ -2062,7 +2062,7 @@ async def put_duration_valid(self, array_body: List[datetime.timedelta], **kwarg
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -2101,7 +2101,7 @@ async def get_byte_valid(self, **kwargs) -> List[bytearray]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[bytearray]", pipeline_response)
@@ -2151,7 +2151,7 @@ async def put_byte_valid(self, array_body: List[bytearray], **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -2189,7 +2189,7 @@ async def get_byte_invalid_null(self, **kwargs) -> List[bytearray]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[bytearray]", pipeline_response)
@@ -2232,7 +2232,7 @@ async def get_base64_url(self, **kwargs) -> List[bytes]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[base64]", pipeline_response)
@@ -2274,7 +2274,7 @@ async def get_complex_null(self, **kwargs) -> List["_models.Product"]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[Product]", pipeline_response)
@@ -2316,7 +2316,7 @@ async def get_complex_empty(self, **kwargs) -> List["_models.Product"]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[Product]", pipeline_response)
@@ -2359,7 +2359,7 @@ async def get_complex_item_null(self, **kwargs) -> List["_models.Product"]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[Product]", pipeline_response)
@@ -2402,7 +2402,7 @@ async def get_complex_item_empty(self, **kwargs) -> List["_models.Product"]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[Product]", pipeline_response)
@@ -2445,7 +2445,7 @@ async def get_complex_valid(self, **kwargs) -> List["_models.Product"]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[Product]", pipeline_response)
@@ -2495,7 +2495,7 @@ async def put_complex_valid(self, array_body: List["_models.Product"], **kwargs)
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -2533,7 +2533,7 @@ async def get_array_null(self, **kwargs) -> List[List[str]]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[[str]]", pipeline_response)
@@ -2575,7 +2575,7 @@ async def get_array_empty(self, **kwargs) -> List[List[str]]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[[str]]", pipeline_response)
@@ -2617,7 +2617,7 @@ async def get_array_item_null(self, **kwargs) -> List[List[str]]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[[str]]", pipeline_response)
@@ -2659,7 +2659,7 @@ async def get_array_item_empty(self, **kwargs) -> List[List[str]]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[[str]]", pipeline_response)
@@ -2701,7 +2701,7 @@ async def get_array_valid(self, **kwargs) -> List[List[str]]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[[str]]", pipeline_response)
@@ -2750,7 +2750,7 @@ async def put_array_valid(self, array_body: List[List[str]], **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -2788,7 +2788,7 @@ async def get_dictionary_null(self, **kwargs) -> List[Dict[str, str]]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[{str}]", pipeline_response)
@@ -2830,7 +2830,7 @@ async def get_dictionary_empty(self, **kwargs) -> List[Dict[str, str]]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[{str}]", pipeline_response)
@@ -2873,7 +2873,7 @@ async def get_dictionary_item_null(self, **kwargs) -> List[Dict[str, str]]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[{str}]", pipeline_response)
@@ -2916,7 +2916,7 @@ async def get_dictionary_item_empty(self, **kwargs) -> List[Dict[str, str]]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[{str}]", pipeline_response)
@@ -2959,7 +2959,7 @@ async def get_dictionary_valid(self, **kwargs) -> List[Dict[str, str]]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[{str}]", pipeline_response)
@@ -3009,7 +3009,7 @@ async def put_dictionary_valid(self, array_body: List[Dict[str, str]], **kwargs)
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/operations/_array_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/operations/_array_operations.py
index cacc74f18f0..0ea5ddb039e 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/operations/_array_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/operations/_array_operations.py
@@ -85,7 +85,7 @@ def get_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[int]", pipeline_response)
@@ -130,7 +130,7 @@ def get_invalid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[int]", pipeline_response)
@@ -175,7 +175,7 @@ def get_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[int]", pipeline_response)
@@ -229,7 +229,7 @@ def put_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -270,7 +270,7 @@ def get_boolean_tfft(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[bool]", pipeline_response)
@@ -324,7 +324,7 @@ def put_boolean_tfft(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -365,7 +365,7 @@ def get_boolean_invalid_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[bool]", pipeline_response)
@@ -410,7 +410,7 @@ def get_boolean_invalid_string(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[bool]", pipeline_response)
@@ -455,7 +455,7 @@ def get_integer_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[int]", pipeline_response)
@@ -509,7 +509,7 @@ def put_integer_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -550,7 +550,7 @@ def get_int_invalid_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[int]", pipeline_response)
@@ -595,7 +595,7 @@ def get_int_invalid_string(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[int]", pipeline_response)
@@ -640,7 +640,7 @@ def get_long_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[long]", pipeline_response)
@@ -694,7 +694,7 @@ def put_long_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -735,7 +735,7 @@ def get_long_invalid_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[long]", pipeline_response)
@@ -780,7 +780,7 @@ def get_long_invalid_string(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[long]", pipeline_response)
@@ -825,7 +825,7 @@ def get_float_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[float]", pipeline_response)
@@ -879,7 +879,7 @@ def put_float_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -920,7 +920,7 @@ def get_float_invalid_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[float]", pipeline_response)
@@ -965,7 +965,7 @@ def get_float_invalid_string(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[float]", pipeline_response)
@@ -1010,7 +1010,7 @@ def get_double_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[float]", pipeline_response)
@@ -1064,7 +1064,7 @@ def put_double_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1105,7 +1105,7 @@ def get_double_invalid_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[float]", pipeline_response)
@@ -1150,7 +1150,7 @@ def get_double_invalid_string(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[float]", pipeline_response)
@@ -1195,7 +1195,7 @@ def get_string_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[str]", pipeline_response)
@@ -1249,7 +1249,7 @@ def put_string_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1290,7 +1290,7 @@ def get_enum_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[str]", pipeline_response)
@@ -1344,7 +1344,7 @@ def put_enum_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1385,7 +1385,7 @@ def get_string_enum_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[str]", pipeline_response)
@@ -1439,7 +1439,7 @@ def put_string_enum_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1480,7 +1480,7 @@ def get_string_with_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[str]", pipeline_response)
@@ -1525,7 +1525,7 @@ def get_string_with_invalid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[str]", pipeline_response)
@@ -1571,7 +1571,7 @@ def get_uuid_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[str]", pipeline_response)
@@ -1626,7 +1626,7 @@ def put_uuid_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1667,7 +1667,7 @@ def get_uuid_invalid_chars(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[str]", pipeline_response)
@@ -1712,7 +1712,7 @@ def get_date_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[date]", pipeline_response)
@@ -1766,7 +1766,7 @@ def put_date_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1807,7 +1807,7 @@ def get_date_invalid_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[date]", pipeline_response)
@@ -1852,7 +1852,7 @@ def get_date_invalid_chars(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[date]", pipeline_response)
@@ -1898,7 +1898,7 @@ def get_date_time_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[iso-8601]", pipeline_response)
@@ -1953,7 +1953,7 @@ def put_date_time_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1994,7 +1994,7 @@ def get_date_time_invalid_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[iso-8601]", pipeline_response)
@@ -2039,7 +2039,7 @@ def get_date_time_invalid_chars(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[iso-8601]", pipeline_response)
@@ -2085,7 +2085,7 @@ def get_date_time_rfc1123_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[rfc-1123]", pipeline_response)
@@ -2140,7 +2140,7 @@ def put_date_time_rfc1123_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -2181,7 +2181,7 @@ def get_duration_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[duration]", pipeline_response)
@@ -2235,7 +2235,7 @@ def put_duration_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -2277,7 +2277,7 @@ def get_byte_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[bytearray]", pipeline_response)
@@ -2332,7 +2332,7 @@ def put_byte_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -2373,7 +2373,7 @@ def get_byte_invalid_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[bytearray]", pipeline_response)
@@ -2419,7 +2419,7 @@ def get_base64_url(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[base64]", pipeline_response)
@@ -2464,7 +2464,7 @@ def get_complex_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[Product]", pipeline_response)
@@ -2509,7 +2509,7 @@ def get_complex_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[Product]", pipeline_response)
@@ -2555,7 +2555,7 @@ def get_complex_item_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[Product]", pipeline_response)
@@ -2601,7 +2601,7 @@ def get_complex_item_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[Product]", pipeline_response)
@@ -2647,7 +2647,7 @@ def get_complex_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[Product]", pipeline_response)
@@ -2702,7 +2702,7 @@ def put_complex_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -2743,7 +2743,7 @@ def get_array_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[[str]]", pipeline_response)
@@ -2788,7 +2788,7 @@ def get_array_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[[str]]", pipeline_response)
@@ -2833,7 +2833,7 @@ def get_array_item_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[[str]]", pipeline_response)
@@ -2878,7 +2878,7 @@ def get_array_item_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[[str]]", pipeline_response)
@@ -2923,7 +2923,7 @@ def get_array_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[[str]]", pipeline_response)
@@ -2977,7 +2977,7 @@ def put_array_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -3018,7 +3018,7 @@ def get_dictionary_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[{str}]", pipeline_response)
@@ -3063,7 +3063,7 @@ def get_dictionary_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[{str}]", pipeline_response)
@@ -3109,7 +3109,7 @@ def get_dictionary_item_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[{str}]", pipeline_response)
@@ -3155,7 +3155,7 @@ def get_dictionary_item_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[{str}]", pipeline_response)
@@ -3201,7 +3201,7 @@ def get_dictionary_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[{str}]", pipeline_response)
@@ -3256,7 +3256,7 @@ def put_dictionary_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyBoolean/bodyboolean/aio/operations/_bool_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyBoolean/bodyboolean/aio/operations/_bool_operations.py
index 2cd53f30eba..6571a778e14 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyBoolean/bodyboolean/aio/operations/_bool_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyBoolean/bodyboolean/aio/operations/_bool_operations.py
@@ -77,7 +77,7 @@ async def get_true(self, **kwargs) -> bool:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("bool", pipeline_response)
@@ -125,7 +125,7 @@ async def put_true(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -163,7 +163,7 @@ async def get_false(self, **kwargs) -> bool:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("bool", pipeline_response)
@@ -211,7 +211,7 @@ async def put_false(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -249,7 +249,7 @@ async def get_null(self, **kwargs) -> Optional[bool]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("bool", pipeline_response)
@@ -291,7 +291,7 @@ async def get_invalid(self, **kwargs) -> bool:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("bool", pipeline_response)
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyBoolean/bodyboolean/operations/_bool_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyBoolean/bodyboolean/operations/_bool_operations.py
index 4f2c6537826..e00f00da22e 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyBoolean/bodyboolean/operations/_bool_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyBoolean/bodyboolean/operations/_bool_operations.py
@@ -84,7 +84,7 @@ def get_true(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("bool", pipeline_response)
@@ -135,7 +135,7 @@ def put_true(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -176,7 +176,7 @@ def get_false(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("bool", pipeline_response)
@@ -227,7 +227,7 @@ def put_false(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -268,7 +268,7 @@ def get_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("bool", pipeline_response)
@@ -313,7 +313,7 @@ def get_invalid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("bool", pipeline_response)
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyBoolean/setup.py b/test/vanilla/Expected/AcceptanceTests/BodyBoolean/setup.py
index f05e084fc53..40f8c5587f1 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyBoolean/setup.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyBoolean/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyByte/bodybyte/aio/operations/_byte_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyByte/bodybyte/aio/operations/_byte_operations.py
index f858ddd4cf5..509c3b03a7f 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyByte/bodybyte/aio/operations/_byte_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyByte/bodybyte/aio/operations/_byte_operations.py
@@ -77,7 +77,7 @@ async def get_null(self, **kwargs) -> bytearray:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("bytearray", pipeline_response)
@@ -119,7 +119,7 @@ async def get_empty(self, **kwargs) -> bytearray:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("bytearray", pipeline_response)
@@ -161,7 +161,7 @@ async def get_non_ascii(self, **kwargs) -> bytearray:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("bytearray", pipeline_response)
@@ -210,7 +210,7 @@ async def put_non_ascii(self, byte_body: bytearray, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -248,7 +248,7 @@ async def get_invalid(self, **kwargs) -> bytearray:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("bytearray", pipeline_response)
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyByte/bodybyte/operations/_byte_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyByte/bodybyte/operations/_byte_operations.py
index 8a6766be5c6..2dd144bebbd 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyByte/bodybyte/operations/_byte_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyByte/bodybyte/operations/_byte_operations.py
@@ -84,7 +84,7 @@ def get_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("bytearray", pipeline_response)
@@ -129,7 +129,7 @@ def get_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("bytearray", pipeline_response)
@@ -174,7 +174,7 @@ def get_non_ascii(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("bytearray", pipeline_response)
@@ -228,7 +228,7 @@ def put_non_ascii(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -269,7 +269,7 @@ def get_invalid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("bytearray", pipeline_response)
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyByte/setup.py b/test/vanilla/Expected/AcceptanceTests/BodyByte/setup.py
index a55ce8499a2..1483a1df65a 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyByte/setup.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyByte/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/aio/operations/_byte_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/aio/operations/_byte_operations.py
index bbb7e51427c..2431d296bbb 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/aio/operations/_byte_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/aio/operations/_byte_operations.py
@@ -77,7 +77,7 @@ async def get_null(self, **kwargs) -> bytearray:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("bytearray", pipeline_response)
@@ -119,7 +119,7 @@ async def get_empty(self, **kwargs) -> bytearray:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("bytearray", pipeline_response)
@@ -161,7 +161,7 @@ async def get_non_ascii(self, **kwargs) -> bytearray:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("bytearray", pipeline_response)
@@ -210,7 +210,7 @@ async def put_non_ascii(self, byte_body: bytearray, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -248,7 +248,7 @@ async def get_invalid(self, **kwargs) -> bytearray:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("bytearray", pipeline_response)
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/operations/_byte_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/operations/_byte_operations.py
index ec7519c3067..a2f657b2014 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/operations/_byte_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/operations/_byte_operations.py
@@ -84,7 +84,7 @@ def get_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("bytearray", pipeline_response)
@@ -129,7 +129,7 @@ def get_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("bytearray", pipeline_response)
@@ -174,7 +174,7 @@ def get_non_ascii(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("bytearray", pipeline_response)
@@ -228,7 +228,7 @@ def put_non_ascii(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -269,7 +269,7 @@ def get_invalid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("bytearray", pipeline_response)
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyByteWithPackageName/setup.py b/test/vanilla/Expected/AcceptanceTests/BodyByteWithPackageName/setup.py
index 8331da05aa0..15d4043e676 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyByteWithPackageName/setup.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyByteWithPackageName/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_array_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_array_operations.py
index e2eacb47f0d..82780d268cb 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_array_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_array_operations.py
@@ -77,7 +77,7 @@ async def get_valid(self, **kwargs) -> "_models.ArrayWrapper":
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("ArrayWrapper", pipeline_response)
@@ -128,7 +128,7 @@ async def put_valid(self, array: Optional[List[str]] = None, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -166,7 +166,7 @@ async def get_empty(self, **kwargs) -> "_models.ArrayWrapper":
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("ArrayWrapper", pipeline_response)
@@ -217,7 +217,7 @@ async def put_empty(self, array: Optional[List[str]] = None, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -255,7 +255,7 @@ async def get_not_provided(self, **kwargs) -> "_models.ArrayWrapper":
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("ArrayWrapper", pipeline_response)
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_basic_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_basic_operations.py
index c24028ca02e..b5b0f565193 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_basic_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_basic_operations.py
@@ -77,7 +77,7 @@ async def get_valid(self, **kwargs) -> "_models.Basic":
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("Basic", pipeline_response)
@@ -128,7 +128,7 @@ async def put_valid(self, complex_body: "_models.Basic", **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -166,7 +166,7 @@ async def get_invalid(self, **kwargs) -> "_models.Basic":
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("Basic", pipeline_response)
@@ -208,7 +208,7 @@ async def get_empty(self, **kwargs) -> "_models.Basic":
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("Basic", pipeline_response)
@@ -250,7 +250,7 @@ async def get_null(self, **kwargs) -> "_models.Basic":
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("Basic", pipeline_response)
@@ -292,7 +292,7 @@ async def get_not_provided(self, **kwargs) -> "_models.Basic":
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("Basic", pipeline_response)
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_dictionary_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_dictionary_operations.py
index 1d3ef5594f6..d769ec04cf7 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_dictionary_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_dictionary_operations.py
@@ -77,7 +77,7 @@ async def get_valid(self, **kwargs) -> "_models.DictionaryWrapper":
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("DictionaryWrapper", pipeline_response)
@@ -128,7 +128,7 @@ async def put_valid(self, default_program: Optional[Dict[str, str]] = None, **kw
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -166,7 +166,7 @@ async def get_empty(self, **kwargs) -> "_models.DictionaryWrapper":
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("DictionaryWrapper", pipeline_response)
@@ -217,7 +217,7 @@ async def put_empty(self, default_program: Optional[Dict[str, str]] = None, **kw
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -255,7 +255,7 @@ async def get_null(self, **kwargs) -> "_models.DictionaryWrapper":
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("DictionaryWrapper", pipeline_response)
@@ -297,7 +297,7 @@ async def get_not_provided(self, **kwargs) -> "_models.DictionaryWrapper":
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("DictionaryWrapper", pipeline_response)
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_inheritance_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_inheritance_operations.py
index f71953db548..b95617bd6f0 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_inheritance_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_inheritance_operations.py
@@ -77,7 +77,7 @@ async def get_valid(self, **kwargs) -> "_models.Siamese":
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("Siamese", pipeline_response)
@@ -128,7 +128,7 @@ async def put_valid(self, complex_body: "_models.Siamese", **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_polymorphicrecursive_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_polymorphicrecursive_operations.py
index 2c68812b088..0c83c2573a0 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_polymorphicrecursive_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_polymorphicrecursive_operations.py
@@ -77,7 +77,7 @@ async def get_valid(self, **kwargs) -> "_models.Fish":
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("Fish", pipeline_response)
@@ -178,7 +178,7 @@ async def put_valid(self, complex_body: "_models.Fish", **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_polymorphism_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_polymorphism_operations.py
index 93f94b2d28a..f9afe8e9551 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_polymorphism_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_polymorphism_operations.py
@@ -77,7 +77,7 @@ async def get_valid(self, **kwargs) -> "_models.Fish":
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("Fish", pipeline_response)
@@ -158,7 +158,7 @@ async def put_valid(self, complex_body: "_models.Fish", **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -196,7 +196,7 @@ async def get_dot_syntax(self, **kwargs) -> "_models.DotFish":
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("DotFish", pipeline_response)
@@ -240,7 +240,7 @@ async def get_composed_with_discriminator(self, **kwargs) -> "_models.DotFishMar
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("DotFishMarket", pipeline_response)
@@ -284,7 +284,7 @@ async def get_composed_without_discriminator(self, **kwargs) -> "_models.DotFish
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("DotFishMarket", pipeline_response)
@@ -327,7 +327,7 @@ async def get_complicated(self, **kwargs) -> "_models.Salmon":
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("Salmon", pipeline_response)
@@ -377,7 +377,7 @@ async def put_complicated(self, complex_body: "_models.Salmon", **kwargs) -> Non
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -422,7 +422,7 @@ async def put_missing_discriminator(self, complex_body: "_models.Salmon", **kwar
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("Salmon", pipeline_response)
@@ -498,7 +498,7 @@ async def put_valid_missing_required(self, complex_body: "_models.Fish", **kwarg
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_primitive_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_primitive_operations.py
index 9a6ecd5dae9..82ccdf69f51 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_primitive_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_primitive_operations.py
@@ -78,7 +78,7 @@ async def get_int(self, **kwargs) -> "_models.IntWrapper":
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("IntWrapper", pipeline_response)
@@ -127,7 +127,7 @@ async def put_int(self, complex_body: "_models.IntWrapper", **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -165,7 +165,7 @@ async def get_long(self, **kwargs) -> "_models.LongWrapper":
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("LongWrapper", pipeline_response)
@@ -214,7 +214,7 @@ async def put_long(self, complex_body: "_models.LongWrapper", **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -252,7 +252,7 @@ async def get_float(self, **kwargs) -> "_models.FloatWrapper":
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("FloatWrapper", pipeline_response)
@@ -301,7 +301,7 @@ async def put_float(self, complex_body: "_models.FloatWrapper", **kwargs) -> Non
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -339,7 +339,7 @@ async def get_double(self, **kwargs) -> "_models.DoubleWrapper":
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("DoubleWrapper", pipeline_response)
@@ -389,7 +389,7 @@ async def put_double(self, complex_body: "_models.DoubleWrapper", **kwargs) -> N
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -427,7 +427,7 @@ async def get_bool(self, **kwargs) -> "_models.BooleanWrapper":
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("BooleanWrapper", pipeline_response)
@@ -476,7 +476,7 @@ async def put_bool(self, complex_body: "_models.BooleanWrapper", **kwargs) -> No
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -514,7 +514,7 @@ async def get_string(self, **kwargs) -> "_models.StringWrapper":
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("StringWrapper", pipeline_response)
@@ -563,7 +563,7 @@ async def put_string(self, complex_body: "_models.StringWrapper", **kwargs) -> N
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -601,7 +601,7 @@ async def get_date(self, **kwargs) -> "_models.DateWrapper":
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("DateWrapper", pipeline_response)
@@ -650,7 +650,7 @@ async def put_date(self, complex_body: "_models.DateWrapper", **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -688,7 +688,7 @@ async def get_date_time(self, **kwargs) -> "_models.DatetimeWrapper":
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("DatetimeWrapper", pipeline_response)
@@ -737,7 +737,7 @@ async def put_date_time(self, complex_body: "_models.DatetimeWrapper", **kwargs)
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -775,7 +775,7 @@ async def get_date_time_rfc1123(self, **kwargs) -> "_models.Datetimerfc1123Wrapp
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("Datetimerfc1123Wrapper", pipeline_response)
@@ -825,7 +825,7 @@ async def put_date_time_rfc1123(self, complex_body: "_models.Datetimerfc1123Wrap
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -863,7 +863,7 @@ async def get_duration(self, **kwargs) -> "_models.DurationWrapper":
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("DurationWrapper", pipeline_response)
@@ -914,7 +914,7 @@ async def put_duration(self, field: Optional[datetime.timedelta] = None, **kwarg
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -952,7 +952,7 @@ async def get_byte(self, **kwargs) -> "_models.ByteWrapper":
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("ByteWrapper", pipeline_response)
@@ -1003,7 +1003,7 @@ async def put_byte(self, field: Optional[bytearray] = None, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_readonlyproperty_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_readonlyproperty_operations.py
index 0d4a67342bf..0b3b2e5a19e 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_readonlyproperty_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_readonlyproperty_operations.py
@@ -77,7 +77,7 @@ async def get_valid(self, **kwargs) -> "_models.ReadonlyObj":
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("ReadonlyObj", pipeline_response)
@@ -128,7 +128,7 @@ async def put_valid(self, size: Optional[int] = None, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_array_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_array_operations.py
index 32ccd9e9ebf..425909f5bb2 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_array_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_array_operations.py
@@ -84,7 +84,7 @@ def get_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("ArrayWrapper", pipeline_response)
@@ -140,7 +140,7 @@ def put_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -181,7 +181,7 @@ def get_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("ArrayWrapper", pipeline_response)
@@ -237,7 +237,7 @@ def put_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -278,7 +278,7 @@ def get_not_provided(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("ArrayWrapper", pipeline_response)
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_basic_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_basic_operations.py
index b3139e28c3b..bac01500e21 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_basic_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_basic_operations.py
@@ -84,7 +84,7 @@ def get_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("Basic", pipeline_response)
@@ -140,7 +140,7 @@ def put_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -181,7 +181,7 @@ def get_invalid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("Basic", pipeline_response)
@@ -226,7 +226,7 @@ def get_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("Basic", pipeline_response)
@@ -271,7 +271,7 @@ def get_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("Basic", pipeline_response)
@@ -316,7 +316,7 @@ def get_not_provided(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("Basic", pipeline_response)
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_dictionary_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_dictionary_operations.py
index 8b76a4ed164..713c85b1771 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_dictionary_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_dictionary_operations.py
@@ -84,7 +84,7 @@ def get_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("DictionaryWrapper", pipeline_response)
@@ -140,7 +140,7 @@ def put_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -181,7 +181,7 @@ def get_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("DictionaryWrapper", pipeline_response)
@@ -237,7 +237,7 @@ def put_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -278,7 +278,7 @@ def get_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("DictionaryWrapper", pipeline_response)
@@ -323,7 +323,7 @@ def get_not_provided(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("DictionaryWrapper", pipeline_response)
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_inheritance_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_inheritance_operations.py
index cf25f3037e3..9963f575fc1 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_inheritance_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_inheritance_operations.py
@@ -84,7 +84,7 @@ def get_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("Siamese", pipeline_response)
@@ -140,7 +140,7 @@ def put_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_polymorphicrecursive_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_polymorphicrecursive_operations.py
index 86f2dc9a984..ab49af239ab 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_polymorphicrecursive_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_polymorphicrecursive_operations.py
@@ -84,7 +84,7 @@ def get_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("Fish", pipeline_response)
@@ -190,7 +190,7 @@ def put_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_polymorphism_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_polymorphism_operations.py
index 3d7b0072e1b..6f312b7d536 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_polymorphism_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_polymorphism_operations.py
@@ -84,7 +84,7 @@ def get_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("Fish", pipeline_response)
@@ -170,7 +170,7 @@ def put_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -211,7 +211,7 @@ def get_dot_syntax(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("DotFish", pipeline_response)
@@ -258,7 +258,7 @@ def get_composed_with_discriminator(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("DotFishMarket", pipeline_response)
@@ -305,7 +305,7 @@ def get_composed_without_discriminator(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("DotFishMarket", pipeline_response)
@@ -351,7 +351,7 @@ def get_complicated(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("Salmon", pipeline_response)
@@ -406,7 +406,7 @@ def put_complicated(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -456,7 +456,7 @@ def put_missing_discriminator(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("Salmon", pipeline_response)
@@ -537,7 +537,7 @@ def put_valid_missing_required(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_primitive_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_primitive_operations.py
index 53814b2851d..2edc2a136c6 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_primitive_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_primitive_operations.py
@@ -85,7 +85,7 @@ def get_int(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("IntWrapper", pipeline_response)
@@ -139,7 +139,7 @@ def put_int(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -180,7 +180,7 @@ def get_long(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("LongWrapper", pipeline_response)
@@ -234,7 +234,7 @@ def put_long(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -275,7 +275,7 @@ def get_float(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("FloatWrapper", pipeline_response)
@@ -329,7 +329,7 @@ def put_float(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -370,7 +370,7 @@ def get_double(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("DoubleWrapper", pipeline_response)
@@ -425,7 +425,7 @@ def put_double(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -466,7 +466,7 @@ def get_bool(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("BooleanWrapper", pipeline_response)
@@ -520,7 +520,7 @@ def put_bool(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -561,7 +561,7 @@ def get_string(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("StringWrapper", pipeline_response)
@@ -615,7 +615,7 @@ def put_string(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -656,7 +656,7 @@ def get_date(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("DateWrapper", pipeline_response)
@@ -710,7 +710,7 @@ def put_date(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -751,7 +751,7 @@ def get_date_time(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("DatetimeWrapper", pipeline_response)
@@ -805,7 +805,7 @@ def put_date_time(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -846,7 +846,7 @@ def get_date_time_rfc1123(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("Datetimerfc1123Wrapper", pipeline_response)
@@ -901,7 +901,7 @@ def put_date_time_rfc1123(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -942,7 +942,7 @@ def get_duration(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("DurationWrapper", pipeline_response)
@@ -998,7 +998,7 @@ def put_duration(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1039,7 +1039,7 @@ def get_byte(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("ByteWrapper", pipeline_response)
@@ -1095,7 +1095,7 @@ def put_byte(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_readonlyproperty_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_readonlyproperty_operations.py
index 0aa40b26c5b..38ef8ad16bf 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_readonlyproperty_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_readonlyproperty_operations.py
@@ -84,7 +84,7 @@ def get_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("ReadonlyObj", pipeline_response)
@@ -140,7 +140,7 @@ def put_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/setup.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/setup.py
index 8817e6f500c..2e84a81824b 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/setup.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyDate/bodydate/aio/operations/_date_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyDate/bodydate/aio/operations/_date_operations.py
index d1feabf4618..b5a1268dfa9 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyDate/bodydate/aio/operations/_date_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyDate/bodydate/aio/operations/_date_operations.py
@@ -78,7 +78,7 @@ async def get_null(self, **kwargs) -> Optional[datetime.date]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("date", pipeline_response)
@@ -120,7 +120,7 @@ async def get_invalid_date(self, **kwargs) -> datetime.date:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("date", pipeline_response)
@@ -162,7 +162,7 @@ async def get_overflow_date(self, **kwargs) -> datetime.date:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("date", pipeline_response)
@@ -204,7 +204,7 @@ async def get_underflow_date(self, **kwargs) -> datetime.date:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("date", pipeline_response)
@@ -253,7 +253,7 @@ async def put_max_date(self, date_body: datetime.date, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -291,7 +291,7 @@ async def get_max_date(self, **kwargs) -> datetime.date:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("date", pipeline_response)
@@ -340,7 +340,7 @@ async def put_min_date(self, date_body: datetime.date, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -378,7 +378,7 @@ async def get_min_date(self, **kwargs) -> datetime.date:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("date", pipeline_response)
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyDate/bodydate/operations/_date_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyDate/bodydate/operations/_date_operations.py
index 5a22e3ea65b..a4ff0151065 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyDate/bodydate/operations/_date_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyDate/bodydate/operations/_date_operations.py
@@ -85,7 +85,7 @@ def get_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("date", pipeline_response)
@@ -130,7 +130,7 @@ def get_invalid_date(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("date", pipeline_response)
@@ -175,7 +175,7 @@ def get_overflow_date(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("date", pipeline_response)
@@ -220,7 +220,7 @@ def get_underflow_date(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("date", pipeline_response)
@@ -274,7 +274,7 @@ def put_max_date(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -315,7 +315,7 @@ def get_max_date(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("date", pipeline_response)
@@ -369,7 +369,7 @@ def put_min_date(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -410,7 +410,7 @@ def get_min_date(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("date", pipeline_response)
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyDate/setup.py b/test/vanilla/Expected/AcceptanceTests/BodyDate/setup.py
index bec99757788..003f05ad212 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyDate/setup.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyDate/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyDateTime/bodydatetime/aio/operations/_datetime_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyDateTime/bodydatetime/aio/operations/_datetime_operations.py
index 975e3b9928b..97b1dc6ade5 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyDateTime/bodydatetime/aio/operations/_datetime_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyDateTime/bodydatetime/aio/operations/_datetime_operations.py
@@ -78,7 +78,7 @@ async def get_null(self, **kwargs) -> Optional[datetime.datetime]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("iso-8601", pipeline_response)
@@ -120,7 +120,7 @@ async def get_invalid(self, **kwargs) -> datetime.datetime:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("iso-8601", pipeline_response)
@@ -162,7 +162,7 @@ async def get_overflow(self, **kwargs) -> datetime.datetime:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("iso-8601", pipeline_response)
@@ -204,7 +204,7 @@ async def get_underflow(self, **kwargs) -> datetime.datetime:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("iso-8601", pipeline_response)
@@ -253,7 +253,7 @@ async def put_utc_max_date_time(self, datetime_body: datetime.datetime, **kwargs
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -301,7 +301,7 @@ async def put_utc_max_date_time7_digits(self, datetime_body: datetime.datetime,
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -339,7 +339,7 @@ async def get_utc_lowercase_max_date_time(self, **kwargs) -> datetime.datetime:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("iso-8601", pipeline_response)
@@ -381,7 +381,7 @@ async def get_utc_uppercase_max_date_time(self, **kwargs) -> datetime.datetime:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("iso-8601", pipeline_response)
@@ -426,7 +426,7 @@ async def get_utc_uppercase_max_date_time7_digits(self, **kwargs) -> datetime.da
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("iso-8601", pipeline_response)
@@ -475,7 +475,7 @@ async def put_local_positive_offset_max_date_time(self, datetime_body: datetime.
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -513,7 +513,7 @@ async def get_local_positive_offset_lowercase_max_date_time(self, **kwargs) -> d
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("iso-8601", pipeline_response)
@@ -555,7 +555,7 @@ async def get_local_positive_offset_uppercase_max_date_time(self, **kwargs) -> d
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("iso-8601", pipeline_response)
@@ -604,7 +604,7 @@ async def put_local_negative_offset_max_date_time(self, datetime_body: datetime.
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -642,7 +642,7 @@ async def get_local_negative_offset_uppercase_max_date_time(self, **kwargs) -> d
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("iso-8601", pipeline_response)
@@ -684,7 +684,7 @@ async def get_local_negative_offset_lowercase_max_date_time(self, **kwargs) -> d
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("iso-8601", pipeline_response)
@@ -733,7 +733,7 @@ async def put_utc_min_date_time(self, datetime_body: datetime.datetime, **kwargs
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -771,7 +771,7 @@ async def get_utc_min_date_time(self, **kwargs) -> datetime.datetime:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("iso-8601", pipeline_response)
@@ -820,7 +820,7 @@ async def put_local_positive_offset_min_date_time(self, datetime_body: datetime.
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -858,7 +858,7 @@ async def get_local_positive_offset_min_date_time(self, **kwargs) -> datetime.da
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("iso-8601", pipeline_response)
@@ -907,7 +907,7 @@ async def put_local_negative_offset_min_date_time(self, datetime_body: datetime.
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -945,7 +945,7 @@ async def get_local_negative_offset_min_date_time(self, **kwargs) -> datetime.da
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("iso-8601", pipeline_response)
@@ -987,7 +987,7 @@ async def get_local_no_offset_min_date_time(self, **kwargs) -> datetime.datetime
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("iso-8601", pipeline_response)
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyDateTime/bodydatetime/operations/_datetime_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyDateTime/bodydatetime/operations/_datetime_operations.py
index de8cdaa1c9e..ef028131712 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyDateTime/bodydatetime/operations/_datetime_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyDateTime/bodydatetime/operations/_datetime_operations.py
@@ -85,7 +85,7 @@ def get_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("iso-8601", pipeline_response)
@@ -130,7 +130,7 @@ def get_invalid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("iso-8601", pipeline_response)
@@ -175,7 +175,7 @@ def get_overflow(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("iso-8601", pipeline_response)
@@ -220,7 +220,7 @@ def get_underflow(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("iso-8601", pipeline_response)
@@ -274,7 +274,7 @@ def put_utc_max_date_time(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -327,7 +327,7 @@ def put_utc_max_date_time7_digits(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -368,7 +368,7 @@ def get_utc_lowercase_max_date_time(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("iso-8601", pipeline_response)
@@ -413,7 +413,7 @@ def get_utc_uppercase_max_date_time(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("iso-8601", pipeline_response)
@@ -461,7 +461,7 @@ def get_utc_uppercase_max_date_time7_digits(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("iso-8601", pipeline_response)
@@ -515,7 +515,7 @@ def put_local_positive_offset_max_date_time(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -556,7 +556,7 @@ def get_local_positive_offset_lowercase_max_date_time(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("iso-8601", pipeline_response)
@@ -601,7 +601,7 @@ def get_local_positive_offset_uppercase_max_date_time(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("iso-8601", pipeline_response)
@@ -655,7 +655,7 @@ def put_local_negative_offset_max_date_time(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -696,7 +696,7 @@ def get_local_negative_offset_uppercase_max_date_time(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("iso-8601", pipeline_response)
@@ -741,7 +741,7 @@ def get_local_negative_offset_lowercase_max_date_time(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("iso-8601", pipeline_response)
@@ -795,7 +795,7 @@ def put_utc_min_date_time(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -836,7 +836,7 @@ def get_utc_min_date_time(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("iso-8601", pipeline_response)
@@ -890,7 +890,7 @@ def put_local_positive_offset_min_date_time(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -931,7 +931,7 @@ def get_local_positive_offset_min_date_time(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("iso-8601", pipeline_response)
@@ -985,7 +985,7 @@ def put_local_negative_offset_min_date_time(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1026,7 +1026,7 @@ def get_local_negative_offset_min_date_time(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("iso-8601", pipeline_response)
@@ -1071,7 +1071,7 @@ def get_local_no_offset_min_date_time(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("iso-8601", pipeline_response)
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyDateTime/setup.py b/test/vanilla/Expected/AcceptanceTests/BodyDateTime/setup.py
index f51aae3f20e..9741e241020 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyDateTime/setup.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyDateTime/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/aio/operations/_datetimerfc1123_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/aio/operations/_datetimerfc1123_operations.py
index a940a2b2af0..5fa34d8b8b0 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/aio/operations/_datetimerfc1123_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/aio/operations/_datetimerfc1123_operations.py
@@ -78,7 +78,7 @@ async def get_null(self, **kwargs) -> Optional[datetime.datetime]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("rfc-1123", pipeline_response)
@@ -120,7 +120,7 @@ async def get_invalid(self, **kwargs) -> datetime.datetime:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("rfc-1123", pipeline_response)
@@ -162,7 +162,7 @@ async def get_overflow(self, **kwargs) -> datetime.datetime:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("rfc-1123", pipeline_response)
@@ -204,7 +204,7 @@ async def get_underflow(self, **kwargs) -> datetime.datetime:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("rfc-1123", pipeline_response)
@@ -253,7 +253,7 @@ async def put_utc_max_date_time(self, datetime_body: datetime.datetime, **kwargs
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -291,7 +291,7 @@ async def get_utc_lowercase_max_date_time(self, **kwargs) -> datetime.datetime:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("rfc-1123", pipeline_response)
@@ -333,7 +333,7 @@ async def get_utc_uppercase_max_date_time(self, **kwargs) -> datetime.datetime:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("rfc-1123", pipeline_response)
@@ -382,7 +382,7 @@ async def put_utc_min_date_time(self, datetime_body: datetime.datetime, **kwargs
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -420,7 +420,7 @@ async def get_utc_min_date_time(self, **kwargs) -> datetime.datetime:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("rfc-1123", pipeline_response)
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/operations/_datetimerfc1123_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/operations/_datetimerfc1123_operations.py
index 9263c673a62..4f48a144e3a 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/operations/_datetimerfc1123_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/operations/_datetimerfc1123_operations.py
@@ -85,7 +85,7 @@ def get_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("rfc-1123", pipeline_response)
@@ -130,7 +130,7 @@ def get_invalid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("rfc-1123", pipeline_response)
@@ -175,7 +175,7 @@ def get_overflow(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("rfc-1123", pipeline_response)
@@ -220,7 +220,7 @@ def get_underflow(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("rfc-1123", pipeline_response)
@@ -274,7 +274,7 @@ def put_utc_max_date_time(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -315,7 +315,7 @@ def get_utc_lowercase_max_date_time(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("rfc-1123", pipeline_response)
@@ -360,7 +360,7 @@ def get_utc_uppercase_max_date_time(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("rfc-1123", pipeline_response)
@@ -414,7 +414,7 @@ def put_utc_min_date_time(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -455,7 +455,7 @@ def get_utc_min_date_time(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("rfc-1123", pipeline_response)
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyDateTimeRfc1123/setup.py b/test/vanilla/Expected/AcceptanceTests/BodyDateTimeRfc1123/setup.py
index 15cfb681e57..44b85bb140b 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyDateTimeRfc1123/setup.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyDateTimeRfc1123/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyDictionary/bodydictionary/aio/operations/_dictionary_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyDictionary/bodydictionary/aio/operations/_dictionary_operations.py
index 8cf62bb8325..0c12a75f976 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyDictionary/bodydictionary/aio/operations/_dictionary_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyDictionary/bodydictionary/aio/operations/_dictionary_operations.py
@@ -78,7 +78,7 @@ async def get_null(self, **kwargs) -> Dict[str, int]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{int}", pipeline_response)
@@ -120,7 +120,7 @@ async def get_empty(self, **kwargs) -> Dict[str, int]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{int}", pipeline_response)
@@ -169,7 +169,7 @@ async def put_empty(self, array_body: Dict[str, str], **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -207,7 +207,7 @@ async def get_null_value(self, **kwargs) -> Dict[str, str]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{str}", pipeline_response)
@@ -249,7 +249,7 @@ async def get_null_key(self, **kwargs) -> Dict[str, str]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{str}", pipeline_response)
@@ -291,7 +291,7 @@ async def get_empty_string_key(self, **kwargs) -> Dict[str, str]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{str}", pipeline_response)
@@ -333,7 +333,7 @@ async def get_invalid(self, **kwargs) -> Dict[str, str]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{str}", pipeline_response)
@@ -375,7 +375,7 @@ async def get_boolean_tfft(self, **kwargs) -> Dict[str, bool]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{bool}", pipeline_response)
@@ -424,7 +424,7 @@ async def put_boolean_tfft(self, array_body: Dict[str, bool], **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -462,7 +462,7 @@ async def get_boolean_invalid_null(self, **kwargs) -> Dict[str, bool]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{bool}", pipeline_response)
@@ -504,7 +504,7 @@ async def get_boolean_invalid_string(self, **kwargs) -> Dict[str, bool]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{bool}", pipeline_response)
@@ -546,7 +546,7 @@ async def get_integer_valid(self, **kwargs) -> Dict[str, int]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{int}", pipeline_response)
@@ -595,7 +595,7 @@ async def put_integer_valid(self, array_body: Dict[str, int], **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -633,7 +633,7 @@ async def get_int_invalid_null(self, **kwargs) -> Dict[str, int]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{int}", pipeline_response)
@@ -675,7 +675,7 @@ async def get_int_invalid_string(self, **kwargs) -> Dict[str, int]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{int}", pipeline_response)
@@ -717,7 +717,7 @@ async def get_long_valid(self, **kwargs) -> Dict[str, int]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{long}", pipeline_response)
@@ -766,7 +766,7 @@ async def put_long_valid(self, array_body: Dict[str, int], **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -804,7 +804,7 @@ async def get_long_invalid_null(self, **kwargs) -> Dict[str, int]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{long}", pipeline_response)
@@ -846,7 +846,7 @@ async def get_long_invalid_string(self, **kwargs) -> Dict[str, int]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{long}", pipeline_response)
@@ -888,7 +888,7 @@ async def get_float_valid(self, **kwargs) -> Dict[str, float]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{float}", pipeline_response)
@@ -937,7 +937,7 @@ async def put_float_valid(self, array_body: Dict[str, float], **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -975,7 +975,7 @@ async def get_float_invalid_null(self, **kwargs) -> Dict[str, float]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{float}", pipeline_response)
@@ -1017,7 +1017,7 @@ async def get_float_invalid_string(self, **kwargs) -> Dict[str, float]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{float}", pipeline_response)
@@ -1059,7 +1059,7 @@ async def get_double_valid(self, **kwargs) -> Dict[str, float]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{float}", pipeline_response)
@@ -1108,7 +1108,7 @@ async def put_double_valid(self, array_body: Dict[str, float], **kwargs) -> None
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1146,7 +1146,7 @@ async def get_double_invalid_null(self, **kwargs) -> Dict[str, float]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{float}", pipeline_response)
@@ -1188,7 +1188,7 @@ async def get_double_invalid_string(self, **kwargs) -> Dict[str, float]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{float}", pipeline_response)
@@ -1230,7 +1230,7 @@ async def get_string_valid(self, **kwargs) -> Dict[str, str]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{str}", pipeline_response)
@@ -1279,7 +1279,7 @@ async def put_string_valid(self, array_body: Dict[str, str], **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1317,7 +1317,7 @@ async def get_string_with_null(self, **kwargs) -> Dict[str, str]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{str}", pipeline_response)
@@ -1359,7 +1359,7 @@ async def get_string_with_invalid(self, **kwargs) -> Dict[str, str]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{str}", pipeline_response)
@@ -1401,7 +1401,7 @@ async def get_date_valid(self, **kwargs) -> Dict[str, datetime.date]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{date}", pipeline_response)
@@ -1450,7 +1450,7 @@ async def put_date_valid(self, array_body: Dict[str, datetime.date], **kwargs) -
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1488,7 +1488,7 @@ async def get_date_invalid_null(self, **kwargs) -> Dict[str, datetime.date]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{date}", pipeline_response)
@@ -1530,7 +1530,7 @@ async def get_date_invalid_chars(self, **kwargs) -> Dict[str, datetime.date]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{date}", pipeline_response)
@@ -1573,7 +1573,7 @@ async def get_date_time_valid(self, **kwargs) -> Dict[str, datetime.datetime]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{iso-8601}", pipeline_response)
@@ -1623,7 +1623,7 @@ async def put_date_time_valid(self, array_body: Dict[str, datetime.datetime], **
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1661,7 +1661,7 @@ async def get_date_time_invalid_null(self, **kwargs) -> Dict[str, datetime.datet
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{iso-8601}", pipeline_response)
@@ -1703,7 +1703,7 @@ async def get_date_time_invalid_chars(self, **kwargs) -> Dict[str, datetime.date
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{iso-8601}", pipeline_response)
@@ -1746,7 +1746,7 @@ async def get_date_time_rfc1123_valid(self, **kwargs) -> Dict[str, datetime.date
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{rfc-1123}", pipeline_response)
@@ -1796,7 +1796,7 @@ async def put_date_time_rfc1123_valid(self, array_body: Dict[str, datetime.datet
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1834,7 +1834,7 @@ async def get_duration_valid(self, **kwargs) -> Dict[str, datetime.timedelta]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{duration}", pipeline_response)
@@ -1883,7 +1883,7 @@ async def put_duration_valid(self, array_body: Dict[str, datetime.timedelta], **
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1922,7 +1922,7 @@ async def get_byte_valid(self, **kwargs) -> Dict[str, bytearray]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{bytearray}", pipeline_response)
@@ -1972,7 +1972,7 @@ async def put_byte_valid(self, array_body: Dict[str, bytearray], **kwargs) -> No
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -2011,7 +2011,7 @@ async def get_byte_invalid_null(self, **kwargs) -> Dict[str, bytearray]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{bytearray}", pipeline_response)
@@ -2054,7 +2054,7 @@ async def get_base64_url(self, **kwargs) -> Dict[str, bytes]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{base64}", pipeline_response)
@@ -2096,7 +2096,7 @@ async def get_complex_null(self, **kwargs) -> Optional[Dict[str, "_models.Widget
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{Widget}", pipeline_response)
@@ -2138,7 +2138,7 @@ async def get_complex_empty(self, **kwargs) -> Dict[str, "_models.Widget"]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{Widget}", pipeline_response)
@@ -2181,7 +2181,7 @@ async def get_complex_item_null(self, **kwargs) -> Dict[str, "_models.Widget"]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{Widget}", pipeline_response)
@@ -2224,7 +2224,7 @@ async def get_complex_item_empty(self, **kwargs) -> Dict[str, "_models.Widget"]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{Widget}", pipeline_response)
@@ -2267,7 +2267,7 @@ async def get_complex_valid(self, **kwargs) -> Dict[str, "_models.Widget"]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{Widget}", pipeline_response)
@@ -2317,7 +2317,7 @@ async def put_complex_valid(self, array_body: Dict[str, "_models.Widget"], **kwa
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -2355,7 +2355,7 @@ async def get_array_null(self, **kwargs) -> Optional[Dict[str, List[str]]]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{[str]}", pipeline_response)
@@ -2397,7 +2397,7 @@ async def get_array_empty(self, **kwargs) -> Dict[str, List[str]]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{[str]}", pipeline_response)
@@ -2439,7 +2439,7 @@ async def get_array_item_null(self, **kwargs) -> Dict[str, List[str]]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{[str]}", pipeline_response)
@@ -2481,7 +2481,7 @@ async def get_array_item_empty(self, **kwargs) -> Dict[str, List[str]]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{[str]}", pipeline_response)
@@ -2524,7 +2524,7 @@ async def get_array_valid(self, **kwargs) -> Dict[str, List[str]]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{[str]}", pipeline_response)
@@ -2574,7 +2574,7 @@ async def put_array_valid(self, array_body: Dict[str, List[str]], **kwargs) -> N
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -2612,7 +2612,7 @@ async def get_dictionary_null(self, **kwargs) -> Dict[str, Dict[str, str]]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{{str}}", pipeline_response)
@@ -2654,7 +2654,7 @@ async def get_dictionary_empty(self, **kwargs) -> Dict[str, Dict[str, str]]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{{str}}", pipeline_response)
@@ -2697,7 +2697,7 @@ async def get_dictionary_item_null(self, **kwargs) -> Dict[str, Dict[str, str]]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{{str}}", pipeline_response)
@@ -2740,7 +2740,7 @@ async def get_dictionary_item_empty(self, **kwargs) -> Dict[str, Dict[str, str]]
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{{str}}", pipeline_response)
@@ -2784,7 +2784,7 @@ async def get_dictionary_valid(self, **kwargs) -> Dict[str, Dict[str, str]]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{{str}}", pipeline_response)
@@ -2835,7 +2835,7 @@ async def put_dictionary_valid(self, array_body: Dict[str, Dict[str, str]], **kw
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyDictionary/bodydictionary/operations/_dictionary_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyDictionary/bodydictionary/operations/_dictionary_operations.py
index 8b45cd26335..26aad828895 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyDictionary/bodydictionary/operations/_dictionary_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyDictionary/bodydictionary/operations/_dictionary_operations.py
@@ -85,7 +85,7 @@ def get_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{int}", pipeline_response)
@@ -130,7 +130,7 @@ def get_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{int}", pipeline_response)
@@ -184,7 +184,7 @@ def put_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -225,7 +225,7 @@ def get_null_value(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{str}", pipeline_response)
@@ -270,7 +270,7 @@ def get_null_key(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{str}", pipeline_response)
@@ -315,7 +315,7 @@ def get_empty_string_key(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{str}", pipeline_response)
@@ -360,7 +360,7 @@ def get_invalid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{str}", pipeline_response)
@@ -405,7 +405,7 @@ def get_boolean_tfft(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{bool}", pipeline_response)
@@ -459,7 +459,7 @@ def put_boolean_tfft(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -500,7 +500,7 @@ def get_boolean_invalid_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{bool}", pipeline_response)
@@ -545,7 +545,7 @@ def get_boolean_invalid_string(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{bool}", pipeline_response)
@@ -590,7 +590,7 @@ def get_integer_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{int}", pipeline_response)
@@ -644,7 +644,7 @@ def put_integer_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -685,7 +685,7 @@ def get_int_invalid_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{int}", pipeline_response)
@@ -730,7 +730,7 @@ def get_int_invalid_string(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{int}", pipeline_response)
@@ -775,7 +775,7 @@ def get_long_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{long}", pipeline_response)
@@ -829,7 +829,7 @@ def put_long_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -870,7 +870,7 @@ def get_long_invalid_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{long}", pipeline_response)
@@ -915,7 +915,7 @@ def get_long_invalid_string(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{long}", pipeline_response)
@@ -960,7 +960,7 @@ def get_float_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{float}", pipeline_response)
@@ -1014,7 +1014,7 @@ def put_float_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1055,7 +1055,7 @@ def get_float_invalid_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{float}", pipeline_response)
@@ -1100,7 +1100,7 @@ def get_float_invalid_string(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{float}", pipeline_response)
@@ -1145,7 +1145,7 @@ def get_double_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{float}", pipeline_response)
@@ -1199,7 +1199,7 @@ def put_double_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1240,7 +1240,7 @@ def get_double_invalid_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{float}", pipeline_response)
@@ -1285,7 +1285,7 @@ def get_double_invalid_string(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{float}", pipeline_response)
@@ -1330,7 +1330,7 @@ def get_string_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{str}", pipeline_response)
@@ -1384,7 +1384,7 @@ def put_string_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1425,7 +1425,7 @@ def get_string_with_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{str}", pipeline_response)
@@ -1470,7 +1470,7 @@ def get_string_with_invalid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{str}", pipeline_response)
@@ -1515,7 +1515,7 @@ def get_date_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{date}", pipeline_response)
@@ -1569,7 +1569,7 @@ def put_date_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1610,7 +1610,7 @@ def get_date_invalid_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{date}", pipeline_response)
@@ -1655,7 +1655,7 @@ def get_date_invalid_chars(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{date}", pipeline_response)
@@ -1701,7 +1701,7 @@ def get_date_time_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{iso-8601}", pipeline_response)
@@ -1756,7 +1756,7 @@ def put_date_time_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1797,7 +1797,7 @@ def get_date_time_invalid_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{iso-8601}", pipeline_response)
@@ -1842,7 +1842,7 @@ def get_date_time_invalid_chars(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{iso-8601}", pipeline_response)
@@ -1888,7 +1888,7 @@ def get_date_time_rfc1123_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{rfc-1123}", pipeline_response)
@@ -1943,7 +1943,7 @@ def put_date_time_rfc1123_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1984,7 +1984,7 @@ def get_duration_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{duration}", pipeline_response)
@@ -2038,7 +2038,7 @@ def put_duration_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -2080,7 +2080,7 @@ def get_byte_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{bytearray}", pipeline_response)
@@ -2135,7 +2135,7 @@ def put_byte_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -2177,7 +2177,7 @@ def get_byte_invalid_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{bytearray}", pipeline_response)
@@ -2223,7 +2223,7 @@ def get_base64_url(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{base64}", pipeline_response)
@@ -2268,7 +2268,7 @@ def get_complex_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{Widget}", pipeline_response)
@@ -2313,7 +2313,7 @@ def get_complex_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{Widget}", pipeline_response)
@@ -2359,7 +2359,7 @@ def get_complex_item_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{Widget}", pipeline_response)
@@ -2405,7 +2405,7 @@ def get_complex_item_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{Widget}", pipeline_response)
@@ -2451,7 +2451,7 @@ def get_complex_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{Widget}", pipeline_response)
@@ -2506,7 +2506,7 @@ def put_complex_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -2547,7 +2547,7 @@ def get_array_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{[str]}", pipeline_response)
@@ -2592,7 +2592,7 @@ def get_array_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{[str]}", pipeline_response)
@@ -2637,7 +2637,7 @@ def get_array_item_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{[str]}", pipeline_response)
@@ -2682,7 +2682,7 @@ def get_array_item_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{[str]}", pipeline_response)
@@ -2728,7 +2728,7 @@ def get_array_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{[str]}", pipeline_response)
@@ -2783,7 +2783,7 @@ def put_array_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -2824,7 +2824,7 @@ def get_dictionary_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{{str}}", pipeline_response)
@@ -2869,7 +2869,7 @@ def get_dictionary_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{{str}}", pipeline_response)
@@ -2915,7 +2915,7 @@ def get_dictionary_item_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{{str}}", pipeline_response)
@@ -2961,7 +2961,7 @@ def get_dictionary_item_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{{str}}", pipeline_response)
@@ -3008,7 +3008,7 @@ def get_dictionary_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{{str}}", pipeline_response)
@@ -3064,7 +3064,7 @@ def put_dictionary_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyDictionary/setup.py b/test/vanilla/Expected/AcceptanceTests/BodyDictionary/setup.py
index cf05fac6dfc..6d63a9d1a14 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyDictionary/setup.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyDictionary/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyDuration/bodyduration/aio/operations/_duration_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyDuration/bodyduration/aio/operations/_duration_operations.py
index 7df50e40cd0..538596c97f1 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyDuration/bodyduration/aio/operations/_duration_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyDuration/bodyduration/aio/operations/_duration_operations.py
@@ -78,7 +78,7 @@ async def get_null(self, **kwargs) -> Optional[datetime.timedelta]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("duration", pipeline_response)
@@ -127,7 +127,7 @@ async def put_positive_duration(self, duration_body: datetime.timedelta, **kwarg
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -165,7 +165,7 @@ async def get_positive_duration(self, **kwargs) -> datetime.timedelta:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("duration", pipeline_response)
@@ -207,7 +207,7 @@ async def get_invalid(self, **kwargs) -> datetime.timedelta:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("duration", pipeline_response)
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyDuration/bodyduration/operations/_duration_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyDuration/bodyduration/operations/_duration_operations.py
index 3df245ea629..72de7e128df 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyDuration/bodyduration/operations/_duration_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyDuration/bodyduration/operations/_duration_operations.py
@@ -85,7 +85,7 @@ def get_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("duration", pipeline_response)
@@ -139,7 +139,7 @@ def put_positive_duration(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -180,7 +180,7 @@ def get_positive_duration(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("duration", pipeline_response)
@@ -225,7 +225,7 @@ def get_invalid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("duration", pipeline_response)
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyDuration/setup.py b/test/vanilla/Expected/AcceptanceTests/BodyDuration/setup.py
index 32b400cb2dc..47f4913beda 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyDuration/setup.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyDuration/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyFile/bodyfile/aio/operations/_files_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyFile/bodyfile/aio/operations/_files_operations.py
index d5debf7dfb6..ff78d5025d1 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyFile/bodyfile/aio/operations/_files_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyFile/bodyfile/aio/operations/_files_operations.py
@@ -77,7 +77,7 @@ async def get_file(self, **kwargs) -> IO:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = response.stream_download(self._client._pipeline)
@@ -119,7 +119,7 @@ async def get_file_large(self, **kwargs) -> IO:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = response.stream_download(self._client._pipeline)
@@ -161,7 +161,7 @@ async def get_empty_file(self, **kwargs) -> IO:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = response.stream_download(self._client._pipeline)
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyFile/bodyfile/operations/_files_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyFile/bodyfile/operations/_files_operations.py
index 481d5f88718..96a905b7ed0 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyFile/bodyfile/operations/_files_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyFile/bodyfile/operations/_files_operations.py
@@ -84,7 +84,7 @@ def get_file(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = response.stream_download(self._client._pipeline)
@@ -129,7 +129,7 @@ def get_file_large(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = response.stream_download(self._client._pipeline)
@@ -174,7 +174,7 @@ def get_empty_file(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = response.stream_download(self._client._pipeline)
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyFile/setup.py b/test/vanilla/Expected/AcceptanceTests/BodyFile/setup.py
index 57b601af3ed..356cfee04da 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyFile/setup.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyFile/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyFormData/bodyformdata/aio/operations/_formdata_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyFormData/bodyformdata/aio/operations/_formdata_operations.py
index 282b6d362bc..a80e181d414 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyFormData/bodyformdata/aio/operations/_formdata_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyFormData/bodyformdata/aio/operations/_formdata_operations.py
@@ -88,7 +88,7 @@ async def upload_file(self, file_content: IO, file_name: str, **kwargs) -> IO:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = response.stream_download(self._client._pipeline)
@@ -136,7 +136,7 @@ async def upload_file_via_body(self, file_content: IO, **kwargs) -> IO:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = response.stream_download(self._client._pipeline)
@@ -186,7 +186,7 @@ async def upload_files(self, file_content: List[IO], **kwargs) -> IO:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = response.stream_download(self._client._pipeline)
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyFormData/bodyformdata/operations/_formdata_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyFormData/bodyformdata/operations/_formdata_operations.py
index ec73ff580ad..dcd37f74668 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyFormData/bodyformdata/operations/_formdata_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyFormData/bodyformdata/operations/_formdata_operations.py
@@ -98,7 +98,7 @@ def upload_file(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = response.stream_download(self._client._pipeline)
@@ -151,7 +151,7 @@ def upload_file_via_body(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = response.stream_download(self._client._pipeline)
@@ -206,7 +206,7 @@ def upload_files(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = response.stream_download(self._client._pipeline)
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyFormData/setup.py b/test/vanilla/Expected/AcceptanceTests/BodyFormData/setup.py
index b37d9d0c6e0..28c0309c5e6 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyFormData/setup.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyFormData/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyInteger/bodyinteger/aio/operations/_int_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyInteger/bodyinteger/aio/operations/_int_operations.py
index d890f22b389..de2080cf2d3 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyInteger/bodyinteger/aio/operations/_int_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyInteger/bodyinteger/aio/operations/_int_operations.py
@@ -78,7 +78,7 @@ async def get_null(self, **kwargs) -> Optional[int]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("int", pipeline_response)
@@ -120,7 +120,7 @@ async def get_invalid(self, **kwargs) -> int:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("int", pipeline_response)
@@ -162,7 +162,7 @@ async def get_overflow_int32(self, **kwargs) -> int:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("int", pipeline_response)
@@ -204,7 +204,7 @@ async def get_underflow_int32(self, **kwargs) -> int:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("int", pipeline_response)
@@ -246,7 +246,7 @@ async def get_overflow_int64(self, **kwargs) -> int:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("long", pipeline_response)
@@ -288,7 +288,7 @@ async def get_underflow_int64(self, **kwargs) -> int:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("long", pipeline_response)
@@ -337,7 +337,7 @@ async def put_max32(self, int_body: int, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -382,7 +382,7 @@ async def put_max64(self, int_body: int, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -427,7 +427,7 @@ async def put_min32(self, int_body: int, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -472,7 +472,7 @@ async def put_min64(self, int_body: int, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -510,7 +510,7 @@ async def get_unix_time(self, **kwargs) -> datetime.datetime:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("unix-time", pipeline_response)
@@ -559,7 +559,7 @@ async def put_unix_time_date(self, int_body: datetime.datetime, **kwargs) -> Non
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -597,7 +597,7 @@ async def get_invalid_unix_time(self, **kwargs) -> datetime.datetime:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("unix-time", pipeline_response)
@@ -639,7 +639,7 @@ async def get_null_unix_time(self, **kwargs) -> Optional[datetime.datetime]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("unix-time", pipeline_response)
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyInteger/bodyinteger/operations/_int_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyInteger/bodyinteger/operations/_int_operations.py
index 609be9293e0..d5903221f6d 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyInteger/bodyinteger/operations/_int_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyInteger/bodyinteger/operations/_int_operations.py
@@ -85,7 +85,7 @@ def get_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("int", pipeline_response)
@@ -130,7 +130,7 @@ def get_invalid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("int", pipeline_response)
@@ -175,7 +175,7 @@ def get_overflow_int32(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("int", pipeline_response)
@@ -220,7 +220,7 @@ def get_underflow_int32(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("int", pipeline_response)
@@ -265,7 +265,7 @@ def get_overflow_int64(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("long", pipeline_response)
@@ -310,7 +310,7 @@ def get_underflow_int64(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("long", pipeline_response)
@@ -364,7 +364,7 @@ def put_max32(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -414,7 +414,7 @@ def put_max64(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -464,7 +464,7 @@ def put_min32(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -514,7 +514,7 @@ def put_min64(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -555,7 +555,7 @@ def get_unix_time(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("unix-time", pipeline_response)
@@ -609,7 +609,7 @@ def put_unix_time_date(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -650,7 +650,7 @@ def get_invalid_unix_time(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("unix-time", pipeline_response)
@@ -695,7 +695,7 @@ def get_null_unix_time(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("unix-time", pipeline_response)
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyInteger/setup.py b/test/vanilla/Expected/AcceptanceTests/BodyInteger/setup.py
index c14db18f649..3e59a6b4673 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyInteger/setup.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyInteger/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyNumber/bodynumber/aio/operations/_number_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyNumber/bodynumber/aio/operations/_number_operations.py
index 7610b7b2a5d..4a7002083bc 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyNumber/bodynumber/aio/operations/_number_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyNumber/bodynumber/aio/operations/_number_operations.py
@@ -77,7 +77,7 @@ async def get_null(self, **kwargs) -> Optional[float]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("float", pipeline_response)
@@ -119,7 +119,7 @@ async def get_invalid_float(self, **kwargs) -> float:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("float", pipeline_response)
@@ -161,7 +161,7 @@ async def get_invalid_double(self, **kwargs) -> float:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("float", pipeline_response)
@@ -203,7 +203,7 @@ async def get_invalid_decimal(self, **kwargs) -> float:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("float", pipeline_response)
@@ -252,7 +252,7 @@ async def put_big_float(self, number_body: float, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -290,7 +290,7 @@ async def get_big_float(self, **kwargs) -> float:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("float", pipeline_response)
@@ -339,7 +339,7 @@ async def put_big_double(self, number_body: float, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -377,7 +377,7 @@ async def get_big_double(self, **kwargs) -> float:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("float", pipeline_response)
@@ -425,7 +425,7 @@ async def put_big_double_positive_decimal(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -463,7 +463,7 @@ async def get_big_double_positive_decimal(self, **kwargs) -> float:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("float", pipeline_response)
@@ -511,7 +511,7 @@ async def put_big_double_negative_decimal(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -549,7 +549,7 @@ async def get_big_double_negative_decimal(self, **kwargs) -> float:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("float", pipeline_response)
@@ -598,7 +598,7 @@ async def put_big_decimal(self, number_body: float, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -636,7 +636,7 @@ async def get_big_decimal(self, **kwargs) -> float:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("float", pipeline_response)
@@ -684,7 +684,7 @@ async def put_big_decimal_positive_decimal(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -722,7 +722,7 @@ async def get_big_decimal_positive_decimal(self, **kwargs) -> float:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("float", pipeline_response)
@@ -770,7 +770,7 @@ async def put_big_decimal_negative_decimal(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -808,7 +808,7 @@ async def get_big_decimal_negative_decimal(self, **kwargs) -> float:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("float", pipeline_response)
@@ -857,7 +857,7 @@ async def put_small_float(self, number_body: float, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -895,7 +895,7 @@ async def get_small_float(self, **kwargs) -> float:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("float", pipeline_response)
@@ -944,7 +944,7 @@ async def put_small_double(self, number_body: float, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -982,7 +982,7 @@ async def get_small_double(self, **kwargs) -> float:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("float", pipeline_response)
@@ -1031,7 +1031,7 @@ async def put_small_decimal(self, number_body: float, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1069,7 +1069,7 @@ async def get_small_decimal(self, **kwargs) -> float:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("float", pipeline_response)
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyNumber/bodynumber/operations/_number_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyNumber/bodynumber/operations/_number_operations.py
index b9ce11a91c8..a22b08de2c5 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyNumber/bodynumber/operations/_number_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyNumber/bodynumber/operations/_number_operations.py
@@ -84,7 +84,7 @@ def get_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("float", pipeline_response)
@@ -129,7 +129,7 @@ def get_invalid_float(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("float", pipeline_response)
@@ -174,7 +174,7 @@ def get_invalid_double(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("float", pipeline_response)
@@ -219,7 +219,7 @@ def get_invalid_decimal(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("float", pipeline_response)
@@ -273,7 +273,7 @@ def put_big_float(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -314,7 +314,7 @@ def get_big_float(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("float", pipeline_response)
@@ -368,7 +368,7 @@ def put_big_double(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -409,7 +409,7 @@ def get_big_double(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("float", pipeline_response)
@@ -460,7 +460,7 @@ def put_big_double_positive_decimal(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -501,7 +501,7 @@ def get_big_double_positive_decimal(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("float", pipeline_response)
@@ -552,7 +552,7 @@ def put_big_double_negative_decimal(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -593,7 +593,7 @@ def get_big_double_negative_decimal(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("float", pipeline_response)
@@ -647,7 +647,7 @@ def put_big_decimal(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -688,7 +688,7 @@ def get_big_decimal(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("float", pipeline_response)
@@ -739,7 +739,7 @@ def put_big_decimal_positive_decimal(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -780,7 +780,7 @@ def get_big_decimal_positive_decimal(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("float", pipeline_response)
@@ -831,7 +831,7 @@ def put_big_decimal_negative_decimal(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -872,7 +872,7 @@ def get_big_decimal_negative_decimal(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("float", pipeline_response)
@@ -926,7 +926,7 @@ def put_small_float(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -967,7 +967,7 @@ def get_small_float(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("float", pipeline_response)
@@ -1021,7 +1021,7 @@ def put_small_double(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1062,7 +1062,7 @@ def get_small_double(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("float", pipeline_response)
@@ -1116,7 +1116,7 @@ def put_small_decimal(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1157,7 +1157,7 @@ def get_small_decimal(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("float", pipeline_response)
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyNumber/setup.py b/test/vanilla/Expected/AcceptanceTests/BodyNumber/setup.py
index 27135cf4edd..3c25c7dec0b 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyNumber/setup.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyNumber/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/aio/operations/_enum_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/aio/operations/_enum_operations.py
index 71b10e060e4..200b5d0aa21 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/aio/operations/_enum_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/aio/operations/_enum_operations.py
@@ -77,7 +77,7 @@ async def get_not_expandable(self, **kwargs) -> Union[str, "_models.Colors"]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("str", pipeline_response)
@@ -126,7 +126,7 @@ async def put_not_expandable(self, string_body: Union[str, "_models.Colors"], **
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -164,7 +164,7 @@ async def get_referenced(self, **kwargs) -> Union[str, "_models.Colors"]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("str", pipeline_response)
@@ -213,7 +213,7 @@ async def put_referenced(self, enum_string_body: Union[str, "_models.Colors"], *
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -251,7 +251,7 @@ async def get_referenced_constant(self, **kwargs) -> "_models.RefColorConstant":
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("RefColorConstant", pipeline_response)
@@ -302,7 +302,7 @@ async def put_referenced_constant(self, field1: Optional[str] = None, **kwargs)
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/aio/operations/_string_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/aio/operations/_string_operations.py
index a89f2be8093..2f54241087c 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/aio/operations/_string_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/aio/operations/_string_operations.py
@@ -77,7 +77,7 @@ async def get_null(self, **kwargs) -> Optional[str]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("str", pipeline_response)
@@ -129,7 +129,7 @@ async def put_null(self, string_body: Optional[str] = None, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -167,7 +167,7 @@ async def get_empty(self, **kwargs) -> str:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("str", pipeline_response)
@@ -215,7 +215,7 @@ async def put_empty(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -253,7 +253,7 @@ async def get_mbcs(self, **kwargs) -> str:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("str", pipeline_response)
@@ -301,7 +301,7 @@ async def put_mbcs(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -341,7 +341,7 @@ async def get_whitespace(self, **kwargs) -> str:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("str", pipeline_response)
@@ -391,7 +391,7 @@ async def put_whitespace(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -429,7 +429,7 @@ async def get_not_provided(self, **kwargs) -> str:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("str", pipeline_response)
@@ -471,7 +471,7 @@ async def get_base64_encoded(self, **kwargs) -> bytearray:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("bytearray", pipeline_response)
@@ -513,7 +513,7 @@ async def get_base64_url_encoded(self, **kwargs) -> bytes:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("base64", pipeline_response)
@@ -562,7 +562,7 @@ async def put_base64_url_encoded(self, string_body: bytes, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -600,7 +600,7 @@ async def get_null_base64_url_encoded(self, **kwargs) -> Optional[bytes]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("base64", pipeline_response)
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/operations/_enum_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/operations/_enum_operations.py
index 158366a5f3d..68c9e50626d 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/operations/_enum_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/operations/_enum_operations.py
@@ -84,7 +84,7 @@ def get_not_expandable(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("str", pipeline_response)
@@ -138,7 +138,7 @@ def put_not_expandable(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -179,7 +179,7 @@ def get_referenced(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("str", pipeline_response)
@@ -233,7 +233,7 @@ def put_referenced(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -274,7 +274,7 @@ def get_referenced_constant(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("RefColorConstant", pipeline_response)
@@ -330,7 +330,7 @@ def put_referenced_constant(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/operations/_string_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/operations/_string_operations.py
index 4527710bf16..d8d3517d831 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/operations/_string_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/operations/_string_operations.py
@@ -84,7 +84,7 @@ def get_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("str", pipeline_response)
@@ -141,7 +141,7 @@ def put_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -182,7 +182,7 @@ def get_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("str", pipeline_response)
@@ -233,7 +233,7 @@ def put_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -274,7 +274,7 @@ def get_mbcs(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("str", pipeline_response)
@@ -325,7 +325,7 @@ def put_mbcs(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -368,7 +368,7 @@ def get_whitespace(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("str", pipeline_response)
@@ -421,7 +421,7 @@ def put_whitespace(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -462,7 +462,7 @@ def get_not_provided(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("str", pipeline_response)
@@ -507,7 +507,7 @@ def get_base64_encoded(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("bytearray", pipeline_response)
@@ -552,7 +552,7 @@ def get_base64_url_encoded(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("base64", pipeline_response)
@@ -606,7 +606,7 @@ def put_base64_url_encoded(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -647,7 +647,7 @@ def get_null_base64_url_encoded(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("base64", pipeline_response)
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyString/setup.py b/test/vanilla/Expected/AcceptanceTests/BodyString/setup.py
index a17aa24257a..6f65e52812e 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyString/setup.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyString/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyTime/bodytime/aio/operations/_time_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyTime/bodytime/aio/operations/_time_operations.py
index fc3d556f7ab..f4c00f0721a 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyTime/bodytime/aio/operations/_time_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyTime/bodytime/aio/operations/_time_operations.py
@@ -78,7 +78,7 @@ async def get(self, **kwargs) -> datetime.time:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("time", pipeline_response)
@@ -127,7 +127,7 @@ async def put(self, time_body: datetime.time, **kwargs) -> str:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("str", pipeline_response)
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyTime/bodytime/operations/_time_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyTime/bodytime/operations/_time_operations.py
index ee21d846f4b..bd31089e76e 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyTime/bodytime/operations/_time_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyTime/bodytime/operations/_time_operations.py
@@ -85,7 +85,7 @@ def get(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("time", pipeline_response)
@@ -139,7 +139,7 @@ def put(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("str", pipeline_response)
diff --git a/test/vanilla/Expected/AcceptanceTests/BodyTime/setup.py b/test/vanilla/Expected/AcceptanceTests/BodyTime/setup.py
index 080552fb40e..3be6a0a2392 100644
--- a/test/vanilla/Expected/AcceptanceTests/BodyTime/setup.py
+++ b/test/vanilla/Expected/AcceptanceTests/BodyTime/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/vanilla/Expected/AcceptanceTests/Constants/setup.py b/test/vanilla/Expected/AcceptanceTests/Constants/setup.py
index 1b2c5934104..dedd16b32ff 100644
--- a/test/vanilla/Expected/AcceptanceTests/Constants/setup.py
+++ b/test/vanilla/Expected/AcceptanceTests/Constants/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/vanilla/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/operations/_paths_operations.py b/test/vanilla/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/operations/_paths_operations.py
index c03fc61fc53..abb7ece7162 100644
--- a/test/vanilla/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/operations/_paths_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/operations/_paths_operations.py
@@ -84,7 +84,7 @@ async def get_empty(self, account_name: str, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/operations/_paths_operations.py b/test/vanilla/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/operations/_paths_operations.py
index 0c00c0e8890..227cbbdefcc 100644
--- a/test/vanilla/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/operations/_paths_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/operations/_paths_operations.py
@@ -93,7 +93,7 @@ def get_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/CustomBaseUri/setup.py b/test/vanilla/Expected/AcceptanceTests/CustomBaseUri/setup.py
index 186207a9e03..b41dddbf059 100644
--- a/test/vanilla/Expected/AcceptanceTests/CustomBaseUri/setup.py
+++ b/test/vanilla/Expected/AcceptanceTests/CustomBaseUri/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/vanilla/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/aio/operations/_paths_operations.py b/test/vanilla/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/aio/operations/_paths_operations.py
index 8469ebb30ba..960bb4573f8 100644
--- a/test/vanilla/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/aio/operations/_paths_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/aio/operations/_paths_operations.py
@@ -99,7 +99,7 @@ async def get_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/operations/_paths_operations.py b/test/vanilla/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/operations/_paths_operations.py
index 38b4127ba25..38133641e09 100644
--- a/test/vanilla/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/operations/_paths_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/operations/_paths_operations.py
@@ -109,7 +109,7 @@ def get_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/CustomBaseUriMoreOptions/setup.py b/test/vanilla/Expected/AcceptanceTests/CustomBaseUriMoreOptions/setup.py
index 5a475bc8ca4..d743f6dfe21 100644
--- a/test/vanilla/Expected/AcceptanceTests/CustomBaseUriMoreOptions/setup.py
+++ b/test/vanilla/Expected/AcceptanceTests/CustomBaseUriMoreOptions/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/vanilla/Expected/AcceptanceTests/ExtensibleEnums/setup.py b/test/vanilla/Expected/AcceptanceTests/ExtensibleEnums/setup.py
index 679ff254511..f51e9d461f4 100644
--- a/test/vanilla/Expected/AcceptanceTests/ExtensibleEnums/setup.py
+++ b/test/vanilla/Expected/AcceptanceTests/ExtensibleEnums/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/vanilla/Expected/AcceptanceTests/Header/header/aio/operations/_header_operations.py b/test/vanilla/Expected/AcceptanceTests/Header/header/aio/operations/_header_operations.py
index 28b7c27cfc6..ad6e1568843 100644
--- a/test/vanilla/Expected/AcceptanceTests/Header/header/aio/operations/_header_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/Header/header/aio/operations/_header_operations.py
@@ -81,7 +81,7 @@ async def param_existing_key(self, user_agent_parameter: str, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -119,7 +119,7 @@ async def response_existing_key(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -163,7 +163,7 @@ async def param_protected_key(self, content_type: str, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -201,7 +201,7 @@ async def response_protected_key(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -249,7 +249,7 @@ async def param_integer(self, scenario: str, value: int, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -290,7 +290,7 @@ async def response_integer(self, scenario: str, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -338,7 +338,7 @@ async def param_long(self, scenario: str, value: int, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -379,7 +379,7 @@ async def response_long(self, scenario: str, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -427,7 +427,7 @@ async def param_float(self, scenario: str, value: float, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -468,7 +468,7 @@ async def response_float(self, scenario: str, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -516,7 +516,7 @@ async def param_double(self, scenario: str, value: float, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -557,7 +557,7 @@ async def response_double(self, scenario: str, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -605,7 +605,7 @@ async def param_bool(self, scenario: str, value: bool, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -646,7 +646,7 @@ async def response_bool(self, scenario: str, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -697,7 +697,7 @@ async def param_string(self, scenario: str, value: Optional[str] = None, **kwarg
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -739,7 +739,7 @@ async def response_string(self, scenario: str, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -787,7 +787,7 @@ async def param_date(self, scenario: str, value: datetime.date, **kwargs) -> Non
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -828,7 +828,7 @@ async def response_date(self, scenario: str, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -877,7 +877,7 @@ async def param_datetime(self, scenario: str, value: datetime.datetime, **kwargs
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -918,7 +918,7 @@ async def response_datetime(self, scenario: str, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -968,7 +968,7 @@ async def param_datetime_rfc1123(self, scenario: str, value: Optional[datetime.d
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1010,7 +1010,7 @@ async def response_datetime_rfc1123(self, scenario: str, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -1057,7 +1057,7 @@ async def param_duration(self, scenario: str, value: datetime.timedelta, **kwarg
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1098,7 +1098,7 @@ async def response_duration(self, scenario: str, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -1145,7 +1145,7 @@ async def param_byte(self, scenario: str, value: bytearray, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1186,7 +1186,7 @@ async def response_byte(self, scenario: str, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -1238,7 +1238,7 @@ async def param_enum(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1280,7 +1280,7 @@ async def response_enum(self, scenario: str, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -1322,7 +1322,7 @@ async def custom_request_id(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/Header/header/operations/_header_operations.py b/test/vanilla/Expected/AcceptanceTests/Header/header/operations/_header_operations.py
index 7731cb97134..0620ce54f23 100644
--- a/test/vanilla/Expected/AcceptanceTests/Header/header/operations/_header_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/Header/header/operations/_header_operations.py
@@ -90,7 +90,7 @@ def param_existing_key(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -131,7 +131,7 @@ def response_existing_key(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -180,7 +180,7 @@ def param_protected_key(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -221,7 +221,7 @@ def response_protected_key(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -275,7 +275,7 @@ def param_integer(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -321,7 +321,7 @@ def response_integer(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -375,7 +375,7 @@ def param_long(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -421,7 +421,7 @@ def response_long(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -475,7 +475,7 @@ def param_float(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -521,7 +521,7 @@ def response_float(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -575,7 +575,7 @@ def param_double(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -621,7 +621,7 @@ def response_double(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -675,7 +675,7 @@ def param_bool(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -721,7 +721,7 @@ def response_bool(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -778,7 +778,7 @@ def param_string(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -825,7 +825,7 @@ def response_string(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -879,7 +879,7 @@ def param_date(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -925,7 +925,7 @@ def response_date(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -980,7 +980,7 @@ def param_datetime(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1026,7 +1026,7 @@ def response_datetime(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -1082,7 +1082,7 @@ def param_datetime_rfc1123(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1129,7 +1129,7 @@ def response_datetime_rfc1123(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -1182,7 +1182,7 @@ def param_duration(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1228,7 +1228,7 @@ def response_duration(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -1281,7 +1281,7 @@ def param_byte(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1327,7 +1327,7 @@ def response_byte(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -1383,7 +1383,7 @@ def param_enum(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1430,7 +1430,7 @@ def response_enum(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -1475,7 +1475,7 @@ def custom_request_id(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/Header/setup.py b/test/vanilla/Expected/AcceptanceTests/Header/setup.py
index 18ad1be35e0..c0eebcb1e12 100644
--- a/test/vanilla/Expected/AcceptanceTests/Header/setup.py
+++ b/test/vanilla/Expected/AcceptanceTests/Header/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_client_failure_operations.py b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_client_failure_operations.py
index 2a14be3af77..7787ef50e92 100644
--- a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_client_failure_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_client_failure_operations.py
@@ -77,7 +77,7 @@ async def head400(self, **kwargs) -> None:
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -115,7 +115,7 @@ async def get400(self, **kwargs) -> None:
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -153,7 +153,7 @@ async def options400(self, **kwargs) -> None:
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -201,7 +201,7 @@ async def put400(self, boolean_value: Optional[bool] = True, **kwargs) -> None:
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -249,7 +249,7 @@ async def patch400(self, boolean_value: Optional[bool] = True, **kwargs) -> None
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -297,7 +297,7 @@ async def post400(self, boolean_value: Optional[bool] = True, **kwargs) -> None:
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -345,7 +345,7 @@ async def delete400(self, boolean_value: Optional[bool] = True, **kwargs) -> Non
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -383,7 +383,7 @@ async def head401(self, **kwargs) -> None:
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -421,7 +421,7 @@ async def get402(self, **kwargs) -> None:
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -459,7 +459,7 @@ async def options403(self, **kwargs) -> None:
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -497,7 +497,7 @@ async def get403(self, **kwargs) -> None:
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -545,7 +545,7 @@ async def put404(self, boolean_value: Optional[bool] = True, **kwargs) -> None:
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -593,7 +593,7 @@ async def patch405(self, boolean_value: Optional[bool] = True, **kwargs) -> None
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -641,7 +641,7 @@ async def post406(self, boolean_value: Optional[bool] = True, **kwargs) -> None:
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -689,7 +689,7 @@ async def delete407(self, boolean_value: Optional[bool] = True, **kwargs) -> Non
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -737,7 +737,7 @@ async def put409(self, boolean_value: Optional[bool] = True, **kwargs) -> None:
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -775,7 +775,7 @@ async def head410(self, **kwargs) -> None:
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -813,7 +813,7 @@ async def get411(self, **kwargs) -> None:
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -851,7 +851,7 @@ async def options412(self, **kwargs) -> None:
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -889,7 +889,7 @@ async def get412(self, **kwargs) -> None:
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -937,7 +937,7 @@ async def put413(self, boolean_value: Optional[bool] = True, **kwargs) -> None:
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -985,7 +985,7 @@ async def patch414(self, boolean_value: Optional[bool] = True, **kwargs) -> None
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1033,7 +1033,7 @@ async def post415(self, boolean_value: Optional[bool] = True, **kwargs) -> None:
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1071,7 +1071,7 @@ async def get416(self, **kwargs) -> None:
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1119,7 +1119,7 @@ async def delete417(self, boolean_value: Optional[bool] = True, **kwargs) -> Non
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1157,7 +1157,7 @@ async def head429(self, **kwargs) -> None:
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_failure_operations.py b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_failure_operations.py
index 923a1a36167..452136e61df 100644
--- a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_failure_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_failure_operations.py
@@ -77,7 +77,7 @@ async def get_empty_error(self, **kwargs) -> bool:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("bool", pipeline_response)
diff --git a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_redirects_operations.py b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_redirects_operations.py
index c5d3dc4df60..079f6451d3b 100644
--- a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_redirects_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_redirects_operations.py
@@ -77,7 +77,7 @@ async def head300(self, **kwargs) -> None:
if response.status_code not in [200, 300]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -119,7 +119,7 @@ async def get300(self, **kwargs) -> Optional[List[str]]:
if response.status_code not in [200, 300]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -165,7 +165,7 @@ async def head301(self, **kwargs) -> None:
if response.status_code not in [200, 301]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -207,7 +207,7 @@ async def get301(self, **kwargs) -> None:
if response.status_code not in [200, 301]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -260,7 +260,7 @@ async def put301(self, boolean_value: Optional[bool] = True, **kwargs) -> None:
if response.status_code not in [301]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -301,7 +301,7 @@ async def head302(self, **kwargs) -> None:
if response.status_code not in [200, 302]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -343,7 +343,7 @@ async def get302(self, **kwargs) -> None:
if response.status_code not in [200, 302]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -396,7 +396,7 @@ async def patch302(self, boolean_value: Optional[bool] = True, **kwargs) -> None
if response.status_code not in [302]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -448,7 +448,7 @@ async def post303(self, boolean_value: Optional[bool] = True, **kwargs) -> None:
if response.status_code not in [200, 303]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -490,7 +490,7 @@ async def head307(self, **kwargs) -> None:
if response.status_code not in [200, 307]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -532,7 +532,7 @@ async def get307(self, **kwargs) -> None:
if response.status_code not in [200, 307]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -574,7 +574,7 @@ async def options307(self, **kwargs) -> None:
if response.status_code not in [200, 307]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -626,7 +626,7 @@ async def put307(self, boolean_value: Optional[bool] = True, **kwargs) -> None:
if response.status_code not in [200, 307]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -678,7 +678,7 @@ async def patch307(self, boolean_value: Optional[bool] = True, **kwargs) -> None
if response.status_code not in [200, 307]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -730,7 +730,7 @@ async def post307(self, boolean_value: Optional[bool] = True, **kwargs) -> None:
if response.status_code not in [200, 307]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -782,7 +782,7 @@ async def delete307(self, boolean_value: Optional[bool] = True, **kwargs) -> Non
if response.status_code not in [200, 307]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
diff --git a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_retry_operations.py b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_retry_operations.py
index fb658574ec8..92e34507537 100644
--- a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_retry_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_retry_operations.py
@@ -77,7 +77,7 @@ async def head408(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -125,7 +125,7 @@ async def put500(self, boolean_value: Optional[bool] = True, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -173,7 +173,7 @@ async def patch500(self, boolean_value: Optional[bool] = True, **kwargs) -> None
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -211,7 +211,7 @@ async def get502(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -249,7 +249,7 @@ async def options502(self, **kwargs) -> bool:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("bool", pipeline_response)
@@ -301,7 +301,7 @@ async def post503(self, boolean_value: Optional[bool] = True, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -349,7 +349,7 @@ async def delete503(self, boolean_value: Optional[bool] = True, **kwargs) -> Non
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -397,7 +397,7 @@ async def put504(self, boolean_value: Optional[bool] = True, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -445,7 +445,7 @@ async def patch504(self, boolean_value: Optional[bool] = True, **kwargs) -> None
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_server_failure_operations.py b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_server_failure_operations.py
index 970f6b77e8f..b1568646b05 100644
--- a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_server_failure_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_server_failure_operations.py
@@ -77,7 +77,7 @@ async def head501(self, **kwargs) -> None:
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -115,7 +115,7 @@ async def get501(self, **kwargs) -> None:
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -163,7 +163,7 @@ async def post505(self, boolean_value: Optional[bool] = True, **kwargs) -> None:
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -211,7 +211,7 @@ async def delete505(self, boolean_value: Optional[bool] = True, **kwargs) -> Non
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_success_operations.py b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_success_operations.py
index 371167684a5..d6460a81415 100644
--- a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_success_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_success_operations.py
@@ -77,7 +77,7 @@ async def head200(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -115,7 +115,7 @@ async def get200(self, **kwargs) -> bool:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("bool", pipeline_response)
@@ -157,7 +157,7 @@ async def options200(self, **kwargs) -> bool:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("bool", pipeline_response)
@@ -209,7 +209,7 @@ async def put200(self, boolean_value: Optional[bool] = True, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -257,7 +257,7 @@ async def patch200(self, boolean_value: Optional[bool] = True, **kwargs) -> None
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -305,7 +305,7 @@ async def post200(self, boolean_value: Optional[bool] = True, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -353,7 +353,7 @@ async def delete200(self, boolean_value: Optional[bool] = True, **kwargs) -> Non
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -401,7 +401,7 @@ async def put201(self, boolean_value: Optional[bool] = True, **kwargs) -> None:
if response.status_code not in [201]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -449,7 +449,7 @@ async def post201(self, boolean_value: Optional[bool] = True, **kwargs) -> None:
if response.status_code not in [201]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -497,7 +497,7 @@ async def put202(self, boolean_value: Optional[bool] = True, **kwargs) -> None:
if response.status_code not in [202]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -545,7 +545,7 @@ async def patch202(self, boolean_value: Optional[bool] = True, **kwargs) -> None
if response.status_code not in [202]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -593,7 +593,7 @@ async def post202(self, boolean_value: Optional[bool] = True, **kwargs) -> None:
if response.status_code not in [202]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -641,7 +641,7 @@ async def delete202(self, boolean_value: Optional[bool] = True, **kwargs) -> Non
if response.status_code not in [202]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -679,7 +679,7 @@ async def head204(self, **kwargs) -> None:
if response.status_code not in [204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -727,7 +727,7 @@ async def put204(self, boolean_value: Optional[bool] = True, **kwargs) -> None:
if response.status_code not in [204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -775,7 +775,7 @@ async def patch204(self, boolean_value: Optional[bool] = True, **kwargs) -> None
if response.status_code not in [204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -823,7 +823,7 @@ async def post204(self, boolean_value: Optional[bool] = True, **kwargs) -> None:
if response.status_code not in [204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -871,7 +871,7 @@ async def delete204(self, boolean_value: Optional[bool] = True, **kwargs) -> Non
if response.status_code not in [204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -909,7 +909,7 @@ async def head404(self, **kwargs) -> None:
if response.status_code not in [204, 404]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_multiple_responses_operations.py b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_multiple_responses_operations.py
index 581e4c55398..af1dfe0653d 100644
--- a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_multiple_responses_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_multiple_responses_operations.py
@@ -77,7 +77,7 @@ async def get200_model204_no_model_default_error200_valid(self, **kwargs) -> Opt
if response.status_code not in [200, 204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = None
@@ -121,7 +121,7 @@ async def get200_model204_no_model_default_error204_valid(self, **kwargs) -> Opt
if response.status_code not in [200, 204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = None
@@ -165,7 +165,7 @@ async def get200_model204_no_model_default_error201_invalid(self, **kwargs) -> O
if response.status_code not in [200, 204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = None
@@ -209,7 +209,7 @@ async def get200_model204_no_model_default_error202_none(self, **kwargs) -> Opti
if response.status_code not in [200, 204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = None
@@ -253,7 +253,7 @@ async def get200_model204_no_model_default_error400_valid(self, **kwargs) -> Opt
if response.status_code not in [200, 204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = None
@@ -297,7 +297,7 @@ async def get200_model201_model_default_error200_valid(self, **kwargs) -> Union[
if response.status_code not in [200, 201]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if response.status_code == 200:
@@ -343,7 +343,7 @@ async def get200_model201_model_default_error201_valid(self, **kwargs) -> Union[
if response.status_code not in [200, 201]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if response.status_code == 200:
@@ -389,7 +389,7 @@ async def get200_model201_model_default_error400_valid(self, **kwargs) -> Union[
if response.status_code not in [200, 201]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if response.status_code == 200:
@@ -437,7 +437,7 @@ async def get200_model_a201_model_c404_model_d_default_error200_valid(
if response.status_code not in [200, 201, 404]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if response.status_code == 200:
@@ -488,7 +488,7 @@ async def get200_model_a201_model_c404_model_d_default_error201_valid(
if response.status_code not in [200, 201, 404]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if response.status_code == 200:
@@ -539,7 +539,7 @@ async def get200_model_a201_model_c404_model_d_default_error404_valid(
if response.status_code not in [200, 201, 404]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if response.status_code == 200:
@@ -590,7 +590,7 @@ async def get200_model_a201_model_c404_model_d_default_error400_valid(
if response.status_code not in [200, 201, 404]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if response.status_code == 200:
@@ -639,7 +639,7 @@ async def get202_none204_none_default_error202_none(self, **kwargs) -> None:
if response.status_code not in [202, 204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -677,7 +677,7 @@ async def get202_none204_none_default_error204_none(self, **kwargs) -> None:
if response.status_code not in [202, 204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -715,7 +715,7 @@ async def get202_none204_none_default_error400_valid(self, **kwargs) -> None:
if response.status_code not in [202, 204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -975,7 +975,7 @@ async def get_default_model_a400_valid(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.MyException, response)
+ error = self._deserialize.failsafe_deserialize(_models.MyException, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1013,7 +1013,7 @@ async def get_default_model_a400_none(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.MyException, response)
+ error = self._deserialize.failsafe_deserialize(_models.MyException, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_client_failure_operations.py b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_client_failure_operations.py
index aa0a9017c7e..6735546478e 100644
--- a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_client_failure_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_client_failure_operations.py
@@ -84,7 +84,7 @@ def head400(
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -125,7 +125,7 @@ def get400(
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -166,7 +166,7 @@ def options400(
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -219,7 +219,7 @@ def put400(
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -272,7 +272,7 @@ def patch400(
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -325,7 +325,7 @@ def post400(
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -378,7 +378,7 @@ def delete400(
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -419,7 +419,7 @@ def head401(
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -460,7 +460,7 @@ def get402(
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -501,7 +501,7 @@ def options403(
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -542,7 +542,7 @@ def get403(
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -595,7 +595,7 @@ def put404(
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -648,7 +648,7 @@ def patch405(
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -701,7 +701,7 @@ def post406(
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -754,7 +754,7 @@ def delete407(
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -807,7 +807,7 @@ def put409(
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -848,7 +848,7 @@ def head410(
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -889,7 +889,7 @@ def get411(
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -930,7 +930,7 @@ def options412(
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -971,7 +971,7 @@ def get412(
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1024,7 +1024,7 @@ def put413(
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1077,7 +1077,7 @@ def patch414(
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1130,7 +1130,7 @@ def post415(
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1171,7 +1171,7 @@ def get416(
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1224,7 +1224,7 @@ def delete417(
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1265,7 +1265,7 @@ def head429(
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_failure_operations.py b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_failure_operations.py
index a1e4efd146e..fb7a5d3bf0b 100644
--- a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_failure_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_failure_operations.py
@@ -84,7 +84,7 @@ def get_empty_error(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("bool", pipeline_response)
diff --git a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_redirects_operations.py b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_redirects_operations.py
index 7c11d95b52b..675ea0130bd 100644
--- a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_redirects_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_redirects_operations.py
@@ -84,7 +84,7 @@ def head300(
if response.status_code not in [200, 300]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -129,7 +129,7 @@ def get300(
if response.status_code not in [200, 300]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -178,7 +178,7 @@ def head301(
if response.status_code not in [200, 301]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -223,7 +223,7 @@ def get301(
if response.status_code not in [200, 301]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -281,7 +281,7 @@ def put301(
if response.status_code not in [301]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -325,7 +325,7 @@ def head302(
if response.status_code not in [200, 302]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -370,7 +370,7 @@ def get302(
if response.status_code not in [200, 302]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -428,7 +428,7 @@ def patch302(
if response.status_code not in [302]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -485,7 +485,7 @@ def post303(
if response.status_code not in [200, 303]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -530,7 +530,7 @@ def head307(
if response.status_code not in [200, 307]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -575,7 +575,7 @@ def get307(
if response.status_code not in [200, 307]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -620,7 +620,7 @@ def options307(
if response.status_code not in [200, 307]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -677,7 +677,7 @@ def put307(
if response.status_code not in [200, 307]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -734,7 +734,7 @@ def patch307(
if response.status_code not in [200, 307]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -791,7 +791,7 @@ def post307(
if response.status_code not in [200, 307]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
@@ -848,7 +848,7 @@ def delete307(
if response.status_code not in [200, 307]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
diff --git a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_retry_operations.py b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_retry_operations.py
index 446ef76f1f0..4ef96ce3d8c 100644
--- a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_retry_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_retry_operations.py
@@ -84,7 +84,7 @@ def head408(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -137,7 +137,7 @@ def put500(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -190,7 +190,7 @@ def patch500(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -231,7 +231,7 @@ def get502(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -272,7 +272,7 @@ def options502(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("bool", pipeline_response)
@@ -329,7 +329,7 @@ def post503(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -382,7 +382,7 @@ def delete503(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -435,7 +435,7 @@ def put504(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -488,7 +488,7 @@ def patch504(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_server_failure_operations.py b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_server_failure_operations.py
index 251b5cca1db..cff601afc80 100644
--- a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_server_failure_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_server_failure_operations.py
@@ -84,7 +84,7 @@ def head501(
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -125,7 +125,7 @@ def get501(
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -178,7 +178,7 @@ def post505(
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -231,7 +231,7 @@ def delete505(
if response.status_code not in []:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_success_operations.py b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_success_operations.py
index c8b2c87e245..6473814aaa1 100644
--- a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_success_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_success_operations.py
@@ -84,7 +84,7 @@ def head200(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -125,7 +125,7 @@ def get200(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("bool", pipeline_response)
@@ -170,7 +170,7 @@ def options200(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("bool", pipeline_response)
@@ -227,7 +227,7 @@ def put200(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -280,7 +280,7 @@ def patch200(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -333,7 +333,7 @@ def post200(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -386,7 +386,7 @@ def delete200(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -439,7 +439,7 @@ def put201(
if response.status_code not in [201]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -492,7 +492,7 @@ def post201(
if response.status_code not in [201]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -545,7 +545,7 @@ def put202(
if response.status_code not in [202]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -598,7 +598,7 @@ def patch202(
if response.status_code not in [202]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -651,7 +651,7 @@ def post202(
if response.status_code not in [202]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -704,7 +704,7 @@ def delete202(
if response.status_code not in [202]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -745,7 +745,7 @@ def head204(
if response.status_code not in [204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -798,7 +798,7 @@ def put204(
if response.status_code not in [204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -851,7 +851,7 @@ def patch204(
if response.status_code not in [204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -904,7 +904,7 @@ def post204(
if response.status_code not in [204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -957,7 +957,7 @@ def delete204(
if response.status_code not in [204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -998,7 +998,7 @@ def head404(
if response.status_code not in [204, 404]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_multiple_responses_operations.py b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_multiple_responses_operations.py
index 3bef40ea88b..4145ace525d 100644
--- a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_multiple_responses_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_multiple_responses_operations.py
@@ -84,7 +84,7 @@ def get200_model204_no_model_default_error200_valid(
if response.status_code not in [200, 204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = None
@@ -131,7 +131,7 @@ def get200_model204_no_model_default_error204_valid(
if response.status_code not in [200, 204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = None
@@ -178,7 +178,7 @@ def get200_model204_no_model_default_error201_invalid(
if response.status_code not in [200, 204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = None
@@ -225,7 +225,7 @@ def get200_model204_no_model_default_error202_none(
if response.status_code not in [200, 204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = None
@@ -272,7 +272,7 @@ def get200_model204_no_model_default_error400_valid(
if response.status_code not in [200, 204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = None
@@ -319,7 +319,7 @@ def get200_model201_model_default_error200_valid(
if response.status_code not in [200, 201]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if response.status_code == 200:
@@ -368,7 +368,7 @@ def get200_model201_model_default_error201_valid(
if response.status_code not in [200, 201]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if response.status_code == 200:
@@ -417,7 +417,7 @@ def get200_model201_model_default_error400_valid(
if response.status_code not in [200, 201]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if response.status_code == 200:
@@ -466,7 +466,7 @@ def get200_model_a201_model_c404_model_d_default_error200_valid(
if response.status_code not in [200, 201, 404]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if response.status_code == 200:
@@ -518,7 +518,7 @@ def get200_model_a201_model_c404_model_d_default_error201_valid(
if response.status_code not in [200, 201, 404]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if response.status_code == 200:
@@ -570,7 +570,7 @@ def get200_model_a201_model_c404_model_d_default_error404_valid(
if response.status_code not in [200, 201, 404]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if response.status_code == 200:
@@ -622,7 +622,7 @@ def get200_model_a201_model_c404_model_d_default_error400_valid(
if response.status_code not in [200, 201, 404]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if response.status_code == 200:
@@ -674,7 +674,7 @@ def get202_none204_none_default_error202_none(
if response.status_code not in [202, 204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -715,7 +715,7 @@ def get202_none204_none_default_error204_none(
if response.status_code not in [202, 204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -756,7 +756,7 @@ def get202_none204_none_default_error400_valid(
if response.status_code not in [202, 204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1037,7 +1037,7 @@ def get_default_model_a400_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.MyException, response)
+ error = self._deserialize.failsafe_deserialize(_models.MyException, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1078,7 +1078,7 @@ def get_default_model_a400_none(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.MyException, response)
+ error = self._deserialize.failsafe_deserialize(_models.MyException, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/Http/setup.py b/test/vanilla/Expected/AcceptanceTests/Http/setup.py
index 7b8fed0d56a..abb6248fad8 100644
--- a/test/vanilla/Expected/AcceptanceTests/Http/setup.py
+++ b/test/vanilla/Expected/AcceptanceTests/Http/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/__init__.py b/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/__init__.py
new file mode 100644
index 00000000000..f0ba65e1fdd
--- /dev/null
+++ b/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/__init__.py
@@ -0,0 +1,20 @@
+# coding=utf-8
+# --------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# --------------------------------------------------------------------------
+
+from ._incorrect_returned_error_model import IncorrectReturnedErrorModel
+from ._version import VERSION
+
+__version__ = VERSION
+__all__ = ["IncorrectReturnedErrorModel"]
+
+try:
+ from ._patch import patch_sdk # type: ignore
+
+ patch_sdk()
+except ImportError:
+ pass
diff --git a/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/_configuration.py b/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/_configuration.py
new file mode 100644
index 00000000000..a5f2e613aa7
--- /dev/null
+++ b/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/_configuration.py
@@ -0,0 +1,49 @@
+# coding=utf-8
+# --------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# --------------------------------------------------------------------------
+
+from typing import TYPE_CHECKING
+
+from azure.core.configuration import Configuration
+from azure.core.pipeline import policies
+
+from ._version import VERSION
+
+if TYPE_CHECKING:
+ # pylint: disable=unused-import,ungrouped-imports
+ from typing import Any
+
+
+class IncorrectReturnedErrorModelConfiguration(Configuration):
+ """Configuration for IncorrectReturnedErrorModel.
+
+ Note that all parameters used to create this instance are saved as instance
+ attributes.
+ """
+
+ def __init__(
+ self, **kwargs # type: Any
+ ):
+ # type: (...) -> None
+ super(IncorrectReturnedErrorModelConfiguration, self).__init__(**kwargs)
+
+ kwargs.setdefault("sdk_moniker", "incorrectreturnederrormodel/{}".format(VERSION))
+ self._configure(**kwargs)
+
+ def _configure(
+ self, **kwargs # type: Any
+ ):
+ # type: (...) -> None
+ self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs)
+ self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs)
+ self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs)
+ self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs)
+ self.http_logging_policy = kwargs.get("http_logging_policy") or policies.HttpLoggingPolicy(**kwargs)
+ self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs)
+ self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs)
+ self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs)
+ self.authentication_policy = kwargs.get("authentication_policy")
diff --git a/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/_incorrect_returned_error_model.py b/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/_incorrect_returned_error_model.py
new file mode 100644
index 00000000000..44c4238b74f
--- /dev/null
+++ b/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/_incorrect_returned_error_model.py
@@ -0,0 +1,56 @@
+# coding=utf-8
+# --------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# --------------------------------------------------------------------------
+
+from typing import TYPE_CHECKING
+
+from azure.core import PipelineClient
+from msrest import Deserializer, Serializer
+
+if TYPE_CHECKING:
+ # pylint: disable=unused-import,ungrouped-imports
+ from typing import Any, Optional
+
+from ._configuration import IncorrectReturnedErrorModelConfiguration
+from .operations import IncorrectReturnedErrorModelOperationsMixin
+from . import models
+
+
+class IncorrectReturnedErrorModel(IncorrectReturnedErrorModelOperationsMixin):
+ """Test to see when throwing an HttpResponseError whether we swallow error model deserialization errors.
+
+ :param str base_url: Service URL
+ """
+
+ def __init__(
+ self,
+ base_url=None, # type: Optional[str]
+ **kwargs # type: Any
+ ):
+ # type: (...) -> None
+ if not base_url:
+ base_url = "http://localhost:3000"
+ self._config = IncorrectReturnedErrorModelConfiguration(**kwargs)
+ self._client = PipelineClient(base_url=base_url, config=self._config, **kwargs)
+
+ client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
+ self._serialize = Serializer(client_models)
+ self._serialize.client_side_validation = False
+ self._deserialize = Deserializer(client_models)
+
+ def close(self):
+ # type: () -> None
+ self._client.close()
+
+ def __enter__(self):
+ # type: () -> IncorrectReturnedErrorModel
+ self._client.__enter__()
+ return self
+
+ def __exit__(self, *exc_details):
+ # type: (Any) -> None
+ self._client.__exit__(*exc_details)
diff --git a/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/_version.py b/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/_version.py
new file mode 100644
index 00000000000..eae7c95b6fb
--- /dev/null
+++ b/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/_version.py
@@ -0,0 +1,9 @@
+# coding=utf-8
+# --------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# --------------------------------------------------------------------------
+
+VERSION = "0.1.0"
diff --git a/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/aio/__init__.py b/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/aio/__init__.py
new file mode 100644
index 00000000000..5c833bf683d
--- /dev/null
+++ b/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/aio/__init__.py
@@ -0,0 +1,11 @@
+# coding=utf-8
+# --------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# --------------------------------------------------------------------------
+
+from ._incorrect_returned_error_model import IncorrectReturnedErrorModel
+
+__all__ = ["IncorrectReturnedErrorModel"]
diff --git a/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/aio/_configuration.py b/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/aio/_configuration.py
new file mode 100644
index 00000000000..556842de3fd
--- /dev/null
+++ b/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/aio/_configuration.py
@@ -0,0 +1,39 @@
+# coding=utf-8
+# --------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# --------------------------------------------------------------------------
+
+from typing import Any
+
+from azure.core.configuration import Configuration
+from azure.core.pipeline import policies
+
+from .._version import VERSION
+
+
+class IncorrectReturnedErrorModelConfiguration(Configuration):
+ """Configuration for IncorrectReturnedErrorModel.
+
+ Note that all parameters used to create this instance are saved as instance
+ attributes.
+ """
+
+ def __init__(self, **kwargs: Any) -> None:
+ super(IncorrectReturnedErrorModelConfiguration, self).__init__(**kwargs)
+
+ kwargs.setdefault("sdk_moniker", "incorrectreturnederrormodel/{}".format(VERSION))
+ self._configure(**kwargs)
+
+ def _configure(self, **kwargs: Any) -> None:
+ self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs)
+ self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs)
+ self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs)
+ self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs)
+ self.http_logging_policy = kwargs.get("http_logging_policy") or policies.HttpLoggingPolicy(**kwargs)
+ self.retry_policy = kwargs.get("retry_policy") or policies.AsyncRetryPolicy(**kwargs)
+ self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs)
+ self.redirect_policy = kwargs.get("redirect_policy") or policies.AsyncRedirectPolicy(**kwargs)
+ self.authentication_policy = kwargs.get("authentication_policy")
diff --git a/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/aio/_incorrect_returned_error_model.py b/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/aio/_incorrect_returned_error_model.py
new file mode 100644
index 00000000000..502a3dc77b9
--- /dev/null
+++ b/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/aio/_incorrect_returned_error_model.py
@@ -0,0 +1,44 @@
+# coding=utf-8
+# --------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# --------------------------------------------------------------------------
+
+from typing import Any, Optional
+
+from azure.core import AsyncPipelineClient
+from msrest import Deserializer, Serializer
+
+from ._configuration import IncorrectReturnedErrorModelConfiguration
+from .operations import IncorrectReturnedErrorModelOperationsMixin
+from .. import models
+
+
+class IncorrectReturnedErrorModel(IncorrectReturnedErrorModelOperationsMixin):
+ """Test to see when throwing an HttpResponseError whether we swallow error model deserialization errors.
+
+ :param str base_url: Service URL
+ """
+
+ def __init__(self, base_url: Optional[str] = None, **kwargs: Any) -> None:
+ if not base_url:
+ base_url = "http://localhost:3000"
+ self._config = IncorrectReturnedErrorModelConfiguration(**kwargs)
+ self._client = AsyncPipelineClient(base_url=base_url, config=self._config, **kwargs)
+
+ client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
+ self._serialize = Serializer(client_models)
+ self._serialize.client_side_validation = False
+ self._deserialize = Deserializer(client_models)
+
+ async def close(self) -> None:
+ await self._client.close()
+
+ async def __aenter__(self) -> "IncorrectReturnedErrorModel":
+ await self._client.__aenter__()
+ return self
+
+ async def __aexit__(self, *exc_details) -> None:
+ await self._client.__aexit__(*exc_details)
diff --git a/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/aio/operations/__init__.py b/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/aio/operations/__init__.py
new file mode 100644
index 00000000000..7587d755352
--- /dev/null
+++ b/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/aio/operations/__init__.py
@@ -0,0 +1,13 @@
+# coding=utf-8
+# --------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# --------------------------------------------------------------------------
+
+from ._incorrect_returned_error_model_operations import IncorrectReturnedErrorModelOperationsMixin
+
+__all__ = [
+ "IncorrectReturnedErrorModelOperationsMixin",
+]
diff --git a/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/aio/operations/_incorrect_returned_error_model_operations.py b/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/aio/operations/_incorrect_returned_error_model_operations.py
new file mode 100644
index 00000000000..fdea6d78246
--- /dev/null
+++ b/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/aio/operations/_incorrect_returned_error_model_operations.py
@@ -0,0 +1,63 @@
+# coding=utf-8
+# --------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# --------------------------------------------------------------------------
+from typing import Any, Callable, Dict, Generic, Optional, TypeVar
+import warnings
+
+from azure.core.exceptions import (
+ ClientAuthenticationError,
+ HttpResponseError,
+ ResourceExistsError,
+ ResourceNotFoundError,
+ map_error,
+)
+from azure.core.pipeline import PipelineResponse
+from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest
+from azure.core.tracing.decorator_async import distributed_trace_async
+
+from ... import models as _models
+
+T = TypeVar("T")
+ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
+
+
+class IncorrectReturnedErrorModelOperationsMixin:
+ @distributed_trace_async
+ async def get_incorrect_error_from_server(self, **kwargs) -> None:
+ """Get an error response from the server that is not as described in our Error object. Want to
+ swallow the deserialization error and still return an HttpResponseError to the users.
+
+ :keyword callable cls: A custom type or function that will be passed the direct response
+ :return: None, or the result of cls(response)
+ :rtype: None
+ :raises: ~azure.core.exceptions.HttpResponseError
+ """
+ cls = kwargs.pop("cls", None) # type: ClsType[None]
+ error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
+ error_map.update(kwargs.pop("error_map", {}))
+
+ # Construct URL
+ url = self.get_incorrect_error_from_server.metadata["url"] # type: ignore
+
+ # Construct parameters
+ query_parameters = {} # type: Dict[str, Any]
+
+ # Construct headers
+ header_parameters = {} # type: Dict[str, Any]
+
+ request = self._client.get(url, query_parameters, header_parameters)
+ pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs)
+ response = pipeline_response.http_response
+
+ if response.status_code not in [200]:
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
+ raise HttpResponseError(response=response)
+
+ if cls:
+ return cls(pipeline_response, None, {})
+
+ get_incorrect_error_from_server.metadata = {"url": "/incorrectError"} # type: ignore
diff --git a/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/models/__init__.py b/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/models/__init__.py
new file mode 100644
index 00000000000..424e7043f8b
--- /dev/null
+++ b/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/models/__init__.py
@@ -0,0 +1,16 @@
+# coding=utf-8
+# --------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# --------------------------------------------------------------------------
+
+try:
+ from ._models_py3 import Error
+except (SyntaxError, ImportError):
+ from ._models import Error # type: ignore
+
+__all__ = [
+ "Error",
+]
diff --git a/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/models/_models.py b/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/models/_models.py
new file mode 100644
index 00000000000..e225c73d497
--- /dev/null
+++ b/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/models/_models.py
@@ -0,0 +1,29 @@
+# coding=utf-8
+# --------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# --------------------------------------------------------------------------
+
+import msrest.serialization
+
+
+class Error(msrest.serialization.Model):
+ """Error.
+
+ :param status:
+ :type status: int
+ :param message:
+ :type message: str
+ """
+
+ _attribute_map = {
+ "status": {"key": "status", "type": "int"},
+ "message": {"key": "message", "type": "str"},
+ }
+
+ def __init__(self, **kwargs):
+ super(Error, self).__init__(**kwargs)
+ self.status = kwargs.get("status", None)
+ self.message = kwargs.get("message", None)
diff --git a/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/models/_models_py3.py b/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/models/_models_py3.py
new file mode 100644
index 00000000000..b18834bff48
--- /dev/null
+++ b/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/models/_models_py3.py
@@ -0,0 +1,31 @@
+# coding=utf-8
+# --------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# --------------------------------------------------------------------------
+
+from typing import Optional
+
+import msrest.serialization
+
+
+class Error(msrest.serialization.Model):
+ """Error.
+
+ :param status:
+ :type status: int
+ :param message:
+ :type message: str
+ """
+
+ _attribute_map = {
+ "status": {"key": "status", "type": "int"},
+ "message": {"key": "message", "type": "str"},
+ }
+
+ def __init__(self, *, status: Optional[int] = None, message: Optional[str] = None, **kwargs):
+ super(Error, self).__init__(**kwargs)
+ self.status = status
+ self.message = message
diff --git a/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/operations/__init__.py b/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/operations/__init__.py
new file mode 100644
index 00000000000..7587d755352
--- /dev/null
+++ b/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/operations/__init__.py
@@ -0,0 +1,13 @@
+# coding=utf-8
+# --------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# --------------------------------------------------------------------------
+
+from ._incorrect_returned_error_model_operations import IncorrectReturnedErrorModelOperationsMixin
+
+__all__ = [
+ "IncorrectReturnedErrorModelOperationsMixin",
+]
diff --git a/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/operations/_incorrect_returned_error_model_operations.py b/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/operations/_incorrect_returned_error_model_operations.py
new file mode 100644
index 00000000000..519e223a798
--- /dev/null
+++ b/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/operations/_incorrect_returned_error_model_operations.py
@@ -0,0 +1,70 @@
+# coding=utf-8
+# --------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# --------------------------------------------------------------------------
+from typing import TYPE_CHECKING
+import warnings
+
+from azure.core.exceptions import (
+ ClientAuthenticationError,
+ HttpResponseError,
+ ResourceExistsError,
+ ResourceNotFoundError,
+ map_error,
+)
+from azure.core.pipeline import PipelineResponse
+from azure.core.pipeline.transport import HttpRequest, HttpResponse
+from azure.core.tracing.decorator import distributed_trace
+
+from .. import models as _models
+
+if TYPE_CHECKING:
+ # pylint: disable=unused-import,ungrouped-imports
+ from typing import Any, Callable, Dict, Generic, Optional, TypeVar
+
+ T = TypeVar("T")
+ ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
+
+
+class IncorrectReturnedErrorModelOperationsMixin(object):
+ @distributed_trace
+ def get_incorrect_error_from_server(
+ self, **kwargs # type: Any
+ ):
+ # type: (...) -> None
+ """Get an error response from the server that is not as described in our Error object. Want to
+ swallow the deserialization error and still return an HttpResponseError to the users.
+
+ :keyword callable cls: A custom type or function that will be passed the direct response
+ :return: None, or the result of cls(response)
+ :rtype: None
+ :raises: ~azure.core.exceptions.HttpResponseError
+ """
+ cls = kwargs.pop("cls", None) # type: ClsType[None]
+ error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
+ error_map.update(kwargs.pop("error_map", {}))
+
+ # Construct URL
+ url = self.get_incorrect_error_from_server.metadata["url"] # type: ignore
+
+ # Construct parameters
+ query_parameters = {} # type: Dict[str, Any]
+
+ # Construct headers
+ header_parameters = {} # type: Dict[str, Any]
+
+ request = self._client.get(url, query_parameters, header_parameters)
+ pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
+ response = pipeline_response.http_response
+
+ if response.status_code not in [200]:
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
+ raise HttpResponseError(response=response)
+
+ if cls:
+ return cls(pipeline_response, None, {})
+
+ get_incorrect_error_from_server.metadata = {"url": "/incorrectError"} # type: ignore
diff --git a/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/py.typed b/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/py.typed
new file mode 100644
index 00000000000..e5aff4f83af
--- /dev/null
+++ b/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/py.typed
@@ -0,0 +1 @@
+# Marker file for PEP 561.
\ No newline at end of file
diff --git a/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/setup.py b/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/setup.py
new file mode 100644
index 00000000000..ba4b91b8546
--- /dev/null
+++ b/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/setup.py
@@ -0,0 +1,37 @@
+# coding=utf-8
+# --------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# --------------------------------------------------------------------------
+# coding: utf-8
+
+from setuptools import setup, find_packages
+
+NAME = "incorrectreturnederrormodel"
+VERSION = "0.1.0"
+
+# To install the library, run the following
+#
+# python setup.py install
+#
+# prerequisite: setuptools
+# http://pypi.python.org/pypi/setuptools
+
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
+
+setup(
+ name=NAME,
+ version=VERSION,
+ description="IncorrectReturnedErrorModel",
+ author_email="",
+ url="",
+ keywords=["Swagger", "IncorrectReturnedErrorModel"],
+ install_requires=REQUIRES,
+ packages=find_packages(),
+ include_package_data=True,
+ long_description="""\
+ Test to see when throwing an HttpResponseError whether we swallow error model deserialization errors.
+ """,
+)
diff --git a/test/vanilla/Expected/AcceptanceTests/MediaTypes/setup.py b/test/vanilla/Expected/AcceptanceTests/MediaTypes/setup.py
index 180545d4196..2589338b2b5 100644
--- a/test/vanilla/Expected/AcceptanceTests/MediaTypes/setup.py
+++ b/test/vanilla/Expected/AcceptanceTests/MediaTypes/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/vanilla/Expected/AcceptanceTests/ModelFlattening/modelflattening/aio/operations/_auto_rest_resource_flattening_test_service_operations.py b/test/vanilla/Expected/AcceptanceTests/ModelFlattening/modelflattening/aio/operations/_auto_rest_resource_flattening_test_service_operations.py
index 57fbdd21d5c..856c72fcde2 100644
--- a/test/vanilla/Expected/AcceptanceTests/ModelFlattening/modelflattening/aio/operations/_auto_rest_resource_flattening_test_service_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/ModelFlattening/modelflattening/aio/operations/_auto_rest_resource_flattening_test_service_operations.py
@@ -66,7 +66,7 @@ async def put_array(self, resource_array: Optional[List["_models.Resource"]] = N
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -104,7 +104,7 @@ async def get_array(self, **kwargs) -> List["_models.FlattenedProduct"]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[FlattenedProduct]", pipeline_response)
@@ -159,7 +159,7 @@ async def put_wrapped_array(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -198,7 +198,7 @@ async def get_wrapped_array(self, **kwargs) -> List["_models.ProductWrapper"]:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[ProductWrapper]", pipeline_response)
@@ -252,7 +252,7 @@ async def put_dictionary(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -290,7 +290,7 @@ async def get_dictionary(self, **kwargs) -> Dict[str, "_models.FlattenedProduct"
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{FlattenedProduct}", pipeline_response)
@@ -344,7 +344,7 @@ async def put_resource_collection(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -382,7 +382,7 @@ async def get_resource_collection(self, **kwargs) -> "_models.ResourceCollection
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("ResourceCollection", pipeline_response)
@@ -436,7 +436,7 @@ async def put_simple_product(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("SimpleProduct", pipeline_response)
@@ -514,7 +514,7 @@ async def post_flattened_simple_product(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("SimpleProduct", pipeline_response)
@@ -596,7 +596,7 @@ async def put_simple_product_with_grouping(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("SimpleProduct", pipeline_response)
diff --git a/test/vanilla/Expected/AcceptanceTests/ModelFlattening/modelflattening/operations/_auto_rest_resource_flattening_test_service_operations.py b/test/vanilla/Expected/AcceptanceTests/ModelFlattening/modelflattening/operations/_auto_rest_resource_flattening_test_service_operations.py
index 00153500482..f436b289615 100644
--- a/test/vanilla/Expected/AcceptanceTests/ModelFlattening/modelflattening/operations/_auto_rest_resource_flattening_test_service_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/ModelFlattening/modelflattening/operations/_auto_rest_resource_flattening_test_service_operations.py
@@ -75,7 +75,7 @@ def put_array(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -116,7 +116,7 @@ def get_array(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[FlattenedProduct]", pipeline_response)
@@ -174,7 +174,7 @@ def put_wrapped_array(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -216,7 +216,7 @@ def get_wrapped_array(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("[ProductWrapper]", pipeline_response)
@@ -273,7 +273,7 @@ def put_dictionary(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -314,7 +314,7 @@ def get_dictionary(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{FlattenedProduct}", pipeline_response)
@@ -371,7 +371,7 @@ def put_resource_collection(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -412,7 +412,7 @@ def get_resource_collection(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("ResourceCollection", pipeline_response)
@@ -469,7 +469,7 @@ def put_simple_product(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("SimpleProduct", pipeline_response)
@@ -548,7 +548,7 @@ def post_flattened_simple_product(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("SimpleProduct", pipeline_response)
@@ -633,7 +633,7 @@ def put_simple_product_with_grouping(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("SimpleProduct", pipeline_response)
diff --git a/test/vanilla/Expected/AcceptanceTests/ModelFlattening/setup.py b/test/vanilla/Expected/AcceptanceTests/ModelFlattening/setup.py
index b8f7ba0dc35..f050667ec9f 100644
--- a/test/vanilla/Expected/AcceptanceTests/ModelFlattening/setup.py
+++ b/test/vanilla/Expected/AcceptanceTests/ModelFlattening/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/operations/_multiple_inheritance_service_client_operations.py b/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/operations/_multiple_inheritance_service_client_operations.py
index a6605f99192..9a27ebdf79f 100644
--- a/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/operations/_multiple_inheritance_service_client_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/operations/_multiple_inheritance_service_client_operations.py
@@ -56,7 +56,7 @@ async def get_horse(self, **kwargs) -> "_models.Horse":
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("Horse", pipeline_response)
@@ -146,7 +146,7 @@ async def get_pet(self, **kwargs) -> "_models.Pet":
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("Pet", pipeline_response)
@@ -238,7 +238,7 @@ async def get_feline(self, **kwargs) -> "_models.Feline":
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("Feline", pipeline_response)
@@ -328,7 +328,7 @@ async def get_cat(self, **kwargs) -> "_models.Cat":
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("Cat", pipeline_response)
@@ -419,7 +419,7 @@ async def get_kitten(self, **kwargs) -> "_models.Kitten":
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("Kitten", pipeline_response)
diff --git a/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/operations/_multiple_inheritance_service_client_operations.py b/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/operations/_multiple_inheritance_service_client_operations.py
index 773abe04b56..6817eba5dec 100644
--- a/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/operations/_multiple_inheritance_service_client_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/operations/_multiple_inheritance_service_client_operations.py
@@ -63,7 +63,7 @@ def get_horse(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("Horse", pipeline_response)
@@ -161,7 +161,7 @@ def get_pet(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("Pet", pipeline_response)
@@ -261,7 +261,7 @@ def get_feline(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("Feline", pipeline_response)
@@ -359,7 +359,7 @@ def get_cat(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("Cat", pipeline_response)
@@ -458,7 +458,7 @@ def get_kitten(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("Kitten", pipeline_response)
diff --git a/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/setup.py b/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/setup.py
index 0a035e8febf..7f6f7552e25 100644
--- a/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/setup.py
+++ b/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/vanilla/Expected/AcceptanceTests/NoOperations/setup.py b/test/vanilla/Expected/AcceptanceTests/NoOperations/setup.py
index b6e2077f092..67c6446168c 100644
--- a/test/vanilla/Expected/AcceptanceTests/NoOperations/setup.py
+++ b/test/vanilla/Expected/AcceptanceTests/NoOperations/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/vanilla/Expected/AcceptanceTests/NonStringEnums/setup.py b/test/vanilla/Expected/AcceptanceTests/NonStringEnums/setup.py
index 8e974f00c07..f96bd5f1eff 100644
--- a/test/vanilla/Expected/AcceptanceTests/NonStringEnums/setup.py
+++ b/test/vanilla/Expected/AcceptanceTests/NonStringEnums/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/vanilla/Expected/AcceptanceTests/ObjectType/objecttype/aio/operations/_object_type_client_operations.py b/test/vanilla/Expected/AcceptanceTests/ObjectType/objecttype/aio/operations/_object_type_client_operations.py
index 5ce11f8daec..789917000ad 100644
--- a/test/vanilla/Expected/AcceptanceTests/ObjectType/objecttype/aio/operations/_object_type_client_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/ObjectType/objecttype/aio/operations/_object_type_client_operations.py
@@ -55,7 +55,7 @@ async def get(self, **kwargs) -> object:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize("object", response)
+ error = self._deserialize.failsafe_deserialize("object", response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("object", pipeline_response)
@@ -105,7 +105,7 @@ async def put(self, put_object: object, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize("object", response)
+ error = self._deserialize.failsafe_deserialize("object", response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/ObjectType/objecttype/operations/_object_type_client_operations.py b/test/vanilla/Expected/AcceptanceTests/ObjectType/objecttype/operations/_object_type_client_operations.py
index 1147bdb23ca..88eb0d2a785 100644
--- a/test/vanilla/Expected/AcceptanceTests/ObjectType/objecttype/operations/_object_type_client_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/ObjectType/objecttype/operations/_object_type_client_operations.py
@@ -62,7 +62,7 @@ def get(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize("object", response)
+ error = self._deserialize.failsafe_deserialize("object", response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("object", pipeline_response)
@@ -117,7 +117,7 @@ def put(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize("object", response)
+ error = self._deserialize.failsafe_deserialize("object", response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/ObjectType/setup.py b/test/vanilla/Expected/AcceptanceTests/ObjectType/setup.py
index 16f79fec636..a72ce9055ca 100644
--- a/test/vanilla/Expected/AcceptanceTests/ObjectType/setup.py
+++ b/test/vanilla/Expected/AcceptanceTests/ObjectType/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/vanilla/Expected/AcceptanceTests/ParameterFlattening/setup.py b/test/vanilla/Expected/AcceptanceTests/ParameterFlattening/setup.py
index 0225625ac84..70b6f3f5d2b 100644
--- a/test/vanilla/Expected/AcceptanceTests/ParameterFlattening/setup.py
+++ b/test/vanilla/Expected/AcceptanceTests/ParameterFlattening/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/vanilla/Expected/AcceptanceTests/Report/report/aio/operations/_auto_rest_report_service_operations.py b/test/vanilla/Expected/AcceptanceTests/Report/report/aio/operations/_auto_rest_report_service_operations.py
index 459d9126bca..b8f5fb347eb 100644
--- a/test/vanilla/Expected/AcceptanceTests/Report/report/aio/operations/_auto_rest_report_service_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/Report/report/aio/operations/_auto_rest_report_service_operations.py
@@ -62,7 +62,7 @@ async def get_report(self, qualifier: Optional[str] = None, **kwargs) -> Dict[st
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{int}", pipeline_response)
@@ -110,7 +110,7 @@ async def get_optional_report(self, qualifier: Optional[str] = None, **kwargs) -
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{int}", pipeline_response)
diff --git a/test/vanilla/Expected/AcceptanceTests/Report/report/operations/_auto_rest_report_service_operations.py b/test/vanilla/Expected/AcceptanceTests/Report/report/operations/_auto_rest_report_service_operations.py
index 7f8d501ebb7..755ae7b9192 100644
--- a/test/vanilla/Expected/AcceptanceTests/Report/report/operations/_auto_rest_report_service_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/Report/report/operations/_auto_rest_report_service_operations.py
@@ -71,7 +71,7 @@ def get_report(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{int}", pipeline_response)
@@ -124,7 +124,7 @@ def get_optional_report(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("{int}", pipeline_response)
diff --git a/test/vanilla/Expected/AcceptanceTests/Report/setup.py b/test/vanilla/Expected/AcceptanceTests/Report/setup.py
index b7ff20a0bb6..fa742b73373 100644
--- a/test/vanilla/Expected/AcceptanceTests/Report/setup.py
+++ b/test/vanilla/Expected/AcceptanceTests/Report/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/operations/_explicit_operations.py b/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/operations/_explicit_operations.py
index aea38917f97..96cb1806f86 100644
--- a/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/operations/_explicit_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/operations/_explicit_operations.py
@@ -85,7 +85,7 @@ async def post_required_integer_parameter(self, body_parameter: int, **kwargs) -
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -133,7 +133,7 @@ async def post_optional_integer_parameter(self, body_parameter: Optional[int] =
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -181,7 +181,7 @@ async def post_required_integer_property(self, value: int, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -231,7 +231,7 @@ async def post_optional_integer_property(self, value: Optional[int] = None, **kw
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -273,7 +273,7 @@ async def post_required_integer_header(self, header_parameter: int, **kwargs) ->
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -315,7 +315,7 @@ async def post_optional_integer_header(self, header_parameter: Optional[int] = N
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -361,7 +361,7 @@ async def post_required_string_parameter(self, body_parameter: str, **kwargs) ->
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -409,7 +409,7 @@ async def post_optional_string_parameter(self, body_parameter: Optional[str] = N
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -457,7 +457,7 @@ async def post_required_string_property(self, value: str, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -507,7 +507,7 @@ async def post_optional_string_property(self, value: Optional[str] = None, **kwa
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -549,7 +549,7 @@ async def post_required_string_header(self, header_parameter: str, **kwargs) ->
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -591,7 +591,7 @@ async def post_optional_string_header(self, body_parameter: Optional[str] = None
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -637,7 +637,7 @@ async def post_required_class_parameter(self, body_parameter: "_models.Product",
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -685,7 +685,7 @@ async def post_optional_class_parameter(self, body_parameter: Optional["_models.
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -733,7 +733,7 @@ async def post_required_class_property(self, value: "_models.Product", **kwargs)
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -783,7 +783,7 @@ async def post_optional_class_property(self, value: Optional["_models.Product"]
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -829,7 +829,7 @@ async def post_required_array_parameter(self, body_parameter: List[str], **kwarg
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -877,7 +877,7 @@ async def post_optional_array_parameter(self, body_parameter: Optional[List[str]
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -925,7 +925,7 @@ async def post_required_array_property(self, value: List[str], **kwargs) -> None
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -975,7 +975,7 @@ async def post_optional_array_property(self, value: Optional[List[str]] = None,
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1019,7 +1019,7 @@ async def post_required_array_header(self, header_parameter: List[str], **kwargs
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1063,7 +1063,7 @@ async def post_optional_array_header(self, header_parameter: Optional[List[str]]
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/operations/_implicit_operations.py b/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/operations/_implicit_operations.py
index 184f0bcf293..b3a1d60c090 100644
--- a/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/operations/_implicit_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/operations/_implicit_operations.py
@@ -83,7 +83,7 @@ async def get_required_path(self, path_parameter: str, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -125,7 +125,7 @@ async def put_optional_query(self, query_parameter: Optional[str] = None, **kwar
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -167,7 +167,7 @@ async def put_optional_header(self, query_parameter: Optional[str] = None, **kwa
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -215,7 +215,7 @@ async def put_optional_body(self, body_parameter: Optional[str] = None, **kwargs
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -259,7 +259,7 @@ async def get_required_global_path(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -300,7 +300,7 @@ async def get_required_global_query(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -342,7 +342,7 @@ async def get_optional_global_query(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/operations/_explicit_operations.py b/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/operations/_explicit_operations.py
index 575534278b1..23542cae9ab 100644
--- a/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/operations/_explicit_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/operations/_explicit_operations.py
@@ -94,7 +94,7 @@ def post_required_integer_parameter(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -147,7 +147,7 @@ def post_optional_integer_parameter(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -200,7 +200,7 @@ def post_required_integer_property(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -255,7 +255,7 @@ def post_optional_integer_property(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -302,7 +302,7 @@ def post_required_integer_header(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -349,7 +349,7 @@ def post_optional_integer_header(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -400,7 +400,7 @@ def post_required_string_parameter(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -453,7 +453,7 @@ def post_optional_string_parameter(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -506,7 +506,7 @@ def post_required_string_property(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -561,7 +561,7 @@ def post_optional_string_property(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -608,7 +608,7 @@ def post_required_string_header(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -655,7 +655,7 @@ def post_optional_string_header(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -706,7 +706,7 @@ def post_required_class_parameter(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -759,7 +759,7 @@ def post_optional_class_parameter(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -812,7 +812,7 @@ def post_required_class_property(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -867,7 +867,7 @@ def post_optional_class_property(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -918,7 +918,7 @@ def post_required_array_parameter(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -971,7 +971,7 @@ def post_optional_array_parameter(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1024,7 +1024,7 @@ def post_required_array_property(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1079,7 +1079,7 @@ def post_optional_array_property(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1128,7 +1128,7 @@ def post_required_array_header(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1177,7 +1177,7 @@ def post_optional_array_header(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/operations/_implicit_operations.py b/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/operations/_implicit_operations.py
index aec08127956..3b309501a57 100644
--- a/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/operations/_implicit_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/operations/_implicit_operations.py
@@ -92,7 +92,7 @@ def get_required_path(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -139,7 +139,7 @@ def put_optional_query(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -186,7 +186,7 @@ def put_optional_header(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -239,7 +239,7 @@ def put_optional_body(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -286,7 +286,7 @@ def get_required_global_path(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -330,7 +330,7 @@ def get_required_global_query(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -375,7 +375,7 @@ def get_optional_global_query(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/RequiredOptional/setup.py b/test/vanilla/Expected/AcceptanceTests/RequiredOptional/setup.py
index 681eb6d6611..aa9c7153540 100644
--- a/test/vanilla/Expected/AcceptanceTests/RequiredOptional/setup.py
+++ b/test/vanilla/Expected/AcceptanceTests/RequiredOptional/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/vanilla/Expected/AcceptanceTests/Url/setup.py b/test/vanilla/Expected/AcceptanceTests/Url/setup.py
index 2d7f2d4ef20..7ee4a52370b 100644
--- a/test/vanilla/Expected/AcceptanceTests/Url/setup.py
+++ b/test/vanilla/Expected/AcceptanceTests/Url/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/vanilla/Expected/AcceptanceTests/Url/url/aio/operations/_path_items_operations.py b/test/vanilla/Expected/AcceptanceTests/Url/url/aio/operations/_path_items_operations.py
index 5a841fee450..b9a1e92f471 100644
--- a/test/vanilla/Expected/AcceptanceTests/Url/url/aio/operations/_path_items_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/Url/url/aio/operations/_path_items_operations.py
@@ -115,7 +115,7 @@ async def get_all_with_values(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -191,7 +191,7 @@ async def get_global_query_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -267,7 +267,7 @@ async def get_global_and_local_query_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -342,7 +342,7 @@ async def get_local_path_item_query_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/Url/url/aio/operations/_paths_operations.py b/test/vanilla/Expected/AcceptanceTests/Url/url/aio/operations/_paths_operations.py
index 512b98de7c1..752fc65108e 100644
--- a/test/vanilla/Expected/AcceptanceTests/Url/url/aio/operations/_paths_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/Url/url/aio/operations/_paths_operations.py
@@ -83,7 +83,7 @@ async def get_boolean_true(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -126,7 +126,7 @@ async def get_boolean_false(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -169,7 +169,7 @@ async def get_int_one_million(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -212,7 +212,7 @@ async def get_int_negative_one_million(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -255,7 +255,7 @@ async def get_ten_billion(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -298,7 +298,7 @@ async def get_negative_ten_billion(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -341,7 +341,7 @@ async def float_scientific_positive(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -384,7 +384,7 @@ async def float_scientific_negative(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -427,7 +427,7 @@ async def double_decimal_positive(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -470,7 +470,7 @@ async def double_decimal_negative(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -513,7 +513,7 @@ async def string_unicode(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -556,7 +556,7 @@ async def string_url_encoded(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -601,7 +601,7 @@ async def string_url_non_encoded(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -644,7 +644,7 @@ async def string_empty(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -688,7 +688,7 @@ async def string_null(self, string_path: str, **kwargs) -> None:
if response.status_code not in [400]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -732,7 +732,7 @@ async def enum_valid(self, enum_path: Union[str, "_models.UriColor"], **kwargs)
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -776,7 +776,7 @@ async def enum_null(self, enum_path: Union[str, "_models.UriColor"], **kwargs) -
if response.status_code not in [400]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -820,7 +820,7 @@ async def byte_multi_byte(self, byte_path: bytearray, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -863,7 +863,7 @@ async def byte_empty(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -907,7 +907,7 @@ async def byte_null(self, byte_path: bytearray, **kwargs) -> None:
if response.status_code not in [400]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -950,7 +950,7 @@ async def date_valid(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -995,7 +995,7 @@ async def date_null(self, date_path: datetime.date, **kwargs) -> None:
if response.status_code not in [400]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1038,7 +1038,7 @@ async def date_time_valid(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1082,7 +1082,7 @@ async def date_time_null(self, date_time_path: datetime.datetime, **kwargs) -> N
if response.status_code not in [400]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1126,7 +1126,7 @@ async def base64_url(self, base64_url_path: bytes, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1172,7 +1172,7 @@ async def array_csv_in_path(self, array_path: List[str], **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1216,7 +1216,7 @@ async def unix_time_url(self, unix_time_url_path: datetime.datetime, **kwargs) -
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/Url/url/aio/operations/_queries_operations.py b/test/vanilla/Expected/AcceptanceTests/Url/url/aio/operations/_queries_operations.py
index 69510961f72..6a24b7cefdd 100644
--- a/test/vanilla/Expected/AcceptanceTests/Url/url/aio/operations/_queries_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/Url/url/aio/operations/_queries_operations.py
@@ -80,7 +80,7 @@ async def get_boolean_true(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -120,7 +120,7 @@ async def get_boolean_false(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -162,7 +162,7 @@ async def get_boolean_null(self, bool_query: Optional[bool] = None, **kwargs) ->
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -202,7 +202,7 @@ async def get_int_one_million(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -242,7 +242,7 @@ async def get_int_negative_one_million(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -284,7 +284,7 @@ async def get_int_null(self, int_query: Optional[int] = None, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -324,7 +324,7 @@ async def get_ten_billion(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -364,7 +364,7 @@ async def get_negative_ten_billion(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -406,7 +406,7 @@ async def get_long_null(self, long_query: Optional[int] = None, **kwargs) -> Non
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -446,7 +446,7 @@ async def float_scientific_positive(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -486,7 +486,7 @@ async def float_scientific_negative(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -528,7 +528,7 @@ async def float_null(self, float_query: Optional[float] = None, **kwargs) -> Non
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -568,7 +568,7 @@ async def double_decimal_positive(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -608,7 +608,7 @@ async def double_decimal_negative(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -650,7 +650,7 @@ async def double_null(self, double_query: Optional[float] = None, **kwargs) -> N
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -690,7 +690,7 @@ async def string_unicode(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -730,7 +730,7 @@ async def string_url_encoded(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -770,7 +770,7 @@ async def string_empty(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -812,7 +812,7 @@ async def string_null(self, string_query: Optional[str] = None, **kwargs) -> Non
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -854,7 +854,7 @@ async def enum_valid(self, enum_query: Optional[Union[str, "_models.UriColor"]]
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -896,7 +896,7 @@ async def enum_null(self, enum_query: Optional[Union[str, "_models.UriColor"]] =
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -938,7 +938,7 @@ async def byte_multi_byte(self, byte_query: Optional[bytearray] = None, **kwargs
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -978,7 +978,7 @@ async def byte_empty(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1020,7 +1020,7 @@ async def byte_null(self, byte_query: Optional[bytearray] = None, **kwargs) -> N
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1060,7 +1060,7 @@ async def date_valid(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1102,7 +1102,7 @@ async def date_null(self, date_query: Optional[datetime.date] = None, **kwargs)
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1142,7 +1142,7 @@ async def date_time_valid(self, **kwargs) -> None:
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1184,7 +1184,7 @@ async def date_time_null(self, date_time_query: Optional[datetime.datetime] = No
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1228,7 +1228,7 @@ async def array_string_csv_valid(self, array_query: Optional[List[str]] = None,
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1270,7 +1270,7 @@ async def array_string_csv_null(self, array_query: Optional[List[str]] = None, *
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1312,7 +1312,7 @@ async def array_string_csv_empty(self, array_query: Optional[List[str]] = None,
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1355,7 +1355,7 @@ async def array_string_no_collection_format_empty(self, array_query: Optional[Li
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1399,7 +1399,7 @@ async def array_string_ssv_valid(self, array_query: Optional[List[str]] = None,
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1443,7 +1443,7 @@ async def array_string_tsv_valid(self, array_query: Optional[List[str]] = None,
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1487,7 +1487,7 @@ async def array_string_pipes_valid(self, array_query: Optional[List[str]] = None
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/Url/url/operations/_path_items_operations.py b/test/vanilla/Expected/AcceptanceTests/Url/url/operations/_path_items_operations.py
index 70e40ba6337..0602471254d 100644
--- a/test/vanilla/Expected/AcceptanceTests/Url/url/operations/_path_items_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/Url/url/operations/_path_items_operations.py
@@ -120,7 +120,7 @@ def get_all_with_values(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -197,7 +197,7 @@ def get_global_query_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -274,7 +274,7 @@ def get_global_and_local_query_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -350,7 +350,7 @@ def get_local_path_item_query_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/Url/url/operations/_paths_operations.py b/test/vanilla/Expected/AcceptanceTests/Url/url/operations/_paths_operations.py
index 67b72dc202c..7cab7bb9398 100644
--- a/test/vanilla/Expected/AcceptanceTests/Url/url/operations/_paths_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/Url/url/operations/_paths_operations.py
@@ -90,7 +90,7 @@ def get_boolean_true(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -136,7 +136,7 @@ def get_boolean_false(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -182,7 +182,7 @@ def get_int_one_million(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -228,7 +228,7 @@ def get_int_negative_one_million(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -274,7 +274,7 @@ def get_ten_billion(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -320,7 +320,7 @@ def get_negative_ten_billion(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -366,7 +366,7 @@ def float_scientific_positive(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -412,7 +412,7 @@ def float_scientific_negative(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -458,7 +458,7 @@ def double_decimal_positive(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -504,7 +504,7 @@ def double_decimal_negative(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -550,7 +550,7 @@ def string_unicode(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -596,7 +596,7 @@ def string_url_encoded(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -644,7 +644,7 @@ def string_url_non_encoded(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -690,7 +690,7 @@ def string_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -739,7 +739,7 @@ def string_null(
if response.status_code not in [400]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -788,7 +788,7 @@ def enum_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -837,7 +837,7 @@ def enum_null(
if response.status_code not in [400]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -886,7 +886,7 @@ def byte_multi_byte(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -932,7 +932,7 @@ def byte_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -981,7 +981,7 @@ def byte_null(
if response.status_code not in [400]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1027,7 +1027,7 @@ def date_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1077,7 +1077,7 @@ def date_null(
if response.status_code not in [400]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1123,7 +1123,7 @@ def date_time_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1172,7 +1172,7 @@ def date_time_null(
if response.status_code not in [400]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1221,7 +1221,7 @@ def base64_url(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1272,7 +1272,7 @@ def array_csv_in_path(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1321,7 +1321,7 @@ def unix_time_url(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/Url/url/operations/_queries_operations.py b/test/vanilla/Expected/AcceptanceTests/Url/url/operations/_queries_operations.py
index b4828310b25..91f80c5fba0 100644
--- a/test/vanilla/Expected/AcceptanceTests/Url/url/operations/_queries_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/Url/url/operations/_queries_operations.py
@@ -87,7 +87,7 @@ def get_boolean_true(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -130,7 +130,7 @@ def get_boolean_false(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -177,7 +177,7 @@ def get_boolean_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -220,7 +220,7 @@ def get_int_one_million(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -263,7 +263,7 @@ def get_int_negative_one_million(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -310,7 +310,7 @@ def get_int_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -353,7 +353,7 @@ def get_ten_billion(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -396,7 +396,7 @@ def get_negative_ten_billion(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -443,7 +443,7 @@ def get_long_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -486,7 +486,7 @@ def float_scientific_positive(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -529,7 +529,7 @@ def float_scientific_negative(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -576,7 +576,7 @@ def float_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -619,7 +619,7 @@ def double_decimal_positive(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -662,7 +662,7 @@ def double_decimal_negative(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -709,7 +709,7 @@ def double_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -752,7 +752,7 @@ def string_unicode(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -795,7 +795,7 @@ def string_url_encoded(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -838,7 +838,7 @@ def string_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -885,7 +885,7 @@ def string_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -932,7 +932,7 @@ def enum_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -979,7 +979,7 @@ def enum_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1026,7 +1026,7 @@ def byte_multi_byte(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1069,7 +1069,7 @@ def byte_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1116,7 +1116,7 @@ def byte_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1159,7 +1159,7 @@ def date_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1206,7 +1206,7 @@ def date_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1249,7 +1249,7 @@ def date_time_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1296,7 +1296,7 @@ def date_time_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1345,7 +1345,7 @@ def array_string_csv_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1392,7 +1392,7 @@ def array_string_csv_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1439,7 +1439,7 @@ def array_string_csv_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1487,7 +1487,7 @@ def array_string_no_collection_format_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1536,7 +1536,7 @@ def array_string_ssv_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1585,7 +1585,7 @@ def array_string_tsv_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -1634,7 +1634,7 @@ def array_string_pipes_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/UrlMultiCollectionFormat/setup.py b/test/vanilla/Expected/AcceptanceTests/UrlMultiCollectionFormat/setup.py
index cb3042debd7..18001b9fb09 100644
--- a/test/vanilla/Expected/AcceptanceTests/UrlMultiCollectionFormat/setup.py
+++ b/test/vanilla/Expected/AcceptanceTests/UrlMultiCollectionFormat/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/vanilla/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/aio/operations/_queries_operations.py b/test/vanilla/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/aio/operations/_queries_operations.py
index b89bf00157d..ce209a13f2e 100644
--- a/test/vanilla/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/aio/operations/_queries_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/aio/operations/_queries_operations.py
@@ -83,7 +83,7 @@ async def array_string_multi_null(self, array_query: Optional[List[str]] = None,
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -127,7 +127,7 @@ async def array_string_multi_empty(self, array_query: Optional[List[str]] = None
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -173,7 +173,7 @@ async def array_string_multi_valid(self, array_query: Optional[List[str]] = None
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/operations/_queries_operations.py b/test/vanilla/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/operations/_queries_operations.py
index 93034adcd8e..ae5d1417757 100644
--- a/test/vanilla/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/operations/_queries_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/operations/_queries_operations.py
@@ -92,7 +92,7 @@ def array_string_multi_null(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -141,7 +141,7 @@ def array_string_multi_empty(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -192,7 +192,7 @@ def array_string_multi_valid(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/Validation/setup.py b/test/vanilla/Expected/AcceptanceTests/Validation/setup.py
index 074271452e9..b8198b9ed0a 100644
--- a/test/vanilla/Expected/AcceptanceTests/Validation/setup.py
+++ b/test/vanilla/Expected/AcceptanceTests/Validation/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/vanilla/Expected/AcceptanceTests/Validation/validation/aio/operations/_auto_rest_validation_test_operations.py b/test/vanilla/Expected/AcceptanceTests/Validation/validation/aio/operations/_auto_rest_validation_test_operations.py
index 7f08c1d8075..701918c652c 100644
--- a/test/vanilla/Expected/AcceptanceTests/Validation/validation/aio/operations/_auto_rest_validation_test_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/Validation/validation/aio/operations/_auto_rest_validation_test_operations.py
@@ -75,7 +75,7 @@ async def validation_of_method_parameters(self, resource_group_name: str, id: in
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("Product", pipeline_response)
@@ -143,7 +143,7 @@ async def validation_of_body(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("Product", pipeline_response)
diff --git a/test/vanilla/Expected/AcceptanceTests/Validation/validation/operations/_auto_rest_validation_test_operations.py b/test/vanilla/Expected/AcceptanceTests/Validation/validation/operations/_auto_rest_validation_test_operations.py
index aba7ff4b4b9..7323a12fc59 100644
--- a/test/vanilla/Expected/AcceptanceTests/Validation/validation/operations/_auto_rest_validation_test_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/Validation/validation/operations/_auto_rest_validation_test_operations.py
@@ -85,7 +85,7 @@ def validation_of_method_parameters(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("Product", pipeline_response)
@@ -158,7 +158,7 @@ def validation_of_body(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("Product", pipeline_response)
diff --git a/test/vanilla/Expected/AcceptanceTests/Xml/setup.py b/test/vanilla/Expected/AcceptanceTests/Xml/setup.py
index eb5585b99da..a1080d5e8c2 100644
--- a/test/vanilla/Expected/AcceptanceTests/Xml/setup.py
+++ b/test/vanilla/Expected/AcceptanceTests/Xml/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/vanilla/Expected/AcceptanceTests/Xml/xmlservice/aio/operations/_xml_operations.py b/test/vanilla/Expected/AcceptanceTests/Xml/xmlservice/aio/operations/_xml_operations.py
index 700d18fd569..91f19799118 100644
--- a/test/vanilla/Expected/AcceptanceTests/Xml/xmlservice/aio/operations/_xml_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/Xml/xmlservice/aio/operations/_xml_operations.py
@@ -243,7 +243,7 @@ async def get_simple(self, **kwargs) -> "_models.Slideshow":
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("Slideshow", pipeline_response)
@@ -292,7 +292,7 @@ async def put_simple(self, slideshow: "_models.Slideshow", **kwargs) -> None:
if response.status_code not in [201]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -378,7 +378,7 @@ async def put_wrapped_lists(self, wrapped_lists: "_models.AppleBarrel", **kwargs
if response.status_code not in [201]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/Xml/xmlservice/operations/_xml_operations.py b/test/vanilla/Expected/AcceptanceTests/Xml/xmlservice/operations/_xml_operations.py
index 5c97df97c25..39b9243a5d1 100644
--- a/test/vanilla/Expected/AcceptanceTests/Xml/xmlservice/operations/_xml_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/Xml/xmlservice/operations/_xml_operations.py
@@ -266,7 +266,7 @@ def get_simple(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("Slideshow", pipeline_response)
@@ -320,7 +320,7 @@ def put_simple(
if response.status_code not in [201]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
@@ -414,7 +414,7 @@ def put_wrapped_lists(
if response.status_code not in [201]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.Error, response)
+ error = self._deserialize.failsafe_deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/XmsErrorResponse/setup.py b/test/vanilla/Expected/AcceptanceTests/XmsErrorResponse/setup.py
index b62e4851949..0af1b27e8f0 100644
--- a/test/vanilla/Expected/AcceptanceTests/XmsErrorResponse/setup.py
+++ b/test/vanilla/Expected/AcceptanceTests/XmsErrorResponse/setup.py
@@ -19,7 +19,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2"]
+REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2"]
setup(
name=NAME,
diff --git a/test/vanilla/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/aio/operations/_pet_operations.py b/test/vanilla/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/aio/operations/_pet_operations.py
index dac2d94dff7..0a51125489f 100644
--- a/test/vanilla/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/aio/operations/_pet_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/aio/operations/_pet_operations.py
@@ -147,7 +147,7 @@ async def do_something(self, what_action: str, **kwargs) -> "_models.PetAction":
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.PetActionError, response)
+ error = self._deserialize.failsafe_deserialize(_models.PetActionError, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("PetAction", pipeline_response)
@@ -202,7 +202,7 @@ async def has_models_param(self, models: Optional[str] = "value1", **kwargs) ->
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.PetActionError, response)
+ error = self._deserialize.failsafe_deserialize(_models.PetActionError, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/operations/_pet_operations.py b/test/vanilla/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/operations/_pet_operations.py
index dd8fbbf2c38..8604d93313f 100644
--- a/test/vanilla/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/operations/_pet_operations.py
+++ b/test/vanilla/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/operations/_pet_operations.py
@@ -161,7 +161,7 @@ def do_something(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.PetActionError, response)
+ error = self._deserialize.failsafe_deserialize(_models.PetActionError, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize("PetAction", pipeline_response)
@@ -221,7 +221,7 @@ def has_models_param(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(_models.PetActionError, response)
+ error = self._deserialize.failsafe_deserialize(_models.PetActionError, response)
raise HttpResponseError(response=response, model=error)
if cls:
diff --git a/test/vanilla/requirements.txt b/test/vanilla/requirements.txt
index 23cbc70f558..200001523fa 100644
--- a/test/vanilla/requirements.txt
+++ b/test/vanilla/requirements.txt
@@ -3,7 +3,7 @@ pytest
pytest-cov
pytest-asyncio;python_full_version>="3.5.2"
async_generator;python_full_version>="3.5.2"
-msrest>=0.6.18
+msrest>=0.6.21
azure-core>=1.3.0
aiohttp;python_full_version>="3.5.2"
-e ./Expected/AcceptanceTests/AdditionalProperties
@@ -27,6 +27,7 @@ aiohttp;python_full_version>="3.5.2"
-e ./Expected/AcceptanceTests/ExtensibleEnums
-e ./Expected/AcceptanceTests/Header
-e ./Expected/AcceptanceTests/Http
+-e ./Expected/AcceptanceTests/IncorrectErrorResponse
-e ./Expected/AcceptanceTests/MediaTypes
-e ./Expected/AcceptanceTests/ModelFlattening
-e ./Expected/AcceptanceTests/MultipleInheritance