@@ -31,13 +31,13 @@ function inspectString (string, minLikelihood, maxFindings, infoTypes, includeQu
31
31
// const string = 'My name is Gary and my email is [email protected] ';
32
32
33
33
// The minimum likelihood required before returning a match
34
- // const minLikelihood = LIKELIHOOD_UNSPECIFIED;
34
+ // const minLikelihood = ' LIKELIHOOD_UNSPECIFIED' ;
35
35
36
36
// The maximum number of findings to report (0 = server maximum)
37
37
// const maxFindings = 0;
38
38
39
39
// The infoTypes of information to match
40
- // const infoTypes = ['US_MALE_NAME', 'US_FEMALE_NAME'];
40
+ // const infoTypes = [{ name: 'US_MALE_NAME', name: 'US_FEMALE_NAME' } ];
41
41
42
42
// Whether to include the matching string
43
43
// const includeQuote = true;
@@ -91,13 +91,13 @@ function inspectFile (filepath, minLikelihood, maxFindings, infoTypes, includeQu
91
91
// const fileName = 'path/to/image.png';
92
92
93
93
// The minimum likelihood required before returning a match
94
- // const minLikelihood = LIKELIHOOD_UNSPECIFIED;
94
+ // const minLikelihood = ' LIKELIHOOD_UNSPECIFIED' ;
95
95
96
96
// The maximum number of findings to report (0 = server maximum)
97
97
// const maxFindings = 0;
98
98
99
99
// The infoTypes of information to match
100
- // const infoTypes = ['US_MALE_NAME', 'US_FEMALE_NAME'];
100
+ // const infoTypes = [{ name: 'US_MALE_NAME' }, { name: 'US_FEMALE_NAME' } ];
101
101
102
102
// Whether to include the matching string
103
103
// const includeQuote = true;
@@ -158,13 +158,13 @@ function promiseInspectGCSFile (bucketName, fileName, minLikelihood, maxFindings
158
158
// const fileName = 'my-image.png';
159
159
160
160
// The minimum likelihood required before returning a match
161
- // const minLikelihood = LIKELIHOOD_UNSPECIFIED;
161
+ // const minLikelihood = ' LIKELIHOOD_UNSPECIFIED' ;
162
162
163
163
// The maximum number of findings to report (0 = server maximum)
164
164
// const maxFindings = 0;
165
165
166
166
// The infoTypes of information to match
167
- // const infoTypes = ['US_MALE_NAME', 'US_FEMALE_NAME'];
167
+ // const infoTypes = [{ name: 'US_MALE_NAME' }, { name: 'US_FEMALE_NAME' } ];
168
168
169
169
// Get reference to the file to be inspected
170
170
const storageItems = {
@@ -232,13 +232,13 @@ function eventInspectGCSFile (bucketName, fileName, minLikelihood, maxFindings,
232
232
// const fileName = 'my-image.png';
233
233
234
234
// The minimum likelihood required before returning a match
235
- // const minLikelihood = LIKELIHOOD_UNSPECIFIED;
235
+ // const minLikelihood = ' LIKELIHOOD_UNSPECIFIED' ;
236
236
237
237
// The maximum number of findings to report (0 = server maximum)
238
238
// const maxFindings = 0;
239
239
240
240
// The infoTypes of information to match
241
- // const infoTypes = ['US_MALE_NAME', 'US_FEMALE_NAME'];
241
+ // const infoTypes = [{ name: 'US_MALE_NAME' }, { name: 'US_FEMALE_NAME' } ];
242
242
243
243
// Get reference to the file to be inspected
244
244
const storageItems = {
@@ -320,13 +320,13 @@ function inspectDatastore (projectId, namespaceId, kind, minLikelihood, maxFindi
320
320
// const kind = 'Person';
321
321
322
322
// The minimum likelihood required before returning a match
323
- // const minLikelihood = LIKELIHOOD_UNSPECIFIED;
323
+ // const minLikelihood = ' LIKELIHOOD_UNSPECIFIED' ;
324
324
325
325
// The maximum number of findings to report (0 = server maximum)
326
326
// const maxFindings = 0;
327
327
328
328
// The infoTypes of information to match
329
- // const infoTypes = ['US_MALE_NAME', 'US_FEMALE_NAME'];
329
+ // const infoTypes = [{ name: 'US_MALE_NAME' }, { name: 'US_FEMALE_NAME' } ];
330
330
331
331
// Get reference to the file to be inspected
332
332
const storageItems = {
0 commit comments