@distributed_trace_async
async def begin_update(self, resource_group_name: str, resource_provider_namespace: str, parent_resource_path: str, resource_type: str, resource_name: str, api_version: str, parameters: '_models.GenericResource', **kwargs: Any) -> AsyncLROPoller['_models.GenericResource']:
    'Updates a resource.\n\n        :param resource_group_name: The name of the resource group for the resource. The name is case\n         insensitive.\n        :type resource_group_name: str\n        :param resource_provider_namespace: The namespace of the resource provider.\n        :type resource_provider_namespace: str\n        :param parent_resource_path: The parent resource identity.\n        :type parent_resource_path: str\n        :param resource_type: The resource type of the resource to update.\n        :type resource_type: str\n        :param resource_name: The name of the resource to update.\n        :type resource_name: str\n        :param api_version: The API version to use for the operation.\n        :type api_version: str\n        :param parameters: Parameters for updating the resource.\n        :type parameters: ~azure.mgmt.resource.resources.v2019_08_01.models.GenericResource\n        :keyword callable cls: A custom type or function that will be passed the direct response\n        :keyword str continuation_token: A continuation token to restart a poller from a saved state.\n        :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for\n         this operation to not poll, or pass in your own initialized polling object for a personal\n         polling strategy.\n        :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n        :keyword int polling_interval: Default waiting time between two polls for LRO operations if no\n         Retry-After header is present.\n        :return: An instance of AsyncLROPoller that returns either GenericResource or the result of\n         cls(response)\n        :rtype:\n         ~azure.core.polling.AsyncLROPoller[~azure.mgmt.resource.resources.v2019_08_01.models.GenericResource]\n        :raises: ~azure.core.exceptions.HttpResponseError\n        '
    content_type = kwargs.pop('content_type', 'application/json')
    polling = kwargs.pop('polling', True)
    cls = kwargs.pop('cls', None)
    lro_delay = kwargs.pop('polling_interval', self._config.polling_interval)
    cont_token = kwargs.pop('continuation_token', None)
    if (cont_token is None):
        raw_result = (await self._update_initial(resource_group_name=resource_group_name, resource_provider_namespace=resource_provider_namespace, parent_resource_path=parent_resource_path, resource_type=resource_type, resource_name=resource_name, api_version=api_version, parameters=parameters, content_type=content_type, cls=(lambda x, y, z: x), **kwargs))
    kwargs.pop('error_map', None)

    def get_long_running_output(pipeline_response):
        response = pipeline_response.http_response
        deserialized = self._deserialize('GenericResource', pipeline_response)
        if cls:
            return cls(pipeline_response, deserialized, {})
        return deserialized
    if (polling is True):
        polling_method = AsyncARMPolling(lro_delay, **kwargs)
    elif (polling is False):
        polling_method = AsyncNoPolling()
    else:
        polling_method = polling
    if cont_token:
        return AsyncLROPoller.from_continuation_token(polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output)
    return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method)
Updates a resource.

:param resource_group_name: The name of the resource group for the resource. The name is case
 insensitive.
:type resource_group_name: str
:param resource_provider_namespace: The namespace of the resource provider.
:type resource_provider_namespace: str
:param parent_resource_path: The parent resource identity.
:type parent_resource_path: str
:param resource_type: The resource type of the resource to update.
:type resource_type: str
:param resource_name: The name of the resource to update.
:type resource_name: str
:param api_version: The API version to use for the operation.
:type api_version: str
:param parameters: Parameters for updating the resource.
:type parameters: ~azure.mgmt.resource.resources.v2019_08_01.models.GenericResource
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for
 this operation to not poll, or pass in your own initialized polling object for a personal
 polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
 Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either GenericResource or the result of
 cls(response)
:rtype:
 ~azure.core.polling.AsyncLROPoller[~azure.mgmt.resource.resources.v2019_08_01.models.GenericResource]
:raises: ~azure.core.exceptions.HttpResponseError
@distributed_trace_async
async def begin_update(self, resource_group_name: str, resource_provider_namespace: str, parent_resource_path: str, resource_type: str, resource_name: str, api_version: str, parameters: '_models.GenericResource', **kwargs: Any) -> AsyncLROPoller['_models.GenericResource']:
    'Updates a resource.\n\n        :param resource_group_name: The name of the resource group for the resource. The name is case\n         insensitive.\n        :type resource_group_name: str\n        :param resource_provider_namespace: The namespace of the resource provider.\n        :type resource_provider_namespace: str\n        :param parent_resource_path: The parent resource identity.\n        :type parent_resource_path: str\n        :param resource_type: The resource type of the resource to update.\n        :type resource_type: str\n        :param resource_name: The name of the resource to update.\n        :type resource_name: str\n        :param api_version: The API version to use for the operation.\n        :type api_version: str\n        :param parameters: Parameters for updating the resource.\n        :type parameters: ~azure.mgmt.resource.resources.v2019_08_01.models.GenericResource\n        :keyword callable cls: A custom type or function that will be passed the direct response\n        :keyword str continuation_token: A continuation token to restart a poller from a saved state.\n        :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for\n         this operation to not poll, or pass in your own initialized polling object for a personal\n         polling strategy.\n        :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n        :keyword int polling_interval: Default waiting time between two polls for LRO operations if no\n         Retry-After header is present.\n        :return: An instance of AsyncLROPoller that returns either GenericResource or the result of\n         cls(response)\n        :rtype:\n         ~azure.core.polling.AsyncLROPoller[~azure.mgmt.resource.resources.v2019_08_01.models.GenericResource]\n        :raises: ~azure.core.exceptions.HttpResponseError\n        '
    content_type = kwargs.pop('content_type', 'application/json')
    polling = kwargs.pop('polling', True)
    cls = kwargs.pop('cls', None)
    lro_delay = kwargs.pop('polling_interval', self._config.polling_interval)
    cont_token = kwargs.pop('continuation_token', None)
    if (cont_token is None):
        raw_result = (await self._update_initial(resource_group_name=resource_group_name, resource_provider_namespace=resource_provider_namespace, parent_resource_path=parent_resource_path, resource_type=resource_type, resource_name=resource_name, api_version=api_version, parameters=parameters, content_type=content_type, cls=(lambda x, y, z: x), **kwargs))
    kwargs.pop('error_map', None)

    def get_long_running_output(pipeline_response):
        response = pipeline_response.http_response
        deserialized = self._deserialize('GenericResource', pipeline_response)
        if cls:
            return cls(pipeline_response, deserialized, {})
        return deserialized
    if (polling is True):
        polling_method = AsyncARMPolling(lro_delay, **kwargs)
    elif (polling is False):
        polling_method = AsyncNoPolling()
    else:
        polling_method = polling
    if cont_token:
        return AsyncLROPoller.from_continuation_token(polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output)
    return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method)