Resource: TableDataProfile
The profile for a scanned table.
JSON representation |
---|
{ "name": string, "dataSourceType": { object ( |
Fields | |
---|---|
name |
The name of the profile. |
dataSourceType |
The resource type that was profiled. |
projectDataProfile |
The resource name to the project data profile for this table. |
datasetProjectId |
The Google Cloud project ID that owns the resource. |
datasetLocation |
If supported, the location where the dataset's data is stored. See https://cloud.google.com/bigquery/docs/locations for supported locations. |
datasetId |
If the resource is BigQuery, the dataset ID. |
tableId |
If the resource is BigQuery, the BigQuery table ID. |
fullResource |
The resource name of the resource profiled. https://cloud.google.com/apis/design/resource_names#full_resource_name |
profileStatus |
Success or error status from the most recent profile generation attempt. May be empty if the profile is still being generated. |
state |
State of a profile. |
sensitivityScore |
The sensitivity score of this table. |
dataRiskLevel |
The data risk level of this table. |
predictedInfoTypes[] |
The infoTypes predicted from this table's data. |
otherInfoTypes[] |
Other infoTypes found in this table's data. |
configSnapshot |
The snapshot of the configurations used to generate the profile. |
lastModifiedTime |
The time when this table was last modified A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
expirationTime |
Optional. The time when this table expires. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
scannedColumnCount |
The number of columns profiled in the table. |
failedColumnCount |
The number of columns skipped in the table because of an error. |
tableSizeBytes |
The size of the table when the profile was generated. |
rowCount |
Number of rows in the table when the profile was generated. This will not be populated for BigLake tables. |
encryptionStatus |
How the table is encrypted. |
resourceVisibility |
How broadly a resource has been shared. |
profileLastGenerated |
The last time the profile was generated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
resourceLabels |
The labels applied to the resource at the time the profile was generated. An object containing a list of |
createTime |
The time at which the table was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
DataSourceType
Message used to identify the type of resource being profiled.
JSON representation |
---|
{ "dataSource": string } |
Fields | |
---|---|
dataSource |
Output only. An identifying string to the type of resource being profiled. Current values: google/bigquery/table, google/project |
State
Possible states of a profile. New items may be added.
Enums | |
---|---|
STATE_UNSPECIFIED |
Unused. |
RUNNING |
The profile is currently running. Once a profile has finished it will transition to DONE. |
DONE |
The profile is no longer generating. If profileStatus.status.code is 0, the profile succeeded, otherwise, it failed. |
DataProfileConfigSnapshot
Snapshot of the configurations used to generate the profile.
JSON representation |
---|
{ "inspectConfig": { object ( |
Fields | |
---|---|
inspectConfig |
A copy of the inspection config used to generate this profile. This is a copy of the inspectTemplate specified in |
dataProfileJob |
A copy of the configuration used to generate this profile. This is deprecated, and the DiscoveryConfig field is preferred moving forward. DataProfileJobConfig will still be written here for Discovery in BigQuery for backwards compatibility, but will not be updated with new fields, while DiscoveryConfig will. |
discoveryConfig |
A copy of the configuration used to generate this profile. |
inspectTemplateName |
Name of the inspection template used to generate this profile |
inspectTemplateModifiedTime |
Timestamp when the template was modified A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
DataProfileJobConfig
Configuration for setting up a job to scan resources for profile generation. Only one data profile configuration may exist per organization, folder, or project.
The generated data profiles are retained according to the data retention policy.
JSON representation |
---|
{ "location": { object ( |
Fields | |
---|---|
location |
The data to scan. |
projectId |
The project that will run the scan. The DLP service account that exists within this project must have access to all resources that are profiled, and the Cloud DLP API must be enabled. |
inspectTemplates[] |
Detection logic for profile generation. Not all template features are used by profiles. FindingLimits, includeQuote and excludeInfoTypes have no impact on data profiling. Multiple templates may be provided if there is data in multiple regions. At most one template must be specified per-region (including "global"). Each region is scanned using the applicable template. If no region-specific template is specified, but a "global" template is specified, it will be copied to that region and used instead. If no global or region-specific template is provided for a region with data, that region's data will not be scanned. For more information, see https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. |
dataProfileActions[] |
Actions to execute at the completion of the job. |
DataProfileLocation
The data that will be profiled.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field location . The location to be scanned. location can be only one of the following: |
|
organizationId |
The ID of an organization to scan. |
folderId |
The ID of the Folder within an organization to scan. |
EncryptionStatus
How a resource is encrypted.
Enums | |
---|---|
ENCRYPTION_STATUS_UNSPECIFIED |
Unused. |
ENCRYPTION_GOOGLE_MANAGED |
Google manages server-side encryption keys on your behalf. |
ENCRYPTION_CUSTOMER_MANAGED |
Customer provides the key. |
ResourceVisibility
How broadly the data in the resource has been shared. New items may be added over time. A higher number means more restricted.
Enums | |
---|---|
RESOURCE_VISIBILITY_UNSPECIFIED |
Unused. |
RESOURCE_VISIBILITY_PUBLIC |
Visible to any user. |
RESOURCE_VISIBILITY_RESTRICTED |
Visible only to specific users. |
Methods |
|
---|---|
|
Gets a table data profile. |
|
Lists table data profiles for an organization. |