Synchronize new proto changes.

This commit is contained in:
Google APIs 2017-04-25 17:01:59 -07:00
parent a2f0dd8c40
commit 674c8927a4
2 changed files with 37 additions and 0 deletions

View File

@ -238,6 +238,28 @@ message CreateInspectOperationRequest {
// Specification of the data set to process.
StorageConfig storage_config = 2;
// Optional location to store findings. The bucket must already exist and
// the Google APIs service account for DLP must have write permission to
// write to the given bucket.
// Results will be split over multiple csv files with each file name matching
// the pattern "[operation_id] + [count].csv".
// The operation_id will match the identifier for the Operation,
// and the [count] is a counter used for tracking the number of files written.
// The CSV file(s) contain the following columns regardless of storage type
// scanned: id, info_type, likelihood, byte size of finding, quote, time_stamp
// For cloud storage the next two columns are: file_path, start_offset
// For datastore the next two columns are: project_id, namespace_id, path,
// column_name, offset.
OutputStorageConfig output_config = 3;
}
// Cloud repository for storing output.
message OutputStorageConfig {
oneof type {
// The path to a Google Storage location to store output.
CloudStoragePath storage_path = 2;
}
}
// Stats regarding a specific InfoType.
@ -261,6 +283,15 @@ message InspectOperationMetadata {
// The time which this request was started.
google.protobuf.Timestamp create_time = 3;
// The inspect config used to create the Operation.
InspectConfig request_inspect_config = 5;
// The storage config used to create the Operation.
StorageConfig request_storage_config = 6;
// Optional location to store findings.
OutputStorageConfig request_output_config = 7;
}
// The operational data.

View File

@ -96,6 +96,12 @@ message CloudStorageOptions {
FileSet file_set = 1;
}
// A location in Cloud Storage.
message CloudStoragePath {
// The url, in the format of gs://bucket/<path>.
string path = 1;
}
// Shared message indicating Cloud storage type.
message StorageConfig {
oneof type {