google-cloud-dlp-v2 0.3.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Dlp
23
23
  module V2
24
- VERSION = "0.3.3"
24
+ VERSION = "0.4.4"
25
25
  end
26
26
  end
27
27
  end
@@ -3,7 +3,6 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
- require 'google/api/annotations_pb'
7
6
  require 'google/api/client_pb'
8
7
  require 'google/api/field_behavior_pb'
9
8
  require 'google/api/resource_pb'
@@ -16,6 +15,7 @@ require 'google/rpc/status_pb'
16
15
  require 'google/type/date_pb'
17
16
  require 'google/type/dayofweek_pb'
18
17
  require 'google/type/timeofday_pb'
18
+ require 'google/api/annotations_pb'
19
19
  Google::Protobuf::DescriptorPool.generated_pool.build do
20
20
  add_file("google/privacy/dlp/v2/dlp.proto", :syntax => :proto3) do
21
21
  add_message "google.privacy.dlp.v2.ExcludeInfoTypes" do
@@ -73,6 +73,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
73
73
  value :WORD_DOCUMENT, 7
74
74
  value :PDF, 8
75
75
  value :AVRO, 11
76
+ value :CSV, 12
77
+ value :TSV, 13
76
78
  end
77
79
  add_message "google.privacy.dlp.v2.ContentItem" do
78
80
  oneof :data_item do
@@ -50,7 +50,7 @@ module Google
50
50
  #
51
51
  # For how to guides, see https://cloud.google.com/dlp/docs/inspecting-images
52
52
  # and https://cloud.google.com/dlp/docs/inspecting-text,
53
- rpc :InspectContent, Google::Cloud::Dlp::V2::InspectContentRequest, Google::Cloud::Dlp::V2::InspectContentResponse
53
+ rpc :InspectContent, ::Google::Cloud::Dlp::V2::InspectContentRequest, ::Google::Cloud::Dlp::V2::InspectContentResponse
54
54
  # Redacts potentially sensitive info from an image.
55
55
  # This method has limits on input size, processing time, and output size.
56
56
  # See https://cloud.google.com/dlp/docs/redacting-sensitive-data-images to
@@ -59,7 +59,7 @@ module Google
59
59
  # When no InfoTypes or CustomInfoTypes are specified in this request, the
60
60
  # system will automatically choose what detectors to run. By default this may
61
61
  # be all types, but may change over time as detectors are updated.
62
- rpc :RedactImage, Google::Cloud::Dlp::V2::RedactImageRequest, Google::Cloud::Dlp::V2::RedactImageResponse
62
+ rpc :RedactImage, ::Google::Cloud::Dlp::V2::RedactImageRequest, ::Google::Cloud::Dlp::V2::RedactImageResponse
63
63
  # De-identifies potentially sensitive info from a ContentItem.
64
64
  # This method has limits on input size and output size.
65
65
  # See https://cloud.google.com/dlp/docs/deidentify-sensitive-data to
@@ -68,79 +68,79 @@ module Google
68
68
  # When no InfoTypes or CustomInfoTypes are specified in this request, the
69
69
  # system will automatically choose what detectors to run. By default this may
70
70
  # be all types, but may change over time as detectors are updated.
71
- rpc :DeidentifyContent, Google::Cloud::Dlp::V2::DeidentifyContentRequest, Google::Cloud::Dlp::V2::DeidentifyContentResponse
71
+ rpc :DeidentifyContent, ::Google::Cloud::Dlp::V2::DeidentifyContentRequest, ::Google::Cloud::Dlp::V2::DeidentifyContentResponse
72
72
  # Re-identifies content that has been de-identified.
73
73
  # See
74
74
  # https://cloud.google.com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example
75
75
  # to learn more.
76
- rpc :ReidentifyContent, Google::Cloud::Dlp::V2::ReidentifyContentRequest, Google::Cloud::Dlp::V2::ReidentifyContentResponse
76
+ rpc :ReidentifyContent, ::Google::Cloud::Dlp::V2::ReidentifyContentRequest, ::Google::Cloud::Dlp::V2::ReidentifyContentResponse
77
77
  # Returns a list of the sensitive information types that the DLP API
78
78
  # supports. See https://cloud.google.com/dlp/docs/infotypes-reference to
79
79
  # learn more.
80
- rpc :ListInfoTypes, Google::Cloud::Dlp::V2::ListInfoTypesRequest, Google::Cloud::Dlp::V2::ListInfoTypesResponse
80
+ rpc :ListInfoTypes, ::Google::Cloud::Dlp::V2::ListInfoTypesRequest, ::Google::Cloud::Dlp::V2::ListInfoTypesResponse
81
81
  # Creates an InspectTemplate for re-using frequently used configuration
82
82
  # for inspecting content, images, and storage.
83
83
  # See https://cloud.google.com/dlp/docs/creating-templates to learn more.
84
- rpc :CreateInspectTemplate, Google::Cloud::Dlp::V2::CreateInspectTemplateRequest, Google::Cloud::Dlp::V2::InspectTemplate
84
+ rpc :CreateInspectTemplate, ::Google::Cloud::Dlp::V2::CreateInspectTemplateRequest, ::Google::Cloud::Dlp::V2::InspectTemplate
85
85
  # Updates the InspectTemplate.
86
86
  # See https://cloud.google.com/dlp/docs/creating-templates to learn more.
87
- rpc :UpdateInspectTemplate, Google::Cloud::Dlp::V2::UpdateInspectTemplateRequest, Google::Cloud::Dlp::V2::InspectTemplate
87
+ rpc :UpdateInspectTemplate, ::Google::Cloud::Dlp::V2::UpdateInspectTemplateRequest, ::Google::Cloud::Dlp::V2::InspectTemplate
88
88
  # Gets an InspectTemplate.
89
89
  # See https://cloud.google.com/dlp/docs/creating-templates to learn more.
90
- rpc :GetInspectTemplate, Google::Cloud::Dlp::V2::GetInspectTemplateRequest, Google::Cloud::Dlp::V2::InspectTemplate
90
+ rpc :GetInspectTemplate, ::Google::Cloud::Dlp::V2::GetInspectTemplateRequest, ::Google::Cloud::Dlp::V2::InspectTemplate
91
91
  # Lists InspectTemplates.
92
92
  # See https://cloud.google.com/dlp/docs/creating-templates to learn more.
93
- rpc :ListInspectTemplates, Google::Cloud::Dlp::V2::ListInspectTemplatesRequest, Google::Cloud::Dlp::V2::ListInspectTemplatesResponse
93
+ rpc :ListInspectTemplates, ::Google::Cloud::Dlp::V2::ListInspectTemplatesRequest, ::Google::Cloud::Dlp::V2::ListInspectTemplatesResponse
94
94
  # Deletes an InspectTemplate.
95
95
  # See https://cloud.google.com/dlp/docs/creating-templates to learn more.
96
- rpc :DeleteInspectTemplate, Google::Cloud::Dlp::V2::DeleteInspectTemplateRequest, Google::Protobuf::Empty
96
+ rpc :DeleteInspectTemplate, ::Google::Cloud::Dlp::V2::DeleteInspectTemplateRequest, ::Google::Protobuf::Empty
97
97
  # Creates a DeidentifyTemplate for re-using frequently used configuration
98
98
  # for de-identifying content, images, and storage.
99
99
  # See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
100
100
  # more.
101
- rpc :CreateDeidentifyTemplate, Google::Cloud::Dlp::V2::CreateDeidentifyTemplateRequest, Google::Cloud::Dlp::V2::DeidentifyTemplate
101
+ rpc :CreateDeidentifyTemplate, ::Google::Cloud::Dlp::V2::CreateDeidentifyTemplateRequest, ::Google::Cloud::Dlp::V2::DeidentifyTemplate
102
102
  # Updates the DeidentifyTemplate.
103
103
  # See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
104
104
  # more.
