Skip to content

Commit b08d77e

Browse files
committed
fix: lint issues
1 parent 4da8dc9 commit b08d77e

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

secretmanager/src/main/java/secretmanager/regionalsamples/CreateRegionalSecretWithLabels.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package secretmanager.regionalsamples;
17+
package secretmanager.regionalsamples;
1818

1919
// [START secretmanager_create_regional_secret_with_labels]
2020
import com.google.cloud.secretmanager.v1.LocationName;
@@ -48,7 +48,7 @@ public static Secret createRegionalSecretWithLabels(
4848
String secretId,
4949
String labelKey,
5050
String labelValue)
51-
throws IOException {
51+
throws IOException {
5252

5353
// Endpoint to call the regional secret manager sever
5454
String apiEndpoint = String.format("secretmanager.%s.rep.googleapis.com:443", locationId);

secretmanager/src/main/java/secretmanager/regionalsamples/DeleteRegionalSecretLabel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package secretmanager.regionalsamples;
17+
package secretmanager.regionalsamples;
1818

1919
// [START secretmanager_delete_regional_secret_label]
2020
import com.google.cloud.secretmanager.v1.Secret;

secretmanager/src/main/java/secretmanager/regionalsamples/EditRegionalSecretLabel.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package secretmanager.regionalsamples;
17+
package secretmanager.regionalsamples;
1818

1919
// [START secretmanager_edit_regional_secret_label]
2020
import com.google.cloud.secretmanager.v1.Secret;
@@ -48,7 +48,7 @@ public static void editRegionalSecretLabel() throws IOException {
4848
// Update an existing secret, by creating a new label or updating an existing label.
4949
public static Secret editRegionalSecretLabel(
5050
String projectId, String locationId, String secretId, String labelKey, String labelValue)
51-
throws IOException {
51+
throws IOException {
5252

5353
// Endpoint to call the regional secret manager sever
5454
String apiEndpoint = String.format("secretmanager.%s.rep.googleapis.com:443", locationId);

secretmanager/src/main/java/secretmanager/regionalsamples/ViewRegionalSecretLabels.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package secretmanager.regionalsamples;
17+
package secretmanager.regionalsamples;
1818

1919
// [START secretmanager_view_regional_secret_labels]
2020
import com.google.cloud.secretmanager.v1.Secret;

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,11 @@ public void testListRegionalSecretsWithFilter() throws IOException {
505505
public void testEditRegionalSecretLabel() throws IOException {
506506
SecretName name = SecretName.parse(TEST_REGIONAL_SECRET.getName());
507507
Secret updatedSecret = EditRegionalSecretLabel.editRegionalSecretLabel(
508-
name.getProject(), name.getLocation() ,name.getSecret(), UPDATED_LABEL_KEY, UPDATED_LABEL_VALUE);
508+
name.getProject(),
509+
name.getLocation(),
510+
name.getSecret(),
511+
UPDATED_LABEL_KEY, UPDATED_LABEL_VALUE
512+
);
509513

510514
assertThat(updatedSecret.getLabelsMap()).containsEntry(
511515
UPDATED_LABEL_KEY, UPDATED_LABEL_VALUE);

0 commit comments

Comments
 (0)