google-cloud-dlp-v2 0.4.3 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -64,12 +64,12 @@ module Google
64
64
  # @return [::String]
65
65
  def deidentify_template_path **args
66
66
  resources = {
67
- "deidentify_template:organization" => (proc do |organization:, deidentify_template:|
67
+ "deidentify_template:organization" => (proc do |organization:, deidentify_template:|
68
68
  raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
69
69
 
70
70
  "organizations/#{organization}/deidentifyTemplates/#{deidentify_template}"
71
71
  end),
72
- "deidentify_template:project" => (proc do |project:, deidentify_template:|
72
+ "deidentify_template:project" => (proc do |project:, deidentify_template:|
73
73
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
74
74
 
75
75
  "projects/#{project}/deidentifyTemplates/#{deidentify_template}"
@@ -80,7 +80,7 @@ module Google
80
80
 
81
81
  "organizations/#{organization}/locations/#{location}/deidentifyTemplates/#{deidentify_template}"
82
82
  end),
83
- "deidentify_template:location:project" => (proc do |project:, location:, deidentify_template:|
83
+ "deidentify_template:location:project" => (proc do |project:, location:, deidentify_template:|
84
84
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
85
85
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
86
86
 
@@ -116,7 +116,7 @@ module Google
116
116
  # @return [::String]
117
117
  def dlp_job_path **args
118
118
  resources = {
119
- "dlp_job:project" => (proc do |project:, dlp_job:|
119
+ "dlp_job:project" => (proc do |project:, dlp_job:|
120
120
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
121
121
 
122
122
  "projects/#{project}/dlpJobs/#{dlp_job}"
@@ -174,12 +174,12 @@ module Google
174
174
  # @return [::String]
175
175
  def inspect_template_path **args
176
176
  resources = {
177
- "inspect_template:organization" => (proc do |organization:, inspect_template:|
177
+ "inspect_template:organization" => (proc do |organization:, inspect_template:|
178
178
  raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
179
179
 
180
180
  "organizations/#{organization}/inspectTemplates/#{inspect_template}"
181
181
  end),
182
- "inspect_template:project" => (proc do |project:, inspect_template:|
182
+ "inspect_template:project" => (proc do |project:, inspect_template:|
183
183
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
184
184
 
185
185
  "projects/#{project}/inspectTemplates/#{inspect_template}"
@@ -190,7 +190,7 @@ module Google
190
190
 
191
191
  "organizations/#{organization}/locations/#{location}/inspectTemplates/#{inspect_template}"
192
192
  end),
193
- "inspect_template:location:project" => (proc do |project:, location:, inspect_template:|
193
+ "inspect_template:location:project" => (proc do |project:, location:, inspect_template:|
194
194
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
195
195
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
196
196
 
@@ -226,7 +226,7 @@ module Google
226
226
  # @return [::String]
227
227
  def job_trigger_path **args
228
228
  resources = {
229
- "job_trigger:project" => (proc do |project:, job_trigger:|
229
+ "job_trigger:project" => (proc do |project:, job_trigger:|
230
230
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
231
231
 
232
232
  "projects/#{project}/jobTriggers/#{job_trigger}"
@@ -346,12 +346,12 @@ module Google
346
346
  # @return [::String]
347
347
  def stored_info_type_path **args
348
348
  resources = {
349
- "organization:stored_info_type" => (proc do |organization:, stored_info_type:|
349
+ "organization:stored_info_type" => (proc do |organization:, stored_info_type:|
350
350
  raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
351
351
 
352
352
  "organizations/#{organization}/storedInfoTypes/#{stored_info_type}"
353
353
  end),
354
- "project:stored_info_type" => (proc do |project:, stored_info_type:|
354
+ "project:stored_info_type" => (proc do |project:, stored_info_type:|
355
355
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
356
356
 
357
357
  "projects/#{project}/storedInfoTypes/#{stored_info_type}"
@@ -362,7 +362,7 @@ module Google
362
362
 
363
363
  "organizations/#{organization}/locations/#{location}/storedInfoTypes/#{stored_info_type}"
364
364
  end),
365
- "location:project:stored_info_type" => (proc do |project:, location:, stored_info_type:|
365
+ "location:project:stored_info_type" => (proc do |project:, location:, stored_info_type:|
366
366
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
367
367
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
368
368
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Dlp
23
23
  module V2
24
- VERSION = "0.4.3"
24
+ VERSION = "0.7.0"
25
25
  end
26
26
  end
27
27
  end
@@ -356,6 +356,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
356
356
  add_message "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails" do
357
357
  optional :requested_privacy_metric, :message, 1, "google.privacy.dlp.v2.PrivacyMetric"
358
358
  optional :requested_source_table, :message, 2, "google.privacy.dlp.v2.BigQueryTable"
359
+ optional :requested_options, :message, 10, "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.RequestedRiskAnalysisOptions"
359
360
  oneof :result do
360
361
  optional :numerical_stats_result, :message, 3, "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.NumericalStatsResult"
361
362
  optional :categorical_stats_result, :message, 4, "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult"
@@ -438,6 +439,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
438
439
  repeated :bucket_values, :message, 6, "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationQuasiIdValues"
439
440
  optional :bucket_value_count, :int64, 7
440
441
  end
442
+ add_message "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.RequestedRiskAnalysisOptions" do
443
+ optional :job_config, :message, 1, "google.privacy.dlp.v2.RiskAnalysisJobConfig"
444
+ end
441
445
  add_message "google.privacy.dlp.v2.ValueFrequency" do
442
446
  optional :value, :message, 1, "google.privacy.dlp.v2.Value"
443
447
  optional :count, :int64, 2
@@ -1105,6 +1109,7 @@ module Google
1105
1109
  AnalyzeDataSourceRiskDetails::DeltaPresenceEstimationResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult").msgclass
1106
1110
  AnalyzeDataSourceRiskDetails::DeltaPresenceEstimationResult::DeltaPresenceEstimationQuasiIdValues = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationQuasiIdValues").msgclass
1107
1111
  AnalyzeDataSourceRiskDetails::DeltaPresenceEstimationResult::DeltaPresenceEstimationHistogramBucket = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationHistogramBucket").msgclass
1112
+ AnalyzeDataSourceRiskDetails::RequestedRiskAnalysisOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.RequestedRiskAnalysisOptions").msgclass
1108
1113
  ValueFrequency = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ValueFrequency").msgclass
1109
1114
  Value = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Value").msgclass
1110
1115
  QuoteInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.QuoteInfo").msgclass
@@ -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
@@ -54,6 +54,12 @@ module Google
54
54
  # This indicates that the field may be set once in a request to create a
55
55
  # resource, but may not be changed thereafter.
56
56
  IMMUTABLE = 5
57
+
58
+ # Denotes that a (repeated) field is an unordered list.
59
+ # This indicates that the service may provide the elements of the list
60
+ # in any arbitrary order, rather than the order the user originally
61
+ # provided. Additionally, the list's order may or may not be stable.
62
+ UNORDERED_LIST = 6
57
63
  end
58
64
  end
59
65
  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
@@ -564,7 +564,8 @@ module Google
564
564
  # Parent resource name.
565
565
  #
566
566
  # The format of this value varies depending on whether you have [specified a
567
- # processing location](/dlp/docs/specifying-location):
567
+ # processing
568
+ # location](https://cloud.google.com/dlp/docs/specifying-location):
568
569
  #
569
570
  # + Projects scope, location specified:<br/>
570
571
  # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -655,7 +656,8 @@ module Google
655
656
  # Parent resource name.
656
657
  #
657
658
  # The format of this value varies depending on whether you have [specified a
658
- # processing location](/dlp/docs/specifying-location):
659
+ # processing
660
+ # location](https://cloud.google.com/dlp/docs/specifying-location):
659
661
  #
660
662
  # + Projects scope, location specified:<br/>
661
663
  # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -720,7 +722,8 @@ module Google
720
722
  # Required. Parent resource name.
721
723
  #
722
724
  # The format of this value varies depending on whether you have [specified a
723
- # processing location](/dlp/docs/specifying-location):
725
+ # processing
726
+ # location](https://cloud.google.com/dlp/docs/specifying-location):
724
727
  #
725
728
  # + Projects scope, location specified:<br/>
726
729
  # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -792,7 +795,8 @@ module Google
792
795
  # Parent resource name.
793
796
  #
794
797
  # The format of this value varies depending on whether you have [specified a
795
- # processing location](/dlp/docs/specifying-location):
798
+ # processing
799
+ # location](https://cloud.google.com/dlp/docs/specifying-location):
796
800
  #
797
801
  # + Projects scope, location specified:<br/>
798
802
  # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -1323,6 +1327,9 @@ module Google
1323
1327
  # @!attribute [rw] delta_presence_estimation_result
1324
1328
  # @return [::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::DeltaPresenceEstimationResult]
1325
1329
  # Delta-presence result
1330
+ # @!attribute [rw] requested_options
1331
+ # @return [::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::RequestedRiskAnalysisOptions]
1332
+ # The configuration used for this job.
1326
1333
  class AnalyzeDataSourceRiskDetails
1327
1334
  include ::Google::Protobuf::MessageExts
1328
1335
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1595,6 +1602,15 @@ module Google
1595
1602
  extend ::Google::Protobuf::MessageExts::ClassMethods
1596
1603
  end
1597
1604
  end
1605
+
1606
+ # Risk analysis options.
1607
+ # @!attribute [rw] job_config
1608
+ # @return [::Google::Cloud::Dlp::V2::RiskAnalysisJobConfig]
1609
+ # The job config for the risk job.
1610
+ class RequestedRiskAnalysisOptions
1611
+ include ::Google::Protobuf::MessageExts
1612
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1613
+ end
1598
1614
  end
1599
1615
 
1600
1616
  # A value of a field, including its frequency.
@@ -2753,7 +2769,7 @@ module Google
2753
2769
  #
2754
2770
  # The format of this value varies depending on the scope of the request
2755
2771
  # (project or organization) and whether you have [specified a processing
2756
- # location](/dlp/docs/specifying-location):
2772
+ # location](https://cloud.google.com/dlp/docs/specifying-location):
2757
2773
  #
2758
2774
  # + Projects scope, location specified:<br/>
2759
2775
  # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -2776,7 +2792,7 @@ module Google
2776
2792
  # @return [::String]
2777
2793
  # The template id can contain uppercase and lowercase letters,
2778
2794
  # numbers, and hyphens; that is, it must match the regular
2779
- # expression: `[a-zA-Z\\d-_]+`. The maximum length is 100
2795
+ # expression: `[a-zA-Z\d-_]+`. The maximum length is 100
2780
2796
  # characters. Can be empty to allow the system to generate one.
2781
2797
  # @!attribute [rw] location_id
2782
2798
  # @return [::String]
@@ -2821,7 +2837,7 @@ module Google
2821
2837
  #
2822
2838
  # The format of this value varies depending on the scope of the request
2823
2839
  # (project or organization) and whether you have [specified a processing
2824
- # location](/dlp/docs/specifying-location):
2840
+ # location](https://cloud.google.com/dlp/docs/specifying-location):
2825
2841
  #
2826
2842
  # + Projects scope, location specified:<br/>
2827
2843
  # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -2898,7 +2914,8 @@ module Google
2898
2914
  # Required. Parent resource name.
2899
2915
  #
2900
2916
  # The format of this value varies depending on whether you have [specified a
2901
- # processing location](/dlp/docs/specifying-location):
2917
+ # processing
2918
+ # location](https://cloud.google.com/dlp/docs/specifying-location):
2902
2919
  #
2903
2920
  # + Projects scope, location specified:<br/>
2904
2921
  # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -2917,7 +2934,7 @@ module Google
2917
2934
  # @return [::String]
2918
2935
  # The trigger id can contain uppercase and lowercase letters,
2919
2936
  # numbers, and hyphens; that is, it must match the regular
2920
- # expression: `[a-zA-Z\\d-_]+`. The maximum length is 100
2937
+ # expression: `[a-zA-Z\d-_]+`. The maximum length is 100
2921
2938
  # characters. Can be empty to allow the system to generate one.
2922
2939
  # @!attribute [rw] location_id
2923
2940
  # @return [::String]
@@ -2971,7 +2988,8 @@ module Google
2971
2988
  # Required. Parent resource name.
2972
2989
  #
2973
2990
  # The format of this value varies depending on whether you have [specified a
2974
- # processing location](/dlp/docs/specifying-location):
2991
+ # processing
2992
+ # location](https://cloud.google.com/dlp/docs/specifying-location):
2975
2993
  #
2976
2994
  # + Projects scope, location specified:<br/>
2977
2995
  # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -2993,7 +3011,7 @@ module Google
2993
3011
  # @return [::String]
2994
3012
  # The job id can contain uppercase and lowercase letters,
2995
3013
  # numbers, and hyphens; that is, it must match the regular
2996
- # expression: `[a-zA-Z\\d-_]+`. The maximum length is 100
3014
+ # expression: `[a-zA-Z\d-_]+`. The maximum length is 100
2997
3015
  # characters. Can be empty to allow the system to generate one.
2998
3016
  # @!attribute [rw] location_id
2999
3017
  # @return [::String]
@@ -3009,7 +3027,8 @@ module Google
3009
3027
  # Required. Parent resource name.
3010
3028
  #
3011
3029
  # The format of this value varies depending on whether you have [specified a
3012
- # processing location](/dlp/docs/specifying-location):
3030
+ # processing
3031
+ # location](https://cloud.google.com/dlp/docs/specifying-location):
3013
3032
  #
3014
3033
  # + Projects scope, location specified:<br/>
3015
3034
  # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -3203,7 +3222,8 @@ module Google
3203
3222
  # Required. Parent resource name.
3204
3223
  #
3205
3224
  # The format of this value varies depending on whether you have [specified a
3206
- # processing location](/dlp/docs/specifying-location):
3225
+ # processing
3226
+ # location](https://cloud.google.com/dlp/docs/specifying-location):
3207
3227
  #
3208
3228
  # + Projects scope, location specified:<br/>
3209
3229
  # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -3323,7 +3343,7 @@ module Google
3323
3343
  #
3324
3344
  # The format of this value varies depending on the scope of the request
3325
3345
  # (project or organization) and whether you have [specified a processing
3326
- # location](/dlp/docs/specifying-location):
3346
+ # location](https://cloud.google.com/dlp/docs/specifying-location):
3327
3347
  #
3328
3348
  # + Projects scope, location specified:<br/>
3329
3349
  # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -3346,7 +3366,7 @@ module Google
3346
3366
  # @return [::String]
3347
3367
  # The template id can contain uppercase and lowercase letters,
3348
3368
  # numbers, and hyphens; that is, it must match the regular
3349
- # expression: `[a-zA-Z\\d-_]+`. The maximum length is 100
3369
+ # expression: `[a-zA-Z\d-_]+`. The maximum length is 100
3350
3370
  # characters. Can be empty to allow the system to generate one.
3351
3371
  # @!attribute [rw] location_id
3352
3372
  # @return [::String]
@@ -3391,7 +3411,7 @@ module Google
3391
3411
  #
3392
3412
  # The format of this value varies depending on the scope of the request
3393
3413
  # (project or organization) and whether you have [specified a processing
3394
- # location](/dlp/docs/specifying-location):
3414
+ # location](https://cloud.google.com/dlp/docs/specifying-location):
3395
3415
  #
3396
3416
  # + Projects scope, location specified:<br/>
3397
3417
  # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -3587,7 +3607,7 @@ module Google
3587
3607
  #
3588
3608
  # The format of this value varies depending on the scope of the request
3589
3609
  # (project or organization) and whether you have [specified a processing
3590
- # location](/dlp/docs/specifying-location):
3610
+ # location](https://cloud.google.com/dlp/docs/specifying-location):
3591
3611
  #
3592
3612
  # + Projects scope, location specified:<br/>
3593
3613
  # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -3610,7 +3630,7 @@ module Google
3610
3630
  # @return [::String]
3611
3631
  # The storedInfoType ID can contain uppercase and lowercase letters,
3612
3632
  # numbers, and hyphens; that is, it must match the regular
3613
- # expression: `[a-zA-Z\\d-_]+`. The maximum length is 100
3633
+ # expression: `[a-zA-Z\d-_]+`. The maximum length is 100
3614
3634
  # characters. Can be empty to allow the system to generate one.
3615
3635
  # @!attribute [rw] location_id
3616
3636
  # @return [::String]
@@ -3657,7 +3677,7 @@ module Google
3657
3677
  #
3658
3678
  # The format of this value varies depending on the scope of the request
3659
3679
  # (project or organization) and whether you have [specified a processing
3660
- # location](/dlp/docs/specifying-location):
3680
+ # location](https://cloud.google.com/dlp/docs/specifying-location):
3661
3681
  #
3662
3682
  # + Projects scope, location specified:<br/>
3663
3683
  # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>