google-cloud-dlp-v2 0.21.0 → 0.23.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.
@@ -32,7 +32,7 @@ module Google
32
32
  # scheduling of data scans on Google Cloud Platform based data sets.
33
33
  #
34
34
  # To learn more about concepts and find how-to guides see
35
- # https://cloud.google.com/dlp/docs/.
35
+ # https://cloud.google.com/sensitive-data-protection/docs/.
36
36
  class Service
37
37
 
38
38
  include ::GRPC::GenericService
@@ -48,13 +48,16 @@ module Google
48
48
  # system will automatically choose what detectors to run. By default this may
49
49
  # be all types, but may change over time as detectors are updated.
50
50
  #
51
- # For how to guides, see https://cloud.google.com/dlp/docs/inspecting-images
52
- # and https://cloud.google.com/dlp/docs/inspecting-text,
51
+ # For how to guides, see
52
+ # https://cloud.google.com/sensitive-data-protection/docs/inspecting-images
53
+ # and
54
+ # https://cloud.google.com/sensitive-data-protection/docs/inspecting-text,
53
55
  rpc :InspectContent, ::Google::Cloud::Dlp::V2::InspectContentRequest, ::Google::Cloud::Dlp::V2::InspectContentResponse
54
56
  # Redacts potentially sensitive info from an image.
55
57
  # This method has limits on input size, processing time, and output size.
56
- # See https://cloud.google.com/dlp/docs/redacting-sensitive-data-images to
57
- # learn more.
58
+ # See
59
+ # https://cloud.google.com/sensitive-data-protection/docs/redacting-sensitive-data-images
60
+ # to learn more.
58
61
  #
59
62
  # When no InfoTypes or CustomInfoTypes are specified in this request, the
60
63
  # system will automatically choose what detectors to run. By default this may
@@ -62,8 +65,9 @@ module Google
62
65
  rpc :RedactImage, ::Google::Cloud::Dlp::V2::RedactImageRequest, ::Google::Cloud::Dlp::V2::RedactImageResponse
63
66
  # De-identifies potentially sensitive info from a ContentItem.
64
67
  # This method has limits on input size and output size.
65
- # See https://cloud.google.com/dlp/docs/deidentify-sensitive-data to
66
- # learn more.
68
+ # See
69
+ # https://cloud.google.com/sensitive-data-protection/docs/deidentify-sensitive-data
70
+ # to learn more.
67
71
  #
68
72
  # When no InfoTypes or CustomInfoTypes are specified in this request, the
69
73
  # system will automatically choose what detectors to run. By default this may
@@ -71,69 +75,95 @@ module Google
71
75
  rpc :DeidentifyContent, ::Google::Cloud::Dlp::V2::DeidentifyContentRequest, ::Google::Cloud::Dlp::V2::DeidentifyContentResponse
72
76
  # Re-identifies content that has been de-identified.
73
77
  # See
74
- # https://cloud.google.com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example
78
+ # https://cloud.google.com/sensitive-data-protection/docs/pseudonymization#re-identification_in_free_text_code_example
75
79
  # to learn more.
76
80
  rpc :ReidentifyContent, ::Google::Cloud::Dlp::V2::ReidentifyContentRequest, ::Google::Cloud::Dlp::V2::ReidentifyContentResponse
77
81
  # Returns a list of the sensitive information types that DLP API
78
- # supports. See https://cloud.google.com/dlp/docs/infotypes-reference to
79
- # learn more.
82
+ # supports. See
83
+ # https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference
84
+ # to learn more.
80
85
  rpc :ListInfoTypes, ::Google::Cloud::Dlp::V2::ListInfoTypesRequest, ::Google::Cloud::Dlp::V2::ListInfoTypesResponse
81
86
  # Creates an InspectTemplate for reusing frequently used configuration
82
87
  # for inspecting content, images, and storage.
83
- # See https://cloud.google.com/dlp/docs/creating-templates to learn more.
88
+ # See
89
+ # https://cloud.google.com/sensitive-data-protection/docs/creating-templates
90
+ # to learn more.
84
91
  rpc :CreateInspectTemplate, ::Google::Cloud::Dlp::V2::CreateInspectTemplateRequest, ::Google::Cloud::Dlp::V2::InspectTemplate
85
92
  # Updates the InspectTemplate.
86
- # See https://cloud.google.com/dlp/docs/creating-templates to learn more.
93
+ # See
94
+ # https://cloud.google.com/sensitive-data-protection/docs/creating-templates
95
+ # to learn more.
87
96
  rpc :UpdateInspectTemplate, ::Google::Cloud::Dlp::V2::UpdateInspectTemplateRequest, ::Google::Cloud::Dlp::V2::InspectTemplate
88
97
  # Gets an InspectTemplate.
