google-cloud-dlp 0.15.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +2 -1
- data/AUTHENTICATION.md +51 -59
- data/LICENSE.md +203 -0
- data/MIGRATING.md +303 -0
- data/README.md +35 -26
- data/lib/{google/cloud/dlp/v2/doc/google/protobuf/empty.rb → google-cloud-dlp.rb} +4 -14
- data/lib/google/cloud/dlp.rb +82 -119
- data/lib/google/cloud/dlp/version.rb +6 -2
- metadata +85 -56
- data/LICENSE +0 -201
- data/lib/google/cloud/dlp/v2.rb +0 -155
- data/lib/google/cloud/dlp/v2/credentials.rb +0 -41
- data/lib/google/cloud/dlp/v2/dlp_service_client.rb +0 -2368
- data/lib/google/cloud/dlp/v2/dlp_service_client_config.json +0 -191
- data/lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/dlp.rb +0 -3163
- data/lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/storage.rb +0 -682
- data/lib/google/cloud/dlp/v2/doc/google/protobuf/any.rb +0 -131
- data/lib/google/cloud/dlp/v2/doc/google/protobuf/duration.rb +0 -91
- data/lib/google/cloud/dlp/v2/doc/google/protobuf/field_mask.rb +0 -222
- data/lib/google/cloud/dlp/v2/doc/google/protobuf/timestamp.rb +0 -113
- data/lib/google/cloud/dlp/v2/doc/google/rpc/status.rb +0 -39
- data/lib/google/cloud/dlp/v2/doc/google/type/date.rb +0 -43
- data/lib/google/cloud/dlp/v2/doc/google/type/timeofday.rb +0 -37
- data/lib/google/privacy/dlp/v2/dlp_pb.rb +0 -1200
- data/lib/google/privacy/dlp/v2/dlp_services_pb.rb +0 -214
- data/lib/google/privacy/dlp/v2/storage_pb.rb +0 -246
@@ -1,214 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# Source: google/privacy/dlp/v2/dlp.proto for package 'google.privacy.dlp.v2'
|
3
|
-
# Original file comments:
|
4
|
-
# Copyright 2020 Google LLC
|
5
|
-
#
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
# See the License for the specific language governing permissions and
|
16
|
-
# limitations under the License.
|
17
|
-
#
|
18
|
-
|
19
|
-
|
20
|
-
require 'grpc'
|
21
|
-
require 'google/privacy/dlp/v2/dlp_pb'
|
22
|
-
|
23
|
-
module Google
|
24
|
-
module Privacy
|
25
|
-
module Dlp
|
26
|
-
module V2
|
27
|
-
module DlpService
|
28
|
-
# The Cloud Data Loss Prevention (DLP) API is a service that allows clients
|
29
|
-
# to detect the presence of Personally Identifiable Information (PII) and other
|
30
|
-
# privacy-sensitive data in user-supplied, unstructured data streams, like text
|
31
|
-
# blocks or images.
|
32
|
-
# The service also includes methods for sensitive data redaction and
|
33
|
-
# scheduling of data scans on Google Cloud Platform based data sets.
|
34
|
-
#
|
35
|
-
# To learn more about concepts and find how-to guides see
|
36
|
-
# https://cloud.google.com/dlp/docs/.
|
37
|
-
class Service
|
38
|
-
|
39
|
-
include GRPC::GenericService
|
40
|
-
|
41
|
-
self.marshal_class_method = :encode
|
42
|
-
self.unmarshal_class_method = :decode
|
43
|
-
self.service_name = 'google.privacy.dlp.v2.DlpService'
|
44
|
-
|
45
|
-
# Finds potentially sensitive info in content.
|
46
|
-
# This method has limits on input size, processing time, and output size.
|
47
|
-
#
|
48
|
-
# When no InfoTypes or CustomInfoTypes are specified in this request, the
|
49
|
-
# system will automatically choose what detectors to run. By default this may
|
50
|
-
# be all types, but may change over time as detectors are updated.
|
51
|
-
#
|
52
|
-
# For how to guides, see https://cloud.google.com/dlp/docs/inspecting-images
|
53
|
-
# and https://cloud.google.com/dlp/docs/inspecting-text,
|
54
|
-
rpc :InspectContent, InspectContentRequest, InspectContentResponse
|
55
|
-
# Redacts potentially sensitive info from an image.
|
56
|
-
# This method has limits on input size, processing time, and output size.
|
57
|
-
# See https://cloud.google.com/dlp/docs/redacting-sensitive-data-images to
|
58
|
-
# learn more.
|
59
|
-
#
|
60
|
-
# When no InfoTypes or CustomInfoTypes are specified in this request, the
|
61
|
-
# system will automatically choose what detectors to run. By default this may
|
62
|
-
# be all types, but may change over time as detectors are updated.
|
63
|
-
rpc :RedactImage, RedactImageRequest, RedactImageResponse
|
64
|
-
# De-identifies potentially sensitive info from a ContentItem.
|
65
|
-
# This method has limits on input size and output size.
|
66
|
-
# See https://cloud.google.com/dlp/docs/deidentify-sensitive-data to
|
67
|
-
# learn more.
|
68
|
-
#
|
69
|
-
# When no InfoTypes or CustomInfoTypes are specified in this request, the
|
70
|
-
# system will automatically choose what detectors to run. By default this may
|
71
|
-
# be all types, but may change over time as detectors are updated.
|
72
|
-
rpc :DeidentifyContent, DeidentifyContentRequest, DeidentifyContentResponse
|
73
|
-
# Re-identifies content that has been de-identified.
|
74
|
-
# See
|
75
|
-
# https://cloud.google.com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example
|
76
|
-
# to learn more.
|
77
|
-
rpc :ReidentifyContent, ReidentifyContentRequest, ReidentifyContentResponse
|
78
|
-
# Returns a list of the sensitive information types that the DLP API
|
79
|
-
# supports. See https://cloud.google.com/dlp/docs/infotypes-reference to
|
80
|
-
# learn more.
|
81
|
-
rpc :ListInfoTypes, ListInfoTypesRequest, ListInfoTypesResponse
|
82
|
-
# Creates an InspectTemplate for re-using frequently used configuration
|
83
|
-
# for inspecting content, images, and storage.
|
84
|
-
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
85
|
-
rpc :CreateInspectTemplate, CreateInspectTemplateRequest, InspectTemplate
|
86
|
-
# Updates the InspectTemplate.
|
87
|
-
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
88
|
-
rpc :UpdateInspectTemplate, UpdateInspectTemplateRequest, InspectTemplate
|
89
|
-
# Gets an InspectTemplate.
|
90
|
-
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
91
|
-
rpc :GetInspectTemplate, GetInspectTemplateRequest, InspectTemplate
|
92
|
-
# Lists InspectTemplates.
|
93
|
-
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
94
|
-
rpc :ListInspectTemplates, ListInspectTemplatesRequest, ListInspectTemplatesResponse
|
95
|
-
# Deletes an InspectTemplate.
|
96
|
-
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
97
|
-
rpc :DeleteInspectTemplate, DeleteInspectTemplateRequest, Google::Protobuf::Empty
|
98
|
-
# Creates a DeidentifyTemplate for re-using frequently used configuration
|
99
|
-
# for de-identifying content, images, and storage.
|
100
|
-
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
101
|
-
# more.
|
102
|
-
rpc :CreateDeidentifyTemplate, CreateDeidentifyTemplateRequest, DeidentifyTemplate
|
103
|
-
# Updates the DeidentifyTemplate.
|
104
|
-
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
105
|
-
# more.
|
106
|
-
rpc :UpdateDeidentifyTemplate, UpdateDeidentifyTemplateRequest, DeidentifyTemplate
|
107
|
-
# Gets a DeidentifyTemplate.
|
108
|
-
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
109
|
-
# more.
|
110
|
-
rpc :GetDeidentifyTemplate, GetDeidentifyTemplateRequest, DeidentifyTemplate
|
111
|
-
# Lists DeidentifyTemplates.
|
112
|
-
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
113
|
-
# more.
|
114
|
-
rpc :ListDeidentifyTemplates, ListDeidentifyTemplatesRequest, ListDeidentifyTemplatesResponse
|
115
|
-
# Deletes a DeidentifyTemplate.
|
116
|
-
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
117
|
-
# more.
|
118
|
-
rpc :DeleteDeidentifyTemplate, DeleteDeidentifyTemplateRequest, Google::Protobuf::Empty
|
119
|
-
# Creates a job trigger to run DLP actions such as scanning storage for
|
120
|
-
# sensitive information on a set schedule.
|
121
|
-
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
122
|
-
rpc :CreateJobTrigger, CreateJobTriggerRequest, JobTrigger
|
123
|
-
# Updates a job trigger.
|
124
|
-
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
125
|
-
rpc :UpdateJobTrigger, UpdateJobTriggerRequest, JobTrigger
|
126
|
-
# Inspect hybrid content and store findings to a trigger. The inspection
|
127
|
-
# will be processed asynchronously. To review the findings monitor the
|
128
|
-
# jobs within the trigger.
|
129
|
-
# Early access feature is in a pre-release state and might change or have
|
130
|
-
# limited support. For more information, see
|
131
|
-
# https://cloud.google.com/products#product-launch-stages.
|
132
|
-
rpc :HybridInspectJobTrigger, HybridInspectJobTriggerRequest, HybridInspectResponse
|
133
|
-
# Gets a job trigger.
|
134
|
-
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
135
|
-
rpc :GetJobTrigger, GetJobTriggerRequest, JobTrigger
|
136
|
-
# Lists job triggers.
|
137
|
-
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
138
|
-
rpc :ListJobTriggers, ListJobTriggersRequest, ListJobTriggersResponse
|
139
|
-
# Deletes a job trigger.
|
140
|
-
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
141
|
-
rpc :DeleteJobTrigger, DeleteJobTriggerRequest, Google::Protobuf::Empty
|
142
|
-
# Activate a job trigger. Causes the immediate execute of a trigger
|
143
|
-
# instead of waiting on the trigger event to occur.
|
144
|
-
rpc :ActivateJobTrigger, ActivateJobTriggerRequest, DlpJob
|
145
|
-
# Creates a new job to inspect storage or calculate risk metrics.
|
146
|
-
# See https://cloud.google.com/dlp/docs/inspecting-storage and
|
147
|
-
# https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
|
148
|
-
#
|
149
|
-
# When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the
|
150
|
-
# system will automatically choose what detectors to run. By default this may
|
151
|
-
# be all types, but may change over time as detectors are updated.
|
152
|
-
rpc :CreateDlpJob, CreateDlpJobRequest, DlpJob
|
153
|
-
# Lists DlpJobs that match the specified filter in the request.
|
154
|
-
# See https://cloud.google.com/dlp/docs/inspecting-storage and
|
155
|
-
# https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
|
156
|
-
rpc :ListDlpJobs, ListDlpJobsRequest, ListDlpJobsResponse
|
157
|
-
# Gets the latest state of a long-running DlpJob.
|
158
|
-
# See https://cloud.google.com/dlp/docs/inspecting-storage and
|
159
|
-
# https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
|
160
|
-
rpc :GetDlpJob, GetDlpJobRequest, DlpJob
|
161
|
-
# Deletes a long-running DlpJob. This method indicates that the client is
|
162
|
-
# no longer interested in the DlpJob result. The job will be cancelled if
|
163
|
-
# possible.
|
164
|
-
# See https://cloud.google.com/dlp/docs/inspecting-storage and
|
165
|
-
# https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
|
166
|
-
rpc :DeleteDlpJob, DeleteDlpJobRequest, Google::Protobuf::Empty
|
167
|
-
# Starts asynchronous cancellation on a long-running DlpJob. The server
|
168
|
-
# makes a best effort to cancel the DlpJob, but success is not
|
169
|
-
# guaranteed.
|
170
|
-
# See https://cloud.google.com/dlp/docs/inspecting-storage and
|
171
|
-
# https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
|
172
|
-
rpc :CancelDlpJob, CancelDlpJobRequest, Google::Protobuf::Empty
|
173
|
-
# Creates a pre-built stored infoType to be used for inspection.
|
174
|
-
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
175
|
-
# learn more.
|
176
|
-
rpc :CreateStoredInfoType, CreateStoredInfoTypeRequest, StoredInfoType
|
177
|
-
# Updates the stored infoType by creating a new version. The existing version
|
178
|
-
# will continue to be used until the new version is ready.
|
179
|
-
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
180
|
-
# learn more.
|
181
|
-
rpc :UpdateStoredInfoType, UpdateStoredInfoTypeRequest, StoredInfoType
|
182
|
-
# Gets a stored infoType.
|
183
|
-
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
184
|
-
# learn more.
|
185
|
-
rpc :GetStoredInfoType, GetStoredInfoTypeRequest, StoredInfoType
|
186
|
-
# Lists stored infoTypes.
|
187
|
-
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
188
|
-
# learn more.
|
189
|
-
rpc :ListStoredInfoTypes, ListStoredInfoTypesRequest, ListStoredInfoTypesResponse
|
190
|
-
# Deletes a stored infoType.
|
191
|
-
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
192
|
-
# learn more.
|
193
|
-
rpc :DeleteStoredInfoType, DeleteStoredInfoTypeRequest, Google::Protobuf::Empty
|
194
|
-
# Inspect hybrid content and store findings to a job.
|
195
|
-
# To review the findings inspect the job. Inspection will occur
|
196
|
-
# asynchronously.
|
197
|
-
# Early access feature is in a pre-release state and might change or have
|
198
|
-
# limited support. For more information, see
|
199
|
-
# https://cloud.google.com/products#product-launch-stages.
|
200
|
-
rpc :HybridInspectDlpJob, HybridInspectDlpJobRequest, HybridInspectResponse
|
201
|
-
# Finish a running hybrid DlpJob. Triggers the finalization steps and running
|
202
|
-
# of any enabled actions that have not yet run.
|
203
|
-
# Early access feature is in a pre-release state and might change or have
|
204
|
-
# limited support. For more information, see
|
205
|
-
# https://cloud.google.com/products#product-launch-stages.
|
206
|
-
rpc :FinishDlpJob, FinishDlpJobRequest, Google::Protobuf::Empty
|
207
|
-
end
|
208
|
-
|
209
|
-
Stub = Service.rpc_stub_class
|
210
|
-
end
|
211
|
-
end
|
212
|
-
end
|
213
|
-
end
|
214
|
-
end
|
@@ -1,246 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/privacy/dlp/v2/storage.proto
|
3
|
-
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
require 'google/api/resource_pb'
|
8
|
-
require 'google/protobuf/timestamp_pb'
|
9
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
|
-
add_message "google.privacy.dlp.v2.InfoType" do
|
11
|
-
optional :name, :string, 1
|
12
|
-
end
|
13
|
-
add_message "google.privacy.dlp.v2.StoredType" do
|
14
|
-
optional :name, :string, 1
|
15
|
-
optional :create_time, :message, 2, "google.protobuf.Timestamp"
|
16
|
-
end
|
17
|
-
add_message "google.privacy.dlp.v2.CustomInfoType" do
|
18
|
-
optional :info_type, :message, 1, "google.privacy.dlp.v2.InfoType"
|
19
|
-
optional :likelihood, :enum, 6, "google.privacy.dlp.v2.Likelihood"
|
20
|
-
repeated :detection_rules, :message, 7, "google.privacy.dlp.v2.CustomInfoType.DetectionRule"
|
21
|
-
optional :exclusion_type, :enum, 8, "google.privacy.dlp.v2.CustomInfoType.ExclusionType"
|
22
|
-
oneof :type do
|
23
|
-
optional :dictionary, :message, 2, "google.privacy.dlp.v2.CustomInfoType.Dictionary"
|
24
|
-
optional :regex, :message, 3, "google.privacy.dlp.v2.CustomInfoType.Regex"
|
25
|
-
optional :surrogate_type, :message, 4, "google.privacy.dlp.v2.CustomInfoType.SurrogateType"
|
26
|
-
optional :stored_type, :message, 5, "google.privacy.dlp.v2.StoredType"
|
27
|
-
end
|
28
|
-
end
|
29
|
-
add_message "google.privacy.dlp.v2.CustomInfoType.Dictionary" do
|
30
|
-
oneof :source do
|
31
|
-
optional :word_list, :message, 1, "google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList"
|
32
|
-
optional :cloud_storage_path, :message, 3, "google.privacy.dlp.v2.CloudStoragePath"
|
33
|
-
end
|
34
|
-
end
|
35
|
-
add_message "google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList" do
|
36
|
-
repeated :words, :string, 1
|
37
|
-
end
|
38
|
-
add_message "google.privacy.dlp.v2.CustomInfoType.Regex" do
|
39
|
-
optional :pattern, :string, 1
|
40
|
-
repeated :group_indexes, :int32, 2
|
41
|
-
end
|
42
|
-
add_message "google.privacy.dlp.v2.CustomInfoType.SurrogateType" do
|
43
|
-
end
|
44
|
-
add_message "google.privacy.dlp.v2.CustomInfoType.DetectionRule" do
|
45
|
-
oneof :type do
|
46
|
-
optional :hotword_rule, :message, 1, "google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule"
|
47
|
-
end
|
48
|
-
end
|
49
|
-
add_message "google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity" do
|
50
|
-
optional :window_before, :int32, 1
|
51
|
-
optional :window_after, :int32, 2
|
52
|
-
end
|
53
|
-
add_message "google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment" do
|
54
|
-
oneof :adjustment do
|
55
|
-
optional :fixed_likelihood, :enum, 1, "google.privacy.dlp.v2.Likelihood"
|
56
|
-
optional :relative_likelihood, :int32, 2
|
57
|
-
end
|
58
|
-
end
|
59
|
-
add_message "google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule" do
|
60
|
-
optional :hotword_regex, :message, 1, "google.privacy.dlp.v2.CustomInfoType.Regex"
|
61
|
-
optional :proximity, :message, 2, "google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity"
|
62
|
-
optional :likelihood_adjustment, :message, 3, "google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment"
|
63
|
-
end
|
64
|
-
add_enum "google.privacy.dlp.v2.CustomInfoType.ExclusionType" do
|
65
|
-
value :EXCLUSION_TYPE_UNSPECIFIED, 0
|
66
|
-
value :EXCLUSION_TYPE_EXCLUDE, 1
|
67
|
-
end
|
68
|
-
add_message "google.privacy.dlp.v2.FieldId" do
|
69
|
-
optional :name, :string, 1
|
70
|
-
end
|
71
|
-
add_message "google.privacy.dlp.v2.PartitionId" do
|
72
|
-
optional :project_id, :string, 2
|
73
|
-
optional :namespace_id, :string, 4
|
74
|
-
end
|
75
|
-
add_message "google.privacy.dlp.v2.KindExpression" do
|
76
|
-
optional :name, :string, 1
|
77
|
-
end
|
78
|
-
add_message "google.privacy.dlp.v2.DatastoreOptions" do
|
79
|
-
optional :partition_id, :message, 1, "google.privacy.dlp.v2.PartitionId"
|
80
|
-
optional :kind, :message, 2, "google.privacy.dlp.v2.KindExpression"
|
81
|
-
end
|
82
|
-
add_message "google.privacy.dlp.v2.CloudStorageRegexFileSet" do
|
83
|
-
optional :bucket_name, :string, 1
|
84
|
-
repeated :include_regex, :string, 2
|
85
|
-
repeated :exclude_regex, :string, 3
|
86
|
-
end
|
87
|
-
add_message "google.privacy.dlp.v2.CloudStorageOptions" do
|
88
|
-
optional :file_set, :message, 1, "google.privacy.dlp.v2.CloudStorageOptions.FileSet"
|
89
|
-
optional :bytes_limit_per_file, :int64, 4
|
90
|
-
optional :bytes_limit_per_file_percent, :int32, 8
|
91
|
-
repeated :file_types, :enum, 5, "google.privacy.dlp.v2.FileType"
|
92
|
-
optional :sample_method, :enum, 6, "google.privacy.dlp.v2.CloudStorageOptions.SampleMethod"
|
93
|
-
optional :files_limit_percent, :int32, 7
|
94
|
-
end
|
95
|
-
add_message "google.privacy.dlp.v2.CloudStorageOptions.FileSet" do
|
96
|
-
optional :url, :string, 1
|
97
|
-
optional :regex_file_set, :message, 2, "google.privacy.dlp.v2.CloudStorageRegexFileSet"
|
98
|
-
end
|
99
|
-
add_enum "google.privacy.dlp.v2.CloudStorageOptions.SampleMethod" do
|
100
|
-
value :SAMPLE_METHOD_UNSPECIFIED, 0
|
101
|
-
value :TOP, 1
|
102
|
-
value :RANDOM_START, 2
|
103
|
-
end
|
104
|
-
add_message "google.privacy.dlp.v2.CloudStorageFileSet" do
|
105
|
-
optional :url, :string, 1
|
106
|
-
end
|
107
|
-
add_message "google.privacy.dlp.v2.CloudStoragePath" do
|
108
|
-
optional :path, :string, 1
|
109
|
-
end
|
110
|
-
add_message "google.privacy.dlp.v2.BigQueryOptions" do
|
111
|
-
optional :table_reference, :message, 1, "google.privacy.dlp.v2.BigQueryTable"
|
112
|
-
repeated :identifying_fields, :message, 2, "google.privacy.dlp.v2.FieldId"
|
113
|
-
optional :rows_limit, :int64, 3
|
114
|
-
optional :rows_limit_percent, :int32, 6
|
115
|
-
optional :sample_method, :enum, 4, "google.privacy.dlp.v2.BigQueryOptions.SampleMethod"
|
116
|
-
repeated :excluded_fields, :message, 5, "google.privacy.dlp.v2.FieldId"
|
117
|
-
end
|
118
|
-
add_enum "google.privacy.dlp.v2.BigQueryOptions.SampleMethod" do
|
119
|
-
value :SAMPLE_METHOD_UNSPECIFIED, 0
|
120
|
-
value :TOP, 1
|
121
|
-
value :RANDOM_START, 2
|
122
|
-
end
|
123
|
-
add_message "google.privacy.dlp.v2.StorageConfig" do
|
124
|
-
optional :timespan_config, :message, 6, "google.privacy.dlp.v2.StorageConfig.TimespanConfig"
|
125
|
-
oneof :type do
|
126
|
-
optional :datastore_options, :message, 2, "google.privacy.dlp.v2.DatastoreOptions"
|
127
|
-
optional :cloud_storage_options, :message, 3, "google.privacy.dlp.v2.CloudStorageOptions"
|
128
|
-
optional :big_query_options, :message, 4, "google.privacy.dlp.v2.BigQueryOptions"
|
129
|
-
optional :hybrid_options, :message, 9, "google.privacy.dlp.v2.HybridOptions"
|
130
|
-
end
|
131
|
-
end
|
132
|
-
add_message "google.privacy.dlp.v2.StorageConfig.TimespanConfig" do
|
133
|
-
optional :start_time, :message, 1, "google.protobuf.Timestamp"
|
134
|
-
optional :end_time, :message, 2, "google.protobuf.Timestamp"
|
135
|
-
optional :timestamp_field, :message, 3, "google.privacy.dlp.v2.FieldId"
|
136
|
-
optional :enable_auto_population_of_timespan_config, :bool, 4
|
137
|
-
end
|
138
|
-
add_message "google.privacy.dlp.v2.HybridOptions" do
|
139
|
-
optional :description, :string, 1
|
140
|
-
repeated :required_finding_label_keys, :string, 2
|
141
|
-
map :labels, :string, :string, 3
|
142
|
-
optional :table_options, :message, 4, "google.privacy.dlp.v2.TableOptions"
|
143
|
-
end
|
144
|
-
add_message "google.privacy.dlp.v2.BigQueryKey" do
|
145
|
-
optional :table_reference, :message, 1, "google.privacy.dlp.v2.BigQueryTable"
|
146
|
-
optional :row_number, :int64, 2
|
147
|
-
end
|
148
|
-
add_message "google.privacy.dlp.v2.DatastoreKey" do
|
149
|
-
optional :entity_key, :message, 1, "google.privacy.dlp.v2.Key"
|
150
|
-
end
|
151
|
-
add_message "google.privacy.dlp.v2.Key" do
|
152
|
-
optional :partition_id, :message, 1, "google.privacy.dlp.v2.PartitionId"
|
153
|
-
repeated :path, :message, 2, "google.privacy.dlp.v2.Key.PathElement"
|
154
|
-
end
|
155
|
-
add_message "google.privacy.dlp.v2.Key.PathElement" do
|
156
|
-
optional :kind, :string, 1
|
157
|
-
oneof :id_type do
|
158
|
-
optional :id, :int64, 2
|
159
|
-
optional :name, :string, 3
|
160
|
-
end
|
161
|
-
end
|
162
|
-
add_message "google.privacy.dlp.v2.RecordKey" do
|
163
|
-
repeated :id_values, :string, 5
|
164
|
-
oneof :type do
|
165
|
-
optional :datastore_key, :message, 2, "google.privacy.dlp.v2.DatastoreKey"
|
166
|
-
optional :big_query_key, :message, 3, "google.privacy.dlp.v2.BigQueryKey"
|
167
|
-
end
|
168
|
-
end
|
169
|
-
add_message "google.privacy.dlp.v2.BigQueryTable" do
|
170
|
-
optional :project_id, :string, 1
|
171
|
-
optional :dataset_id, :string, 2
|
172
|
-
optional :table_id, :string, 3
|
173
|
-
end
|
174
|
-
add_message "google.privacy.dlp.v2.BigQueryField" do
|
175
|
-
optional :table, :message, 1, "google.privacy.dlp.v2.BigQueryTable"
|
176
|
-
optional :field, :message, 2, "google.privacy.dlp.v2.FieldId"
|
177
|
-
end
|
178
|
-
add_message "google.privacy.dlp.v2.EntityId" do
|
179
|
-
optional :field, :message, 1, "google.privacy.dlp.v2.FieldId"
|
180
|
-
end
|
181
|
-
add_message "google.privacy.dlp.v2.TableOptions" do
|
182
|
-
repeated :identifying_fields, :message, 1, "google.privacy.dlp.v2.FieldId"
|
183
|
-
end
|
184
|
-
add_enum "google.privacy.dlp.v2.Likelihood" do
|
185
|
-
value :LIKELIHOOD_UNSPECIFIED, 0
|
186
|
-
value :VERY_UNLIKELY, 1
|
187
|
-
value :UNLIKELY, 2
|
188
|
-
value :POSSIBLE, 3
|
189
|
-
value :LIKELY, 4
|
190
|
-
value :VERY_LIKELY, 5
|
191
|
-
end
|
192
|
-
add_enum "google.privacy.dlp.v2.FileType" do
|
193
|
-
value :FILE_TYPE_UNSPECIFIED, 0
|
194
|
-
value :BINARY_FILE, 1
|
195
|
-
value :TEXT_FILE, 2
|
196
|
-
value :IMAGE, 3
|
197
|
-
value :AVRO, 7
|
198
|
-
end
|
199
|
-
end
|
200
|
-
|
201
|
-
module Google
|
202
|
-
module Privacy
|
203
|
-
module Dlp
|
204
|
-
module V2
|
205
|
-
InfoType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.InfoType").msgclass
|
206
|
-
StoredType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.StoredType").msgclass
|
207
|
-
CustomInfoType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CustomInfoType").msgclass
|
208
|
-
CustomInfoType::Dictionary = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CustomInfoType.Dictionary").msgclass
|
209
|
-
CustomInfoType::Dictionary::WordList = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList").msgclass
|
210
|
-
CustomInfoType::Regex = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CustomInfoType.Regex").msgclass
|
211
|
-
CustomInfoType::SurrogateType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CustomInfoType.SurrogateType").msgclass
|
212
|
-
CustomInfoType::DetectionRule = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CustomInfoType.DetectionRule").msgclass
|
213
|
-
CustomInfoType::DetectionRule::Proximity = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity").msgclass
|
214
|
-
CustomInfoType::DetectionRule::LikelihoodAdjustment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment").msgclass
|
215
|
-
CustomInfoType::DetectionRule::HotwordRule = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule").msgclass
|
216
|
-
CustomInfoType::ExclusionType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CustomInfoType.ExclusionType").enummodule
|
217
|
-
FieldId = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.FieldId").msgclass
|
218
|
-
PartitionId = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.PartitionId").msgclass
|
219
|
-
KindExpression = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.KindExpression").msgclass
|
220
|
-
DatastoreOptions = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DatastoreOptions").msgclass
|
221
|
-
CloudStorageRegexFileSet = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CloudStorageRegexFileSet").msgclass
|
222
|
-
CloudStorageOptions = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CloudStorageOptions").msgclass
|
223
|
-
CloudStorageOptions::FileSet = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CloudStorageOptions.FileSet").msgclass
|
224
|
-
CloudStorageOptions::SampleMethod = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CloudStorageOptions.SampleMethod").enummodule
|
225
|
-
CloudStorageFileSet = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CloudStorageFileSet").msgclass
|
226
|
-
CloudStoragePath = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CloudStoragePath").msgclass
|
227
|
-
BigQueryOptions = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.BigQueryOptions").msgclass
|
228
|
-
BigQueryOptions::SampleMethod = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.BigQueryOptions.SampleMethod").enummodule
|
229
|
-
StorageConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.StorageConfig").msgclass
|
230
|
-
StorageConfig::TimespanConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.StorageConfig.TimespanConfig").msgclass
|
231
|
-
HybridOptions = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.HybridOptions").msgclass
|
232
|
-
BigQueryKey = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.BigQueryKey").msgclass
|
233
|
-
DatastoreKey = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DatastoreKey").msgclass
|
234
|
-
Key = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Key").msgclass
|
235
|
-
Key::PathElement = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Key.PathElement").msgclass
|
236
|
-
RecordKey = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.RecordKey").msgclass
|
237
|
-
BigQueryTable = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.BigQueryTable").msgclass
|
238
|
-
BigQueryField = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.BigQueryField").msgclass
|
239
|
-
EntityId = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.EntityId").msgclass
|
240
|
-
TableOptions = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.TableOptions").msgclass
|
241
|
-
Likelihood = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Likelihood").enummodule
|
242
|
-
FileType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.FileType").enummodule
|
243
|
-
end
|
244
|
-
end
|
245
|
-
end
|
246
|
-
end
|