| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent edb1883 commit af753bb
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,7 +14,7 @@ | |||
| 14 | 14 | See the License for the specific language governing permissions and | |
| 15 | 15 | limitations under the License. | |
| 16 | 16 | --> | |
| 17 | - <!-- [START pom] --> | ||
| 17 | + <!-- [START dlp_pom] --> | ||
| 18 | 18 | <project> | |
| 19 | 19 | <modelVersion>4.0.0</modelVersion> | |
| 20 | 20 | <packaging>jar</packaging> | |
@@ -83,4 +83,4 @@ | |||
| 83 | 83 | </plugins> | |
| 84 | 84 | </build> | |
| 85 | 85 | </project> | |
| 86 | - <!-- [END pom] --> | ||
| 86 | + <!-- [END dlp_pom] --> | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -46,7 +46,7 @@ private static void deIdentifyWithMask( | |||
| 46 | 46 | String string, | |
| 47 | 47 | Character maskingCharacter, | |
| 48 | 48 | int numberToMask) { | |
| 49 | - // [START dlp_deidentify_mask] | ||
| 49 | + // [START dlp_deidentify_masking] | ||
| 50 | 50 | /** | |
| 51 | 51 | * Deidentify a string by masking sensitive information with a character using the DLP API. | |
| 52 | 52 | * @param string The string to deidentify. | |
@@ -113,7 +113,7 @@ private static void deIdentifyWithMask( | |||
| 113 | 113 | } catch (Exception e) { | |
| 114 | 114 | System.out.println("Error in deidentifyWithMask: " + e.getMessage()); | |
| 115 | 115 | } | |
| 116 | - // [END dlp_deidentify_mask] | ||
| 116 | + // [END dlp_deidentify_masking] | ||
| 117 | 117 | } | |
| 118 | 118 | ||
| 119 | 119 | private static void deIdentifyWithFpe( | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -49,7 +49,7 @@ private static void listInfoTypes(String category, String languageCode) throws E | |||
| 49 | 49 | } | |
| 50 | 50 | ||
| 51 | 51 | private static void listRootCategories(String languageCode) throws Exception { | |
| 52 | - // [START dlp_list_root_categories] | ||
| 52 | + // [START dlp_list_categories] | ||
| 53 | 53 | // Instantiate a DLP client | |
| 54 | 54 | try (DlpServiceClient dlpClient = DlpServiceClient.create()) { | |
| 55 | 55 | // The BCP-47 language code to use, e.g. 'en-US' | |
@@ -61,7 +61,7 @@ private static void listRootCategories(String languageCode) throws Exception { | |||
| 61 | 61 | System.out.println("Display name : " + categoryDescription.getDisplayName()); | |
| 62 | 62 | } | |
| 63 | 63 | } | |
| 64 | - // [END dlp_list_root_categories] | ||
| 64 | + // [END dlp_list_categories] | ||
| 65 | 65 | } | |
| 66 | 66 | ||
| 67 | 67 | /** Retrieve infoTypes. */ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -55,7 +55,7 @@ public class RiskAnalysis { | |||
| 55 | 55 | private static void calculateNumericalStats( | |
| 56 | 56 | String projectId, String datasetId, String tableId, String columnName) | |
| 57 | 57 | throws Exception { | |
| 58 | - // [START dlp_numerical_stats_analysis] | ||
| 58 | + // [START dlp_numerical_stats] | ||
| 59 | 59 | ||
| 60 | 60 | /** | |
| 61 | 61 | * Calculate numerical statistics for a column in a BigQuery table using the DLP API. | |
@@ -128,13 +128,13 @@ private static void calculateNumericalStats( | |||
| 128 | 128 | } catch (Exception e) { | |
| 129 | 129 | System.out.println("Error in numericalStatsAnalysis: " + e.getMessage()); | |
| 130 | 130 | } | |
| 131 | - // [END dlp_numerical_stats_analysis] | ||
| 131 | + // [END dlp_numerical_stats] | ||
| 132 | 132 | } | |
| 133 | 133 | ||
| 134 | 134 | private static void calculateCategoricalStats( | |
| 135 | 135 | String projectId, String datasetId, String tableId, String columnName) | |
| 136 | 136 | throws Exception { | |
| 137 | - // [START dlp_categorical_stats_analysis] | ||
| 137 | + // [START dlp_categorical_stats] | ||
| 138 | 138 | /** | |
| 139 | 139 | * Calculate categorical statistics for a column in a BigQuery table using the DLP API. | |
| 140 | 140 | * @param projectId The Google Cloud Platform project ID to run the API call under. | |
@@ -206,7 +206,7 @@ private static void calculateCategoricalStats( | |||
| 206 | 206 | } catch (Exception e) { | |
| 207 | 207 | System.out.println("Error in categoricalStatsAnalysis: " + e.getMessage()); | |
| 208 | 208 | } | |
| 209 | - // [END dlp_categorical_stats_analysis] | ||
| 209 | + // [END dlp_categorical_stats] | ||
| 210 | 210 | } | |
| 211 | 211 | ||
| 212 | 212 | private static void calculateKAnonymity( | |
| Back | FazBrowse Home | New Git URL |
0 commit comments