89
- # See https://cloud.google.com/dlp/docs/creating-templates to learn more.
98
+ # See
99
+ # https://cloud.google.com/sensitive-data-protection/docs/creating-templates
100
+ # to learn more.
90
101
  rpc :GetInspectTemplate, ::Google::Cloud::Dlp::V2::GetInspectTemplateRequest, ::Google::Cloud::Dlp::V2::InspectTemplate
91
102
  # Lists InspectTemplates.
92
- # See https://cloud.google.com/dlp/docs/creating-templates to learn more.
103
+ # See
104
+ # https://cloud.google.com/sensitive-data-protection/docs/creating-templates
105
+ # to learn more.
93
106
  rpc :ListInspectTemplates, ::Google::Cloud::Dlp::V2::ListInspectTemplatesRequest, ::Google::Cloud::Dlp::V2::ListInspectTemplatesResponse
94
107
  # Deletes an InspectTemplate.
95
- # See https://cloud.google.com/dlp/docs/creating-templates to learn more.
108
+ # See
109
+ # https://cloud.google.com/sensitive-data-protection/docs/creating-templates
110
+ # to learn more.
96
111
  rpc :DeleteInspectTemplate, ::Google::Cloud::Dlp::V2::DeleteInspectTemplateRequest, ::Google::Protobuf::Empty
97
112
  # Creates a DeidentifyTemplate for reusing frequently used configuration
98
113
  # for de-identifying content, images, and storage.
99
- # See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
100
- # more.
114
+ # See
115
+ # https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
116
+ # to learn more.
101
117
  rpc :CreateDeidentifyTemplate, ::Google::Cloud::Dlp::V2::CreateDeidentifyTemplateRequest, ::Google::Cloud::Dlp::V2::DeidentifyTemplate
102
118
  # Updates the DeidentifyTemplate.
103
- # See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
104
- # more.
119
+ # See
120
+ # https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
121
+ # to learn more.
105
122
  rpc :UpdateDeidentifyTemplate, ::Google::Cloud::Dlp::V2::UpdateDeidentifyTemplateRequest, ::Google::Cloud::Dlp::V2::DeidentifyTemplate
106
123
  # Gets a DeidentifyTemplate.
107
- # See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
108
- # more.
124
+ # See
125
+ # https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
126
+ # to learn more.
109
127
  rpc :GetDeidentifyTemplate, ::Google::Cloud::Dlp::V2::GetDeidentifyTemplateRequest, ::Google::Cloud::Dlp::V2::DeidentifyTemplate
110
128
  # Lists DeidentifyTemplates.
111
- # See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
112
- # more.
129
+ # See
130
+ # https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
131
+ # to learn more.
113
132
  rpc :ListDeidentifyTemplates, ::Google::Cloud::Dlp::V2::ListDeidentifyTemplatesRequest, ::Google::Cloud::Dlp::V2::ListDeidentifyTemplatesResponse
114
133
  # Deletes a DeidentifyTemplate.
115
- # See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
116
- # more.
134
+ # See
135
+ # https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
136
+ # to learn more.
117
137
  rpc :DeleteDeidentifyTemplate, ::Google::Cloud::Dlp::V2::DeleteDeidentifyTemplateRequest, ::Google::Protobuf::Empty
118
138
  # Creates a job trigger to run DLP actions such as scanning storage for
119
139
  # sensitive information on a set schedule.
120
- # See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
140
+ # See
141
+ # https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
142
+ # to learn more.
121
143
  rpc :CreateJobTrigger, ::Google::Cloud::Dlp::V2::CreateJobTriggerRequest, ::Google::Cloud::Dlp::V2::JobTrigger
122
144
  # Updates a job trigger.
123
- # See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
145
+ # See
146
+ # https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
147
+ # to learn more.
124
148
  rpc :UpdateJobTrigger, ::Google::Cloud::Dlp::V2::UpdateJobTriggerRequest, ::Google::Cloud::Dlp::V2::JobTrigger
125
149
  # Inspect hybrid content and store findings to a trigger. The inspection
126
150
  # will be processed asynchronously. To review the findings monitor the
127
151
  # jobs within the trigger.
128
152
  rpc :HybridInspectJobTrigger, ::Google::Cloud::Dlp::V2::HybridInspectJobTriggerRequest, ::Google::Cloud::Dlp::V2::HybridInspectResponse
129
153
  # Gets a job trigger.
130
- # See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
154
+ # See
155
+ # https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
156
+ # to learn more.
131
157
  rpc :GetJobTrigger, ::Google::Cloud::Dlp::V2::GetJobTriggerRequest, ::Google::Cloud::Dlp::V2::JobTrigger
132
158
  # Lists job triggers.
