Skip to content

Commit 2d37858

Browse files
committed
fix: resolved comments
1 parent 3dfdbc7 commit 2d37858

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
package secretmanager.regionalsamples;
1818

19-
// [START secretmanager_create_update_regional_secret_label]
19+
// [START secretmanager_e_regional_secret_label]
2020
import com.google.cloud.secretmanager.v1.Secret;
2121
import com.google.cloud.secretmanager.v1.SecretManagerServiceClient;
2222
import com.google.cloud.secretmanager.v1.SecretManagerServiceSettings;
@@ -27,9 +27,9 @@
2727
import java.util.HashMap;
2828
import java.util.Map;
2929

30-
public class CreateUpdateRegionalSecretLabel {
30+
public class EditRegionalSecretLabel {
3131

32-
public static void createUpdateRegionalSecretLabel() throws IOException {
32+
public static void editRegionalSecretLabel() throws IOException {
3333
// TODO(developer): Replace these variables before running the sample.
3434

3535
// This is the id of the GCP project
@@ -42,11 +42,11 @@ public static void createUpdateRegionalSecretLabel() throws IOException {
4242
String labelKey = "your-label-key";
4343
// This is the value of the label to be added/updated
4444
String labelValue = "your-label-value";
45-
createUpdateRegionalSecretLabel(projectId, locationId, secretId, labelKey, labelValue);
45+
editRegionalSecretLabel(projectId, locationId, secretId, labelKey, labelValue);
4646
}
4747

4848
// Update an existing secret, by creating a new label or updating an existing label.
49-
public static Secret createUpdateRegionalSecretLabel(
49+
public static Secret editRegionalSecretLabel(
5050
String projectId, String locationId, String secretId, String labelKey, String labelValue)
5151
throws IOException {
5252

secretmanager/src/test/java/secretmanager/regionalsamples/SnippetsIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,9 +502,9 @@ public void testListRegionalSecretsWithFilter() throws IOException {
502502
}
503503

504504
@Test
505-
public void testCreateUpdateRegionalSecretLabel() throws IOException {
505+
public void testEditRegionalSecretLabel() throws IOException {
506506
SecretName name = SecretName.parse(TEST_REGIONAL_SECRET.getName());
507-
Secret updatedSecret = CreateUpdateRegionalSecretLabel.createUpdateRegionalSecretLabel(
507+
Secret updatedSecret = EditRegionalSecretLabel.editRegionalSecretLabel(
508508
name.getProject(), name.getLocation() ,name.getSecret(), UPDATED_LABEL_KEY, UPDATED_LABEL_VALUE);
509509

510510
assertThat(updatedSecret.getLabelsMap()).containsEntry(

0 commit comments

Comments
 (0)