From 8971b5ffcbadebd484a5f5703e3f02c7a40f71ea Mon Sep 17 00:00:00 2001 From: JoeWang1127 Date: Tue, 25 Aug 2026 14:17:29 +0000 Subject: [PATCH] chore: remove obsolete samples --- .../create_ssh_public_key.php | 69 ------------------ .../delete_posix_account.php | 66 ----------------- .../delete_ssh_public_key.php | 66 ----------------- .../get_login_profile.php | 67 ----------------- .../get_ssh_public_key.php | 68 ------------------ .../import_ssh_public_key.php | 59 --------------- .../sign_ssh_public_key.php | 53 -------------- .../update_ssh_public_key.php | 72 ------------------- 8 files changed, 520 deletions(-) delete mode 100644 OsLogin/samples/V1beta/OsLoginServiceClient/create_ssh_public_key.php delete mode 100644 OsLogin/samples/V1beta/OsLoginServiceClient/delete_posix_account.php delete mode 100644 OsLogin/samples/V1beta/OsLoginServiceClient/delete_ssh_public_key.php delete mode 100644 OsLogin/samples/V1beta/OsLoginServiceClient/get_login_profile.php delete mode 100644 OsLogin/samples/V1beta/OsLoginServiceClient/get_ssh_public_key.php delete mode 100644 OsLogin/samples/V1beta/OsLoginServiceClient/import_ssh_public_key.php delete mode 100644 OsLogin/samples/V1beta/OsLoginServiceClient/sign_ssh_public_key.php delete mode 100644 OsLogin/samples/V1beta/OsLoginServiceClient/update_ssh_public_key.php diff --git a/OsLogin/samples/V1beta/OsLoginServiceClient/create_ssh_public_key.php b/OsLogin/samples/V1beta/OsLoginServiceClient/create_ssh_public_key.php deleted file mode 100644 index 74e3ff5cbd54..000000000000 --- a/OsLogin/samples/V1beta/OsLoginServiceClient/create_ssh_public_key.php +++ /dev/null @@ -1,69 +0,0 @@ -createSshPublicKey($formattedParent, $sshPublicKey); - 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 = OsLoginServiceClient::userName('[USER]'); - - create_ssh_public_key_sample($formattedParent); -} -// [END oslogin_v1beta_generated_OsLoginService_CreateSshPublicKey_sync] diff --git a/OsLogin/samples/V1beta/OsLoginServiceClient/delete_posix_account.php b/OsLogin/samples/V1beta/OsLoginServiceClient/delete_posix_account.php deleted file mode 100644 index 9b841ea60b53..000000000000 --- a/OsLogin/samples/V1beta/OsLoginServiceClient/delete_posix_account.php +++ /dev/null @@ -1,66 +0,0 @@ -deletePosixAccount($formattedName); - printf('Call completed successfully.' . PHP_EOL); - } 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 = OsLoginServiceClient::posixAccountName('[USER]', '[PROJECT]'); - - delete_posix_account_sample($formattedName); -} -// [END oslogin_v1beta_generated_OsLoginService_DeletePosixAccount_sync] diff --git a/OsLogin/samples/V1beta/OsLoginServiceClient/delete_ssh_public_key.php b/OsLogin/samples/V1beta/OsLoginServiceClient/delete_ssh_public_key.php deleted file mode 100644 index 9b5a69db6484..000000000000 --- a/OsLogin/samples/V1beta/OsLoginServiceClient/delete_ssh_public_key.php +++ /dev/null @@ -1,66 +0,0 @@ -deleteSshPublicKey($formattedName); - printf('Call completed successfully.' . PHP_EOL); - } 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 = OsLoginServiceClient::sshPublicKeyName('[USER]', '[FINGERPRINT]'); - - delete_ssh_public_key_sample($formattedName); -} -// [END oslogin_v1beta_generated_OsLoginService_DeleteSshPublicKey_sync] diff --git a/OsLogin/samples/V1beta/OsLoginServiceClient/get_login_profile.php b/OsLogin/samples/V1beta/OsLoginServiceClient/get_login_profile.php deleted file mode 100644 index 0230c7ad6c1e..000000000000 --- a/OsLogin/samples/V1beta/OsLoginServiceClient/get_login_profile.php +++ /dev/null @@ -1,67 +0,0 @@ -getLoginProfile($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 = OsLoginServiceClient::userName('[USER]'); - - get_login_profile_sample($formattedName); -} -// [END oslogin_v1beta_generated_OsLoginService_GetLoginProfile_sync] diff --git a/OsLogin/samples/V1beta/OsLoginServiceClient/get_ssh_public_key.php b/OsLogin/samples/V1beta/OsLoginServiceClient/get_ssh_public_key.php deleted file mode 100644 index 397939f37be6..000000000000 --- a/OsLogin/samples/V1beta/OsLoginServiceClient/get_ssh_public_key.php +++ /dev/null @@ -1,68 +0,0 @@ -getSshPublicKey($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 = OsLoginServiceClient::sshPublicKeyName('[USER]', '[FINGERPRINT]'); - - get_ssh_public_key_sample($formattedName); -} -// [END oslogin_v1beta_generated_OsLoginService_GetSshPublicKey_sync] diff --git a/OsLogin/samples/V1beta/OsLoginServiceClient/import_ssh_public_key.php b/OsLogin/samples/V1beta/OsLoginServiceClient/import_ssh_public_key.php deleted file mode 100644 index 0d47c89a8b60..000000000000 --- a/OsLogin/samples/V1beta/OsLoginServiceClient/import_ssh_public_key.php +++ /dev/null @@ -1,59 +0,0 @@ -importSshPublicKey($sshPublicKey); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END oslogin_v1beta_generated_OsLoginService_ImportSshPublicKey_sync] diff --git a/OsLogin/samples/V1beta/OsLoginServiceClient/sign_ssh_public_key.php b/OsLogin/samples/V1beta/OsLoginServiceClient/sign_ssh_public_key.php deleted file mode 100644 index bbfb72f2de9e..000000000000 --- a/OsLogin/samples/V1beta/OsLoginServiceClient/sign_ssh_public_key.php +++ /dev/null @@ -1,53 +0,0 @@ -signSshPublicKey(); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END oslogin_v1beta_generated_OsLoginService_SignSshPublicKey_sync] diff --git a/OsLogin/samples/V1beta/OsLoginServiceClient/update_ssh_public_key.php b/OsLogin/samples/V1beta/OsLoginServiceClient/update_ssh_public_key.php deleted file mode 100644 index 9d9cc0716905..000000000000 --- a/OsLogin/samples/V1beta/OsLoginServiceClient/update_ssh_public_key.php +++ /dev/null @@ -1,72 +0,0 @@ -updateSshPublicKey($formattedName, $sshPublicKey); - 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 = OsLoginServiceClient::sshPublicKeyName('[USER]', '[FINGERPRINT]'); - - update_ssh_public_key_sample($formattedName); -} -// [END oslogin_v1beta_generated_OsLoginService_UpdateSshPublicKey_sync]