133
- # See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
159
+ # See
160
+ # https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
161
+ # to learn more.
134
162
  rpc :ListJobTriggers, ::Google::Cloud::Dlp::V2::ListJobTriggersRequest, ::Google::Cloud::Dlp::V2::ListJobTriggersResponse
135
163
  # Deletes a job trigger.
136
- # See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
164
+ # See
165
+ # https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
166
+ # to learn more.
137
167
  rpc :DeleteJobTrigger, ::Google::Cloud::Dlp::V2::DeleteJobTriggerRequest, ::Google::Protobuf::Empty
138
168
  # Activate a job trigger. Causes the immediate execute of a trigger
139
169
  # instead of waiting on the trigger event to occur.
@@ -149,54 +179,89 @@ module Google
149
179
  # Deletes a discovery configuration.
150
180
  rpc :DeleteDiscoveryConfig, ::Google::Cloud::Dlp::V2::DeleteDiscoveryConfigRequest, ::Google::Protobuf::Empty
151
181
  # Creates a new job to inspect storage or calculate risk metrics.
152
- # See https://cloud.google.com/dlp/docs/inspecting-storage and
153
- # https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
182
+ # See
183
+ # https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
184
+ # and
185
+ # https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
186
+ # to learn more.
154
187
  #
155
188
  # When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the
156
189
  # system will automatically choose what detectors to run. By default this may
157
190
  # be all types, but may change over time as detectors are updated.
158
191
  rpc :CreateDlpJob, ::Google::Cloud::Dlp::V2::CreateDlpJobRequest, ::Google::Cloud::Dlp::V2::DlpJob
159
192
  # Lists DlpJobs that match the specified filter in the request.
160
- # See https://cloud.google.com/dlp/docs/inspecting-storage and
161
- # https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
193
+ # See
194
+ # https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
195
+ # and
196
+ # https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
197
+ # to learn more.
162
198
  rpc :ListDlpJobs, ::Google::Cloud::Dlp::V2::ListDlpJobsRequest, ::Google::Cloud::Dlp::V2::ListDlpJobsResponse
163
199
  # Gets the latest state of a long-running DlpJob.
164
- # See https://cloud.google.com/dlp/docs/inspecting-storage and
165
- # https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
200
+ # See
201
+ # https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
202
+ # and
203
+ # https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
204
+ # to learn more.
166
205
  rpc :GetDlpJob, ::Google::Cloud::Dlp::V2::GetDlpJobRequest, ::Google::Cloud::Dlp::V2::DlpJob
167
206
  # Deletes a long-running DlpJob. This method indicates that the client is
168
207
  # no longer interested in the DlpJob result. The job will be canceled if
169
208
  # possible.
170
- # See https://cloud.google.com/dlp/docs/inspecting-storage and
171
- # https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
209
+ # See
210
+ # https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
211
+ # and
212
+ # https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
213
+ # to learn more.
172
214
  rpc :DeleteDlpJob, ::Google::Cloud::Dlp::V2::DeleteDlpJobRequest, ::Google::Protobuf::Empty
173
215
  # Starts asynchronous cancellation on a long-running DlpJob. The server
174
216
  # makes a best effort to cancel the DlpJob, but success is not
175
217
  # guaranteed.
176
- # See https://cloud.google.com/dlp/docs/inspecting-storage and
177
- # https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
218
+ # See
219
+ # https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
220
+ # and
221
+ # https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
222
+ # to learn more.
178
223
  rpc :CancelDlpJob, ::Google::Cloud::Dlp::V2::CancelDlpJobRequest, ::Google::Protobuf::Empty
179
224
  # Creates a pre-built stored infoType to be used for inspection.
180
- # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
181
- # learn more.
225
+ # See
226
+ # https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
227
+ # to learn more.
182
228
  rpc :CreateStoredInfoType, ::Google::Cloud::Dlp::V2::CreateStoredInfoTypeRequest, ::Google::Cloud::Dlp::V2::StoredInfoType
183
229
  # Updates the stored infoType by creating a new version. The existing version
184
230
  # will continue to be used until the new version is ready.
185
- # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
186
- # learn more.
231
+ # See
232
+ # https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
233
+ # to learn more.
187
234
  rpc :UpdateStoredInfoType, ::Google::Cloud::Dlp::V2::UpdateStoredInfoTypeRequest, ::Google::Cloud::Dlp::V2::StoredInfoType
188
235
  # Gets a stored infoType.
189
- # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
190
- # learn more.
236
+ # See
237
+ # https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
238
+ # to learn more.
191
239
  rpc :GetStoredInfoType, ::Google::Cloud::Dlp::V2::GetStoredInfoTypeRequest, ::Google::Cloud::Dlp::V2::StoredInfoType
192
240
  # Lists stored infoTypes.
