Skip to content

chore(Dataplex): remove obsolete files - #9550

Open
sofisl wants to merge 1 commit into
mainfrom
feat/dataplex
Open

chore(Dataplex): remove obsolete files#9550
sofisl wants to merge 1 commit into
mainfrom
feat/dataplex

Conversation

@sofisl

@sofisl sofisl commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

This PR removes obsolete structural files for Dataplex that are no longer generated.

Testing Deletions

I attempted to load the deleted classes to prove they do not exist anymore.

Test Script:

<?php
require 'vendor/autoload.php';
echo "Testing deleted classes for Dataplex...\n";
$success = true;
if (class_exists('Google\Cloud\Dataplex\V1\\CreateContentRequest') || interface_exists('Google\Cloud\Dataplex\V1\\CreateContentRequest') || trait_exists('Google\Cloud\Dataplex\V1\\CreateContentRequest')) {
    echo "ERROR: Google\Cloud\Dataplex\V1\\CreateContentRequest still exists!\n";
    $success = false;
} else {
    echo "SUCCESS: Google\Cloud\Dataplex\V1\\CreateContentRequest does not exist.\n";
}
if (class_exists('Google\Cloud\Dataplex\V1\\CreateEnvironmentRequest') || interface_exists('Google\Cloud\Dataplex\V1\\CreateEnvironmentRequest') || trait_exists('Google\Cloud\Dataplex\V1\\CreateEnvironmentRequest')) {
    echo "ERROR: Google\Cloud\Dataplex\V1\\CreateEnvironmentRequest still exists!\n";
    $success = false;
} else {
    echo "SUCCESS: Google\Cloud\Dataplex\V1\\CreateEnvironmentRequest does not exist.\n";
}
if (class_exists('Google\Cloud\Dataplex\V1\\DeleteContentRequest') || interface_exists('Google\Cloud\Dataplex\V1\\DeleteContentRequest') || trait_exists('Google\Cloud\Dataplex\V1\\DeleteContentRequest')) {
    echo "ERROR: Google\Cloud\Dataplex\V1\\DeleteContentRequest still exists!\n";
    $success = false;
} else {
    echo "SUCCESS: Google\Cloud\Dataplex\V1\\DeleteContentRequest does not exist.\n";
}
if (class_exists('Google\Cloud\Dataplex\V1\\DeleteEnvironmentRequest') || interface_exists('Google\Cloud\Dataplex\V1\\DeleteEnvironmentRequest') || trait_exists('Google\Cloud\Dataplex\V1\\DeleteEnvironmentRequest')) {
    echo "ERROR: Google\Cloud\Dataplex\V1\\DeleteEnvironmentRequest still exists!\n";
    $success = false;
} else {
    echo "SUCCESS: Google\Cloud\Dataplex\V1\\DeleteEnvironmentRequest does not exist.\n";
}
if (class_exists('Google\Cloud\Dataplex\V1\\GetContentRequest') || interface_exists('Google\Cloud\Dataplex\V1\\GetContentRequest') || trait_exists('Google\Cloud\Dataplex\V1\\GetContentRequest')) {
    echo "ERROR: Google\Cloud\Dataplex\V1\\GetContentRequest still exists!\n";
    $success = false;
} else {
    echo "SUCCESS: Google\Cloud\Dataplex\V1\\GetContentRequest does not exist.\n";
}
if (class_exists('Google\Cloud\Dataplex\V1\GetContentRequest\\ContentView') || interface_exists('Google\Cloud\Dataplex\V1\GetContentRequest\\ContentView') || trait_exists('Google\Cloud\Dataplex\V1\GetContentRequest\\ContentView')) {
    echo "ERROR: Google\Cloud\Dataplex\V1\GetContentRequest\\ContentView still exists!\n";
    $success = false;
} else {
    echo "SUCCESS: Google\Cloud\Dataplex\V1\GetContentRequest\\ContentView does not exist.\n";
}
if (class_exists('Google\Cloud\Dataplex\V1\\GetEnvironmentRequest') || interface_exists('Google\Cloud\Dataplex\V1\\GetEnvironmentRequest') || trait_exists('Google\Cloud\Dataplex\V1\\GetEnvironmentRequest')) {
    echo "ERROR: Google\Cloud\Dataplex\V1\\GetEnvironmentRequest still exists!\n";
    $success = false;
} else {
    echo "SUCCESS: Google\Cloud\Dataplex\V1\\GetEnvironmentRequest does not exist.\n";
}
if (class_exists('Google\Cloud\Dataplex\V1\\ListContentRequest') || interface_exists('Google\Cloud\Dataplex\V1\\ListContentRequest') || trait_exists('Google\Cloud\Dataplex\V1\\ListContentRequest')) {
    echo "ERROR: Google\Cloud\Dataplex\V1\\ListContentRequest still exists!\n";
    $success = false;
} else {
    echo "SUCCESS: Google\Cloud\Dataplex\V1\\ListContentRequest does not exist.\n";
}
if (class_exists('Google\Cloud\Dataplex\V1\\ListContentResponse') || interface_exists('Google\Cloud\Dataplex\V1\\ListContentResponse') || trait_exists('Google\Cloud\Dataplex\V1\\ListContentResponse')) {
    echo "ERROR: Google\Cloud\Dataplex\V1\\ListContentResponse still exists!\n";
    $success = false;
} else {
    echo "SUCCESS: Google\Cloud\Dataplex\V1\\ListContentResponse does not exist.\n";
}
if (class_exists('Google\Cloud\Dataplex\V1\\ListEnvironmentsRequest') || interface_exists('Google\Cloud\Dataplex\V1\\ListEnvironmentsRequest') || trait_exists('Google\Cloud\Dataplex\V1\\ListEnvironmentsRequest')) {
    echo "ERROR: Google\Cloud\Dataplex\V1\\ListEnvironmentsRequest still exists!\n";
    $success = false;
} else {
    echo "SUCCESS: Google\Cloud\Dataplex\V1\\ListEnvironmentsRequest does not exist.\n";
}
if (class_exists('Google\Cloud\Dataplex\V1\\ListEnvironmentsResponse') || interface_exists('Google\Cloud\Dataplex\V1\\ListEnvironmentsResponse') || trait_exists('Google\Cloud\Dataplex\V1\\ListEnvironmentsResponse')) {
    echo "ERROR: Google\Cloud\Dataplex\V1\\ListEnvironmentsResponse still exists!\n";
    $success = false;
} else {
    echo "SUCCESS: Google\Cloud\Dataplex\V1\\ListEnvironmentsResponse does not exist.\n";
}
if (class_exists('Google\Cloud\Dataplex\V1\\ListSessionsRequest') || interface_exists('Google\Cloud\Dataplex\V1\\ListSessionsRequest') || trait_exists('Google\Cloud\Dataplex\V1\\ListSessionsRequest')) {
    echo "ERROR: Google\Cloud\Dataplex\V1\\ListSessionsRequest still exists!\n";
    $success = false;
} else {
    echo "SUCCESS: Google\Cloud\Dataplex\V1\\ListSessionsRequest does not exist.\n";
}
if (class_exists('Google\Cloud\Dataplex\V1\\ListSessionsResponse') || interface_exists('Google\Cloud\Dataplex\V1\\ListSessionsResponse') || trait_exists('Google\Cloud\Dataplex\V1\\ListSessionsResponse')) {
    echo "ERROR: Google\Cloud\Dataplex\V1\\ListSessionsResponse still exists!\n";
    $success = false;
} else {
    echo "SUCCESS: Google\Cloud\Dataplex\V1\\ListSessionsResponse does not exist.\n";
}
if (class_exists('Google\Cloud\Dataplex\V1\\UpdateContentRequest') || interface_exists('Google\Cloud\Dataplex\V1\\UpdateContentRequest') || trait_exists('Google\Cloud\Dataplex\V1\\UpdateContentRequest')) {
    echo "ERROR: Google\Cloud\Dataplex\V1\\UpdateContentRequest still exists!\n";
    $success = false;
} else {
    echo "SUCCESS: Google\Cloud\Dataplex\V1\\UpdateContentRequest does not exist.\n";
}
if (class_exists('Google\Cloud\Dataplex\V1\\UpdateEnvironmentRequest') || interface_exists('Google\Cloud\Dataplex\V1\\UpdateEnvironmentRequest') || trait_exists('Google\Cloud\Dataplex\V1\\UpdateEnvironmentRequest')) {
    echo "ERROR: Google\Cloud\Dataplex\V1\\UpdateEnvironmentRequest still exists!\n";
    $success = false;
} else {
    echo "SUCCESS: Google\Cloud\Dataplex\V1\\UpdateEnvironmentRequest does not exist.\n";
}
if (!$success) exit(1);