105
- rpc :UpdateDeidentifyTemplate, Google::Cloud::Dlp::V2::UpdateDeidentifyTemplateRequest, Google::Cloud::Dlp::V2::DeidentifyTemplate
105
+ rpc :UpdateDeidentifyTemplate, ::Google::Cloud::Dlp::V2::UpdateDeidentifyTemplateRequest, ::Google::Cloud::Dlp::V2::DeidentifyTemplate
106
106
  # Gets a DeidentifyTemplate.
107
107
  # See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
108
108
  # more.
109
- rpc :GetDeidentifyTemplate, Google::Cloud::Dlp::V2::GetDeidentifyTemplateRequest, Google::Cloud::Dlp::V2::DeidentifyTemplate
109
+ rpc :GetDeidentifyTemplate, ::Google::Cloud::Dlp::V2::GetDeidentifyTemplateRequest, ::Google::Cloud::Dlp::V2::DeidentifyTemplate
110
110
  # Lists DeidentifyTemplates.
111
111
  # See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
112
112
  # more.
113
- rpc :ListDeidentifyTemplates, Google::Cloud::Dlp::V2::ListDeidentifyTemplatesRequest, Google::Cloud::Dlp::V2::ListDeidentifyTemplatesResponse
113
+ rpc :ListDeidentifyTemplates, ::Google::Cloud::Dlp::V2::ListDeidentifyTemplatesRequest, ::Google::Cloud::Dlp::V2::ListDeidentifyTemplatesResponse
114
114
  # Deletes a DeidentifyTemplate.
115
115
  # See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
116
116
  # more.
117
- rpc :DeleteDeidentifyTemplate, Google::Cloud::Dlp::V2::DeleteDeidentifyTemplateRequest, Google::Protobuf::Empty
117
+ rpc :DeleteDeidentifyTemplate, ::Google::Cloud::Dlp::V2::DeleteDeidentifyTemplateRequest, ::Google::Protobuf::Empty
118
118
  # Creates a job trigger to run DLP actions such as scanning storage for
119
119
  # sensitive information on a set schedule.
120
120
  # See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
121
- rpc :CreateJobTrigger, Google::Cloud::Dlp::V2::CreateJobTriggerRequest, Google::Cloud::Dlp::V2::JobTrigger
121
+ rpc :CreateJobTrigger, ::Google::Cloud::Dlp::V2::CreateJobTriggerRequest, ::Google::Cloud::Dlp::V2::JobTrigger
122
122
  # Updates a job trigger.
123
123
  # See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
124
- rpc :UpdateJobTrigger, Google::Cloud::Dlp::V2::UpdateJobTriggerRequest, Google::Cloud::Dlp::V2::JobTrigger
124
+ rpc :UpdateJobTrigger, ::Google::Cloud::Dlp::V2::UpdateJobTriggerRequest, ::Google::Cloud::Dlp::V2::JobTrigger
125
125
  # Inspect hybrid content and store findings to a trigger. The inspection
126
126
  # will be processed asynchronously. To review the findings monitor the
127
127
  # jobs within the trigger.
128
128
  # Early access feature is in a pre-release state and might change or have
129
129
  # limited support. For more information, see
130
130
  # https://cloud.google.com/products#product-launch-stages.
131
- rpc :HybridInspectJobTrigger, Google::Cloud::Dlp::V2::HybridInspectJobTriggerRequest, Google::Cloud::Dlp::V2::HybridInspectResponse
131
+ rpc :HybridInspectJobTrigger, ::Google::Cloud::Dlp::V2::HybridInspectJobTriggerRequest, ::Google::Cloud::Dlp::V2::HybridInspectResponse
132
132
  # Gets a job trigger.
133
133
  # See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
134
- rpc :GetJobTrigger, Google::Cloud::Dlp::V2::GetJobTriggerRequest, Google::Cloud::Dlp::V2::JobTrigger
134
+ rpc :GetJobTrigger, ::Google::Cloud::Dlp::V2::GetJobTriggerRequest, ::Google::Cloud::Dlp::V2::JobTrigger
135
135
  # Lists job triggers.
136
136
  # See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
137
- rpc :ListJobTriggers, Google::Cloud::Dlp::V2::ListJobTriggersRequest, Google::Cloud::Dlp::V2::ListJobTriggersResponse
137
+ rpc :ListJobTriggers, ::Google::Cloud::Dlp::V2::ListJobTriggersRequest, ::Google::Cloud::Dlp::V2::ListJobTriggersResponse
138
138
  # Deletes a job trigger.
139
139
  # See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
140
- rpc :DeleteJobTrigger, Google::Cloud::Dlp::V2::DeleteJobTriggerRequest, Google::Protobuf::Empty
140
+ rpc :DeleteJobTrigger, ::Google::Cloud::Dlp::V2::DeleteJobTriggerRequest, ::Google::Protobuf::Empty
141
141
  # Activate a job trigger. Causes the immediate execute of a trigger
142
142
  # instead of waiting on the trigger event to occur.
143
- rpc :ActivateJobTrigger, Google::Cloud::Dlp::V2::ActivateJobTriggerRequest, Google::Cloud::Dlp::V2::DlpJob
143
+ rpc :ActivateJobTrigger, ::Google::Cloud::Dlp::V2::ActivateJobTriggerRequest, ::Google::Cloud::Dlp::V2::DlpJob
144
144
  # Creates a new job to inspect storage or calculate risk metrics.
145
145
  # See https://cloud.google.com/dlp/docs/inspecting-storage and
146
146
  # https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
@@ -148,61 +148,61 @@ module Google
148
148
  # When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the
149
149
  # system will automatically choose what detectors to run. By default this may
150
150
  # be all types, but may change over time as detectors are updated.
151
- rpc :CreateDlpJob, Google::Cloud::Dlp::V2::CreateDlpJobRequest, Google::Cloud::Dlp::V2::DlpJob
151
+ rpc :CreateDlpJob, ::Google::Cloud::Dlp::V2::CreateDlpJobRequest, ::Google::Cloud::Dlp::V2::DlpJob
152
152
  # Lists DlpJobs that match the specified filter in the request.
153
153
  # See https://cloud.google.com/dlp/docs/inspecting-storage and
154
154
  # https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
155
- rpc :ListDlpJobs, Google::Cloud::Dlp::V2::ListDlpJobsRequest, Google::Cloud::Dlp::V2::ListDlpJobsResponse
155
+ rpc :ListDlpJobs, ::Google::Cloud::Dlp::V2::ListDlpJobsRequest, ::Google::Cloud::Dlp::V2::ListDlpJobsResponse
156
156
  # Gets the latest state of a long-running DlpJob.
157
157
  # See https://cloud.google.com/dlp/docs/inspecting-storage and
158
158
  # https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
159
- rpc :GetDlpJob, Google::Cloud::Dlp::V2::GetDlpJobRequest, Google::Cloud::Dlp::V2::DlpJob
159
+ rpc :GetDlpJob, ::Google::Cloud::Dlp::V2::GetDlpJobRequest, ::Google::Cloud::Dlp::V2::DlpJob
160
160
  # Deletes a long-running DlpJob. This method indicates that the client is
161
161
  # no longer interested in the DlpJob result. The job will be cancelled if
162
162
  # possible.
163
163
  # See https://cloud.google.com/dlp/docs/inspecting-storage and
164
164
  # https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
165
- rpc :DeleteDlpJob, Google::Cloud::Dlp::V2::DeleteDlpJobRequest, Google::Protobuf::Empty
165
+ rpc :DeleteDlpJob, ::Google::Cloud::Dlp::V2::DeleteDlpJobRequest, ::Google::Protobuf::Empty
166
166
  # Starts asynchronous cancellation on a long-running DlpJob. The server
167
167
  # makes a best effort to cancel the DlpJob, but success is not
168
168
  # guaranteed.
169
169
  # See https://cloud.google.com/dlp/docs/inspecting-storage and
170
170
  # https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
171
- rpc :CancelDlpJob, Google::Cloud::Dlp::V2::CancelDlpJobRequest, Google::Protobuf::Empty
171
+ rpc :CancelDlpJob, ::Google::Cloud::Dlp::V2::CancelDlpJobRequest, ::Google::Protobuf::Empty
172
172
  # Creates a pre-built stored infoType to be used for inspection.
173
173
  # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
174
174
  # learn more.
175
- rpc :CreateStoredInfoType, Google::Cloud::Dlp::V2::CreateStoredInfoTypeRequest, Google::Cloud::Dlp::V2::StoredInfoType
175
+ rpc :CreateStoredInfoType, ::Google::Cloud::Dlp::V2::CreateStoredInfoTypeRequest, ::Google::Cloud::Dlp::V2::StoredInfoType
176
176
  # Updates the stored infoType by creating a new version. The existing version
177
177
  # will continue to be used until the new version is ready.
178
178
  # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
179
179
  # learn more.
180
- rpc :UpdateStoredInfoType, Google::Cloud::Dlp::V2::UpdateStoredInfoTypeRequest, Google::Cloud::Dlp::V2::StoredInfoType
180
+ rpc :UpdateStoredInfoType, ::Google::Cloud::Dlp::V2::UpdateStoredInfoTypeRequest, ::Google::Cloud::Dlp::V2::StoredInfoType
181
181
  # Gets a stored infoType.
182
182
  # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
183
183
  # learn more.
184
- rpc :GetStoredInfoType, Google::Cloud::Dlp::V2::GetStoredInfoTypeRequest, Google::Cloud::Dlp::V2::StoredInfoType
184
+ rpc :GetStoredInfoType, ::Google::Cloud::Dlp::V2::GetStoredInfoTypeRequest, ::Google::Cloud::Dlp::V2::StoredInfoType
185
185
  # Lists stored infoTypes.
186
186
  # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
187
187
  # learn more.
188
- rpc :ListStoredInfoTypes, Google::Cloud::Dlp::V2::ListStoredInfoTypesRequest, Google::Cloud::Dlp::V2::ListStoredInfoTypesResponse
188
+ rpc :ListStoredInfoTypes, ::Google::Cloud::Dlp::V2::ListStoredInfoTypesRequest, ::Google::Cloud::Dlp::V2::ListStoredInfoTypesResponse
189
189
  # Deletes a stored infoType.
190
190
  # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
191
191
  # learn more.
192
- rpc :DeleteStoredInfoType, Google::Cloud::Dlp::V2::DeleteStoredInfoTypeRequest, Google::Protobuf::Empty
192
+ rpc :DeleteStoredInfoType, ::Google::Cloud::Dlp::V2::DeleteStoredInfoTypeRequest, ::Google::Protobuf::Empty
193
193
  # Inspect hybrid content and store findings to a job.
194
194
  # To review the findings inspect the job. Inspection will occur
195
195
  # asynchronously.
196
196
  # Early access feature is in a pre-release state and might change or have
197
197
  # limited support. For more information, see
198
198
  # https://cloud.google.com/products#product-launch-stages.
199
- rpc :HybridInspectDlpJob, Google::Cloud::Dlp::V2::HybridInspectDlpJobRequest, Google::Cloud::Dlp::V2::HybridInspectResponse
199
+ rpc :HybridInspectDlpJob, ::Google::Cloud::Dlp::V2::HybridInspectDlpJobRequest, ::Google::Cloud::Dlp::V2::HybridInspectResponse
200
200
  # Finish a running hybrid DlpJob. Triggers the finalization steps and running
201
201
  # of any enabled actions that have not yet run.
202
202
  # Early access feature is in a pre-release state and might change or have
203
203
  # limited support. For more information, see
204
204
  # https://cloud.google.com/products#product-launch-stages.
205
- rpc :FinishDlpJob, Google::Cloud::Dlp::V2::FinishDlpJobRequest, Google::Protobuf::Empty
205
+ rpc :FinishDlpJob, ::Google::Cloud::Dlp::V2::FinishDlpJobRequest, ::Google::Protobuf::Empty
206
206
  end
207
207
 
208
208
  Stub = Service.rpc_stub_class
@@ -5,6 +5,7 @@ require 'google/protobuf'
5
5
 
6
6
  require 'google/api/resource_pb'
7
7
  require 'google/protobuf/timestamp_pb'
8
+ require 'google/api/annotations_pb'
8
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
10
  add_file("google/privacy/dlp/v2/storage.proto", :syntax => :proto3) do
10
11
  add_message "google.privacy.dlp.v2.InfoType" do
@@ -197,6 +198,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
197
198
  value :WORD, 5
198
199
  value :PDF, 6
199
200
  value :AVRO, 7
201
+ value :CSV, 8
202
+ value :TSV, 9
200
203
  end
201
204
  end
202
205
  end
@@ -43,12 +43,12 @@ module Google
43
43
  #
44
44
  # The ResourceDescriptor Yaml config will look like:
45
45
  #
46
- # resources:
47
- # - type: "pubsub.googleapis.com/Topic"
48
- # name_descriptor:
49
- # - pattern: "projects/\\{project}/topics/\\{topic}"
50
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
51
- # parent_name_extractor: "projects/\\{project}"
46
+ # resources:
47
+ # - type: "pubsub.googleapis.com/Topic"
48
+ # name_descriptor:
49
+ # - pattern: "projects/{project}/topics/{topic}"
50
+ # parent_type: "cloudresourcemanager.googleapis.com/Project"
51
+ # parent_name_extractor: "projects/{project}"
52
52
  #
53
53
  # Sometimes, resources have multiple patterns, typically because they can
54
54
  # live under multiple parents.
@@ -183,15 +183,24 @@ module Google
183
183
  # }
184
184
  # @!attribute [rw] plural
185
185
  # @return [::String]
186
- # The plural name used in the resource name, such as 'projects' for
187
- # the name of 'projects/\\{project}'. It is the same concept of the `plural`
188
- # field in k8s CRD spec
186
+ # The plural name used in the resource name and permission names, such as
187
+ # 'projects' for the resource name of 'projects/\\{project}' and the permission
188
+ # name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
189
+ # concept of the `plural` field in k8s CRD spec
189
190
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
191
+ #
192
+ # Note: The plural form is required even for singleton resources. See
193
+ # https://aip.dev/156
190
194
  # @!attribute [rw] singular
191
195
  # @return [::String]
192
196
  # The same concept of the `singular` field in k8s CRD spec
193
197
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
194
198
  # Such as "project" for the `resourcemanager.googleapis.com/Project` type.
199
+ # @!attribute [rw] style
200
+ # @return [::Array<::Google::Api::ResourceDescriptor::Style>]
201
+ # Style flag(s) for this resource.
202
+ # These indicate that a resource is expected to conform to a given
203
+ # style. See the specific style flags for additional information.
195
204
  class ResourceDescriptor
196
205
  include ::Google::Protobuf::MessageExts
197
206
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -211,6 +220,22 @@ module Google
211
220
  # that from being necessary once there are multiple patterns.)
212
221
  FUTURE_MULTI_PATTERN = 2
213
222
  end
223
+
224
+ # A flag representing a specific style that a resource claims to conform to.
225
+ module Style
226
+ # The unspecified value. Do not use.
227
+ STYLE_UNSPECIFIED = 0
228
+
229
+ # This resource is intended to be "declarative-friendly".
230
+ #
231
+ # Declarative-friendly resources must be more strictly consistent, and
232
+ # setting this to true communicates to tools that this resource should
233
+ # adhere to declarative-friendly expectations.
234
+ #
235
+ # Note: This is used by the API linter (linter.aip.dev) to enable
236
+ # additional checks.
237
+ DECLARATIVE_FRIENDLY = 1
238
+ end
214
239
  end
215
240
 
216
241
  # Defines a proto annotation that describes a string field that refers to
@@ -226,6 +251,17 @@ module Google
226
251
  # type: "pubsub.googleapis.com/Topic"
227
252
  # }];
228
253
  # }
254
+ #
255
+ # Occasionally, a field may reference an arbitrary resource. In this case,
256
+ # APIs use the special value * in their resource reference.
257
+ #
258
+ # Example:
259
+ #
260
+ # message GetIamPolicyRequest {
261
+ # string resource = 2 [(google.api.resource_reference) = {
262
+ # type: "*"
263
+ # }];
264
+ # }
229
265
  # @!attribute [rw] child_type
230
266
  # @return [::String]
231
267
  # The resource type of a child collection that the annotated field
@@ -234,11 +270,11 @@ module Google
234
270
  #
235
271
  # Example:
236
272
  #
237
- # message ListLogEntriesRequest {
238
- # string parent = 1 [(google.api.resource_reference) = {
239
- # child_type: "logging.googleapis.com/LogEntry"
240
- # };
241
- # }
273
+ # message ListLogEntriesRequest {
274
+ # string parent = 1 [(google.api.resource_reference) = {
275
+ # child_type: "logging.googleapis.com/LogEntry"
276
+ # };
277
+ # }
242
278
  class ResourceReference
243
279
  include ::Google::Protobuf::MessageExts
244
280
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -209,6 +209,12 @@ module Google
209
209
 
210
210
  # avro
211
211
  AVRO = 11
212
+
213
+ # csv
214
+ CSV = 12
215
+
216
+ # tsv
217
+ TSV = 13
212
218
  end
213
219
  end
214
220
 
@@ -273,8 +279,8 @@ module Google
273
279
  # @!attribute [rw] name
274
280
  # @return [::String]
275
281
  # Resource name in format
276
- # projects/\\{project}/locations/\\{location}/findings/\\{finding}
277
- # Populated only when viewing persisted findings.
282
+ # projects/\\{project}/locations/\\{location}/findings/\\{finding} Populated only
283
+ # when viewing persisted findings.
278
284
  # @!attribute [rw] quote
279
285
  # @return [::String]
280
286
  # The content that was found. Even if the content is not textual, it
@@ -555,8 +561,22 @@ module Google
555
561
  # by covering it with a colored rectangle.
556
562
  # @!attribute [rw] parent
557
563
  # @return [::String]
558
- # The parent resource name, for example projects/my-project-id
559
- # or projects/my-project-id/locations/\\{location_id}.
564
+ # Parent resource name.
565
+ #
566
+ # The format of this value varies depending on whether you have [specified a
567
+ # processing
568
+ # location](https://cloud.google.com/dlp/docs/specifying-location):
569
+ #
570
+ # + Projects scope, location specified:<br/>
571
+ # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
572
+ # + Projects scope, no location specified (defaults to global):<br/>
573
+ # `projects/`<var>PROJECT_ID</var>
574
+ #
575
+ # The following example `parent` string specifies a parent project with the
576
+ # identifier `example-project`, and specifies the `europe-west3` location
577
+ # for processing data:
578
+ #
579
+ # parent=projects/example-project/locations/europe-west3
560
580
  # @!attribute [rw] location_id
561
581
  # @return [::String]
562
582
  # Deprecated. This field has no effect.
@@ -633,8 +653,22 @@ module Google
633
653
  # Request to de-identify a list of items.
634
654
  # @!attribute [rw] parent
635
655
  # @return [::String]
636
- # The parent resource name, for example projects/my-project-id
637
- # or projects/my-project-id/locations/\\{location_id}.
656
+ # Parent resource name.
657
+ #
658
+ # The format of this value varies depending on whether you have [specified a
659
+ # processing
660
+ # location](https://cloud.google.com/dlp/docs/specifying-location):
661
+ #
662
+ # + Projects scope, location specified:<br/>
663
+ # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
664
+ # + Projects scope, no location specified (defaults to global):<br/>
665
+ # `projects/`<var>PROJECT_ID</var>
666
+ #
667
+ # The following example `parent` string specifies a parent project with the
668
+ # identifier `example-project`, and specifies the `europe-west3` location
669
+ # for processing data:
670
+ #
671
+ # parent=projects/example-project/locations/europe-west3
638
672
  # @!attribute [rw] deidentify_config
639
673
  # @return [::Google::Cloud::Dlp::V2::DeidentifyConfig]
640
674
  # Configuration for the de-identification of the content item.
@@ -685,7 +719,22 @@ module Google
685
719
  # Request to re-identify an item.
686
720
  # @!attribute [rw] parent
687
721
  # @return [::String]
688
- # Required. The parent resource name.
722
+ # Required. Parent resource name.
723
+ #
724
+ # The format of this value varies depending on whether you have [specified a
725
+ # processing
726
+ # location](https://cloud.google.com/dlp/docs/specifying-location):
727
+ #
728
+ # + Projects scope, location specified:<br/>
729
+ # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
730
+ # + Projects scope, no location specified (defaults to global):<br/>
731
+ # `projects/`<var>PROJECT_ID</var>
732
+ #
733
+ # The following example `parent` string specifies a parent project with the
734
+ # identifier `example-project`, and specifies the `europe-west3` location
735
+ # for processing data:
736
+ #
737
+ # parent=projects/example-project/locations/europe-west3
689
738
  # @!attribute [rw] reidentify_config
690
739
  # @return [::Google::Cloud::Dlp::V2::DeidentifyConfig]
691
740
  # Configuration for the re-identification of the content item.
@@ -715,10 +764,11 @@ module Google
715
764
  # @return [::String]
716
765
  # Template to use. References an instance of `DeidentifyTemplate`.
717
766
  # Any configuration directly specified in `reidentify_config` or
718
- # `inspect_config` will override those set in the template. Singular fields
719
- # that are set in this request will replace their corresponding fields in the
720
- # template. Repeated fields are appended. Singular sub-messages and groups
721
- # are recursively merged.
767
+ # `inspect_config` will override those set in the template. The
768
+ # `DeidentifyTemplate` used must include only reversible transformations.
769
+ # Singular fields that are set in this request will replace their
770
+ # corresponding fields in the template. Repeated fields are appended.
771
+ # Singular sub-messages and groups are recursively merged.
722
772
  # @!attribute [rw] location_id
723
773
  # @return [::String]
724
774
  # Deprecated. This field has no effect.
@@ -742,8 +792,22 @@ module Google
742
792
  # Request to search for potentially sensitive info in a ContentItem.
743
793
  # @!attribute [rw] parent
744
794
  # @return [::String]
745
- # The parent resource name, for example projects/my-project-id
746
- # or projects/my-project-id/locations/\\{location_id}
795
+ # Parent resource name.
796
+ #
797
+ # The format of this value varies depending on whether you have [specified a
798
+ # processing
799
+ # location](https://cloud.google.com/dlp/docs/specifying-location):
800
+ #
801
+ # + Projects scope, location specified:<br/>
802
+ # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
803
+ # + Projects scope, no location specified (defaults to global):<br/>
804
+ # `projects/`<var>PROJECT_ID</var>
805
+ #
806
+ # The following example `parent` string specifies a parent project with the
807
+ # identifier `example-project`, and specifies the `europe-west3` location
808
+ # for processing data:
809
+ #
810
+ # parent=projects/example-project/locations/europe-west3
747
811
  # @!attribute [rw] inspect_config
748
812
  # @return [::Google::Cloud::Dlp::V2::InspectConfig]
749
813
  # Configuration for the inspector. What specified here will override
@@ -891,7 +955,7 @@ module Google
891
955
  end
892
956
  end
893
957
 
894
- # Statistics related to processing hybrid inspect requests.s
958
+ # Statistics related to processing hybrid inspect requests.
895
959
  # @!attribute [rw] processed_count
896
960
  # @return [::Integer]
897
961
  # The number of hybrid inspection requests processed within this job.
@@ -933,7 +997,11 @@ module Google
933
997
  # Request for the list of infoTypes.
934
998
  # @!attribute [rw] parent
935
999
  # @return [::String]
936
- # The parent resource name, for example locations/\\{location_id}
1000
+ # The parent resource name.
1001
+ #
1002
+ # The format of this value is as follows:
1003
+ #
1004
+ # locations/<var>LOCATION_ID</var>
937
1005
  # @!attribute [rw] language_code
938
1006
  # @return [::String]
939
1007
  # BCP-47 language code for localized infoType friendly
@@ -1017,8 +1085,8 @@ module Google
1017
1085
  # Required. Quasi-identifier columns.
1018
1086
  # @!attribute [rw] relative_frequency
1019
1087
  # @return [::Google::Cloud::Dlp::V2::FieldId]
1020
- # Required. The relative frequency column must contain a floating-point
1021
- # number between 0 and 1 (inclusive). Null values are assumed to be zero.
1088
+ # Required. The relative frequency column must contain a floating-point number
1089
+ # between 0 and 1 (inclusive). Null values are assumed to be zero.
1022
1090
  class StatisticalTable
1023
1091
  include ::Google::Protobuf::MessageExts
1024
1092
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1133,8 +1201,8 @@ module Google
1133
1201
  # extrapolating from the distribution of values in the input dataset.
1134
1202
  # @!attribute [rw] quasi_ids
1135
1203
  # @return [::Array<::Google::Cloud::Dlp::V2::PrivacyMetric::KMapEstimationConfig::TaggedField>]
1136
- # Required. Fields considered to be quasi-identifiers. No two columns can
1137
- # have the same tag.
1204
+ # Required. Fields considered to be quasi-identifiers. No two columns can have the
1205
+ # same tag.
1138
1206
  # @!attribute [rw] region_code
1139
1207
  # @return [::String]
1140
1208
  # ISO 3166-1 alpha-2 region code to use in the statistical modeling.
@@ -1189,8 +1257,8 @@ module Google
1189
1257
  # Required. Quasi-identifier columns.
1190
1258
  # @!attribute [rw] relative_frequency
1191
1259
  # @return [::Google::Cloud::Dlp::V2::FieldId]
1192
- # Required. The relative frequency column must contain a floating-point
1193
- # number between 0 and 1 (inclusive). Null values are assumed to be zero.
1260
+ # Required. The relative frequency column must contain a floating-point number
1261
+ # between 0 and 1 (inclusive). Null values are assumed to be zero.
1194
1262
  class AuxiliaryTable
1195
1263
  include ::Google::Protobuf::MessageExts
1196
1264
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1216,8 +1284,8 @@ module Google
1216
1284
  # knowing the attack dataset, so we use a statistical model instead.
1217
1285
  # @!attribute [rw] quasi_ids
1218
1286
  # @return [::Array<::Google::Cloud::Dlp::V2::QuasiId>]
1219
- # Required. Fields considered to be quasi-identifiers. No two fields can
1220
- # have the same tag.
1287
+ # Required. Fields considered to be quasi-identifiers. No two fields can have the
1288
+ # same tag.
1221
1289
  # @!attribute [rw] region_code
1222
1290
  # @return [::String]
1223
1291
  # ISO 3166-1 alpha-2 region code to use in the statistical modeling.
@@ -1935,18 +2003,18 @@ module Google
1935
2003
  # See https://cloud.google.com/dlp/docs/concepts-bucketing to learn more.
1936
2004
  # @!attribute [rw] lower_bound
1937
2005
  # @return [::Google::Cloud::Dlp::V2::Value]
1938
- # Required. Lower bound value of buckets. All values less than `lower_bound`
1939
- # are grouped together into a single bucket; for example if `lower_bound` =
1940
- # 10, then all values less than 10 are replaced with the value “-10”.
2006
+ # Required. Lower bound value of buckets. All values less than `lower_bound` are
2007
+ # grouped together into a single bucket; for example if `lower_bound` = 10,
2008
+ # then all values less than 10 are replaced with the value "-10".
1941
2009
  # @!attribute [rw] upper_bound
1942
2010
  # @return [::Google::Cloud::Dlp::V2::Value]
1943
- # Required. Upper bound value of buckets. All values greater than upper_bound
1944
- # are grouped together into a single bucket; for example if `upper_bound` =
1945
- # 89, then all values greater than 89 are replaced with the value 89+”.
2011
+ # Required. Upper bound value of buckets. All values greater than upper_bound are
2012
+ # grouped together into a single bucket; for example if `upper_bound` = 89,
2013
+ # then all values greater than 89 are replaced with the value "89+".
1946
2014
  # @!attribute [rw] bucket_size
1947
2015
  # @return [::Float]
1948
- # Required. Size of each bucket (except for minimum and maximum buckets). So
1949
- # if `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the
2016
+ # Required. Size of each bucket (except for minimum and maximum buckets). So if
2017
+ # `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the
1950
2018
  # following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60,
1951
2019
  # 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works.
1952
2020
  class FixedSizeBucketingConfig
@@ -1980,8 +2048,7 @@ module Google
1980
2048
  # Upper bound of the range, exclusive; type must match min.
1981
2049
  # @!attribute [rw] replacement_value
1982
2050
  # @return [::Google::Cloud::Dlp::V2::Value]
1983
- # Replacement value for this bucket. If not provided
1984
- # the default behavior will be to hyphenate the min-max range.
2051
+ # Required. Replacement value for this bucket.
1985
2052
  class Bucket
1986
2053
  include ::Google::Protobuf::MessageExts
1987
2054
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -2038,6 +2105,9 @@ module Google
2038
2105
  # Number of characters must be in the range [2, 95].
2039
2106
  # This must be encoded as ASCII.
2040
2107
  # The order of characters does not matter.
2108
+ # The full list of allowed characters is:
2109
+ # <code>0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
2110
+ # ~`!@#$%^&*()_-+={[}]|\:;"'<,>.?/</code>
2041
2111
  # @!attribute [rw] radix
2042
2112
  # @return [::Integer]
2043
2113
  # The native way to select the alphabet. Must be in the range [2, 95].
@@ -2158,15 +2228,14 @@ module Google
2158
2228
  # to learn more.
2159
2229
  # @!attribute [rw] upper_bound_days
2160
2230
  # @return [::Integer]
2161
- # Required. Range of shift in days. Actual shift will be selected at random
2162
- # within this range (inclusive ends). Negative means shift to earlier in
2163
- # time. Must not be more than 365250 days (1000 years) each direction.
2231
+ # Required. Range of shift in days. Actual shift will be selected at random within this
2232
+ # range (inclusive ends). Negative means shift to earlier in time. Must not
2233
+ # be more than 365250 days (1000 years) each direction.
2164
2234
  #
2165
2235
  # For example, 3 means shift date to at most 3 days into the future.
2166
2236
  # @!attribute [rw] lower_bound_days
2167
2237
  # @return [::Integer]
2168
- # Required. For example, -5 means shift date to at most 5 days back in the
2169
- # past.
2238
+ # Required. For example, -5 means shift date to at most 5 days back in the past.
2170
2239
  # @!attribute [rw] context
2171
2240
  # @return [::Google::Cloud::Dlp::V2::FieldId]
2172
2241
  # Points to the field that contains the context, for example, an entity id.
@@ -2684,8 +2753,26 @@ module Google
2684
2753
  # Request message for CreateInspectTemplate.
2685
2754
  # @!attribute [rw] parent
2686
2755
  # @return [::String]
2687
- # Required. The parent resource name, for example projects/my-project-id or
2688
- # organizations/my-org-id or projects/my-project-id/locations/\\{location-id}.
2756
+ # Required. Parent resource name.
2757
+ #
2758
+ # The format of this value varies depending on the scope of the request
2759
+ # (project or organization) and whether you have [specified a processing
2760
+ # location](https://cloud.google.com/dlp/docs/specifying-location):
2761
+ #
2762
+ # + Projects scope, location specified:<br/>
2763
+ # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
2764
+ # + Projects scope, no location specified (defaults to global):<br/>
2765
+ # `projects/`<var>PROJECT_ID</var>
2766
+ # + Organizations scope, location specified:<br/>
2767
+ # `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
2768
+ # + Organizations scope, no location specified (defaults to global):<br/>
2769
+ # `organizations/`<var>ORG_ID</var>
2770
+ #
2771
+ # The following example `parent` string specifies a parent project with the
2772
+ # identifier `example-project`, and specifies the `europe-west3` location
2773
+ # for processing data:
2774
+ #
2775
+ # parent=projects/example-project/locations/europe-west3
2689
2776
  # @!attribute [rw] inspect_template
2690
2777
  # @return [::Google::Cloud::Dlp::V2::InspectTemplate]
2691
2778
  # Required. The InspectTemplate to create.
@@ -2693,7 +2780,7 @@ module Google
2693
2780
  # @return [::String]
2694
2781
  # The template id can contain uppercase and lowercase letters,
2695
2782
  # numbers, and hyphens; that is, it must match the regular
2696
- # expression: `[a-zA-Z\\d-_]+`. The maximum length is 100
2783
+ # expression: `[a-zA-Z\d-_]+`. The maximum length is 100
2697
2784
  # characters. Can be empty to allow the system to generate one.
2698
2785
  # @!attribute [rw] location_id
2699
2786
  # @return [::String]
@@ -2706,8 +2793,8 @@ module Google
2706
2793
  # Request message for UpdateInspectTemplate.
2707
2794
  # @!attribute [rw] name
2708
2795
  # @return [::String]
2709
- # Required. Resource name of organization and inspectTemplate to be updated,
2710
- # for example `organizations/433245324/inspectTemplates/432452342` or
2796
+ # Required. Resource name of organization and inspectTemplate to be updated, for
2797
+ # example `organizations/433245324/inspectTemplates/432452342` or
2711
2798
  # projects/project-id/inspectTemplates/432452342.
2712
2799
  # @!attribute [rw] inspect_template
2713
2800
  # @return [::Google::Cloud::Dlp::V2::InspectTemplate]
@@ -2723,8 +2810,8 @@ module Google
2723
2810
  # Request message for GetInspectTemplate.
2724
2811
  # @!attribute [rw] name
2725
2812
  # @return [::String]
2726
- # Required. Resource name of the organization and inspectTemplate to be read,
2727
- # for example `organizations/433245324/inspectTemplates/432452342` or
2813
+ # Required. Resource name of the organization and inspectTemplate to be read, for
2814
+ # example `organizations/433245324/inspectTemplates/432452342` or
2728
2815
  # projects/project-id/inspectTemplates/432452342.
2729
2816
  class GetInspectTemplateRequest
2730
2817
  include ::Google::Protobuf::MessageExts
@@ -2734,8 +2821,26 @@ module Google
2734
2821
  # Request message for ListInspectTemplates.
2735
2822
  # @!attribute [rw] parent
2736
2823
  # @return [::String]
2737
- # Required. The parent resource name, for example projects/my-project-id or
2738
- # organizations/my-org-id or projects/my-project-id/locations/\\{location_id}.
2824
+ # Required. Parent resource name.
2825
+ #
2826
+ # The format of this value varies depending on the scope of the request
2827
+ # (project or organization) and whether you have [specified a processing
2828
+ # location](https://cloud.google.com/dlp/docs/specifying-location):
2829
+ #
2830
+ # + Projects scope, location specified:<br/>
2831
+ # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
2832
+ # + Projects scope, no location specified (defaults to global):<br/>
2833
+ # `projects/`<var>PROJECT_ID</var>
2834
+ # + Organizations scope, location specified:<br/>
2835
+ # `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
2836
+ # + Organizations scope, no location specified (defaults to global):<br/>
2837
+ # `organizations/`<var>ORG_ID</var>
2838
+ #
2839
+ # The following example `parent` string specifies a parent project with the
2840
+ # identifier `example-project`, and specifies the `europe-west3` location
2841
+ # for processing data:
2842
+ #
2843
+ # parent=projects/example-project/locations/europe-west3
2739
2844
  # @!attribute [rw] page_token
2740
2845
  # @return [::String]
2741
2846
  # Page token to continue retrieval. Comes from previous call
@@ -2783,9 +2888,9 @@ module Google
2783
2888
  # Request message for DeleteInspectTemplate.
2784
2889
  # @!attribute [rw] name
2785
2890
  # @return [::String]
2786
- # Required. Resource name of the organization and inspectTemplate to be
2787
- # deleted, for example `organizations/433245324/inspectTemplates/432452342`
2788
- # or projects/project-id/inspectTemplates/432452342.
2891
+ # Required. Resource name of the organization and inspectTemplate to be deleted, for
2892
+ # example `organizations/433245324/inspectTemplates/432452342` or
2893
+ # projects/project-id/inspectTemplates/432452342.
2789
2894
  class DeleteInspectTemplateRequest
2790
2895
  include ::Google::Protobuf::MessageExts
2791
2896
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -2794,8 +2899,22 @@ module Google
2794
2899
  # Request message for CreateJobTrigger.
2795
2900
  # @!attribute [rw] parent
2796
2901
  # @return [::String]
2797
- # Required. The parent resource name, for example projects/my-project-id
2798
- # or projects/my-project-id/locations/\\{location_id}.
2902
+ # Required. Parent resource name.
2903
+ #
2904
+ # The format of this value varies depending on whether you have [specified a
2905
+ # processing
2906
+ # location](https://cloud.google.com/dlp/docs/specifying-location):
2907
+ #
2908
+ # + Projects scope, location specified:<br/>
2909
+ # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
2910
+ # + Projects scope, no location specified (defaults to global):<br/>
2911
+ # `projects/`<var>PROJECT_ID</var>
2912
+ #
2913
+ # The following example `parent` string specifies a parent project with the
2914
+ # identifier `example-project`, and specifies the `europe-west3` location
2915
+ # for processing data:
2916
+ #
2917
+ # parent=projects/example-project/locations/europe-west3
2799
2918
  # @!attribute [rw] job_trigger
2800
2919
  # @return [::Google::Cloud::Dlp::V2::JobTrigger]
2801
2920
  # Required. The JobTrigger to create.
@@ -2803,7 +2922,7 @@ module Google
2803
2922
  # @return [::String]
2804
2923
  # The trigger id can contain uppercase and lowercase letters,
2805
2924
  # numbers, and hyphens; that is, it must match the regular
2806
- # expression: `[a-zA-Z\\d-_]+`. The maximum length is 100
2925
+ # expression: `[a-zA-Z\d-_]+`. The maximum length is 100
2807
2926
  # characters. Can be empty to allow the system to generate one.
2808
2927
  # @!attribute [rw] location_id
2809
2928
  # @return [::String]
@@ -2854,8 +2973,22 @@ module Google
2854
2973
  # Storage.
2855
2974
  # @!attribute [rw] parent
2856
2975
  # @return [::String]
2857
- # Required. The parent resource name, for example projects/my-project-id
2858
- # or projects/my-project-id/locations/\\{location_id}.
2976
+ # Required. Parent resource name.
2977
+ #
2978
+ # The format of this value varies depending on whether you have [specified a
2979
+ # processing
2980
+ # location](https://cloud.google.com/dlp/docs/specifying-location):
2981
+ #
2982
+ # + Projects scope, location specified:<br/>
2983
+ # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
2984
+ # + Projects scope, no location specified (defaults to global):<br/>
2985
+ # `projects/`<var>PROJECT_ID</var>
2986
+ #
2987
+ # The following example `parent` string specifies a parent project with the
2988
+ # identifier `example-project`, and specifies the `europe-west3` location
2989
+ # for processing data:
2990
+ #
2991
+ # parent=projects/example-project/locations/europe-west3
2859
2992
  # @!attribute [rw] inspect_job
2860
2993
  # @return [::Google::Cloud::Dlp::V2::InspectJobConfig]
2861
2994
  # Set to control what and how to inspect.
@@ -2866,7 +2999,7 @@ module Google
2866
2999
  # @return [::String]
2867
3000
  # The job id can contain uppercase and lowercase letters,
2868
3001
  # numbers, and hyphens; that is, it must match the regular
2869
- # expression: `[a-zA-Z\\d-_]+`. The maximum length is 100
3002
+ # expression: `[a-zA-Z\d-_]+`. The maximum length is 100
2870
3003
  # characters. Can be empty to allow the system to generate one.
2871
3004
  # @!attribute [rw] location_id
2872
3005
  # @return [::String]
@@ -2879,8 +3012,22 @@ module Google
2879
3012
  # Request message for ListJobTriggers.
2880
3013
  # @!attribute [rw] parent
2881
3014
  # @return [::String]
2882
- # Required. The parent resource name, for example `projects/my-project-id`
2883
- # or projects/my-project-id/locations/\\{location_id}.
3015
+ # Required. Parent resource name.
3016
+ #
3017
+ # The format of this value varies depending on whether you have [specified a
3018
+ # processing
3019
+ # location](https://cloud.google.com/dlp/docs/specifying-location):
3020
+ #
3021
+ # + Projects scope, location specified:<br/>
3022
+ # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
3023
+ # + Projects scope, no location specified (defaults to global):<br/>
3024
+ # `projects/`<var>PROJECT_ID</var>
3025
+ #
3026
+ # The following example `parent` string specifies a parent project with the
3027
+ # identifier `example-project`, and specifies the `europe-west3` location
3028
+ # for processing data:
3029
+ #
3030
+ # parent=projects/example-project/locations/europe-west3
2884
3031
  # @!attribute [rw] page_token
2885
3032
  # @return [::String]
2886
3033
  # Page token to continue retrieval. Comes from previous call
@@ -3060,8 +3207,22 @@ module Google
3060
3207
  # The request message for listing DLP jobs.
3061
3208
  # @!attribute [rw] parent
3062
3209
  # @return [::String]
3063
- # Required. The parent resource name, for example projects/my-project-id
3064
- # or projects/my-project-id/locations/\\{location_id}.
3210
+ # Required. Parent resource name.
3211
+ #
3212
+ # The format of this value varies depending on whether you have [specified a
3213
+ # processing
3214
+ # location](https://cloud.google.com/dlp/docs/specifying-location):
3215
+ #
3216
+ # + Projects scope, location specified:<br/>
3217
+ # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
3218
+ # + Projects scope, no location specified (defaults to global):<br/>
3219
+ # `projects/`<var>PROJECT_ID</var>
3220
+ #
3221
+ # The following example `parent` string specifies a parent project with the
3222
+ # identifier `example-project`, and specifies the `europe-west3` location
3223
+ # for processing data:
3224
+ #
3225
+ # parent=projects/example-project/locations/europe-west3
3065
3226
  # @!attribute [rw] filter
3066
3227
  # @return [::String]
3067
3228
  # Allows filtering.
@@ -3166,8 +3327,26 @@ module Google
3166
3327
  # Request message for CreateDeidentifyTemplate.
3167
3328
  # @!attribute [rw] parent
3168
3329
  # @return [::String]
3169
- # Required. The parent resource name, for example projects/my-project-id or
3170
- # organizations/my-org-id or projects/my-project-id/locations/\\{location_id}.
3330
+ # Required. Parent resource name.
3331
+ #
3332
+ # The format of this value varies depending on the scope of the request
3333
+ # (project or organization) and whether you have [specified a processing
3334
+ # location](https://cloud.google.com/dlp/docs/specifying-location):
3335
+ #
3336
+ # + Projects scope, location specified:<br/>
3337
+ # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
3338
+ # + Projects scope, no location specified (defaults to global):<br/>
3339
+ # `projects/`<var>PROJECT_ID</var>
3340
+ # + Organizations scope, location specified:<br/>
3341
+ # `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
3342
+ # + Organizations scope, no location specified (defaults to global):<br/>
3343
+ # `organizations/`<var>ORG_ID</var>
3344
+ #
3345
+ # The following example `parent` string specifies a parent project with the
3346
+ # identifier `example-project`, and specifies the `europe-west3` location
3347
+ # for processing data:
3348
+ #
3349
+ # parent=projects/example-project/locations/europe-west3
3171
3350
  # @!attribute [rw] deidentify_template
3172
3351
  # @return [::Google::Cloud::Dlp::V2::DeidentifyTemplate]
3173
3352
  # Required. The DeidentifyTemplate to create.
@@ -3175,7 +3354,7 @@ module Google
3175
3354
  # @return [::String]
3176
3355
  # The template id can contain uppercase and lowercase letters,
3177
3356
  # numbers, and hyphens; that is, it must match the regular
3178
- # expression: `[a-zA-Z\\d-_]+`. The maximum length is 100
3357
+ # expression: `[a-zA-Z\d-_]+`. The maximum length is 100
3179
3358
  # characters. Can be empty to allow the system to generate one.
3180
3359
  # @!attribute [rw] location_id
3181
3360
  # @return [::String]
@@ -3188,9 +3367,8 @@ module Google
3188
3367
  # Request message for UpdateDeidentifyTemplate.
3189
3368
  # @!attribute [rw] name
3190
3369
  # @return [::String]
3191
- # Required. Resource name of organization and deidentify template to be
3192
- # updated, for example
3193
- # `organizations/433245324/deidentifyTemplates/432452342` or
3370
+ # Required. Resource name of organization and deidentify template to be updated, for
3371
+ # example `organizations/433245324/deidentifyTemplates/432452342` or
3194
3372
  # projects/project-id/deidentifyTemplates/432452342.
3195
3373
  # @!attribute [rw] deidentify_template
3196
3374
  # @return [::Google::Cloud::Dlp::V2::DeidentifyTemplate]
@@ -3206,9 +3384,9 @@ module Google
3206
3384
  # Request message for GetDeidentifyTemplate.
3207
3385
  # @!attribute [rw] name
3208
3386
  # @return [::String]
3209
- # Required. Resource name of the organization and deidentify template to be
3210
- # read, for example `organizations/433245324/deidentifyTemplates/432452342`
3211
- # or projects/project-id/deidentifyTemplates/432452342.
3387
+ # Required. Resource name of the organization and deidentify template to be read, for
3388
+ # example `organizations/433245324/deidentifyTemplates/432452342` or
3389
+ # projects/project-id/deidentifyTemplates/432452342.
3212
3390
  class GetDeidentifyTemplateRequest
3213
3391
  include ::Google::Protobuf::MessageExts
3214
3392
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -3217,8 +3395,26 @@ module Google
3217
3395
  # Request message for ListDeidentifyTemplates.
3218
3396
  # @!attribute [rw] parent
3219
3397
  # @return [::String]
3220
- # Required. The parent resource name, for example projects/my-project-id or
3221
- # organizations/my-org-id or projects/my-project-id/locations/\\{location_id}.
3398
+ # Required. Parent resource name.
3399
+ #
3400
+ # The format of this value varies depending on the scope of the request
3401
+ # (project or organization) and whether you have [specified a processing
3402
+ # location](https://cloud.google.com/dlp/docs/specifying-location):
3403
+ #
3404
+ # + Projects scope, location specified:<br/>
3405
+ # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
3406
+ # + Projects scope, no location specified (defaults to global):<br/>
3407
+ # `projects/`<var>PROJECT_ID</var>
3408
+ # + Organizations scope, location specified:<br/>
3409
+ # `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
3410
+ # + Organizations scope, no location specified (defaults to global):<br/>
3411
+ # `organizations/`<var>ORG_ID</var>
3412
+ #
3413
+ # The following example `parent` string specifies a parent project with the
3414
+ # identifier `example-project`, and specifies the `europe-west3` location
3415
+ # for processing data:
3416
+ #
3417
+ # parent=projects/example-project/locations/europe-west3
3222
3418
  # @!attribute [rw] page_token
