@@ -14163,6 +14163,9 @@ async def _update_initial(
1416314163
1416414164 response_headers = {}
1416514165 if response.status_code == 202:
14166+ response_headers["Azure-AsyncOperation"] = self._deserialize(
14167+ "str", response.headers.get("Azure-AsyncOperation")
14168+ )
1416614169 response_headers["Location"] = self._deserialize("str", response.headers.get("Location"))
1416714170 response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After"))
1416814171
@@ -14184,7 +14187,7 @@ async def begin_update(
1418414187 *,
1418514188 content_type: str = "application/json",
1418614189 **kwargs: Any
14187- ) -> AsyncLROPoller[None ]:
14190+ ) -> AsyncLROPoller[_models.Cache ]:
1418814191 """Patch the specified Cache.
1418914192
1419014193 :param resource_group_name: The name of the resource group. The name is case insensitive.
@@ -14201,8 +14204,9 @@ async def begin_update(
1420114204 :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1420214205 Default value is "application/json".
1420314206 :paramtype content_type: str
14204- :return: An instance of AsyncLROPoller that returns None
14205- :rtype: ~azure.core.polling.AsyncLROPoller[None]
14207+ :return: An instance of AsyncLROPoller that returns Cache. The Cache is compatible with
14208+ MutableMapping
14209+ :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.netapp.models.Cache]
1420614210 :raises ~azure.core.exceptions.HttpResponseError:
1420714211 """
1420814212
@@ -14217,7 +14221,7 @@ async def begin_update(
1421714221 *,
1421814222 content_type: str = "application/json",
1421914223 **kwargs: Any
14220- ) -> AsyncLROPoller[None ]:
14224+ ) -> AsyncLROPoller[_models.Cache ]:
1422114225 """Patch the specified Cache.
1422214226
1422314227 :param resource_group_name: The name of the resource group. The name is case insensitive.
@@ -14234,8 +14238,9 @@ async def begin_update(
1423414238 :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1423514239 Default value is "application/json".
1423614240 :paramtype content_type: str
14237- :return: An instance of AsyncLROPoller that returns None
14238- :rtype: ~azure.core.polling.AsyncLROPoller[None]
14241+ :return: An instance of AsyncLROPoller that returns Cache. The Cache is compatible with
14242+ MutableMapping
14243+ :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.netapp.models.Cache]
1423914244 :raises ~azure.core.exceptions.HttpResponseError:
1424014245 """
1424114246
@@ -14250,7 +14255,7 @@ async def begin_update(
1425014255 *,
1425114256 content_type: str = "application/json",
1425214257 **kwargs: Any
14253- ) -> AsyncLROPoller[None ]:
14258+ ) -> AsyncLROPoller[_models.Cache ]:
1425414259 """Patch the specified Cache.
1425514260
1425614261 :param resource_group_name: The name of the resource group. The name is case insensitive.
@@ -14267,8 +14272,9 @@ async def begin_update(
1426714272 :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
1426814273 Default value is "application/json".
1426914274 :paramtype content_type: str
14270- :return: An instance of AsyncLROPoller that returns None
14271- :rtype: ~azure.core.polling.AsyncLROPoller[None]
14275+ :return: An instance of AsyncLROPoller that returns Cache. The Cache is compatible with
14276+ MutableMapping
14277+ :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.netapp.models.Cache]
1427214278 :raises ~azure.core.exceptions.HttpResponseError:
1427314279 """
1427414280
@@ -14297,7 +14303,7 @@ async def begin_update(
1429714303 cache_name: str,
1429814304 body: Union[_models.CacheUpdate, JSON, IO[bytes]],
1429914305 **kwargs: Any
14300- ) -> AsyncLROPoller[None ]:
14306+ ) -> AsyncLROPoller[_models.Cache ]:
1430114307 """Patch the specified Cache.
1430214308
1430314309 :param resource_group_name: The name of the resource group. The name is case insensitive.
@@ -14312,15 +14318,16 @@ async def begin_update(
1431214318 :param body: The resource properties to be updated. Is one of the following types: CacheUpdate,
1431314319 JSON, IO[bytes] Required.
1431414320 :type body: ~azure.mgmt.netapp.models.CacheUpdate or JSON or IO[bytes]
14315- :return: An instance of AsyncLROPoller that returns None
14316- :rtype: ~azure.core.polling.AsyncLROPoller[None]
14321+ :return: An instance of AsyncLROPoller that returns Cache. The Cache is compatible with
14322+ MutableMapping
14323+ :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.netapp.models.Cache]
1431714324 :raises ~azure.core.exceptions.HttpResponseError:
1431814325 """
1431914326 _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1432014327 _params = kwargs.pop("params", {}) or {}
1432114328
1432214329 content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
14323- cls: ClsType[None ] = kwargs.pop("cls", None)
14330+ cls: ClsType[_models.Cache ] = kwargs.pop("cls", None)
1432414331 polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True)
1432514332 lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
1432614333 cont_token: Optional[str] = kwargs.pop("continuation_token", None)
@@ -14340,9 +14347,12 @@ async def begin_update(
1434014347 await raw_result.http_response.read() # type: ignore
1434114348 kwargs.pop("error_map", None)
1434214349
14343- def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements
14350+ def get_long_running_output(pipeline_response):
14351+ response = pipeline_response.http_response
14352+ deserialized = _deserialize(_models.Cache, response.json())
1434414353 if cls:
14345- return cls(pipeline_response, None, {}) # type: ignore
14354+ return cls(pipeline_response, deserialized, {}) # type: ignore
14355+ return deserialized
1434614356
1434714357 path_format_arguments = {
1434814358 "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True),
@@ -14357,13 +14367,15 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
1435714367 else:
1435814368 polling_method = polling
1435914369 if cont_token:
14360- return AsyncLROPoller[None ].from_continuation_token(
14370+ return AsyncLROPoller[_models.Cache ].from_continuation_token(
1436114371 polling_method=polling_method,
1436214372 continuation_token=cont_token,
1436314373 client=self._client,
1436414374 deserialization_callback=get_long_running_output,
1436514375 )
14366- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore
14376+ return AsyncLROPoller[_models.Cache](
14377+ self._client, raw_result, get_long_running_output, polling_method # type: ignore
14378+ )
1436714379
1436814380 @api_version_validation(
1436914381 method_added_on="2025-09-01-preview",
@@ -16420,6 +16432,9 @@ async def _update_initial(
1642016432
1642116433 response_headers = {}
1642216434 if response.status_code == 202:
16435+ response_headers["Azure-AsyncOperation"] = self._deserialize(
16436+ "str", response.headers.get("Azure-AsyncOperation")
16437+ )
1642316438 response_headers["Location"] = self._deserialize("str", response.headers.get("Location"))
1642416439 response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After"))
1642516440
@@ -17832,6 +17847,9 @@ async def _update_initial(
1783217847
1783317848 response_headers = {}
1783417849 if response.status_code == 202:
17850+ response_headers["Azure-AsyncOperation"] = self._deserialize(
17851+ "str", response.headers.get("Azure-AsyncOperation")
17852+ )
1783517853 response_headers["Location"] = self._deserialize("str", response.headers.get("Location"))
1783617854 response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After"))
1783717855
@@ -19801,6 +19819,9 @@ async def _update_initial(
1980119819
1980219820 response_headers = {}
1980319821 if response.status_code == 202:
19822+ response_headers["Azure-AsyncOperation"] = self._deserialize(
19823+ "str", response.headers.get("Azure-AsyncOperation")
19824+ )
1980419825 response_headers["Location"] = self._deserialize("str", response.headers.get("Location"))
1980519826 response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After"))
1980619827
@@ -20831,6 +20852,9 @@ async def _update_initial(
2083120852
2083220853 response_headers = {}
2083320854 if response.status_code == 202:
20855+ response_headers["Azure-AsyncOperation"] = self._deserialize(
20856+ "str", response.headers.get("Azure-AsyncOperation")
20857+ )
2083420858 response_headers["Location"] = self._deserialize("str", response.headers.get("Location"))
2083520859 response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After"))
2083620860
@@ -22687,6 +22711,9 @@ async def _update_initial(
2268722711
2268822712 response_headers = {}
2268922713 if response.status_code == 202:
22714+ response_headers["Azure-AsyncOperation"] = self._deserialize(
22715+ "str", response.headers.get("Azure-AsyncOperation")
22716+ )
2269022717 response_headers["Location"] = self._deserialize("str", response.headers.get("Location"))
2269122718 response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After"))
2269222719
@@ -23609,6 +23636,9 @@ async def _update_initial(
2360923636
2361023637 response_headers = {}
2361123638 if response.status_code == 202:
23639+ response_headers["Azure-AsyncOperation"] = self._deserialize(
23640+ "str", response.headers.get("Azure-AsyncOperation")
23641+ )
2361223642 response_headers["Location"] = self._deserialize("str", response.headers.get("Location"))
2361323643 response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After"))
2361423644
0 commit comments