Output:

Testing deleted classes for Dataplex...
SUCCESS: Google\Cloud\Dataplex\V1\CreateContentRequest does not exist.
SUCCESS: Google\Cloud\Dataplex\V1\CreateEnvironmentRequest does not exist.
SUCCESS: Google\Cloud\Dataplex\V1\DeleteContentRequest does not exist.
SUCCESS: Google\Cloud\Dataplex\V1\DeleteEnvironmentRequest does not exist.
SUCCESS: Google\Cloud\Dataplex\V1\GetContentRequest does not exist.
SUCCESS: Google\Cloud\Dataplex\V1\GetContentRequest\ContentView does not exist.
SUCCESS: Google\Cloud\Dataplex\V1\GetEnvironmentRequest does not exist.
SUCCESS: Google\Cloud\Dataplex\V1\ListContentRequest does not exist.
SUCCESS: Google\Cloud\Dataplex\V1\ListContentResponse does not exist.
SUCCESS: Google\Cloud\Dataplex\V1\ListEnvironmentsRequest does not exist.
SUCCESS: Google\Cloud\Dataplex\V1\ListEnvironmentsResponse does not exist.
SUCCESS: Google\Cloud\Dataplex\V1\ListSessionsRequest does not exist.
SUCCESS: Google\Cloud\Dataplex\V1\ListSessionsResponse does not exist.
SUCCESS: Google\Cloud\Dataplex\V1\UpdateContentRequest does not exist.
SUCCESS: Google\Cloud\Dataplex\V1\UpdateEnvironmentRequest does not exist.

BREAKING_CHANGE_REASON=Librarian correctly parses and passes the gapic_yaml configuration to gapic-generator-php, which explicitly excludes these specific samples. OwlBot previously generated them due to missing configuration and left them in the repository.

For googleapis/librarian#7366

@sofisl
sofisl requested a review from a team as a code owner August 21, 2026 20:00
@snippet-bot

snippet-bot Bot commented Aug 21, 2026

Copy link
Copy Markdown

Here is the summary of changes.

You are about to delete 11 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@product-auto-label product-auto-label Bot added the api: dataplex Issues related to the Knowledge Catalog API. label Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: dataplex Issues related to the Knowledge Catalog API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant