google-cloud-dlp 0.14.0 → 1.1.2
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 +349 -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 +88 -119
- data/lib/google/cloud/dlp/version.rb +6 -2
- metadata +60 -59
- 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 -2220
- data/lib/google/cloud/dlp/v2/dlp_service_client_config.json +0 -176
- data/lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/dlp.rb +0 -2925
- data/lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/storage.rb +0 -625
- 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 -1125
- data/lib/google/privacy/dlp/v2/dlp_services_pb.rb +0 -195
- data/lib/google/privacy/dlp/v2/storage_pb.rb +0 -234
@@ -1,195 +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 2019 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
|
-
|
21
|
-
require 'grpc'
|
22
|
-
require 'google/privacy/dlp/v2/dlp_pb'
|
23
|
-
|
24
|
-
module Google
|
25
|
-
module Privacy
|
26
|
-
module Dlp
|
27
|
-
module V2
|
28
|
-
module DlpService
|
29
|
-
# The Cloud Data Loss Prevention (DLP) API is a service that allows clients
|
30
|
-
# to detect the presence of Personally Identifiable Information (PII) and other
|
31
|
-
# privacy-sensitive data in user-supplied, unstructured data streams, like text
|
32
|
-
# blocks or images.
|
33
|
-
# The service also includes methods for sensitive data redaction and
|
34
|
-
# scheduling of data scans on Google Cloud Platform based data sets.
|
35
|
-
#
|
36
|
-
# To learn more about concepts and find how-to guides see
|
37
|
-
# https://cloud.google.com/dlp/docs/.
|
38
|
-
class Service
|
39
|
-
|
40
|
-
include GRPC::GenericService
|
41
|
-
|
42
|
-
self.marshal_class_method = :encode
|
43
|
-
self.unmarshal_class_method = :decode
|
44
|
-
self.service_name = 'google.privacy.dlp.v2.DlpService'
|
45
|
-
|
46
|
-
# Finds potentially sensitive info in content.
|
47
|
-
# This method has limits on input size, processing time, and output size.
|
48
|
-
#
|
49
|
-
# When no InfoTypes or CustomInfoTypes are specified in this request, the
|
50
|
-
# system will automatically choose what detectors to run. By default this may
|
51
|
-
# be all types, but may change over time as detectors are updated.
|
52
|
-
#
|
53
|
-
# For how to guides, see https://cloud.google.com/dlp/docs/inspecting-images
|
54
|
-
# and https://cloud.google.com/dlp/docs/inspecting-text,
|
55
|
-
rpc :InspectContent, InspectContentRequest, InspectContentResponse
|
56
|
-
# Redacts potentially sensitive info from an image.
|
57
|
-
# This method has limits on input size, processing time, and output size.
|
58
|
-
# See https://cloud.google.com/dlp/docs/redacting-sensitive-data-images to
|
59
|
-
# learn more.
|
60
|
-
#
|
61
|
-
# When no InfoTypes or CustomInfoTypes are specified in this request, the
|
62
|
-
# system will automatically choose what detectors to run. By default this may
|
63
|
-
# be all types, but may change over time as detectors are updated.
|
64
|
-
rpc :RedactImage, RedactImageRequest, RedactImageResponse
|
65
|
-
# De-identifies potentially sensitive info from a ContentItem.
|
66
|
-
# This method has limits on input size and output size.
|
67
|
-
# See https://cloud.google.com/dlp/docs/deidentify-sensitive-data to
|
68
|
-
# learn more.
|
69
|
-
#
|
70
|
-
# When no InfoTypes or CustomInfoTypes are specified in this request, the
|
71
|
-
# system will automatically choose what detectors to run. By default this may
|
72
|
-
# be all types, but may change over time as detectors are updated.
|
73
|
-
rpc :DeidentifyContent, DeidentifyContentRequest, DeidentifyContentResponse
|
74
|
-
# Re-identifies content that has been de-identified.
|
75
|
-
# See
|
76
|
-
# https://cloud.google.com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example
|
77
|
-
# to learn more.
|
78
|
-
rpc :ReidentifyContent, ReidentifyContentRequest, ReidentifyContentResponse
|
79
|
-
# Returns a list of the sensitive information types that the DLP API
|
80
|
-
# supports. See https://cloud.google.com/dlp/docs/infotypes-reference to
|
81
|
-
# learn more.
|
82
|
-
rpc :ListInfoTypes, ListInfoTypesRequest, ListInfoTypesResponse
|
83
|
-
# Creates an InspectTemplate for re-using frequently used configuration
|
84
|
-
# for inspecting content, images, and storage.
|
85
|
-
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
86
|
-
rpc :CreateInspectTemplate, CreateInspectTemplateRequest, InspectTemplate
|
87
|
-
# Updates the InspectTemplate.
|
88
|
-
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
89
|
-
rpc :UpdateInspectTemplate, UpdateInspectTemplateRequest, InspectTemplate
|
90
|
-
# Gets an InspectTemplate.
|
91
|
-
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
92
|
-
rpc :GetInspectTemplate, GetInspectTemplateRequest, InspectTemplate
|
93
|
-
# Lists InspectTemplates.
|
94
|
-
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
95
|
-
rpc :ListInspectTemplates, ListInspectTemplatesRequest, ListInspectTemplatesResponse
|
96
|
-
# Deletes an InspectTemplate.
|
97
|
-
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
98
|
-
rpc :DeleteInspectTemplate, DeleteInspectTemplateRequest, Google::Protobuf::Empty
|
99
|
-
# Creates a DeidentifyTemplate for re-using frequently used configuration
|
100
|
-
# for de-identifying content, images, and storage.
|
101
|
-
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
102
|
-
# more.
|
103
|
-
rpc :CreateDeidentifyTemplate, CreateDeidentifyTemplateRequest, DeidentifyTemplate
|
104
|
-
# Updates the DeidentifyTemplate.
|
105
|
-
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
106
|
-
# more.
|
107
|
-
rpc :UpdateDeidentifyTemplate, UpdateDeidentifyTemplateRequest, DeidentifyTemplate
|
108
|
-
# Gets a DeidentifyTemplate.
|
109
|
-
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
110
|
-
# more.
|
111
|
-
rpc :GetDeidentifyTemplate, GetDeidentifyTemplateRequest, DeidentifyTemplate
|
112
|
-
# Lists DeidentifyTemplates.
|
113
|
-
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
114
|
-
# more.
|
115
|
-
rpc :ListDeidentifyTemplates, ListDeidentifyTemplatesRequest, ListDeidentifyTemplatesResponse
|
116
|
-
# Deletes a DeidentifyTemplate.
|
117
|
-
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
118
|
-
# more.
|
119
|
-
rpc :DeleteDeidentifyTemplate, DeleteDeidentifyTemplateRequest, Google::Protobuf::Empty
|
120
|
-
# Creates a job trigger to run DLP actions such as scanning storage for
|
121
|
-
# sensitive information on a set schedule.
|
122
|
-
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
123
|
-
rpc :CreateJobTrigger, CreateJobTriggerRequest, JobTrigger
|
124
|
-
# Updates a job trigger.
|
125
|
-
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
126
|
-
rpc :UpdateJobTrigger, UpdateJobTriggerRequest, JobTrigger
|
127
|
-
# Gets a job trigger.
|
128
|
-
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
129
|
-
rpc :GetJobTrigger, GetJobTriggerRequest, JobTrigger
|
130
|
-
# Lists job triggers.
|
131
|
-
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
132
|
-
rpc :ListJobTriggers, ListJobTriggersRequest, ListJobTriggersResponse
|
133
|
-
# Deletes a job trigger.
|
134
|
-
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
135
|
-
rpc :DeleteJobTrigger, DeleteJobTriggerRequest, Google::Protobuf::Empty
|
136
|
-
# Activate a job trigger. Causes the immediate execute of a trigger
|
137
|
-
# instead of waiting on the trigger event to occur.
|
138
|
-
rpc :ActivateJobTrigger, ActivateJobTriggerRequest, DlpJob
|
139
|
-
# Creates a new job to inspect storage or calculate risk metrics.
|
140
|
-
# See https://cloud.google.com/dlp/docs/inspecting-storage and
|
141
|
-
# https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
|
142
|
-
#
|
143
|
-
# When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the
|
144
|
-
# system will automatically choose what detectors to run. By default this may
|
145
|
-
# be all types, but may change over time as detectors are updated.
|
146
|
-
rpc :CreateDlpJob, CreateDlpJobRequest, DlpJob
|
147
|
-
# Lists DlpJobs that match the specified filter in the request.
|
148
|
-
# See https://cloud.google.com/dlp/docs/inspecting-storage and
|
149
|
-
# https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
|
150
|
-
rpc :ListDlpJobs, ListDlpJobsRequest, ListDlpJobsResponse
|
151
|
-
# Gets the latest state of a long-running DlpJob.
|
152
|
-
# See https://cloud.google.com/dlp/docs/inspecting-storage and
|
153
|
-
# https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
|
154
|
-
rpc :GetDlpJob, GetDlpJobRequest, DlpJob
|
155
|
-
# Deletes a long-running DlpJob. This method indicates that the client is
|
156
|
-
# no longer interested in the DlpJob result. The job will be cancelled if
|
157
|
-
# possible.
|
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 :DeleteDlpJob, DeleteDlpJobRequest, Google::Protobuf::Empty
|
161
|
-
# Starts asynchronous cancellation on a long-running DlpJob. The server
|
162
|
-
# makes a best effort to cancel the DlpJob, but success is not
|
163
|
-
# guaranteed.
|
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 :CancelDlpJob, CancelDlpJobRequest, Google::Protobuf::Empty
|
167
|
-
# Creates a pre-built stored infoType to be used for inspection.
|
168
|
-
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
169
|
-
# learn more.
|
170
|
-
rpc :CreateStoredInfoType, CreateStoredInfoTypeRequest, StoredInfoType
|
171
|
-
# Updates the stored infoType by creating a new version. The existing version
|
172
|
-
# will continue to be used until the new version is ready.
|
173
|
-
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
174
|
-
# learn more.
|
175
|
-
rpc :UpdateStoredInfoType, UpdateStoredInfoTypeRequest, StoredInfoType
|
176
|
-
# Gets a stored infoType.
|
177
|
-
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
178
|
-
# learn more.
|
179
|
-
rpc :GetStoredInfoType, GetStoredInfoTypeRequest, StoredInfoType
|
180
|
-
# Lists stored infoTypes.
|
181
|
-
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
182
|
-
# learn more.
|
183
|
-
rpc :ListStoredInfoTypes, ListStoredInfoTypesRequest, ListStoredInfoTypesResponse
|
184
|
-
# Deletes a stored infoType.
|
185
|
-
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
186
|
-
# learn more.
|
187
|
-
rpc :DeleteStoredInfoType, DeleteStoredInfoTypeRequest, Google::Protobuf::Empty
|
188
|
-
end
|
189
|
-
|
190
|
-
Stub = Service.rpc_stub_class
|
191
|
-
end
|
192
|
-
end
|
193
|
-
end
|
194
|
-
end
|
195
|
-
end
|
@@ -1,234 +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
|
-
end
|
130
|
-
end
|
131
|
-
add_message "google.privacy.dlp.v2.StorageConfig.TimespanConfig" do
|
132
|
-
optional :start_time, :message, 1, "google.protobuf.Timestamp"
|
133
|
-
optional :end_time, :message, 2, "google.protobuf.Timestamp"
|
134
|
-
optional :timestamp_field, :message, 3, "google.privacy.dlp.v2.FieldId"
|
135
|
-
optional :enable_auto_population_of_timespan_config, :bool, 4
|
136
|
-
end
|
137
|
-
add_message "google.privacy.dlp.v2.BigQueryKey" do
|
138
|
-
optional :table_reference, :message, 1, "google.privacy.dlp.v2.BigQueryTable"
|
139
|
-
optional :row_number, :int64, 2
|
140
|
-
end
|
141
|
-
add_message "google.privacy.dlp.v2.DatastoreKey" do
|
142
|
-
optional :entity_key, :message, 1, "google.privacy.dlp.v2.Key"
|
143
|
-
end
|
144
|
-
add_message "google.privacy.dlp.v2.Key" do
|
145
|
-
optional :partition_id, :message, 1, "google.privacy.dlp.v2.PartitionId"
|
146
|
-
repeated :path, :message, 2, "google.privacy.dlp.v2.Key.PathElement"
|
147
|
-
end
|
148
|
-
add_message "google.privacy.dlp.v2.Key.PathElement" do
|
149
|
-
optional :kind, :string, 1
|
150
|
-
oneof :id_type do
|
151
|
-
optional :id, :int64, 2
|
152
|
-
optional :name, :string, 3
|
153
|
-
end
|
154
|
-
end
|
155
|
-
add_message "google.privacy.dlp.v2.RecordKey" do
|
156
|
-
repeated :id_values, :string, 5
|
157
|
-
oneof :type do
|
158
|
-
optional :datastore_key, :message, 2, "google.privacy.dlp.v2.DatastoreKey"
|
159
|
-
optional :big_query_key, :message, 3, "google.privacy.dlp.v2.BigQueryKey"
|
160
|
-
end
|
161
|
-
end
|
162
|
-
add_message "google.privacy.dlp.v2.BigQueryTable" do
|
163
|
-
optional :project_id, :string, 1
|
164
|
-
optional :dataset_id, :string, 2
|
165
|
-
optional :table_id, :string, 3
|
166
|
-
end
|
167
|
-
add_message "google.privacy.dlp.v2.BigQueryField" do
|
168
|
-
optional :table, :message, 1, "google.privacy.dlp.v2.BigQueryTable"
|
169
|
-
optional :field, :message, 2, "google.privacy.dlp.v2.FieldId"
|
170
|
-
end
|
171
|
-
add_message "google.privacy.dlp.v2.EntityId" do
|
172
|
-
optional :field, :message, 1, "google.privacy.dlp.v2.FieldId"
|
173
|
-
end
|
174
|
-
add_enum "google.privacy.dlp.v2.Likelihood" do
|
175
|
-
value :LIKELIHOOD_UNSPECIFIED, 0
|
176
|
-
value :VERY_UNLIKELY, 1
|
177
|
-
value :UNLIKELY, 2
|
178
|
-
value :POSSIBLE, 3
|
179
|
-
value :LIKELY, 4
|
180
|
-
value :VERY_LIKELY, 5
|
181
|
-
end
|
182
|
-
add_enum "google.privacy.dlp.v2.FileType" do
|
183
|
-
value :FILE_TYPE_UNSPECIFIED, 0
|
184
|
-
value :BINARY_FILE, 1
|
185
|
-
value :TEXT_FILE, 2
|
186
|
-
value :IMAGE, 3
|
187
|
-
value :AVRO, 7
|
188
|
-
end
|
189
|
-
end
|
190
|
-
|
191
|
-
module Google
|
192
|
-
module Privacy
|
193
|
-
module Dlp
|
194
|
-
module V2
|
195
|
-
InfoType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.InfoType").msgclass
|
196
|
-
StoredType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.StoredType").msgclass
|
197
|
-
CustomInfoType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CustomInfoType").msgclass
|
198
|
-
CustomInfoType::Dictionary = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CustomInfoType.Dictionary").msgclass
|
199
|
-
CustomInfoType::Dictionary::WordList = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList").msgclass
|
200
|
-
CustomInfoType::Regex = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CustomInfoType.Regex").msgclass
|
201
|
-
CustomInfoType::SurrogateType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CustomInfoType.SurrogateType").msgclass
|
202
|
-
CustomInfoType::DetectionRule = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CustomInfoType.DetectionRule").msgclass
|
203
|
-
CustomInfoType::DetectionRule::Proximity = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity").msgclass
|
204
|
-
CustomInfoType::DetectionRule::LikelihoodAdjustment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment").msgclass
|
205
|
-
CustomInfoType::DetectionRule::HotwordRule = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule").msgclass
|
206
|
-
CustomInfoType::ExclusionType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CustomInfoType.ExclusionType").enummodule
|
207
|
-
FieldId = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.FieldId").msgclass
|
208
|
-
PartitionId = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.PartitionId").msgclass
|
209
|
-
KindExpression = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.KindExpression").msgclass
|
210
|
-
DatastoreOptions = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DatastoreOptions").msgclass
|
211
|
-
CloudStorageRegexFileSet = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CloudStorageRegexFileSet").msgclass
|
212
|
-
CloudStorageOptions = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CloudStorageOptions").msgclass
|
213
|
-
CloudStorageOptions::FileSet = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CloudStorageOptions.FileSet").msgclass
|
214
|
-
CloudStorageOptions::SampleMethod = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CloudStorageOptions.SampleMethod").enummodule
|
215
|
-
CloudStorageFileSet = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CloudStorageFileSet").msgclass
|
216
|
-
CloudStoragePath = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CloudStoragePath").msgclass
|
217
|
-
BigQueryOptions = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.BigQueryOptions").msgclass
|
218
|
-
BigQueryOptions::SampleMethod = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.BigQueryOptions.SampleMethod").enummodule
|
219
|
-
StorageConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.StorageConfig").msgclass
|
220
|
-
StorageConfig::TimespanConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.StorageConfig.TimespanConfig").msgclass
|
221
|
-
BigQueryKey = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.BigQueryKey").msgclass
|
222
|
-
DatastoreKey = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DatastoreKey").msgclass
|
223
|
-
Key = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Key").msgclass
|
224
|
-
Key::PathElement = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Key.PathElement").msgclass
|
225
|
-
RecordKey = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.RecordKey").msgclass
|
226
|
-
BigQueryTable = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.BigQueryTable").msgclass
|
227
|
-
BigQueryField = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.BigQueryField").msgclass
|
228
|
-
EntityId = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.EntityId").msgclass
|
229
|
-
Likelihood = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Likelihood").enummodule
|
230
|
-
FileType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.FileType").enummodule
|
231
|
-
end
|
232
|
-
end
|
233
|
-
end
|
234
|
-
end
|