1616
1717 package secretmanager .regionalsamples ;
1818
19- // [START secretmanager_create_update_regional_secret_label ]
19+ // [START secretmanager_e_regional_secret_label ]
2020import com .google .cloud .secretmanager .v1 .Secret ;
2121import com .google .cloud .secretmanager .v1 .SecretManagerServiceClient ;
2222import com .google .cloud .secretmanager .v1 .SecretManagerServiceSettings ;
2727import java .util .HashMap ;
2828import 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
0 commit comments