3223
3419
  # @return [::String]
3224
3420
  # Page token to continue retrieval. Comes from previous call
@@ -3267,9 +3463,8 @@ module Google
3267
3463
  # Request message for DeleteDeidentifyTemplate.
3268
3464
  # @!attribute [rw] name
3269
3465
  # @return [::String]
3270
- # Required. Resource name of the organization and deidentify template to be
3271
- # deleted, for example
3272
- # `organizations/433245324/deidentifyTemplates/432452342` or
3466
+ # Required. Resource name of the organization and deidentify template to be deleted,
3467
+ # for example `organizations/433245324/deidentifyTemplates/432452342` or
3273
3468
  # projects/project-id/deidentifyTemplates/432452342.
3274
3469
  class DeleteDeidentifyTemplateRequest
3275
3470
  include ::Google::Protobuf::MessageExts
@@ -3396,8 +3591,26 @@ module Google
3396
3591
  # Request message for CreateStoredInfoType.
3397
3592
  # @!attribute [rw] parent
3398
3593
  # @return [::String]
3399
- # Required. The parent resource name, for example projects/my-project-id or
3400
- # organizations/my-org-id or projects/my-project-id/locations/\\{location_id}
3594
+ # Required. Parent resource name.
3595
+ #
3596
+ # The format of this value varies depending on the scope of the request
3597
+ # (project or organization) and whether you have [specified a processing
3598
+ # location](https://cloud.google.com/dlp/docs/specifying-location):
3599
+ #
3600
+ # + Projects scope, location specified:<br/>
3601
+ # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
3602
+ # + Projects scope, no location specified (defaults to global):<br/>
3603
+ # `projects/`<var>PROJECT_ID</var>
3604
+ # + Organizations scope, location specified:<br/>
3605
+ # `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
3606
+ # + Organizations scope, no location specified (defaults to global):<br/>
3607
+ # `organizations/`<var>ORG_ID</var>
3608
+ #
3609
+ # The following example `parent` string specifies a parent project with the
3610
+ # identifier `example-project`, and specifies the `europe-west3` location
3611
+ # for processing data:
3612
+ #
3613
+ # parent=projects/example-project/locations/europe-west3
3401
3614
  # @!attribute [rw] config
3402
3615
  # @return [::Google::Cloud::Dlp::V2::StoredInfoTypeConfig]
3403
3616
  # Required. Configuration of the storedInfoType to create.
@@ -3405,7 +3618,7 @@ module Google
3405
3618
  # @return [::String]
3406
3619
  # The storedInfoType ID can contain uppercase and lowercase letters,
3407
3620
  # numbers, and hyphens; that is, it must match the regular
3408
- # expression: `[a-zA-Z\\d-_]+`. The maximum length is 100
3621
+ # expression: `[a-zA-Z\d-_]+`. The maximum length is 100
3409
3622
  # characters. Can be empty to allow the system to generate one.
3410
3623
  # @!attribute [rw] location_id
3411
3624
  # @return [::String]
@@ -3437,8 +3650,8 @@ module Google
3437
3650
  # Request message for GetStoredInfoType.
3438
3651
  # @!attribute [rw] name
3439
3652
  # @return [::String]
3440
- # Required. Resource name of the organization and storedInfoType to be read,
3441
- # for example `organizations/433245324/storedInfoTypes/432452342` or
3653
+ # Required. Resource name of the organization and storedInfoType to be read, for
3654
+ # example `organizations/433245324/storedInfoTypes/432452342` or
3442
3655
  # projects/project-id/storedInfoTypes/432452342.
3443
3656
  class GetStoredInfoTypeRequest
3444
3657
  include ::Google::Protobuf::MessageExts
@@ -3448,8 +3661,26 @@ module Google
3448
3661
  # Request message for ListStoredInfoTypes.
3449
3662
  # @!attribute [rw] parent
3450
3663
  # @return [::String]
3451
- # Required. The parent resource name, for example projects/my-project-id or
3452
- # organizations/my-org-id or projects/my-project-id/locations/\\{location_id}.
3664
+ # Required. Parent resource name.
3665
+ #
3666
+ # The format of this value varies depending on the scope of the request
3667
+ # (project or organization) and whether you have [specified a processing
3668
+ # location](https://cloud.google.com/dlp/docs/specifying-location):
3669
+ #
3670
+ # + Projects scope, location specified:<br/>
3671
+ # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
3672
+ # + Projects scope, no location specified (defaults to global):<br/>
3673
+ # `projects/`<var>PROJECT_ID</var>
3674
+ # + Organizations scope, location specified:<br/>
3675
+ # `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
3676
+ # + Organizations scope, no location specified (defaults to global):<br/>
3677
+ # `organizations/`<var>ORG_ID</var>
3678
+ #
3679
+ # The following example `parent` string specifies a parent project with the
3680
+ # identifier `example-project`, and specifies the `europe-west3` location
3681
+ # for processing data:
3682
+ #
3683
+ # parent=projects/example-project/locations/europe-west3
3453
3684
  # @!attribute [rw] page_token
3454
3685
  # @return [::String]
3455
3686
  # Page token to continue retrieval. Comes from previous call
@@ -3498,8 +3729,8 @@ module Google
3498
3729
  # Request message for DeleteStoredInfoType.
3499
3730
  # @!attribute [rw] name
3500
3731
  # @return [::String]
3501
- # Required. Resource name of the organization and storedInfoType to be
3502
- # deleted, for example `organizations/433245324/storedInfoTypes/432452342` or
3732
+ # Required. Resource name of the organization and storedInfoType to be deleted, for
3733
+ # example `organizations/433245324/storedInfoTypes/432452342` or
3503
3734
  # projects/project-id/storedInfoTypes/432452342.
3504
3735
  class DeleteStoredInfoTypeRequest
3505
3736
  include ::Google::Protobuf::MessageExts
@@ -3509,8 +3740,8 @@ module Google
3509
3740
  # Request to search for potentially sensitive info in a custom location.
3510
3741
  # @!attribute [rw] name
3511
3742
  # @return [::String]
3512
- # Required. Resource name of the trigger to execute a hybrid inspect on, for
3513
- # example `projects/dlp-test-project/jobTriggers/53234423`.
3743
+ # Required. Resource name of the trigger to execute a hybrid inspect on, for example
3744
+ # `projects/dlp-test-project/jobTriggers/53234423`.
3514
3745
  # @!attribute [rw] hybrid_item
3515
3746
  # @return [::Google::Cloud::Dlp::V2::HybridContentItem]
3516
3747
  # The item to inspect.
@@ -3522,8 +3753,8 @@ module Google
3522
3753
  # Request to search for potentially sensitive info in a custom location.
3523
3754
  # @!attribute [rw] name
3524
3755
  # @return [::String]
3525
- # Required. Resource name of the job to execute a hybrid inspect on, for
3526
- # example `projects/dlp-test-project/dlpJob/53234423`.
3756
+ # Required. Resource name of the job to execute a hybrid inspect on, for example
3757
+ # `projects/dlp-test-project/dlpJob/53234423`.
3527
3758
  # @!attribute [rw] hybrid_item
3528
3759
  # @return [::Google::Cloud::Dlp::V2::HybridContentItem]
3529
3760
  # The item to inspect.
@@ -3678,7 +3909,7 @@ module Google
3678
3909
  # Unused
3679
3910
  METADATATYPE_UNSPECIFIED = 0
3680
3911
 
3681
- # General file metadata provided by GCS.
3912
+ # General file metadata provided by Cloud Storage.
3682
3913
  STORAGE_METADATA = 2
3683
3914
  end
3684
3915