193
- # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
194
- # learn more.
241
+ # See
242
+ # https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
243
+ # to learn more.
195
244
  rpc :ListStoredInfoTypes, ::Google::Cloud::Dlp::V2::ListStoredInfoTypesRequest, ::Google::Cloud::Dlp::V2::ListStoredInfoTypesResponse
196
245
  # Deletes a stored infoType.
197
- # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
198
- # learn more.
246
+ # See
247
+ # https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
248
+ # to learn more.
199
249
  rpc :DeleteStoredInfoType, ::Google::Cloud::Dlp::V2::DeleteStoredInfoTypeRequest, ::Google::Protobuf::Empty
250
+ # Lists project data profiles for an organization.
251
+ rpc :ListProjectDataProfiles, ::Google::Cloud::Dlp::V2::ListProjectDataProfilesRequest, ::Google::Cloud::Dlp::V2::ListProjectDataProfilesResponse
252
+ # Lists table data profiles for an organization.
253
+ rpc :ListTableDataProfiles, ::Google::Cloud::Dlp::V2::ListTableDataProfilesRequest, ::Google::Cloud::Dlp::V2::ListTableDataProfilesResponse
254
+ # Lists column data profiles for an organization.
255
+ rpc :ListColumnDataProfiles, ::Google::Cloud::Dlp::V2::ListColumnDataProfilesRequest, ::Google::Cloud::Dlp::V2::ListColumnDataProfilesResponse
256
+ # Gets a project data profile.
257
+ rpc :GetProjectDataProfile, ::Google::Cloud::Dlp::V2::GetProjectDataProfileRequest, ::Google::Cloud::Dlp::V2::ProjectDataProfile
258
+ # Gets a table data profile.
259
+ rpc :GetTableDataProfile, ::Google::Cloud::Dlp::V2::GetTableDataProfileRequest, ::Google::Cloud::Dlp::V2::TableDataProfile
260
+ # Gets a column data profile.
261
+ rpc :GetColumnDataProfile, ::Google::Cloud::Dlp::V2::GetColumnDataProfileRequest, ::Google::Cloud::Dlp::V2::ColumnDataProfile
262
+ # Delete a TableDataProfile. Will not prevent the profile from being
263
+ # regenerated if the table is still included in a discovery configuration.
264
+ rpc :DeleteTableDataProfile, ::Google::Cloud::Dlp::V2::DeleteTableDataProfileRequest, ::Google::Protobuf::Empty
200
265
  # Inspect hybrid content and store findings to a job.
201
266
  # To review the findings, inspect the job. Inspection will occur
202
267
  # asynchronously.
@@ -204,6 +269,18 @@ module Google
204
269
  # Finish a running hybrid DlpJob. Triggers the finalization steps and running
205
270
  # of any enabled actions that have not yet run.
206
271
  rpc :FinishDlpJob, ::Google::Cloud::Dlp::V2::FinishDlpJobRequest, ::Google::Protobuf::Empty
272
+ # Create a Connection to an external data source.
273
+ rpc :CreateConnection, ::Google::Cloud::Dlp::V2::CreateConnectionRequest, ::Google::Cloud::Dlp::V2::Connection
274
+ # Get a Connection by name.
275
+ rpc :GetConnection, ::Google::Cloud::Dlp::V2::GetConnectionRequest, ::Google::Cloud::Dlp::V2::Connection
276
+ # Lists Connections in a parent.
277
+ rpc :ListConnections, ::Google::Cloud::Dlp::V2::ListConnectionsRequest, ::Google::Cloud::Dlp::V2::ListConnectionsResponse
278
+ # Searches for Connections in a parent.
279
+ rpc :SearchConnections, ::Google::Cloud::Dlp::V2::SearchConnectionsRequest, ::Google::Cloud::Dlp::V2::SearchConnectionsResponse
280
+ # Delete a Connection.
281
+ rpc :DeleteConnection, ::Google::Cloud::Dlp::V2::DeleteConnectionRequest, ::Google::Protobuf::Empty
282
+ # Update a Connection.
283
+ rpc :UpdateConnection, ::Google::Cloud::Dlp::V2::UpdateConnectionRequest, ::Google::Cloud::Dlp::V2::Connection
207
284
  end
208
285
 
209
286
  Stub = Service.rpc_stub_class
@@ -118,6 +118,10 @@ module Google
118
118
  # @return [::String]
119
119
  # Optional link to proto reference documentation. Example:
120
120
  # https://cloud.google.com/pubsub/lite/docs/reference/rpc
121
+ # @!attribute [rw] rest_reference_documentation_uri
122
+ # @return [::String]
123
+ # Optional link to REST reference documentation. Example:
124
+ # https://cloud.google.com/pubsub/lite/docs/reference/rest
121
125
  class Publishing
122
126
  include ::Google::Protobuf::MessageExts
123
127
  extend ::Google::Protobuf::MessageExts::ClassMethods