Reference documentation and code samples for the Data Loss Prevention V2 Client class FileType.
Definitions of file type groups to scan. New types will be added to this list.
Protobuf type google.privacy.dlp.v2.FileType
Namespace
Google \ Cloud \ Dlp \ V2Methods
static::name
| Parameter | |
|---|---|
| Name | Description |
value |
mixed
|
static::value
| Parameter | |
|---|---|
| Name | Description |
name |
mixed
|
Constants
FILE_TYPE_UNSPECIFIED
Value: 0Includes all files.
Generated from protobuf enum FILE_TYPE_UNSPECIFIED = 0;
BINARY_FILE
Value: 1Includes all file extensions not covered by another entry. Binary scanning attempts to convert the content of the file to utf_8 to scan the file.
If you wish to avoid this fall back, specify one or more of the other FileType's in your storage scan.
Generated from protobuf enum BINARY_FILE = 1;
TEXT_FILE
Value: 2Included file extensions: asc,asp, aspx, brf, c, cc,cfm, cgi, cpp, csv, cxx, c++, cs, css, dart, dat, dot, eml,, epbub, ged, go, h, hh, hpp, hxx, h++, hs, html, htm, mkd, markdown, m, ml, mli, perl, pl, plist, pm, php, phtml, pht, properties, py, pyw, rb, rbw, rs, rss, rc, scala, sh, sql, swift, tex, shtml, shtm, xhtml, lhs, ics, ini, java, js, json, kix, kml, ocaml, md, txt, text, tsv, vb, vcard, vcs, wml, xcodeproj, xml, xsl, xsd, yml, yaml.
Generated from protobuf enum TEXT_FILE = 2;
IMAGE
Value: 3Included file extensions: bmp, gif, jpg, jpeg, jpe, png.
bytes_limit_per_file has no effect on image files. Image inspection is restricted to 'global', 'us', 'asia', and 'europe'.
Generated from protobuf enum IMAGE = 3;
WORD
Value: 5Word files >30 MB will be scanned as binary files.
Included file extensions: docx, dotx, docm, dotm
Generated from protobuf enum WORD = 5;
Value: 6PDF files >30 MB will be scanned as binary files.
Included file extensions: pdf
Generated from protobuf enum PDF = 6;
AVRO
Value: 7Included file extensions: avro
Generated from protobuf enum AVRO = 7;
CSV
Value: 8Included file extensions: csv
Generated from protobuf enum CSV = 8;
TSV
Value: 9Included file extensions: tsv
Generated from protobuf enum TSV = 9;
POWERPOINT
Value: 11Powerpoint files >30 MB will be scanned as binary files.
Included file extensions: pptx, pptm, potx, potm, pot
Generated from protobuf enum POWERPOINT = 11;
EXCEL
Value: 12Excel files >30 MB will be scanned as binary files.
Included file extensions: xlsx, xlsm, xltx, xltm
Generated from protobuf enum EXCEL = 12;