Skip to content

Commit 6a08582

Browse files
committed
Remove old redact snippet and move region tags.
1 parent 6708a76 commit 6a08582

File tree

5 files changed

+4
-265
lines changed

5 files changed

+4
-265
lines changed

dlp/src/main/java/com/example/dlp/Redact.java

Lines changed: 0 additions & 189 deletions
This file was deleted.

dlp/src/main/java/com/example/dlp/Templates.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ public static void main(String[] args) throws Exception {
218218
cmd = parser.parse(commandLineOptions, args);
219219
} catch (ParseException e) {
220220
System.out.println(e.getMessage());
221-
formatter.printHelp(Redact.class.getName(), commandLineOptions);
221+
formatter.printHelp("dlp_snippets", commandLineOptions);
222222
System.exit(1);
223223
return;
224224
}

dlp/src/main/java/dlp/snippets/RedactImageFile.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
package dlp.snippets;
1818

19+
// [START dlp_redact_image]
1920
import com.google.cloud.dlp.v2.DlpServiceClient;
2021
import com.google.privacy.dlp.v2.ByteContentItem;
2122
import com.google.privacy.dlp.v2.ByteContentItem.BytesType;
@@ -84,3 +85,4 @@ static void redactImageFile(String projectId, String filePath) {
8485
}
8586
}
8687
}
88+
// [END dlp_redact_image]

dlp/src/test/java/com/example/dlp/RedactIT.java

Lines changed: 0 additions & 75 deletions
This file was deleted.

dlp/src/test/java/dlp/snippets/RedactTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
package dlp.snippets;
1818

19+
// [START dlp_redact_image]
1920
import static junit.framework.TestCase.assertNotNull;
2021
import static org.junit.Assert.assertThat;
2122

0 commit comments

Comments
 (0)