Fix: retrieve job config for risk analysis jobs.

Docs: clarify timespan config for BigQuery and Datastore.

PiperOrigin-RevId: 336694775
This commit is contained in:
Google APIs 2020-10-12 10:39:30 -07:00 committed by Copybara-Service
parent 438e61571a
commit 795f0cacce
2 changed files with 25 additions and 12 deletions

View File

@ -2033,6 +2033,12 @@ message AnalyzeDataSourceRiskDetails {
repeated DeltaPresenceEstimationHistogramBucket delta_presence_estimation_histogram = 1;
}
// Risk analysis options.
message RequestedRiskAnalysisOptions {
// The job config for the risk job.
RiskAnalysisJobConfig job_config = 1;
}
// Privacy metric to compute.
PrivacyMetric requested_privacy_metric = 1;
@ -2059,6 +2065,9 @@ message AnalyzeDataSourceRiskDetails {
// Delta-presence result
DeltaPresenceEstimationResult delta_presence_estimation_result = 9;
}
// The configuration used for this job.
RequestedRiskAnalysisOptions requested_options = 10;
}
// A value of a field, including its frequency.

View File

@ -473,27 +473,31 @@ message StorageConfig {
// Configuration of the timespan of the items to include in scanning.
// Currently only supported when inspecting Google Cloud Storage and BigQuery.
message TimespanConfig {
// Exclude files or rows older than this value.
// Exclude files, tables, or rows older than this value.
// If not set, no lower time limit is applied.
google.protobuf.Timestamp start_time = 1;
// Exclude files or rows newer than this value.
// If set to zero, no upper time limit is applied.
// Exclude files, tables, or rows newer than this value.
// If not set, no upper time limit is applied.
google.protobuf.Timestamp end_time = 2;
// Specification of the field containing the timestamp of scanned items.
// Used for data sources like Datastore and BigQuery.
//
// For BigQuery:
// Required to filter out rows based on the given start and
// end times. If not specified and the table was modified between the given
// start and end times, the entire table will be scanned.
// The valid data types of the timestamp field are: `INTEGER`, `DATE`,
// `TIMESTAMP`, or `DATETIME` BigQuery column.
// If this value is not specified and the table was modified between the
// given start and end times, the entire table will be scanned. If this
// value is specified, then rows are filtered based on the given start and
// end times. Rows with a `NULL` value in the provided BigQuery column are
// skipped.
// Valid data types of the provided BigQuery column are: `INTEGER`, `DATE`,
// `TIMESTAMP`, and `DATETIME`.
//
// For Datastore.
// Valid data types of the timestamp field are: `TIMESTAMP`.
// Datastore entity will be scanned if the timestamp property does not
// exist or its value is empty or invalid.
// For Datastore:
// If this value is specified, then entities are filtered based on the given
// start and end times. If an entity does not contain the provided timestamp
// property or contains empty or invalid values, then it is included.
// Valid data types of the provided timestamp property are: `TIMESTAMP`.
FieldId timestamp_field = 3;
// When the job is started by a JobTrigger we will automatically figure out