async def _update_initial(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) -> Optional['_models.GenericResource']:
    cls = kwargs.pop('cls', None)
    error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
    error_map.update(kwargs.pop('error_map', {}))
    content_type = kwargs.pop('content_type', 'application/json')
    _json = self._serialize.body(parameters, 'GenericResource')
    request = build_resources_update_request_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, subscription_id=self._config.subscription_id, content_type=content_type, api_version=api_version, json=_json, template_url=self._update_initial.metadata['url'])
    request = _convert_request(request)
    request.url = self._client.format_url(request.url)
    pipeline_response = (await self._client._pipeline.run(request, stream=False, **kwargs))
    response = pipeline_response.http_response
    if (response.status_code not in [200, 202]):
        map_error(status_code=response.status_code, response=response, error_map=error_map)
        raise HttpResponseError(response=response, error_format=ARMErrorFormat)
    deserialized = None
    if (response.status_code == 200):
        deserialized = self._deserialize('GenericResource', pipeline_response)
    if cls:
        return cls(pipeline_response, deserialized, {})
    return deserialized
async def _update_initial(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) -> Optional['_models.GenericResource']:
    cls = kwargs.pop('cls', None)
    error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
    error_map.update(kwargs.pop('error_map', {}))
    content_type = kwargs.pop('content_type', 'application/json')
    _json = self._serialize.body(parameters, 'GenericResource')
    request = build_resources_update_request_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, subscription_id=self._config.subscription_id, content_type=content_type, api_version=api_version, json=_json, template_url=self._update_initial.metadata['url'])
    request = _convert_request(request)
    request.url = self._client.format_url(request.url)
    pipeline_response = (await self._client._pipeline.run(request, stream=False, **kwargs))
    response = pipeline_response.http_response
    if (response.status_code not in [200, 202]):
        map_error(status_code=response.status_code, response=response, error_map=error_map)
        raise HttpResponseError(response=response, error_format=ARMErrorFormat)
    deserialized = None
    if (response.status_code == 200):
        deserialized = self._deserialize('GenericResource', pipeline_response)
    if cls:
        return cls(pipeline_response, deserialized, {})
    return deserialized