- JSON representation
- StorageConfig
- DatastoreOptions
- PartitionId
- KindExpression
- CloudStorageOptions
- FileSet
- CloudStorageRegexFileSet
- SampleMethod
- BigQueryOptions
- SampleMethod
- HybridOptions
- TableOptions
- TimespanConfig
Controls what and how to inspect for findings.
| JSON representation |
|---|
{ "storageConfig": { object ( |
| Fields | |
|---|---|
storageConfig |
The data to scan. |
inspectConfig |
How and what to scan for. |
inspectTemplateName |
If provided, will be used as the default for all values in InspectConfig. |
actions[] |
Actions to execute at the completion of the job. |
StorageConfig
Shared message indicating Cloud storage type.
| JSON representation |
|---|
{ "timespanConfig": { object ( |
| Fields | |
|---|---|
timespanConfig |
Configuration of the timespan of the items to include in scanning. |
| Type of storage system to inspect. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: | |
datastoreOptions |
Google Cloud Datastore options. |
cloudStorageOptions |
Cloud Storage options. |
bigQueryOptions |
BigQuery options. |
hybridOptions |
Hybrid inspection options. |
| End of mutually exclusive fields. | |
DatastoreOptions
Options defining a data set within Google Cloud Datastore.
| JSON representation |
|---|
{ "partitionId": { object ( |
| Fields | |
|---|---|
partitionId |
A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty. |
kind |
The kind to process. |
PartitionId
Datastore partition ID. A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty.
A partition ID contains several dimensions: project ID and namespace ID.
| JSON representation |
|---|
{ "projectId": string, "namespaceId": string } |
| Fields | |
|---|---|
projectId |
The ID of the project to which the entities belong. |
namespaceId |
If not empty, the ID of the namespace to which the entities belong. |
KindExpression
A representation of a Datastore kind.
| JSON representation |
|---|
{ "name": string } |
| Fields | |
|---|---|
name |
The name of the kind. |
CloudStorageOptions
Options defining a file or a set of files within a Cloud Storage bucket.
| JSON representation |
|---|
{ "fileSet": { object ( |
| Fields | |
|---|---|
fileSet |
The set of one or more files to scan. |
bytesLimitPerFile |
Max number of bytes to scan from a file. If a scanned file's size is bigger than this value then the rest of the bytes are omitted. Only one of |
bytesLimitPerFilePercent |
Max percentage of bytes to scan from a file. The rest are omitted. The number of bytes scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and 100 means no limit. Defaults to 0. Only one of bytesLimitPerFile and bytesLimitPerFilePercent can be specified. This field can't be set if de-identification is requested. For certain file types, setting this field has no effect. For more information, see Limits on bytes scanned per file. |
fileTypes[] |
List of file type groups to include in the scan. If empty, all files are scanned and available data format processors are applied. In addition, the binary content of the selected files is always scanned as well. Images are scanned only as binary if the specified region does not support image inspection and no fileTypes were specified. Image inspection is restricted to 'global', 'us', 'asia', and 'europe'. |
sampleMethod |
How to sample the data. |
filesLimitPercent |
Limits the number of files to scan to this percentage of the input FileSet. Number of files scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and 100 means no limit. Defaults to 0. |
FileSet
Set of files to scan.
| JSON representation |
|---|
{
"url": string,
"regexFileSet": {
object ( |
| Fields | |
|---|---|
url |
The Cloud Storage url of the file(s) to scan, in the format If the url ends in a trailing slash, the bucket or directory represented by the url will be scanned non-recursively (content in sub-directories will not be scanned). This means that Exactly one of |
regexFileSet |
The regex-filtered set of files to scan. Exactly one of |
CloudStorageRegexFileSet
Message representing a set of files in a Cloud Storage bucket. Regular expressions are used to allow fine-grained control over which files in the bucket to include.
Included files are those that match at least one item in includeRegex and do not match any items in excludeRegex. Note that a file that matches items from both lists will not be included. For a match to occur, the entire file path (i.e., everything in the url after the bucket name) must match the regular expression.
For example, given the input {bucketName: "mybucket", includeRegex:
["directory1/.*"], excludeRegex:
["directory1/excluded.*"]}:
gs://mybucket/directory1/myfilewill be includedgs://mybucket/directory1/directory2/myfilewill be included (.*matches across/)gs://mybucket/directory0/directory1/myfilewill not be included (the full path doesn't match any items inincludeRegex)gs://mybucket/directory1/excludedfilewill not be included (the path matches an item inexcludeRegex)
If includeRegex is left empty, it will match all files by default (this is equivalent to setting includeRegex: [".*"]).
Some other common use cases:
{bucketName: "mybucket", excludeRegex: [".*\.pdf"]}will include all files inmybucketexcept for .pdf files{bucketName: "mybucket", includeRegex: ["directory/[^/]+"]}will include all files directly undergs://mybucket/directory/, without matching across/
| JSON representation |
|---|
{ "bucketName": string, "includeRegex": [ string ], "excludeRegex": [ string ] } |
| Fields | |
|---|---|
bucketName |
The name of a Cloud Storage bucket. Required. |
includeRegex[] |
A list of regular expressions matching file paths to include. All files in the bucket that match at least one of these regular expressions will be included in the set of files, except for those that also match an item in Regular expressions use RE2 syntax; a guide can be found under the google/re2 repository on GitHub. |
excludeRegex[] |
A list of regular expressions matching file paths to exclude. All files in the bucket that match at least one of these regular expressions will be excluded from the scan. Regular expressions use RE2 syntax; a guide can be found under the google/re2 repository on GitHub. |
SampleMethod
How to sample bytes if not all bytes are scanned. Meaningful only when used in conjunction with bytesLimitPerFile. If not specified, scanning would start from the top.
| Enums | |
|---|---|
SAMPLE_METHOD_UNSPECIFIED |
No sampling. |
TOP |
Scan from the top (default). |
RANDOM_START |
For each file larger than bytesLimitPerFile, randomly pick the offset to start scanning. The scanned bytes are contiguous. |
BigQueryOptions
Options defining BigQuery table and row identifiers.
| JSON representation |
|---|
{ "tableReference": { object ( |
| Fields | |
|---|---|
tableReference |
Complete BigQuery table reference. |
identifyingFields[] |
Table fields that may uniquely identify a row within the table. When |