Remove unused X-Ray API endpoints

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

https://gitlab.com/gitlab-org/gitlab/-/blob/c51fad6773069cc1cd5e60f4ba9bc20b446adeae/ee/lib/api/internal/ai/x_ray/scan.rb

Context

The X-Ray API endpoints are currently used by legacy versions of the Repository X-Ray Go image which is run in an X-Ray CI job. This CI job is officially deprecated in %17.6 and will be removed in %18.0. See #500146 (closed).

As part of its removal, we will no longer support these X-Ray endpoints.

Proposal

Remove X-Ray API endpoints and all related code.

Edited by 🤖 GitLab Bot 🤖