Skip to content

Commit 776f3b1

Browse files
Resolving gemini comments
1 parent e3fef5f commit 776f3b1

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

secretmanager/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ This simple command-line application demonstrates how to invoke
1919
Set the following environment variables:
2020

2121
- GOOGLE_CLOUD_PUBSUB_TOPIC - Full name of topic (projects/{project}/topics/{topic}).
22-
- GOOGLE_CLOUD_KMS_KEY - Full name of global KMS key (projects/{project}/locations/global/keyRings/{keyring}/cryptoKeys/{key}).
23-
- GOOGLE_CLOUD_REGIONAL_KMS_KEY - Full name of regional KMS key (projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}).
22+
- GOOGLE_CLOUD_KMS_KEY - Full name of global KMS key (projects/{project}/locations/global/keyRings/{keyring}/cryptoKeys/{key}).
23+
- GOOGLE_CLOUD_REGIONAL_KMS_KEY - Full name of regional KMS key (projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}).
2424

2525
1. **Download The Credentials** - Click "Go to credentials" after enabling the
2626
APIs. Click "New Credentials" and select "Service Account Key". Create a new

secretmanager/src/create_regional_secret_with_cmek.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* @param string $projectId Google Cloud project id (e.g. 'my-project-id')
3838
* @param string $locationId Secret location (e.g. 'us-central1')
3939
* @param string $secretId Id for the new secret (e.g. 'my-secret-id')
40-
* @param string $kmsKeyName Full KMS key resource name (e.g. 'projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key')
40+
* @param string $kmsKeyName Full KMS key resource name (e.g. 'projects/my-project/locations/us-central1/keyRings/my-kr/cryptoKeys/my-key')
4141
*/
4242
function create_regional_secret_with_cmek(string $projectId, string $locationId, string $secretId, string $kmsKeyName): void
4343
{

secretmanager/test/regionalsecretmanagerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -825,8 +825,8 @@ public function testCreateSecretWithCmek()
825825
{
826826
$kmsKey = getenv('GOOGLE_CLOUD_REGIONAL_KMS_KEY');
827827
if ($kmsKey === false || $kmsKey === '') {
828-
$this->markTestSkipped('GOOGLE_CLOUD_KMS_KEY not set');
829-
printf('Skipping testCreateSecretWithTopic dependent on GOOGLE_CLOUD_KMS_KEY%s', PHP_EOL);
828+
$this->markTestSkipped('GOOGLE_CLOUD_REGIONAL_KMS_KEY not set');
829+
printf('Skipping testCreateSecretWithTopic dependent on GOOGLE_CLOUD_REGIONAL_KMS_KEY%s', PHP_EOL);
830830
}
831831

832832
$name = self::$client->parseName(self::$testSecretWithCMEKToCreateName);

0 commit comments

Comments
 (0)