|
1 | 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! |
2 | 2 | import grpc |
3 | 3 |
|
4 | | -import google.cloud.privacy.dlp_v2.proto.dlp_pb2 as google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2 |
5 | | -import google.protobuf.empty_pb2 as google_dot_protobuf_dot_empty__pb2 |
| 4 | +from google.cloud.dlp_v2.proto import dlp_pb2 as google_dot_cloud_dot_privacy_dot_dlp__v2_dot_proto_dot_dlp__pb2 |
| 5 | +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 |
6 | 6 |
|
7 | 7 |
|
8 | 8 | class DlpServiceStub(object): |
9 | | - """The DLP API is a service that allows clients |
| 9 | + """The Cloud Data Loss Prevention (DLP) API is a service that allows clients |
10 | 10 | to detect the presence of Personally Identifiable Information (PII) and other |
11 | 11 | privacy-sensitive data in user-supplied, unstructured data streams, like text |
12 | 12 | blocks or images. |
@@ -148,7 +148,7 @@ def __init__(self, channel): |
148 | 148 |
|
149 | 149 |
|
150 | 150 | class DlpServiceServicer(object): |
151 | | - """The DLP API is a service that allows clients |
| 151 | + """The Cloud Data Loss Prevention (DLP) API is a service that allows clients |
152 | 152 | to detect the presence of Personally Identifiable Information (PII) and other |
153 | 153 | privacy-sensitive data in user-supplied, unstructured data streams, like text |
154 | 154 | blocks or images. |
@@ -185,14 +185,16 @@ def DeidentifyContent(self, request, context): |
185 | 185 | raise NotImplementedError('Method not implemented!') |
186 | 186 |
|
187 | 187 | def ReidentifyContent(self, request, context): |
188 | | - """Re-identify content that has been de-identified. |
| 188 | + """Re-identifies content that has been de-identified. |
189 | 189 | """ |
190 | 190 | context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
191 | 191 | context.set_details('Method not implemented!') |
192 | 192 | raise NotImplementedError('Method not implemented!') |
193 | 193 |
|
194 | 194 | def ListInfoTypes(self, request, context): |
195 | | - """Returns sensitive information types DLP supports. |
| 195 | + """Returns a list of the sensitive information types that the DLP API |
| 196 | + supports. For more information, see [Listing supported predefined |
| 197 | + infoTypes](/dlp/docs/listing-infotypes). |
196 | 198 | """ |
197 | 199 | context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
198 | 200 | context.set_details('Method not implemented!') |
@@ -228,51 +230,51 @@ def ListInspectTemplates(self, request, context): |
228 | 230 | raise NotImplementedError('Method not implemented!') |
229 | 231 |
|
230 | 232 | def DeleteInspectTemplate(self, request, context): |
231 | | - """Deletes inspect templates. |
| 233 | + """Deletes an inspect template. |
232 | 234 | """ |
233 | 235 | context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
234 | 236 | context.set_details('Method not implemented!') |
235 | 237 | raise NotImplementedError('Method not implemented!') |
236 | 238 |
|
237 | 239 | def CreateDeidentifyTemplate(self, request, context): |
238 | | - """Creates an Deidentify template for re-using frequently used configuration |
| 240 | + """Creates a de-identify template for re-using frequently used configuration |
239 | 241 | for Deidentifying content, images, and storage. |
240 | 242 | """ |
241 | 243 | context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
242 | 244 | context.set_details('Method not implemented!') |
243 | 245 | raise NotImplementedError('Method not implemented!') |
244 | 246 |
|
245 | 247 | def UpdateDeidentifyTemplate(self, request, context): |
246 | | - """Updates the inspect template. |
| 248 | + """Updates the de-identify template. |
247 | 249 | """ |
248 | 250 | context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
249 | 251 | context.set_details('Method not implemented!') |
250 | 252 | raise NotImplementedError('Method not implemented!') |
251 | 253 |
|
252 | 254 | def GetDeidentifyTemplate(self, request, context): |
253 | | - """Gets an inspect template. |
| 255 | + """Gets a de-identify template. |
254 | 256 | """ |
255 | 257 | context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
256 | 258 | context.set_details('Method not implemented!') |
257 | 259 | raise NotImplementedError('Method not implemented!') |
258 | 260 |
|
259 | 261 | def ListDeidentifyTemplates(self, request, context): |
260 | | - """Lists inspect templates. |
| 262 | + """Lists de-identify templates. |
261 | 263 | """ |
262 | 264 | context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
263 | 265 | context.set_details('Method not implemented!') |
264 | 266 | raise NotImplementedError('Method not implemented!') |
265 | 267 |
|
266 | 268 | def DeleteDeidentifyTemplate(self, request, context): |
267 | | - """Deletes inspect templates. |
| 269 | + """Deletes a de-identify template. |
268 | 270 | """ |
269 | 271 | context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
270 | 272 | context.set_details('Method not implemented!') |
271 | 273 | raise NotImplementedError('Method not implemented!') |
272 | 274 |
|
273 | 275 | def CreateJobTrigger(self, request, context): |
274 | | - """Creates a job to run DLP actions such as scanning storage for sensitive |
275 | | - information on a set schedule. |
| 276 | + """Creates a job trigger to run DLP actions such as scanning storage for |
| 277 | + sensitive information on a set schedule. |
276 | 278 | """ |
277 | 279 | context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
278 | 280 | context.set_details('Method not implemented!') |
@@ -307,7 +309,7 @@ def DeleteJobTrigger(self, request, context): |
307 | 309 | raise NotImplementedError('Method not implemented!') |
308 | 310 |
|
309 | 311 | def CreateDlpJob(self, request, context): |
310 | | - """Create a new job to inspect storage or calculate risk metrics [How-to |
| 312 | + """Creates a new job to inspect storage or calculate risk metrics [How-to |
311 | 313 | guide](/dlp/docs/compute-risk-analysis). |
312 | 314 | """ |
313 | 315 | context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
@@ -338,7 +340,7 @@ def DeleteDlpJob(self, request, context): |
338 | 340 | raise NotImplementedError('Method not implemented!') |
339 | 341 |
|
340 | 342 | def CancelDlpJob(self, request, context): |
341 | | - """Starts asynchronous cancellation on a long-running DlpJob. The server |
| 343 | + """Starts asynchronous cancellation on a long-running DlpJob. The server |
342 | 344 | makes a best effort to cancel the DlpJob, but success is not |
343 | 345 | guaranteed. |
344 | 346 | """ |
|
0 commit comments