Definitions of file type groups to scan. New types will be
added to this list.
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, jsonl, kix, kml, ocaml, md,
txt, text, tsv, vb, vcard, vcs, wml, xcodeproj,
xml, xsl, xsd, yml, yaml.
IMAGE (3):
Included file extensions: bmp, gif, jpg, jpeg, jpe, png.
Setting
`bytes_limit_per_file][google.privacy.dlp.v2.CloudStorageOptions.bytes_limit_per_file]`
or
`bytes_limit_per_file_percent][google.privacy.dlp.v2.CloudStorageOptions.bytes_limit_per_file]`
has no effect on image files. Image inspection is restricted
to the `global`, `us`, `asia`, and `europe` regions.
WORD (5):
Microsoft Word files larger than 30 MB will be scanned as
binary files. Included file extensions: docx, dotx, docm,
dotm. Setting `bytes_limit_per_file` or
`bytes_limit_per_file_percent` has no effect on Word
files.
PDF (6):
PDF files larger than 30 MB will be scanned as binary files.
Included file extensions: pdf. Setting
`bytes_limit_per_file` or `bytes_limit_per_file_percent`
has no effect on PDF files.
AVRO (7):
Included file extensions:
avro
CSV (8):
Included file extensions:
csv
TSV (9):
Included file extensions:
tsv
POWERPOINT (11):
Microsoft PowerPoint files larger than 30 MB will be scanned
as binary files. Included file extensions: pptx, pptm, potx,
potm, pot. Setting `bytes_limit_per_file` or
`bytes_limit_per_file_percent` has no effect on PowerPoint
files.
EXCEL (12):
Microsoft Excel files larger than 30 MB will be scanned as
binary files. Included file extensions: xlsx, xlsm, xltx,
xltm. Setting `bytes_limit_per_file` or
`bytes_limit_per_file_percent` has no effect on Excel
files.
Enums
Name
Description
FILE_TYPE_UNSPECIFIED
Includes all files.
BINARY_FILE
Includes 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 file types in your storage scan.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Class FileType (3.31.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.31.0 (latest)](/python/docs/reference/dlp/latest/google.cloud.dlp_v2.types.FileType)\n- [3.30.0](/python/docs/reference/dlp/3.30.0/google.cloud.dlp_v2.types.FileType)\n- [3.29.0](/python/docs/reference/dlp/3.29.0/google.cloud.dlp_v2.types.FileType)\n- [3.28.0](/python/docs/reference/dlp/3.28.0/google.cloud.dlp_v2.types.FileType)\n- [3.27.0](/python/docs/reference/dlp/3.27.0/google.cloud.dlp_v2.types.FileType)\n- [3.26.0](/python/docs/reference/dlp/3.26.0/google.cloud.dlp_v2.types.FileType)\n- [3.25.1](/python/docs/reference/dlp/3.25.1/google.cloud.dlp_v2.types.FileType)\n- [3.24.0](/python/docs/reference/dlp/3.24.0/google.cloud.dlp_v2.types.FileType)\n- [3.23.0](/python/docs/reference/dlp/3.23.0/google.cloud.dlp_v2.types.FileType)\n- [3.22.0](/python/docs/reference/dlp/3.22.0/google.cloud.dlp_v2.types.FileType)\n- [3.20.0](/python/docs/reference/dlp/3.20.0/google.cloud.dlp_v2.types.FileType)\n- [3.19.0](/python/docs/reference/dlp/3.19.0/google.cloud.dlp_v2.types.FileType)\n- [3.18.1](/python/docs/reference/dlp/3.18.1/google.cloud.dlp_v2.types.FileType)\n- [3.17.0](/python/docs/reference/dlp/3.17.0/google.cloud.dlp_v2.types.FileType)\n- [3.16.0](/python/docs/reference/dlp/3.16.0/google.cloud.dlp_v2.types.FileType)\n- [3.15.3](/python/docs/reference/dlp/3.15.3/google.cloud.dlp_v2.types.FileType)\n- [3.14.0](/python/docs/reference/dlp/3.14.0/google.cloud.dlp_v2.types.FileType)\n- [3.13.0](/python/docs/reference/dlp/3.13.0/google.cloud.dlp_v2.types.FileType)\n- [3.12.3](/python/docs/reference/dlp/3.12.3/google.cloud.dlp_v2.types.FileType)\n- [3.11.1](/python/docs/reference/dlp/3.11.1/google.cloud.dlp_v2.types.FileType)\n- [3.10.1](/python/docs/reference/dlp/3.10.1/google.cloud.dlp_v2.types.FileType)\n- [3.9.2](/python/docs/reference/dlp/3.9.2/google.cloud.dlp_v2.types.FileType)\n- [3.8.1](/python/docs/reference/dlp/3.8.1/google.cloud.dlp_v2.types.FileType)\n- [3.7.1](/python/docs/reference/dlp/3.7.1/google.cloud.dlp_v2.types.FileType)\n- [3.6.2](/python/docs/reference/dlp/3.6.2/google.cloud.dlp_v2.types.FileType)\n- [3.5.0](/python/docs/reference/dlp/3.5.0/google.cloud.dlp_v2.types.FileType)\n- [3.4.0](/python/docs/reference/dlp/3.4.0/google.cloud.dlp_v2.types.FileType)\n- [3.3.1](/python/docs/reference/dlp/3.3.1/google.cloud.dlp_v2.types.FileType)\n- [3.2.4](/python/docs/reference/dlp/3.2.4/google.cloud.dlp_v2.types.FileType)\n- [3.1.1](/python/docs/reference/dlp/3.1.1/google.cloud.dlp_v2.types.FileType)\n- [3.0.1](/python/docs/reference/dlp/3.0.1/google.cloud.dlp_v2.types.FileType)\n- [2.0.2](/python/docs/reference/dlp/2.0.2/google.cloud.dlp_v2.types.FileType)\n- [1.0.2](/python/docs/reference/dlp/1.0.2/google.cloud.dlp_v2.types.FileType)\n- [0.15.2](/python/docs/reference/dlp/0.15.2/google.cloud.dlp_v2.types.FileType)\n- [0.14.0](/python/docs/reference/dlp/0.14.0/google.cloud.dlp_v2.types.FileType)\n- [0.13.0](/python/docs/reference/dlp/0.13.0/google.cloud.dlp_v2.types.FileType)\n- [0.12.1](/python/docs/reference/dlp/0.12.1/google.cloud.dlp_v2.types.FileType) \n\n FileType(value)\n\nDefinitions of file type groups to scan. New types will be\nadded to this list. \n\n asc,asp, aspx, brf, c, cc,cfm, cgi, cpp, csv,\n cxx, c++, cs, css, dart, dat, dot, eml,,\n epbub, ged, go, h, hh, hpp, hxx, h++, hs, html,\n htm, mkd, markdown, m, ml, mli, perl, pl,\n plist, pm, php, phtml, pht, properties, py,\n pyw, rb, rbw, rs, rss, rc, scala, sh, sql,\n swift, tex, shtml, shtm, xhtml, lhs, ics, ini,\n java, js, json, jsonl, kix, kml, ocaml, md,\n txt, text, tsv, vb, vcard, vcs, wml, xcodeproj,\n xml, xsl, xsd, yml, yaml.\n IMAGE (3):\n Included file extensions: bmp, gif, jpg, jpeg, jpe, png.\n Setting\n `bytes_limit_per_file][google.privacy.dlp.v2.CloudStorageOptions.bytes_limit_per_file]`\n or\n `bytes_limit_per_file_percent][google.privacy.dlp.v2.CloudStorageOptions.bytes_limit_per_file]`\n has no effect on image files. Image inspection is restricted\n to the `global`, `us`, `asia`, and `europe` regions.\n WORD (5):\n Microsoft Word files larger than 30 MB will be scanned as\n binary files. Included file extensions: docx, dotx, docm,\n dotm. Setting `bytes_limit_per_file` or\n `bytes_limit_per_file_percent` has no effect on Word\n files.\n PDF (6):\n PDF files larger than 30 MB will be scanned as binary files.\n Included file extensions: pdf. Setting\n `bytes_limit_per_file` or `bytes_limit_per_file_percent`\n has no effect on PDF files.\n AVRO (7):\n Included file extensions:\n\n avro\n CSV (8):\n Included file extensions:\n\n csv\n TSV (9):\n Included file extensions:\n\n tsv\n POWERPOINT (11):\n Microsoft PowerPoint files larger than 30 MB will be scanned\n as binary files. Included file extensions: pptx, pptm, potx,\n potm, pot. Setting `bytes_limit_per_file` or\n `bytes_limit_per_file_percent` has no effect on PowerPoint\n files.\n EXCEL (12):\n Microsoft Excel files larger than 30 MB will be scanned as\n binary files. Included file extensions: xlsx, xlsm, xltx,\n xltm. Setting `bytes_limit_per_file` or\n `bytes_limit_per_file_percent` has no effect on Excel\n files."]]