def METHOD_NAME(cmd,
                           client,
                           webhook_name,
                           registry_name,
                           resource_group_name=None,
                           parameters=None):
    resource_group_name = get_resource_group_name_by_registry_name(
        cmd.cli_ctx, registry_name, resource_group_name)
    return client.begin_update(resource_group_name, registry_name, webhook_name, parameters)