From 3f09c1ccb17318badb72c19cbdc0e11c7094859e Mon Sep 17 00:00:00 2001 From: Sofia Leon Date: Fri, 21 Aug 2026 21:54:05 +0000 Subject: [PATCH] chore(GkeHub): remove obsolete FeatureSpec and orphaned samples --- .../create_membership.php | 100 ------------------ .../delete_membership.php | 84 --------------- .../generate_connect_manifest.php | 74 ------------- .../generate_exclusivity_manifest.php | 82 -------------- .../get_iam_policy.php | 67 ------------ .../get_location.php | 53 ---------- .../get_membership.php | 71 ------------- .../list_locations.php | 58 ---------- .../list_memberships.php | 73 ------------- .../set_iam_policy.php | 73 ------------- .../test_iam_permissions.php | 80 -------------- .../update_membership.php | 92 ---------------- .../validate_exclusivity.php | 75 ------------- GkeHub/src/V1/FeatureSpec.php | 72 ------------- 14 files changed, 1054 deletions(-) delete mode 100644 GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/create_membership.php delete mode 100644 GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/delete_membership.php delete mode 100644 GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/generate_connect_manifest.php delete mode 100644 GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/generate_exclusivity_manifest.php delete mode 100644 GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/get_iam_policy.php delete mode 100644 GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/get_location.php delete mode 100644 GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/get_membership.php delete mode 100644 GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/list_locations.php delete mode 100644 GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/list_memberships.php delete mode 100644 GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/set_iam_policy.php delete mode 100644 GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/test_iam_permissions.php delete mode 100644 GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/update_membership.php delete mode 100644 GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/validate_exclusivity.php delete mode 100644 GkeHub/src/V1/FeatureSpec.php diff --git a/GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/create_membership.php b/GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/create_membership.php deleted file mode 100644 index cabec89dcf17..000000000000 --- a/GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/create_membership.php +++ /dev/null @@ -1,100 +0,0 @@ -createMembership( - $formattedParent, - $membershipId, - $resource - ); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Membership $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = GkeHubMembershipServiceClient::locationName('[PROJECT]', '[LOCATION]'); - $membershipId = '[MEMBERSHIP_ID]'; - - create_membership_sample($formattedParent, $membershipId); -} -// [END gkehub_v1beta1_generated_GkeHubMembershipService_CreateMembership_sync] diff --git a/GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/delete_membership.php b/GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/delete_membership.php deleted file mode 100644 index a76c466bd495..000000000000 --- a/GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/delete_membership.php +++ /dev/null @@ -1,84 +0,0 @@ -deleteMembership($formattedName); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = GkeHubMembershipServiceClient::membershipName( - '[PROJECT]', - '[LOCATION]', - '[MEMBERSHIP]' - ); - - delete_membership_sample($formattedName); -} -// [END gkehub_v1beta1_generated_GkeHubMembershipService_DeleteMembership_sync] diff --git a/GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/generate_connect_manifest.php b/GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/generate_connect_manifest.php deleted file mode 100644 index 0e317e2428a0..000000000000 --- a/GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/generate_connect_manifest.php +++ /dev/null @@ -1,74 +0,0 @@ -generateConnectManifest($formattedName); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = GkeHubMembershipServiceClient::membershipName( - '[PROJECT]', - '[LOCATION]', - '[MEMBERSHIP]' - ); - - generate_connect_manifest_sample($formattedName); -} -// [END gkehub_v1beta1_generated_GkeHubMembershipService_GenerateConnectManifest_sync] diff --git a/GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/generate_exclusivity_manifest.php b/GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/generate_exclusivity_manifest.php deleted file mode 100644 index 16447414642b..000000000000 --- a/GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/generate_exclusivity_manifest.php +++ /dev/null @@ -1,82 +0,0 @@ -generateExclusivityManifest($formattedName); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = GkeHubMembershipServiceClient::membershipName( - '[PROJECT]', - '[LOCATION]', - '[MEMBERSHIP]' - ); - - generate_exclusivity_manifest_sample($formattedName); -} -// [END gkehub_v1beta1_generated_GkeHubMembershipService_GenerateExclusivityManifest_sync] diff --git a/GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/get_iam_policy.php b/GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/get_iam_policy.php deleted file mode 100644 index 7194b971baa0..000000000000 --- a/GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/get_iam_policy.php +++ /dev/null @@ -1,67 +0,0 @@ -getIamPolicy($resource); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $resource = '[RESOURCE]'; - - get_iam_policy_sample($resource); -} -// [END gkehub_v1beta1_generated_GkeHubMembershipService_GetIamPolicy_sync] diff --git a/GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/get_location.php b/GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/get_location.php deleted file mode 100644 index 0e10907c510e..000000000000 --- a/GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/get_location.php +++ /dev/null @@ -1,53 +0,0 @@ -getLocation(); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END gkehub_v1beta1_generated_GkeHubMembershipService_GetLocation_sync] diff --git a/GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/get_membership.php b/GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/get_membership.php deleted file mode 100644 index 5833fc1e4994..000000000000 --- a/GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/get_membership.php +++ /dev/null @@ -1,71 +0,0 @@ -getMembership($formattedName); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = GkeHubMembershipServiceClient::membershipName( - '[PROJECT]', - '[LOCATION]', - '[MEMBERSHIP]' - ); - - get_membership_sample($formattedName); -} -// [END gkehub_v1beta1_generated_GkeHubMembershipService_GetMembership_sync] diff --git a/GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/list_locations.php b/GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/list_locations.php deleted file mode 100644 index 04f8b42233cd..000000000000 --- a/GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/list_locations.php +++ /dev/null @@ -1,58 +0,0 @@ -listLocations(); - - /** @var Location $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END gkehub_v1beta1_generated_GkeHubMembershipService_ListLocations_sync] diff --git a/GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/list_memberships.php b/GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/list_memberships.php deleted file mode 100644 index dbd2f39f7943..000000000000 --- a/GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/list_memberships.php +++ /dev/null @@ -1,73 +0,0 @@ -listMemberships($formattedParent); - - /** @var Membership $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = GkeHubMembershipServiceClient::locationName('[PROJECT]', '[LOCATION]'); - - list_memberships_sample($formattedParent); -} -// [END gkehub_v1beta1_generated_GkeHubMembershipService_ListMemberships_sync] diff --git a/GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/set_iam_policy.php b/GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/set_iam_policy.php deleted file mode 100644 index b7afeb67c43b..000000000000 --- a/GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/set_iam_policy.php +++ /dev/null @@ -1,73 +0,0 @@ -setIamPolicy($resource, $policy); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $resource = '[RESOURCE]'; - - set_iam_policy_sample($resource); -} -// [END gkehub_v1beta1_generated_GkeHubMembershipService_SetIamPolicy_sync] diff --git a/GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/test_iam_permissions.php b/GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/test_iam_permissions.php deleted file mode 100644 index 339521d7b989..000000000000 --- a/GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/test_iam_permissions.php +++ /dev/null @@ -1,80 +0,0 @@ -testIamPermissions($resource, $permissions); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $resource = '[RESOURCE]'; - $permissionsElement = '[PERMISSIONS]'; - - test_iam_permissions_sample($resource, $permissionsElement); -} -// [END gkehub_v1beta1_generated_GkeHubMembershipService_TestIamPermissions_sync] diff --git a/GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/update_membership.php b/GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/update_membership.php deleted file mode 100644 index d816dd847ba2..000000000000 --- a/GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/update_membership.php +++ /dev/null @@ -1,92 +0,0 @@ -updateMembership( - $formattedName, - $updateMask, - $resource - ); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Membership $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = GkeHubMembershipServiceClient::membershipName( - '[PROJECT]', - '[LOCATION]', - '[MEMBERSHIP]' - ); - - update_membership_sample($formattedName); -} -// [END gkehub_v1beta1_generated_GkeHubMembershipService_UpdateMembership_sync] diff --git a/GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/validate_exclusivity.php b/GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/validate_exclusivity.php deleted file mode 100644 index d4e316edb156..000000000000 --- a/GkeHub/samples/V1beta1/GkeHubMembershipServiceClient/validate_exclusivity.php +++ /dev/null @@ -1,75 +0,0 @@ -validateExclusivity( - $formattedParent, - $intendedMembership - ); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = GkeHubMembershipServiceClient::locationName('[PROJECT]', '[LOCATION]'); - $intendedMembership = '[INTENDED_MEMBERSHIP]'; - - validate_exclusivity_sample($formattedParent, $intendedMembership); -} -// [END gkehub_v1beta1_generated_GkeHubMembershipService_ValidateExclusivity_sync] diff --git a/GkeHub/src/V1/FeatureSpec.php b/GkeHub/src/V1/FeatureSpec.php deleted file mode 100644 index 1031f8479b15..000000000000 --- a/GkeHub/src/V1/FeatureSpec.php +++ /dev/null @@ -1,72 +0,0 @@ -google.cloud.gkehub.multiclusteringress.v1.FeatureSpec - */ -class FeatureSpec extends \Google\Protobuf\Internal\Message -{ - /** - * Fully-qualified Membership name which hosts the MultiClusterIngress CRD. - * Example: `projects/foo-proj/locations/global/memberships/bar` - * - * Generated from protobuf field string config_membership = 1; - */ - protected $config_membership = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $config_membership - * Fully-qualified Membership name which hosts the MultiClusterIngress CRD. - * Example: `projects/foo-proj/locations/global/memberships/bar` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Multiclusteringress\Multiclusteringress::initOnce(); - parent::__construct($data); - } - - /** - * Fully-qualified Membership name which hosts the MultiClusterIngress CRD. - * Example: `projects/foo-proj/locations/global/memberships/bar` - * - * Generated from protobuf field string config_membership = 1; - * @return string - */ - public function getConfigMembership() - { - return $this->config_membership; - } - - /** - * Fully-qualified Membership name which hosts the MultiClusterIngress CRD. - * Example: `projects/foo-proj/locations/global/memberships/bar` - * - * Generated from protobuf field string config_membership = 1; - * @param string $var - * @return $this - */ - public function setConfigMembership($var) - { - GPBUtil::checkString($var, True); - $this->config_membership = $var; - - return $this; - } - -} -