OLD | NEW |
1 { | 1 { |
2 "auth": { | 2 "auth": { |
3 "oauth2": { | 3 "oauth2": { |
4 "scopes": { | 4 "scopes": { |
5 "https://www.googleapis.com/auth/cloud-platform": { | 5 "https://www.googleapis.com/auth/cloud-platform": { |
6 "description": "View and manage your data across Google Clou
d Platform services" | 6 "description": "View and manage your data across Google Clou
d Platform services" |
7 } | 7 } |
8 } | 8 } |
9 } | 9 } |
10 }, | 10 }, |
11 "basePath": "", | 11 "basePath": "", |
12 "baseUrl": "https://dlp.googleapis.com/", | 12 "baseUrl": "https://dlp.googleapis.com/", |
13 "batchPath": "batch", | 13 "batchPath": "batch", |
14 "canonicalName": "DLP", | 14 "canonicalName": "DLP", |
15 "description": "The Google Data Loss Prevention API provides methods for det
ection of privacy-sensitive fragments in text, images, and Google Cloud Platform
storage repositories.", | 15 "description": "The Google Data Loss Prevention API provides methods for det
ection of privacy-sensitive fragments in text, images, and Google Cloud Platform
storage repositories.", |
16 "discoveryVersion": "v1", | 16 "discoveryVersion": "v1", |
17 "documentationLink": "https://cloud.google.com/dlp/docs/", | 17 "documentationLink": "https://cloud.google.com/dlp/docs/", |
18 "icons": { | 18 "icons": { |
19 "x16": "http://www.google.com/images/icons/product/search-16.gif", | 19 "x16": "http://www.google.com/images/icons/product/search-16.gif", |
20 "x32": "http://www.google.com/images/icons/product/search-32.gif" | 20 "x32": "http://www.google.com/images/icons/product/search-32.gif" |
21 }, | 21 }, |
22 "id": "dlp:v2beta1", | 22 "id": "dlp:v2beta1", |
23 "kind": "discovery#restDescription", | 23 "kind": "discovery#restDescription", |
24 "name": "dlp", | 24 "name": "dlp", |
25 "ownerDomain": "google.com", | 25 "ownerDomain": "google.com", |
26 "ownerName": "Google", | 26 "ownerName": "Google", |
27 "parameters": { | 27 "parameters": { |
28 "oauth_token": { | |
29 "description": "OAuth 2.0 token for the current user.", | |
30 "location": "query", | |
31 "type": "string" | |
32 }, | |
33 "bearer_token": { | |
34 "description": "OAuth bearer token.", | |
35 "location": "query", | |
36 "type": "string" | |
37 }, | |
38 "upload_protocol": { | 28 "upload_protocol": { |
39 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", | 29 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", |
40 "location": "query", | 30 "location": "query", |
41 "type": "string" | 31 "type": "string" |
42 }, | 32 }, |
43 "prettyPrint": { | 33 "prettyPrint": { |
44 "default": "true", | 34 "default": "true", |
45 "description": "Returns response with indentations and line breaks."
, | 35 "description": "Returns response with indentations and line breaks."
, |
46 "location": "query", | 36 "location": "query", |
47 "type": "boolean" | 37 "type": "boolean" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 "proto" | 73 "proto" |
84 ], | 74 ], |
85 "enumDescriptions": [ | 75 "enumDescriptions": [ |
86 "Responses with Content-Type of application/json", | 76 "Responses with Content-Type of application/json", |
87 "Media download with context-dependent Content-Type", | 77 "Media download with context-dependent Content-Type", |
88 "Responses with Content-Type of application/x-protobuf" | 78 "Responses with Content-Type of application/x-protobuf" |
89 ], | 79 ], |
90 "location": "query", | 80 "location": "query", |
91 "type": "string" | 81 "type": "string" |
92 }, | 82 }, |
| 83 "key": { |
| 84 "description": "API key. Your API key identifies your project and pr
ovides you with API access, quota, and reports. Required unless you provide an O
Auth 2.0 token.", |
| 85 "location": "query", |
| 86 "type": "string" |
| 87 }, |
93 "access_token": { | 88 "access_token": { |
94 "description": "OAuth access token.", | 89 "description": "OAuth access token.", |
95 "location": "query", | 90 "location": "query", |
96 "type": "string" | 91 "type": "string" |
97 }, | 92 }, |
98 "key": { | |
99 "description": "API key. Your API key identifies your project and pr
ovides you with API access, quota, and reports. Required unless you provide an O
Auth 2.0 token.", | |
100 "location": "query", | |
101 "type": "string" | |
102 }, | |
103 "quotaUser": { | 93 "quotaUser": { |
104 "description": "Available to use for quota purposes for server-side
applications. Can be any arbitrary string assigned to a user, but should not exc
eed 40 characters.", | 94 "description": "Available to use for quota purposes for server-side
applications. Can be any arbitrary string assigned to a user, but should not exc
eed 40 characters.", |
105 "location": "query", | 95 "location": "query", |
106 "type": "string" | 96 "type": "string" |
107 }, | 97 }, |
108 "pp": { | 98 "pp": { |
109 "default": "true", | 99 "default": "true", |
110 "description": "Pretty-print response.", | 100 "description": "Pretty-print response.", |
111 "location": "query", | 101 "location": "query", |
112 "type": "boolean" | 102 "type": "boolean" |
| 103 }, |
| 104 "oauth_token": { |
| 105 "description": "OAuth 2.0 token for the current user.", |
| 106 "location": "query", |
| 107 "type": "string" |
| 108 }, |
| 109 "bearer_token": { |
| 110 "description": "OAuth bearer token.", |
| 111 "location": "query", |
| 112 "type": "string" |
113 } | 113 } |
114 }, | 114 }, |
115 "protocol": "rest", | 115 "protocol": "rest", |
116 "resources": { | 116 "resources": { |
117 "rootCategories": { | 117 "rootCategories": { |
118 "methods": { | 118 "methods": { |
119 "list": { | 119 "list": { |
120 "description": "Returns the list of root categories of sensi
tive information.", | 120 "description": "Returns the list of root categories of sensi
tive information.", |
121 "httpMethod": "GET", | 121 "httpMethod": "GET", |
122 "id": "dlp.rootCategories.list", | 122 "id": "dlp.rootCategories.list", |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 "findings": { | 218 "findings": { |
219 "methods": { | 219 "methods": { |
220 "list": { | 220 "list": { |
221 "description": "Returns list of results for
given inspect operation result set id.", | 221 "description": "Returns list of results for
given inspect operation result set id.", |
222 "httpMethod": "GET", | 222 "httpMethod": "GET", |
223 "id": "dlp.inspect.results.findings.list", | 223 "id": "dlp.inspect.results.findings.list", |
224 "parameterOrder": [ | 224 "parameterOrder": [ |
225 "name" | 225 "name" |
226 ], | 226 ], |
227 "parameters": { | 227 "parameters": { |
228 "pageSize": { | |
229 "description": "Maximum number of re
sults to return.\nIf 0, the implementation selects a reasonable value.", | |
230 "format": "int32", | |
231 "location": "query", | |
232 "type": "integer" | |
233 }, | |
234 "filter": { | |
235 "description": "Restricts findings t
o items that match. Supports info_type and likelihood.\n<p>Examples:<br/>\n<li>i
nfo_type=EMAIL_ADDRESS\n<li>info_type=PHONE_NUMBER,EMAIL_ADDRESS\n<li>likelihood
=VERY_LIKELY\n<li>likelihood=VERY_LIKELY,LIKELY\n<li>info_type=EMAIL_ADDRESS,lik
elihood=VERY_LIKELY,LIKELY", | |
236 "location": "query", | |
237 "type": "string" | |
238 }, | |
239 "pageToken": { | 228 "pageToken": { |
240 "description": "The value returned b
y the last `ListInspectFindingsResponse`; indicates\nthat this is a continuation
of a prior `ListInspectFindings` call, and that\nthe system should return the n
ext page of data.", | 229 "description": "The value returned b
y the last `ListInspectFindingsResponse`; indicates\nthat this is a continuation
of a prior `ListInspectFindings` call, and that\nthe system should return the n
ext page of data.", |
241 "location": "query", | 230 "location": "query", |
242 "type": "string" | 231 "type": "string" |
243 }, | 232 }, |
244 "name": { | 233 "name": { |
245 "description": "Identifier of the re
sults set returned as metadata of\nthe longrunning operation created by a call t
o CreateInspectOperation.\nShould be in the format of `inspect/results/{id}`.", | 234 "description": "Identifier of the re
sults set returned as metadata of\nthe longrunning operation created by a call t
o CreateInspectOperation.\nShould be in the format of `inspect/results/{id}`.", |
246 "location": "path", | 235 "location": "path", |
247 "pattern": "^inspect/results/[^/]+$"
, | 236 "pattern": "^inspect/results/[^/]+$"
, |
248 "required": true, | 237 "required": true, |
249 "type": "string" | 238 "type": "string" |
| 239 }, |
| 240 "pageSize": { |
| 241 "description": "Maximum number of re
sults to return.\nIf 0, the implementation selects a reasonable value.", |
| 242 "format": "int32", |
| 243 "location": "query", |
| 244 "type": "integer" |
| 245 }, |
| 246 "filter": { |
| 247 "description": "Restricts findings t
o items that match. Supports info_type and likelihood.\n<p>Examples:<br/>\n<li>i
nfo_type=EMAIL_ADDRESS\n<li>info_type=PHONE_NUMBER,EMAIL_ADDRESS\n<li>likelihood
=VERY_LIKELY\n<li>likelihood=VERY_LIKELY,LIKELY\n<li>info_type=EMAIL_ADDRESS,lik
elihood=VERY_LIKELY,LIKELY", |
| 248 "location": "query", |
| 249 "type": "string" |
250 } | 250 } |
251 }, | 251 }, |
252 "path": "v2beta1/{+name}/findings", | 252 "path": "v2beta1/{+name}/findings", |
253 "response": { | 253 "response": { |
254 "$ref": "GooglePrivacyDlpV2beta1ListInsp
ectFindingsResponse" | 254 "$ref": "GooglePrivacyDlpV2beta1ListInsp
ectFindingsResponse" |
255 }, | 255 }, |
256 "scopes": [ | 256 "scopes": [ |
257 "https://www.googleapis.com/auth/cloud-p
latform" | 257 "https://www.googleapis.com/auth/cloud-p
latform" |
258 ] | 258 ] |
259 } | 259 } |
260 } | 260 } |
261 } | 261 } |
262 } | 262 } |
263 }, | 263 }, |
264 "operations": { | 264 "operations": { |
265 "methods": { | 265 "methods": { |
266 "get": { | |
267 "description": "Gets the latest state of a long-runn
ing operation. Clients can use this\nmethod to poll the operation result at int
ervals as recommended by the API\nservice.", | |
268 "httpMethod": "GET", | |
269 "id": "dlp.inspect.operations.get", | |
270 "parameterOrder": [ | |
271 "name" | |
272 ], | |
273 "parameters": { | |
274 "name": { | |
275 "description": "The name of the operation re
source.", | |
276 "location": "path", | |
277 "pattern": "^inspect/operations/[^/]+$", | |
278 "required": true, | |
279 "type": "string" | |
280 } | |
281 }, | |
282 "path": "v2beta1/{+name}", | |
283 "response": { | |
284 "$ref": "GoogleLongrunningOperation" | |
285 }, | |
286 "scopes": [ | |
287 "https://www.googleapis.com/auth/cloud-platform" | |
288 ] | |
289 }, | |
290 "list": { | |
291 "description": "Fetch the list of long running opera
tions.", | |
292 "httpMethod": "GET", | |
293 "id": "dlp.inspect.operations.list", | |
294 "parameterOrder": [ | |
295 "name" | |
296 ], | |
297 "parameters": { | |
298 "pageSize": { | |
299 "description": "The list page size. The max
allowed value is 256 and default is 100.", | |
300 "format": "int32", | |
301 "location": "query", | |
302 "type": "integer" | |
303 }, | |
304 "filter": { | |
305 "description": "This parameter supports filt
ering by done, ie done=true or done=false.", | |
306 "location": "query", | |
307 "type": "string" | |
308 }, | |
309 "pageToken": { | |
310 "description": "The standard list page token
.", | |
311 "location": "query", | |
312 "type": "string" | |
313 }, | |
314 "name": { | |
315 "description": "The name of the operation's
parent resource.", | |
316 "location": "path", | |
317 "pattern": "^inspect/operations$", | |
318 "required": true, | |
319 "type": "string" | |
320 } | |
321 }, | |
322 "path": "v2beta1/{+name}", | |
323 "response": { | |
324 "$ref": "GoogleLongrunningListOperationsResponse
" | |
325 }, | |
326 "scopes": [ | |
327 "https://www.googleapis.com/auth/cloud-platform" | |
328 ] | |
329 }, | |
330 "create": { | 266 "create": { |
331 "description": "Schedules a job scanning content in
a Google Cloud Platform data\nrepository.", | 267 "description": "Schedules a job scanning content in
a Google Cloud Platform data\nrepository.", |
332 "httpMethod": "POST", | 268 "httpMethod": "POST", |
333 "id": "dlp.inspect.operations.create", | 269 "id": "dlp.inspect.operations.create", |
334 "parameterOrder": [], | 270 "parameterOrder": [], |
335 "parameters": {}, | 271 "parameters": {}, |
336 "path": "v2beta1/inspect/operations", | 272 "path": "v2beta1/inspect/operations", |
337 "request": { | 273 "request": { |
338 "$ref": "GooglePrivacyDlpV2beta1CreateInspectOpe
rationRequest" | 274 "$ref": "GooglePrivacyDlpV2beta1CreateInspectOpe
rationRequest" |
339 }, | 275 }, |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 "type": "string" | 323 "type": "string" |
388 } | 324 } |
389 }, | 325 }, |
390 "path": "v2beta1/{+name}", | 326 "path": "v2beta1/{+name}", |
391 "response": { | 327 "response": { |
392 "$ref": "GoogleProtobufEmpty" | 328 "$ref": "GoogleProtobufEmpty" |
393 }, | 329 }, |
394 "scopes": [ | 330 "scopes": [ |
395 "https://www.googleapis.com/auth/cloud-platform" | 331 "https://www.googleapis.com/auth/cloud-platform" |
396 ] | 332 ] |
| 333 }, |
| 334 "get": { |
| 335 "description": "Gets the latest state of a long-runn
ing operation. Clients can use this\nmethod to poll the operation result at int
ervals as recommended by the API\nservice.", |
| 336 "httpMethod": "GET", |
| 337 "id": "dlp.inspect.operations.get", |
| 338 "parameterOrder": [ |
| 339 "name" |
| 340 ], |
| 341 "parameters": { |
| 342 "name": { |
| 343 "description": "The name of the operation re
source.", |
| 344 "location": "path", |
| 345 "pattern": "^inspect/operations/[^/]+$", |
| 346 "required": true, |
| 347 "type": "string" |
| 348 } |
| 349 }, |
| 350 "path": "v2beta1/{+name}", |
| 351 "response": { |
| 352 "$ref": "GoogleLongrunningOperation" |
| 353 }, |
| 354 "scopes": [ |
| 355 "https://www.googleapis.com/auth/cloud-platform" |
| 356 ] |
| 357 }, |
| 358 "list": { |
| 359 "description": "Fetch the list of long running opera
tions.", |
| 360 "httpMethod": "GET", |
| 361 "id": "dlp.inspect.operations.list", |
| 362 "parameterOrder": [ |
| 363 "name" |
| 364 ], |
| 365 "parameters": { |
| 366 "filter": { |
| 367 "description": "This parameter supports filt
ering by done, ie done=true or done=false.", |
| 368 "location": "query", |
| 369 "type": "string" |
| 370 }, |
| 371 "pageToken": { |
| 372 "description": "The standard list page token
.", |
| 373 "location": "query", |
| 374 "type": "string" |
| 375 }, |
| 376 "name": { |
| 377 "description": "The name of the operation's
parent resource.", |
| 378 "location": "path", |
| 379 "pattern": "^inspect/operations$", |
| 380 "required": true, |
| 381 "type": "string" |
| 382 }, |
| 383 "pageSize": { |
| 384 "description": "The list page size. The max
allowed value is 256 and default is 100.", |
| 385 "format": "int32", |
| 386 "location": "query", |
| 387 "type": "integer" |
| 388 } |
| 389 }, |
| 390 "path": "v2beta1/{+name}", |
| 391 "response": { |
| 392 "$ref": "GoogleLongrunningListOperationsResponse
" |
| 393 }, |
| 394 "scopes": [ |
| 395 "https://www.googleapis.com/auth/cloud-platform" |
| 396 ] |
397 } | 397 } |
398 } | 398 } |
399 } | 399 } |
400 } | 400 } |
401 } | 401 } |
402 }, | 402 }, |
403 "revision": "20170725", | 403 "revision": "20170815", |
404 "rootUrl": "https://dlp.googleapis.com/", | 404 "rootUrl": "https://dlp.googleapis.com/", |
405 "schemas": { | 405 "schemas": { |
406 "GooglePrivacyDlpV2beta1Projection": { | 406 "GooglePrivacyDlpV2beta1InspectOperationMetadata": { |
407 "description": "A representation of a Datastore property in a projec
tion.", | 407 "description": "Metadata returned within GetOperation for an inspect
request.", |
408 "id": "GooglePrivacyDlpV2beta1Projection", | 408 "id": "GooglePrivacyDlpV2beta1InspectOperationMetadata", |
409 "properties": { | 409 "properties": { |
410 "property": { | 410 "infoTypeStats": { |
411 "$ref": "GooglePrivacyDlpV2beta1PropertyReference", | 411 "items": { |
412 "description": "The property to project." | 412 "$ref": "GooglePrivacyDlpV2beta1InfoTypeStatistics" |
| 413 }, |
| 414 "type": "array" |
| 415 }, |
| 416 "totalEstimatedBytes": { |
| 417 "description": "Estimate of the number of bytes to process."
, |
| 418 "format": "int64", |
| 419 "type": "string" |
| 420 }, |
| 421 "requestInspectConfig": { |
| 422 "$ref": "GooglePrivacyDlpV2beta1InspectConfig", |
| 423 "description": "The inspect config used to create the Operat
ion." |
| 424 }, |
| 425 "requestOutputConfig": { |
| 426 "$ref": "GooglePrivacyDlpV2beta1OutputStorageConfig", |
| 427 "description": "Optional location to store findings." |
| 428 }, |
| 429 "createTime": { |
| 430 "description": "The time which this request was started.", |
| 431 "format": "google-datetime", |
| 432 "type": "string" |
| 433 }, |
| 434 "requestStorageConfig": { |
| 435 "$ref": "GooglePrivacyDlpV2beta1StorageConfig", |
| 436 "description": "The storage config used to create the Operat
ion." |
| 437 }, |
| 438 "processedBytes": { |
| 439 "description": "Total size in bytes that were processed.", |
| 440 "format": "int64", |
| 441 "type": "string" |
| 442 } |
| 443 }, |
| 444 "type": "object" |
| 445 }, |
| 446 "GooglePrivacyDlpV2beta1InfoType": { |
| 447 "description": "Type of information detected by the API.", |
| 448 "id": "GooglePrivacyDlpV2beta1InfoType", |
| 449 "properties": { |
| 450 "name": { |
| 451 "description": "Name of the information type.", |
| 452 "type": "string" |
| 453 } |
| 454 }, |
| 455 "type": "object" |
| 456 }, |
| 457 "GooglePrivacyDlpV2beta1PathElement": { |
| 458 "description": "A (kind, ID/name) pair used to construct a key path.
\n\nIf either name or ID is set, the element is complete.\nIf neither is set, th
e element is incomplete.", |
| 459 "id": "GooglePrivacyDlpV2beta1PathElement", |
| 460 "properties": { |
| 461 "id": { |
| 462 "description": "The auto-allocated ID of the entity.\nNever
equal to zero. Values less than zero are discouraged and may not\nbe supported i
n the future.", |
| 463 "format": "int64", |
| 464 "type": "string" |
| 465 }, |
| 466 "name": { |
| 467 "description": "The name of the entity.\nA name matching reg
ex `__.*__` is reserved/read-only.\nA name must not be more than 1500 bytes when
UTF-8 encoded.\nCannot be `\"\"`.", |
| 468 "type": "string" |
| 469 }, |
| 470 "kind": { |
| 471 "description": "The kind of the entity.\nA kind matching reg
ex `__.*__` is reserved/read-only.\nA kind must not contain more than 1500 bytes
when UTF-8 encoded.\nCannot be `\"\"`.", |
| 472 "type": "string" |
| 473 } |
| 474 }, |
| 475 "type": "object" |
| 476 }, |
| 477 "GooglePrivacyDlpV2beta1CategoryDescription": { |
| 478 "description": "Info Type Category description.", |
| 479 "id": "GooglePrivacyDlpV2beta1CategoryDescription", |
| 480 "properties": { |
| 481 "name": { |
| 482 "description": "Internal name of the category.", |
| 483 "type": "string" |
| 484 }, |
| 485 "displayName": { |
| 486 "description": "Human readable form of the category name.", |
| 487 "type": "string" |
| 488 } |
| 489 }, |
| 490 "type": "object" |
| 491 }, |
| 492 "GooglePrivacyDlpV2beta1BigQueryTable": { |
| 493 "description": "Message defining the location of a BigQuery table. A
table is uniquely\nidentified by its project_id, dataset_id, and table_name. W
ithin a query\na table is often referenced with a string in the format of:\n`<pr
oject_id>:<dataset_id>.<table_id>` or\n`<project_id>.<dataset_id>.<table_id>`.", |
| 494 "id": "GooglePrivacyDlpV2beta1BigQueryTable", |
| 495 "properties": { |
| 496 "tableId": { |
| 497 "description": "Name of the table.", |
| 498 "type": "string" |
| 499 }, |
| 500 "projectId": { |
| 501 "description": "The Google Cloud Platform project ID of the
project containing the table.\nIf omitted, project ID is inferred from the API c
all.", |
| 502 "type": "string" |
| 503 }, |
| 504 "datasetId": { |
| 505 "description": "Dataset ID of the table.", |
| 506 "type": "string" |
| 507 } |
| 508 }, |
| 509 "type": "object" |
| 510 }, |
| 511 "GooglePrivacyDlpV2beta1ListRootCategoriesResponse": { |
| 512 "description": "Response for ListRootCategories request.", |
| 513 "id": "GooglePrivacyDlpV2beta1ListRootCategoriesResponse", |
| 514 "properties": { |
| 515 "categories": { |
| 516 "description": "List of all into type categories supported b
y the API.", |
| 517 "items": { |
| 518 "$ref": "GooglePrivacyDlpV2beta1CategoryDescription" |
| 519 }, |
| 520 "type": "array" |
| 521 } |
| 522 }, |
| 523 "type": "object" |
| 524 }, |
| 525 "GooglePrivacyDlpV2beta1Finding": { |
| 526 "description": "Container structure describing a single finding with
in a string or image.", |
| 527 "id": "GooglePrivacyDlpV2beta1Finding", |
| 528 "properties": { |
| 529 "likelihood": { |
| 530 "description": "Estimate of how likely it is that the info_t
ype is correct.", |
| 531 "enum": [ |
| 532 "LIKELIHOOD_UNSPECIFIED", |
| 533 "VERY_UNLIKELY", |
| 534 "UNLIKELY", |
| 535 "POSSIBLE", |
| 536 "LIKELY", |
| 537 "VERY_LIKELY" |
| 538 ], |
| 539 "enumDescriptions": [ |
| 540 "Default value; information with all likelihoods is incl
uded.", |
| 541 "Few matching elements.", |
| 542 "", |
| 543 "Some matching elements.", |
| 544 "", |
| 545 "Many matching elements." |
| 546 ], |
| 547 "type": "string" |
| 548 }, |
| 549 "createTime": { |
| 550 "description": "Timestamp when finding was detected.", |
| 551 "format": "google-datetime", |
| 552 "type": "string" |
| 553 }, |
| 554 "infoType": { |
| 555 "$ref": "GooglePrivacyDlpV2beta1InfoType", |
| 556 "description": "The specific type of info the string might b
e." |
| 557 }, |
| 558 "location": { |
| 559 "$ref": "GooglePrivacyDlpV2beta1Location", |
| 560 "description": "Location of the info found." |
| 561 }, |
| 562 "quote": { |
| 563 "description": "The specific string that may be potentially
sensitive info.", |
| 564 "type": "string" |
| 565 } |
| 566 }, |
| 567 "type": "object" |
| 568 }, |
| 569 "GooglePrivacyDlpV2beta1KindExpression": { |
| 570 "description": "A representation of a Datastore kind.", |
| 571 "id": "GooglePrivacyDlpV2beta1KindExpression", |
| 572 "properties": { |
| 573 "name": { |
| 574 "description": "The name of the kind.", |
| 575 "type": "string" |
| 576 } |
| 577 }, |
| 578 "type": "object" |
| 579 }, |
| 580 "GoogleLongrunningListOperationsResponse": { |
| 581 "description": "The response message for Operations.ListOperations."
, |
| 582 "id": "GoogleLongrunningListOperationsResponse", |
| 583 "properties": { |
| 584 "nextPageToken": { |
| 585 "description": "The standard List next-page token.", |
| 586 "type": "string" |
| 587 }, |
| 588 "operations": { |
| 589 "description": "A list of operations that matches the specif
ied filter in the request.", |
| 590 "items": { |
| 591 "$ref": "GoogleLongrunningOperation" |
| 592 }, |
| 593 "type": "array" |
| 594 } |
| 595 }, |
| 596 "type": "object" |
| 597 }, |
| 598 "GooglePrivacyDlpV2beta1Row": { |
| 599 "id": "GooglePrivacyDlpV2beta1Row", |
| 600 "properties": { |
| 601 "values": { |
| 602 "items": { |
| 603 "$ref": "GooglePrivacyDlpV2beta1Value" |
| 604 }, |
| 605 "type": "array" |
| 606 } |
| 607 }, |
| 608 "type": "object" |
| 609 }, |
| 610 "GooglePrivacyDlpV2beta1FileSet": { |
| 611 "description": "Set of files to scan.", |
| 612 "id": "GooglePrivacyDlpV2beta1FileSet", |
| 613 "properties": { |
| 614 "url": { |
| 615 "description": "The url, in the format `gs://<bucket>/<path>
`. Trailing wildcard in the\npath is allowed.", |
| 616 "type": "string" |
| 617 } |
| 618 }, |
| 619 "type": "object" |
| 620 }, |
| 621 "GoogleProtobufEmpty": { |
| 622 "description": "A generic empty message that you can re-use to avoid
defining duplicated\nempty messages in your APIs. A typical example is to use i
t as the request\nor the response type of an API method. For instance:\n\n se
rvice Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty
);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.", |
| 623 "id": "GoogleProtobufEmpty", |
| 624 "properties": {}, |
| 625 "type": "object" |
| 626 }, |
| 627 "GooglePrivacyDlpV2beta1ListInspectFindingsResponse": { |
| 628 "description": "Response to the ListInspectFindings request.", |
| 629 "id": "GooglePrivacyDlpV2beta1ListInspectFindingsResponse", |
| 630 "properties": { |
| 631 "nextPageToken": { |
| 632 "description": "If not empty, indicates that there may be mo
re results that match the\nrequest; this value should be passed in a new `ListIn
spectFindingsRequest`.", |
| 633 "type": "string" |
| 634 }, |
| 635 "result": { |
| 636 "$ref": "GooglePrivacyDlpV2beta1InspectResult", |
| 637 "description": "The results." |
| 638 } |
| 639 }, |
| 640 "type": "object" |
| 641 }, |
| 642 "GooglePrivacyDlpV2beta1TableLocation": { |
| 643 "description": "Location of a finding within a `ContentItem.Table`."
, |
| 644 "id": "GooglePrivacyDlpV2beta1TableLocation", |
| 645 "properties": { |
| 646 "rowIndex": { |
| 647 "description": "The zero-based index of the row where the fi
nding is located.", |
| 648 "format": "int64", |
| 649 "type": "string" |
413 } | 650 } |
414 }, | 651 }, |
415 "type": "object" | 652 "type": "object" |
416 }, | 653 }, |
417 "GooglePrivacyDlpV2beta1DatastoreKey": { | 654 "GooglePrivacyDlpV2beta1DatastoreKey": { |
418 "description": "Record key for a finding in Cloud Datastore.", | 655 "description": "Record key for a finding in Cloud Datastore.", |
419 "id": "GooglePrivacyDlpV2beta1DatastoreKey", | 656 "id": "GooglePrivacyDlpV2beta1DatastoreKey", |
420 "properties": { | 657 "properties": { |
421 "entityKey": { | 658 "entityKey": { |
422 "$ref": "GooglePrivacyDlpV2beta1Key", | 659 "$ref": "GooglePrivacyDlpV2beta1Key", |
423 "description": "Datastore entity key." | 660 "description": "Datastore entity key." |
424 } | 661 } |
425 }, | 662 }, |
426 "type": "object" | 663 "type": "object" |
427 }, | 664 }, |
428 "GooglePrivacyDlpV2beta1CloudStorageOptions": { | 665 "GooglePrivacyDlpV2beta1CloudStorageOptions": { |
429 "description": "Options defining a file or a set of files (path endi
ng with *) within\na Google Cloud Storage bucket.", | 666 "description": "Options defining a file or a set of files (path endi
ng with *) within\na Google Cloud Storage bucket.", |
430 "id": "GooglePrivacyDlpV2beta1CloudStorageOptions", | 667 "id": "GooglePrivacyDlpV2beta1CloudStorageOptions", |
431 "properties": { | 668 "properties": { |
432 "fileSet": { | 669 "fileSet": { |
433 "$ref": "GooglePrivacyDlpV2beta1FileSet" | 670 "$ref": "GooglePrivacyDlpV2beta1FileSet" |
434 } | 671 } |
435 }, | 672 }, |
436 "type": "object" | 673 "type": "object" |
437 }, | 674 }, |
438 "GooglePrivacyDlpV2beta1CreateInspectOperationRequest": { | |
439 "description": "Request for scheduling a scan of a data subset from
a Google Platform data\nrepository.", | |
440 "id": "GooglePrivacyDlpV2beta1CreateInspectOperationRequest", | |
441 "properties": { | |
442 "inspectConfig": { | |
443 "$ref": "GooglePrivacyDlpV2beta1InspectConfig", | |
444 "description": "Configuration for the inspector." | |
445 }, | |
446 "storageConfig": { | |
447 "$ref": "GooglePrivacyDlpV2beta1StorageConfig", | |
448 "description": "Specification of the data set to process." | |
449 }, | |
450 "outputConfig": { | |
451 "$ref": "GooglePrivacyDlpV2beta1OutputStorageConfig", | |
452 "description": "Optional location to store findings. The buc
ket must already exist and\nthe Google APIs service account for DLP must have wr
ite permission to\nwrite to the given bucket.\n<p>Results are split over multipl
e csv files with each file name matching\nthe pattern \"[operation_id]_[count].c
sv\", for example\n`3094877188788974909_1.csv`. The `operation_id` matches the\n
identifier for the Operation, and the `count` is a counter used for\ntracking th
e number of files written. <p>The CSV file(s) contain the\nfollowing columns reg
ardless of storage type scanned: <li>id <li>info_type\n<li>likelihood <li>byte s
ize of finding <li>quote <li>time_stamp<br/>\n<p>For Cloud Storage the next colu
mns are: <li>file_path\n<li>start_offset<br/>\n<p>For Cloud Datastore the next c
olumns are: <li>project_id\n<li>namespace_id <li>path <li>column_name <li>offset
" | |
453 } | |
454 }, | |
455 "type": "object" | |
456 }, | |
457 "GooglePrivacyDlpV2beta1RecordKey": { | 675 "GooglePrivacyDlpV2beta1RecordKey": { |
458 "description": "Message for a unique key indicating a record that co
ntains a finding.", | 676 "description": "Message for a unique key indicating a record that co
ntains a finding.", |
459 "id": "GooglePrivacyDlpV2beta1RecordKey", | 677 "id": "GooglePrivacyDlpV2beta1RecordKey", |
460 "properties": { | 678 "properties": { |
461 "cloudStorageKey": { | 679 "cloudStorageKey": { |
462 "$ref": "GooglePrivacyDlpV2beta1CloudStorageKey" | 680 "$ref": "GooglePrivacyDlpV2beta1CloudStorageKey" |
463 }, | 681 }, |
464 "datastoreKey": { | 682 "datastoreKey": { |
465 "$ref": "GooglePrivacyDlpV2beta1DatastoreKey" | 683 "$ref": "GooglePrivacyDlpV2beta1DatastoreKey" |
466 } | 684 } |
467 }, | 685 }, |
468 "type": "object" | 686 "type": "object" |
469 }, | 687 }, |
470 "GooglePrivacyDlpV2beta1Key": { | |
471 "description": "A unique identifier for a Datastore entity.\nIf a ke
y's partition ID or any of its path kinds or names are\nreserved/read-only, the
key is reserved/read-only.\nA reserved/read-only key is forbidden in certain doc
umented contexts.", | |
472 "id": "GooglePrivacyDlpV2beta1Key", | |
473 "properties": { | |
474 "path": { | |
475 "description": "The entity path.\nAn entity path consists of
one or more elements composed of a kind and a\nstring or numerical identifier,
which identify entities. The first\nelement identifies a _root entity_, the seco
nd element identifies\na _child_ of the root entity, the third element identifie
s a child of the\nsecond entity, and so forth. The entities identified by all pr
efixes of\nthe path are called the element's _ancestors_.\n\nA path can never be
empty, and a path can have at most 100 elements.", | |
476 "items": { | |
477 "$ref": "GooglePrivacyDlpV2beta1PathElement" | |
478 }, | |
479 "type": "array" | |
480 }, | |
481 "partitionId": { | |
482 "$ref": "GooglePrivacyDlpV2beta1PartitionId", | |
483 "description": "Entities are partitioned into subsets, curre
ntly identified by a project\nID and namespace ID.\nQueries are scoped to a sing
le partition." | |
484 } | |
485 }, | |
486 "type": "object" | |
487 }, | |
488 "GooglePrivacyDlpV2beta1CloudStoragePath": { | 688 "GooglePrivacyDlpV2beta1CloudStoragePath": { |
489 "description": "A location in Cloud Storage.", | 689 "description": "A location in Cloud Storage.", |
490 "id": "GooglePrivacyDlpV2beta1CloudStoragePath", | 690 "id": "GooglePrivacyDlpV2beta1CloudStoragePath", |
491 "properties": { | 691 "properties": { |
492 "path": { | 692 "path": { |
493 "description": "The url, in the format of `gs://bucket/<path
>`.", | 693 "description": "The url, in the format of `gs://bucket/<path
>`.", |
494 "type": "string" | 694 "type": "string" |
495 } | 695 } |
496 }, | 696 }, |
497 "type": "object" | 697 "type": "object" |
498 }, | 698 }, |
499 "GooglePrivacyDlpV2beta1InspectContentRequest": { | |
500 "description": "Request to search for potentially sensitive info in
a list of items.", | |
501 "id": "GooglePrivacyDlpV2beta1InspectContentRequest", | |
502 "properties": { | |
503 "items": { | |
504 "description": "The list of items to inspect. Items in a sin
gle request are\nconsidered \"related\" unless inspect_config.independent_inputs
is true.\nUp to 100 are allowed per request.", | |
505 "items": { | |
506 "$ref": "GooglePrivacyDlpV2beta1ContentItem" | |
507 }, | |
508 "type": "array" | |
509 }, | |
510 "inspectConfig": { | |
511 "$ref": "GooglePrivacyDlpV2beta1InspectConfig", | |
512 "description": "Configuration for the inspector." | |
513 } | |
514 }, | |
515 "type": "object" | |
516 }, | |
517 "GooglePrivacyDlpV2beta1InspectOperationResult": { | 699 "GooglePrivacyDlpV2beta1InspectOperationResult": { |
518 "description": "The operational data.", | 700 "description": "The operational data.", |
519 "id": "GooglePrivacyDlpV2beta1InspectOperationResult", | 701 "id": "GooglePrivacyDlpV2beta1InspectOperationResult", |
520 "properties": { | 702 "properties": { |
521 "name": { | 703 "name": { |
522 "description": "The server-assigned name, which is only uniq
ue within the same service that\noriginally returns it. If you use the default H
TTP mapping, the\n`name` should have the format of `inspect/results/{id}`.", | 704 "description": "The server-assigned name, which is only uniq
ue within the same service that\noriginally returns it. If you use the default H
TTP mapping, the\n`name` should have the format of `inspect/results/{id}`.", |
523 "type": "string" | 705 "type": "string" |
524 } | 706 } |
525 }, | 707 }, |
526 "type": "object" | 708 "type": "object" |
527 }, | 709 }, |
528 "GooglePrivacyDlpV2beta1Range": { | 710 "GooglePrivacyDlpV2beta1Range": { |
529 "description": "Generic half-open interval [start, end)", | 711 "description": "Generic half-open interval [start, end)", |
530 "id": "GooglePrivacyDlpV2beta1Range", | 712 "id": "GooglePrivacyDlpV2beta1Range", |
531 "properties": { | 713 "properties": { |
| 714 "start": { |
| 715 "description": "Index of the first character of the range (i
nclusive).", |
| 716 "format": "int64", |
| 717 "type": "string" |
| 718 }, |
532 "end": { | 719 "end": { |
533 "description": "Index of the last character of the range (ex
clusive).", | 720 "description": "Index of the last character of the range (ex
clusive).", |
534 "format": "int64", | 721 "format": "int64", |
535 "type": "string" | 722 "type": "string" |
536 }, | 723 } |
537 "start": { | 724 }, |
538 "description": "Index of the first character of the range (i
nclusive).", | 725 "type": "object" |
539 "format": "int64", | 726 }, |
540 "type": "string" | 727 "GoogleTypeTimeOfDay": { |
541 } | 728 "description": "Represents a time of day. The date and time zone are
either not significant\nor are specified elsewhere. An API may choose to allow
leap seconds. Related\ntypes are google.type.Date and `google.protobuf.Timestamp
`.", |
542 }, | 729 "id": "GoogleTypeTimeOfDay", |
543 "type": "object" | 730 "properties": { |
544 }, | 731 "hours": { |
545 "GooglePrivacyDlpV2beta1ImageRedactionConfig": { | 732 "description": "Hours of day in 24 hour format. Should be fr
om 0 to 23. An API may choose\nto allow the value \"24:00:00\" for scenarios lik
e business closing time.", |
546 "description": "Configuration for determing how redaction of images
should occur.", | 733 "format": "int32", |
547 "id": "GooglePrivacyDlpV2beta1ImageRedactionConfig", | 734 "type": "integer" |
548 "properties": { | 735 }, |
549 "infoType": { | 736 "nanos": { |
550 "$ref": "GooglePrivacyDlpV2beta1InfoType", | 737 "description": "Fractions of seconds in nanoseconds. Must be
from 0 to 999,999,999.", |
551 "description": "Only one per info_type should be provided pe
r request. If not\nspecified, and redact_all_text is false, the DLP API will red
acts all\ntext that it matches against all info_types that are found, but not\ns
pecified in another ImageRedactionConfig." | 738 "format": "int32", |
552 }, | 739 "type": "integer" |
553 "redactionColor": { | 740 }, |
554 "$ref": "GooglePrivacyDlpV2beta1Color", | 741 "seconds": { |
555 "description": "The color to use when redacting content from
an image. If not specified,\nthe default is black." | 742 "description": "Seconds of minutes of the time. Must normall
y be from 0 to 59. An API may\nallow the value 60 if it allows leap-seconds.", |
556 }, | 743 "format": "int32", |
557 "redactAllText": { | 744 "type": "integer" |
558 "description": "If true, all text found in the image, regard
less if it matches an\ninfo_type, is redacted.", | 745 }, |
559 "type": "boolean" | 746 "minutes": { |
560 } | 747 "description": "Minutes of hour of day. Must be from 0 to 59
.", |
561 }, | 748 "format": "int32", |
562 "type": "object" | 749 "type": "integer" |
563 }, | |
564 "GooglePrivacyDlpV2beta1RedactContentResponse": { | |
565 "description": "Results of redacting a list of items.", | |
566 "id": "GooglePrivacyDlpV2beta1RedactContentResponse", | |
567 "properties": { | |
568 "items": { | |
569 "description": "The redacted content.", | |
570 "items": { | |
571 "$ref": "GooglePrivacyDlpV2beta1ContentItem" | |
572 }, | |
573 "type": "array" | |
574 } | |
575 }, | |
576 "type": "object" | |
577 }, | |
578 "GooglePrivacyDlpV2beta1InfoTypeStatistics": { | |
579 "description": "Statistics regarding a specific InfoType.", | |
580 "id": "GooglePrivacyDlpV2beta1InfoTypeStatistics", | |
581 "properties": { | |
582 "infoType": { | |
583 "$ref": "GooglePrivacyDlpV2beta1InfoType", | |
584 "description": "The type of finding this stat is for." | |
585 }, | |
586 "count": { | |
587 "description": "Number of findings for this info type.", | |
588 "format": "int64", | |
589 "type": "string" | |
590 } | |
591 }, | |
592 "type": "object" | |
593 }, | |
594 "GooglePrivacyDlpV2beta1PropertyReference": { | |
595 "description": "A reference to a property relative to the Datastore
kind expressions.", | |
596 "id": "GooglePrivacyDlpV2beta1PropertyReference", | |
597 "properties": { | |
598 "name": { | |
599 "description": "The name of the property.\nIf name includes
\".\"s, it may be interpreted as a property name path.", | |
600 "type": "string" | |
601 } | |
602 }, | |
603 "type": "object" | |
604 }, | |
605 "GooglePrivacyDlpV2beta1Location": { | |
606 "description": "Specifies the location of a finding within its sourc
e item.", | |
607 "id": "GooglePrivacyDlpV2beta1Location", | |
608 "properties": { | |
609 "recordKey": { | |
610 "$ref": "GooglePrivacyDlpV2beta1RecordKey", | |
611 "description": "Key of the finding." | |
612 }, | |
613 "codepointRange": { | |
614 "$ref": "GooglePrivacyDlpV2beta1Range", | |
615 "description": "Character offsets within a content item, inc
luded when content type\nis a text. Default charset assumed to be UTF-8." | |
616 }, | |
617 "fieldId": { | |
618 "$ref": "GooglePrivacyDlpV2beta1FieldId", | |
619 "description": "Field id of the field containing the finding
." | |
620 }, | |
621 "imageBoxes": { | |
622 "description": "Location within an image's pixels.", | |
623 "items": { | |
624 "$ref": "GooglePrivacyDlpV2beta1ImageLocation" | |
625 }, | |
626 "type": "array" | |
627 }, | |
628 "byteRange": { | |
629 "$ref": "GooglePrivacyDlpV2beta1Range", | |
630 "description": "Zero-based byte offsets within a content ite
m." | |
631 } | 750 } |
632 }, | 751 }, |
633 "type": "object" | 752 "type": "object" |
634 }, | 753 }, |
635 "GooglePrivacyDlpV2beta1InspectResult": { | 754 "GooglePrivacyDlpV2beta1InspectResult": { |
636 "description": "All the findings for a single scanned item.", | 755 "description": "All the findings for a single scanned item.", |
637 "id": "GooglePrivacyDlpV2beta1InspectResult", | 756 "id": "GooglePrivacyDlpV2beta1InspectResult", |
638 "properties": { | 757 "properties": { |
| 758 "findingsTruncated": { |
| 759 "description": "If true, then this item might have more find
ings than were returned,\nand the findings returned are an arbitrary subset of a
ll findings.\nThe findings list might be truncated because the input items were
too\nlarge, or because the server reached the maximum amount of resources\nallow
ed for a single API call. For best results, divide the input into\nsmaller batch
es.", |
| 760 "type": "boolean" |
| 761 }, |
639 "findings": { | 762 "findings": { |
640 "description": "List of findings for an item.", | 763 "description": "List of findings for an item.", |
641 "items": { | 764 "items": { |
642 "$ref": "GooglePrivacyDlpV2beta1Finding" | 765 "$ref": "GooglePrivacyDlpV2beta1Finding" |
643 }, | 766 }, |
644 "type": "array" | 767 "type": "array" |
645 }, | |
646 "findingsTruncated": { | |
647 "description": "If true, then this item might have more find
ings than were returned,\nand the findings returned are an arbitrary subset of a
ll findings.\nThe findings list might be truncated because the input items were
too\nlarge, or because the server reached the maximum amount of resources\nallow
ed for a single API call. For best results, divide the input into\nsmaller batch
es.", | |
648 "type": "boolean" | |
649 } | 768 } |
650 }, | 769 }, |
651 "type": "object" | 770 "type": "object" |
652 }, | 771 }, |
653 "GooglePrivacyDlpV2beta1ImageLocation": { | 772 "GooglePrivacyDlpV2beta1ImageLocation": { |
654 "description": "Bounding box encompassing detected text within an im
age.", | 773 "description": "Bounding box encompassing detected text within an im
age.", |
655 "id": "GooglePrivacyDlpV2beta1ImageLocation", | 774 "id": "GooglePrivacyDlpV2beta1ImageLocation", |
656 "properties": { | 775 "properties": { |
| 776 "height": { |
| 777 "description": "Height of the bounding box in pixels.", |
| 778 "format": "int32", |
| 779 "type": "integer" |
| 780 }, |
657 "top": { | 781 "top": { |
658 "description": "Top coordinate of the bounding box. (0,0) is
upper left.", | 782 "description": "Top coordinate of the bounding box. (0,0) is
upper left.", |
659 "format": "int32", | 783 "format": "int32", |
660 "type": "integer" | 784 "type": "integer" |
661 }, | 785 }, |
662 "left": { | 786 "left": { |
663 "description": "Left coordinate of the bounding box. (0,0) i
s upper left.", | 787 "description": "Left coordinate of the bounding box. (0,0) i
s upper left.", |
664 "format": "int32", | 788 "format": "int32", |
665 "type": "integer" | 789 "type": "integer" |
666 }, | 790 }, |
667 "width": { | 791 "width": { |
668 "description": "Width of the bounding box in pixels.", | 792 "description": "Width of the bounding box in pixels.", |
669 "format": "int32", | 793 "format": "int32", |
670 "type": "integer" | 794 "type": "integer" |
671 }, | 795 } |
672 "height": { | 796 }, |
673 "description": "Height of the bounding box in pixels.", | 797 "type": "object" |
674 "format": "int32", | |
675 "type": "integer" | |
676 } | |
677 }, | |
678 "type": "object" | |
679 }, | |
680 "GooglePrivacyDlpV2beta1InfoTypeDescription": { | |
681 "description": "Info type description.", | |
682 "id": "GooglePrivacyDlpV2beta1InfoTypeDescription", | |
683 "properties": { | |
684 "displayName": { | |
685 "description": "Human readable form of the info type name.", | |
686 "type": "string" | |
687 }, | |
688 "categories": { | |
689 "description": "List of categories this info type belongs to
.", | |
690 "items": { | |
691 "$ref": "GooglePrivacyDlpV2beta1CategoryDescription" | |
692 }, | |
693 "type": "array" | |
694 }, | |
695 "name": { | |
696 "description": "Internal name of the info type.", | |
697 "type": "string" | |
698 } | |
699 }, | |
700 "type": "object" | |
701 }, | |
702 "GooglePrivacyDlpV2beta1OutputStorageConfig": { | |
703 "description": "Cloud repository for storing output.", | |
704 "id": "GooglePrivacyDlpV2beta1OutputStorageConfig", | |
705 "properties": { | |
706 "storagePath": { | |
707 "$ref": "GooglePrivacyDlpV2beta1CloudStoragePath", | |
708 "description": "The path to a Google Cloud Storage location
to store output." | |
709 } | |
710 }, | |
711 "type": "object" | |
712 }, | |
713 "GoogleRpcStatus": { | |
714 "description": "The `Status` type defines a logical error model that
is suitable for different\nprogramming environments, including REST APIs and RP
C APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is desig
ned to be:\n\n- Simple to use and understand for most users\n- Flexible enough t
o meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pie
ces of data: error code, error message,\nand error details. The error code shoul
d be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes
if needed. The\nerror message should be a developer-facing English message tha
t helps\ndevelopers *understand* and *resolve* the error. If a localized user-fa
cing\nerror message is needed, put the localized message in the error details or
\nlocalize it in the client. The optional error details may contain arbitrary\ni
nformation about the error. There is a predefined set of error detail types\nin
the package `google.rpc` that can be used for common error conditions.\n\n# Lang
uage mapping\n\nThe `Status` message is the logical representation of the error
model, but it\nis not necessarily the actual wire format. When the `Status` mess
age is\nexposed in different client libraries and different wire protocols, it c
an be\nmapped differently. For example, it will likely be mapped to some excepti
ons\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\n
\nThe error model and the `Status` message can be used in a variety of\nenvironm
ents, either with or without APIs, to provide a\nconsistent developer experience
across different environments.\n\nExample uses of this error model include:\n\n
- Partial errors. If a service needs to return partial errors to the client,\n
it may embed the `Status` in the normal response to indicate the partial\n
errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step m
ay\n have a `Status` message for error reporting.\n\n- Batch operations. If a
client uses batch request and batch response, the\n `Status` message should
be used directly inside batch response, one for\n each error sub-response.\n\
n- Asynchronous operations. If an API call embeds asynchronous operation\n re
sults in its response, the status of those operations should be\n represented
directly using the `Status` message.\n\n- Logging. If some API errors are store
d in logs, the message `Status` could\n be used directly after any stripping
needed for security/privacy reasons.", | |
715 "id": "GoogleRpcStatus", | |
716 "properties": { | |
717 "code": { | |
718 "description": "The status code, which should be an enum val
ue of google.rpc.Code.", | |
719 "format": "int32", | |
720 "type": "integer" | |
721 }, | |
722 "message": { | |
723 "description": "A developer-facing error message, which shou
ld be in English. Any\nuser-facing error message should be localized and sent in
the\ngoogle.rpc.Status.details field, or localized by the client.", | |
724 "type": "string" | |
725 }, | |
726 "details": { | |
727 "description": "A list of messages that carry the error deta
ils. There is a common set of\nmessage types for APIs to use.", | |
728 "items": { | |
729 "additionalProperties": { | |
730 "description": "Properties of the object. Contains f
ield @type with type URL.", | |
731 "type": "any" | |
732 }, | |
733 "type": "object" | |
734 }, | |
735 "type": "array" | |
736 } | |
737 }, | |
738 "type": "object" | |
739 }, | 798 }, |
740 "GooglePrivacyDlpV2beta1StorageConfig": { | 799 "GooglePrivacyDlpV2beta1StorageConfig": { |
741 "description": "Shared message indicating Cloud storage type.", | 800 "description": "Shared message indicating Cloud storage type.", |
742 "id": "GooglePrivacyDlpV2beta1StorageConfig", | 801 "id": "GooglePrivacyDlpV2beta1StorageConfig", |
743 "properties": { | 802 "properties": { |
| 803 "bigQueryOptions": { |
| 804 "$ref": "GooglePrivacyDlpV2beta1BigQueryOptions", |
| 805 "description": "BigQuery options specification." |
| 806 }, |
744 "cloudStorageOptions": { | 807 "cloudStorageOptions": { |
745 "$ref": "GooglePrivacyDlpV2beta1CloudStorageOptions", | 808 "$ref": "GooglePrivacyDlpV2beta1CloudStorageOptions", |
746 "description": "Google Cloud Storage options specification." | 809 "description": "Google Cloud Storage options specification." |
747 }, | 810 }, |
748 "datastoreOptions": { | 811 "datastoreOptions": { |
749 "$ref": "GooglePrivacyDlpV2beta1DatastoreOptions", | 812 "$ref": "GooglePrivacyDlpV2beta1DatastoreOptions", |
750 "description": "Google Cloud Datastore options specification
." | 813 "description": "Google Cloud Datastore options specification
." |
751 } | 814 } |
752 }, | 815 }, |
753 "type": "object" | 816 "type": "object" |
754 }, | 817 }, |
755 "GoogleLongrunningOperation": { | |
756 "description": "This resource represents a long-running operation th
at is the result of a\nnetwork API call.", | |
757 "id": "GoogleLongrunningOperation", | |
758 "properties": { | |
759 "done": { | |
760 "description": "If the value is `false`, it means the operat
ion is still in progress.\nIf true, the operation is completed, and either `erro
r` or `response` is\navailable.", | |
761 "type": "boolean" | |
762 }, | |
763 "response": { | |
764 "additionalProperties": { | |
765 "description": "Properties of the object. Contains field
@type with type URL.", | |
766 "type": "any" | |
767 }, | |
768 "description": "This field will contain an InspectOperationR
esult object.", | |
769 "type": "object" | |
770 }, | |
771 "name": { | |
772 "description": "The server-assigned name, The `name` should
have the format of `inspect/operations/<identifier>`.", | |
773 "type": "string" | |
774 }, | |
775 "error": { | |
776 "$ref": "GoogleRpcStatus", | |
777 "description": "The error result of the operation in case of
failure or cancellation." | |
778 }, | |
779 "metadata": { | |
780 "additionalProperties": { | |
781 "description": "Properties of the object. Contains field
@type with type URL.", | |
782 "type": "any" | |
783 }, | |
784 "description": "This field will contain an InspectOperationM
etadata object. This will always be returned with the Operation.", | |
785 "type": "object" | |
786 } | |
787 }, | |
788 "type": "object" | |
789 }, | |
790 "GooglePrivacyDlpV2beta1ContentItem": { | 818 "GooglePrivacyDlpV2beta1ContentItem": { |
791 "description": "Container structure for the content to inspect.", | 819 "description": "Container structure for the content to inspect.", |
792 "id": "GooglePrivacyDlpV2beta1ContentItem", | 820 "id": "GooglePrivacyDlpV2beta1ContentItem", |
793 "properties": { | 821 "properties": { |
794 "type": { | |
795 "description": "Type of the content, as defined in Content-T
ype HTTP header.\nSupported types are: all \"text\" types, octet streams, PNG im
ages,\nJPEG images.", | |
796 "type": "string" | |
797 }, | |
798 "value": { | 822 "value": { |
799 "description": "String data to inspect or redact.", | 823 "description": "String data to inspect or redact.", |
800 "type": "string" | 824 "type": "string" |
801 }, | 825 }, |
| 826 "table": { |
| 827 "$ref": "GooglePrivacyDlpV2beta1Table", |
| 828 "description": "Structured content for inspection." |
| 829 }, |
802 "data": { | 830 "data": { |
803 "description": "Content data to inspect or redact.", | 831 "description": "Content data to inspect or redact.", |
804 "format": "byte", | 832 "format": "byte", |
805 "type": "string" | 833 "type": "string" |
| 834 }, |
| 835 "type": { |
| 836 "description": "Type of the content, as defined in Content-T
ype HTTP header.\nSupported types are: all \"text\" types, octet streams, PNG im
ages,\nJPEG images.", |
| 837 "type": "string" |
806 } | 838 } |
807 }, | 839 }, |
808 "type": "object" | 840 "type": "object" |
809 }, | 841 }, |
810 "GooglePrivacyDlpV2beta1InspectOperationMetadata": { | 842 "GooglePrivacyDlpV2beta1OperationConfig": { |
811 "description": "Metadata returned within GetOperation for an inspect
request.", | 843 "description": "Additional configuration for inspect long running op
erations.", |
812 "id": "GooglePrivacyDlpV2beta1InspectOperationMetadata", | 844 "id": "GooglePrivacyDlpV2beta1OperationConfig", |
813 "properties": { | 845 "properties": { |
814 "requestInspectConfig": { | 846 "maxItemFindings": { |
815 "$ref": "GooglePrivacyDlpV2beta1InspectConfig", | 847 "description": "Max number of findings per file, Datastore e
ntity or database row.", |
816 "description": "The inspect config used to create the Operat
ion." | |
817 }, | |
818 "requestOutputConfig": { | |
819 "$ref": "GooglePrivacyDlpV2beta1OutputStorageConfig", | |
820 "description": "Optional location to store findings." | |
821 }, | |
822 "createTime": { | |
823 "description": "The time which this request was started.", | |
824 "format": "google-datetime", | |
825 "type": "string" | |
826 }, | |
827 "processedBytes": { | |
828 "description": "Total size in bytes that were processed.", | |
829 "format": "int64", | 848 "format": "int64", |
830 "type": "string" | 849 "type": "string" |
831 }, | |
832 "requestStorageConfig": { | |
833 "$ref": "GooglePrivacyDlpV2beta1StorageConfig", | |
834 "description": "The storage config used to create the Operat
ion." | |
835 }, | |
836 "totalEstimatedBytes": { | |
837 "description": "Estimate of the number of bytes to process."
, | |
838 "format": "int64", | |
839 "type": "string" | |
840 }, | |
841 "infoTypeStats": { | |
842 "items": { | |
843 "$ref": "GooglePrivacyDlpV2beta1InfoTypeStatistics" | |
844 }, | |
845 "type": "array" | |
846 } | 850 } |
847 }, | 851 }, |
848 "type": "object" | 852 "type": "object" |
849 }, | 853 }, |
850 "GooglePrivacyDlpV2beta1InfoType": { | 854 "GooglePrivacyDlpV2beta1BigQueryOptions": { |
851 "description": "Type of information detected by the API.", | 855 "description": "Options defining BigQuery table and row identifiers.
", |
852 "id": "GooglePrivacyDlpV2beta1InfoType", | 856 "id": "GooglePrivacyDlpV2beta1BigQueryOptions", |
853 "properties": { | 857 "properties": { |
854 "name": { | 858 "identifyingFields": { |
855 "description": "Name of the information type.", | 859 "description": "References to fields uniquely identifying ro
ws within the table.\nNested fields in the format, like `person.birthdate.year`,
are allowed.", |
856 "type": "string" | 860 "items": { |
| 861 "$ref": "GooglePrivacyDlpV2beta1FieldId" |
| 862 }, |
| 863 "type": "array" |
| 864 }, |
| 865 "tableReference": { |
| 866 "$ref": "GooglePrivacyDlpV2beta1BigQueryTable", |
| 867 "description": "Complete BigQuery table reference." |
857 } | 868 } |
858 }, | 869 }, |
859 "type": "object" | 870 "type": "object" |
860 }, | 871 }, |
861 "GooglePrivacyDlpV2beta1ReplaceConfig": { | 872 "GooglePrivacyDlpV2beta1ReplaceConfig": { |
862 "id": "GooglePrivacyDlpV2beta1ReplaceConfig", | 873 "id": "GooglePrivacyDlpV2beta1ReplaceConfig", |
863 "properties": { | 874 "properties": { |
| 875 "replaceWith": { |
| 876 "description": "Content replacing sensitive information of g
iven type. Max 256 chars.", |
| 877 "type": "string" |
| 878 }, |
864 "infoType": { | 879 "infoType": { |
865 "$ref": "GooglePrivacyDlpV2beta1InfoType", | 880 "$ref": "GooglePrivacyDlpV2beta1InfoType", |
866 "description": "Type of information to replace. Only one Rep
laceConfig per info_type\nshould be provided. If ReplaceConfig does not have an
info_type, the DLP\nAPI matches it against all info_types that are found but not
specified in\nanother ReplaceConfig." | 881 "description": "Type of information to replace. Only one Rep
laceConfig per info_type\nshould be provided. If ReplaceConfig does not have an
info_type, the DLP\nAPI matches it against all info_types that are found but not
specified in\nanother ReplaceConfig." |
867 }, | |
868 "replaceWith": { | |
869 "description": "Content replacing sensitive information of g
iven type. Max 256 chars.", | |
870 "type": "string" | |
871 } | 882 } |
872 }, | 883 }, |
873 "type": "object" | 884 "type": "object" |
874 }, | 885 }, |
875 "GooglePrivacyDlpV2beta1Color": { | 886 "GooglePrivacyDlpV2beta1Color": { |
876 "description": "Represents a color in the RGB color space.", | 887 "description": "Represents a color in the RGB color space.", |
877 "id": "GooglePrivacyDlpV2beta1Color", | 888 "id": "GooglePrivacyDlpV2beta1Color", |
878 "properties": { | 889 "properties": { |
879 "blue": { | 890 "blue": { |
880 "description": "The amount of blue in the color as a value i
n the interval [0, 1].", | 891 "description": "The amount of blue in the color as a value i
n the interval [0, 1].", |
881 "format": "float", | 892 "format": "float", |
882 "type": "number" | 893 "type": "number" |
883 }, | 894 }, |
884 "green": { | 895 "green": { |
885 "description": "The amount of green in the color as a value
in the interval [0, 1].", | 896 "description": "The amount of green in the color as a value
in the interval [0, 1].", |
886 "format": "float", | 897 "format": "float", |
887 "type": "number" | 898 "type": "number" |
888 }, | 899 }, |
889 "red": { | 900 "red": { |
890 "description": "The amount of red in the color as a value in
the interval [0, 1].", | 901 "description": "The amount of red in the color as a value in
the interval [0, 1].", |
891 "format": "float", | 902 "format": "float", |
892 "type": "number" | 903 "type": "number" |
893 } | 904 } |
894 }, | 905 }, |
895 "type": "object" | 906 "type": "object" |
896 }, | 907 }, |
897 "GooglePrivacyDlpV2beta1PathElement": { | 908 "GooglePrivacyDlpV2beta1Table": { |
898 "description": "A (kind, ID/name) pair used to construct a key path.
\n\nIf either name or ID is set, the element is complete.\nIf neither is set, th
e element is incomplete.", | 909 "description": "Structured content to inspect. Up to 50,000 `Value`s
per request allowed.", |
899 "id": "GooglePrivacyDlpV2beta1PathElement", | 910 "id": "GooglePrivacyDlpV2beta1Table", |
900 "properties": { | 911 "properties": { |
901 "name": { | 912 "headers": { |
902 "description": "The name of the entity.\nA name matching reg
ex `__.*__` is reserved/read-only.\nA name must not be more than 1500 bytes when
UTF-8 encoded.\nCannot be `\"\"`.", | 913 "items": { |
903 "type": "string" | 914 "$ref": "GooglePrivacyDlpV2beta1FieldId" |
| 915 }, |
| 916 "type": "array" |
904 }, | 917 }, |
905 "kind": { | 918 "rows": { |
906 "description": "The kind of the entity.\nA kind matching reg
ex `__.*__` is reserved/read-only.\nA kind must not contain more than 1500 bytes
when UTF-8 encoded.\nCannot be `\"\"`.", | 919 "items": { |
907 "type": "string" | 920 "$ref": "GooglePrivacyDlpV2beta1Row" |
908 }, | 921 }, |
909 "id": { | 922 "type": "array" |
910 "description": "The auto-allocated ID of the entity.\nNever
equal to zero. Values less than zero are discouraged and may not\nbe supported i
n the future.", | |
911 "format": "int64", | |
912 "type": "string" | |
913 } | 923 } |
914 }, | 924 }, |
915 "type": "object" | 925 "type": "object" |
| 926 }, |
| 927 "GooglePrivacyDlpV2beta1InfoTypeLimit": { |
| 928 "description": "Max findings configuration per info type, per conten
t item or long running\noperation.", |
| 929 "id": "GooglePrivacyDlpV2beta1InfoTypeLimit", |
| 930 "properties": { |
| 931 "infoType": { |
| 932 "$ref": "GooglePrivacyDlpV2beta1InfoType", |
| 933 "description": "Type of information the findings limit appli
es to. Only one limit per\ninfo_type should be provided. If InfoTypeLimit does n
ot have an\ninfo_type, the DLP API applies the limit against all info_types that
are\nfound but not specified in another InfoTypeLimit." |
| 934 }, |
| 935 "maxFindings": { |
| 936 "description": "Max findings limit for the given info type."
, |
| 937 "format": "int32", |
| 938 "type": "integer" |
| 939 } |
| 940 }, |
| 941 "type": "object" |
| 942 }, |
| 943 "GooglePrivacyDlpV2beta1Value": { |
| 944 "description": "Set of primitive values supported by the system.", |
| 945 "id": "GooglePrivacyDlpV2beta1Value", |
| 946 "properties": { |
| 947 "stringValue": { |
| 948 "type": "string" |
| 949 }, |
| 950 "dateValue": { |
| 951 "$ref": "GoogleTypeDate" |
| 952 }, |
| 953 "timestampValue": { |
| 954 "format": "google-datetime", |
| 955 "type": "string" |
| 956 }, |
| 957 "booleanValue": { |
| 958 "type": "boolean" |
| 959 }, |
| 960 "floatValue": { |
| 961 "format": "double", |
| 962 "type": "number" |
| 963 }, |
| 964 "integerValue": { |
| 965 "format": "int64", |
| 966 "type": "string" |
| 967 }, |
| 968 "timeValue": { |
| 969 "$ref": "GoogleTypeTimeOfDay" |
| 970 } |
| 971 }, |
| 972 "type": "object" |
916 }, | 973 }, |
917 "GooglePrivacyDlpV2beta1ListInfoTypesResponse": { | 974 "GooglePrivacyDlpV2beta1ListInfoTypesResponse": { |
918 "description": "Response to the ListInfoTypes request.", | 975 "description": "Response to the ListInfoTypes request.", |
919 "id": "GooglePrivacyDlpV2beta1ListInfoTypesResponse", | 976 "id": "GooglePrivacyDlpV2beta1ListInfoTypesResponse", |
920 "properties": { | 977 "properties": { |
921 "infoTypes": { | 978 "infoTypes": { |
922 "description": "Set of sensitive info types belonging to a c
ategory.", | 979 "description": "Set of sensitive info types belonging to a c
ategory.", |
923 "items": { | 980 "items": { |
924 "$ref": "GooglePrivacyDlpV2beta1InfoTypeDescription" | 981 "$ref": "GooglePrivacyDlpV2beta1InfoTypeDescription" |
925 }, | 982 }, |
926 "type": "array" | 983 "type": "array" |
927 } | 984 } |
928 }, | 985 }, |
929 "type": "object" | 986 "type": "object" |
930 }, | 987 }, |
931 "GooglePrivacyDlpV2beta1CategoryDescription": { | 988 "GooglePrivacyDlpV2beta1CloudStorageKey": { |
932 "description": "Info Type Category description.", | 989 "description": "Record key for a finding in a Cloud Storage file.", |
933 "id": "GooglePrivacyDlpV2beta1CategoryDescription", | 990 "id": "GooglePrivacyDlpV2beta1CloudStorageKey", |
934 "properties": { | 991 "properties": { |
935 "displayName": { | 992 "filePath": { |
936 "description": "Human readable form of the category name.", | 993 "description": "Path to the file.", |
937 "type": "string" | 994 "type": "string" |
938 }, | 995 }, |
939 "name": { | 996 "startOffset": { |
940 "description": "Internal name of the category.", | 997 "description": "Byte offset of the referenced data in the fi
le.", |
| 998 "format": "int64", |
941 "type": "string" | 999 "type": "string" |
942 } | 1000 } |
943 }, | 1001 }, |
944 "type": "object" | 1002 "type": "object" |
945 }, | 1003 }, |
946 "GooglePrivacyDlpV2beta1ListRootCategoriesResponse": { | 1004 "GooglePrivacyDlpV2beta1PartitionId": { |
947 "description": "Response for ListRootCategories request.", | 1005 "description": "Datastore partition ID.\nA partition ID identifies a
grouping of entities. The grouping is always\nby project and namespace, however
the namespace ID may be empty.\n\nA partition ID contains several dimensions:\n
project ID and namespace ID.", |
948 "id": "GooglePrivacyDlpV2beta1ListRootCategoriesResponse", | 1006 "id": "GooglePrivacyDlpV2beta1PartitionId", |
949 "properties": { | 1007 "properties": { |
950 "categories": { | 1008 "projectId": { |
951 "description": "List of all into type categories supported b
y the API.", | 1009 "description": "The ID of the project to which the entities
belong.", |
| 1010 "type": "string" |
| 1011 }, |
| 1012 "namespaceId": { |
| 1013 "description": "If not empty, the ID of the namespace to whi
ch the entities belong.", |
| 1014 "type": "string" |
| 1015 } |
| 1016 }, |
| 1017 "type": "object" |
| 1018 }, |
| 1019 "GooglePrivacyDlpV2beta1InspectContentResponse": { |
| 1020 "description": "Results of inspecting a list of items.", |
| 1021 "id": "GooglePrivacyDlpV2beta1InspectContentResponse", |
| 1022 "properties": { |
| 1023 "results": { |
| 1024 "description": "Each content_item from the request has a res
ult in this list, in the\nsame order as the request.", |
952 "items": { | 1025 "items": { |
953 "$ref": "GooglePrivacyDlpV2beta1CategoryDescription" | 1026 "$ref": "GooglePrivacyDlpV2beta1InspectResult" |
954 }, | 1027 }, |
955 "type": "array" | 1028 "type": "array" |
956 } | 1029 } |
957 }, | 1030 }, |
958 "type": "object" | 1031 "type": "object" |
959 }, | 1032 }, |
960 "GooglePrivacyDlpV2beta1Finding": { | 1033 "GooglePrivacyDlpV2beta1RedactContentRequest": { |
961 "description": "Container structure describing a single finding with
in a string or image.", | 1034 "description": "Request to search for potentially sensitive info in
a list of items\nand replace it with a default or provided content.", |
962 "id": "GooglePrivacyDlpV2beta1Finding", | 1035 "id": "GooglePrivacyDlpV2beta1RedactContentRequest", |
963 "properties": { | 1036 "properties": { |
964 "createTime": { | 1037 "imageRedactionConfigs": { |
965 "description": "Timestamp when finding was detected.", | 1038 "description": "The configuration for specifying what conten
t to redact from images.", |
966 "format": "google-datetime", | 1039 "items": { |
| 1040 "$ref": "GooglePrivacyDlpV2beta1ImageRedactionConfig" |
| 1041 }, |
| 1042 "type": "array" |
| 1043 }, |
| 1044 "inspectConfig": { |
| 1045 "$ref": "GooglePrivacyDlpV2beta1InspectConfig", |
| 1046 "description": "Configuration for the inspector." |
| 1047 }, |
| 1048 "items": { |
| 1049 "description": "The list of items to inspect. Up to 100 are
allowed per request.", |
| 1050 "items": { |
| 1051 "$ref": "GooglePrivacyDlpV2beta1ContentItem" |
| 1052 }, |
| 1053 "type": "array" |
| 1054 }, |
| 1055 "replaceConfigs": { |
| 1056 "description": "The strings to replace findings text finding
s with. Must specify at least\none of these or one ImageRedactionConfig if redac
ting images.", |
| 1057 "items": { |
| 1058 "$ref": "GooglePrivacyDlpV2beta1ReplaceConfig" |
| 1059 }, |
| 1060 "type": "array" |
| 1061 } |
| 1062 }, |
| 1063 "type": "object" |
| 1064 }, |
| 1065 "GooglePrivacyDlpV2beta1FieldId": { |
| 1066 "description": "General identifier of a data field in a storage serv
ice.", |
| 1067 "id": "GooglePrivacyDlpV2beta1FieldId", |
| 1068 "properties": { |
| 1069 "columnName": { |
| 1070 "description": "Name describing the field.", |
967 "type": "string" | 1071 "type": "string" |
| 1072 } |
| 1073 }, |
| 1074 "type": "object" |
| 1075 }, |
| 1076 "GooglePrivacyDlpV2beta1DatastoreOptions": { |
| 1077 "description": "Options defining a data set within Google Cloud Data
store.", |
| 1078 "id": "GooglePrivacyDlpV2beta1DatastoreOptions", |
| 1079 "properties": { |
| 1080 "projection": { |
| 1081 "description": "Properties to scan. If none are specified, a
ll properties will be scanned\nby default.", |
| 1082 "items": { |
| 1083 "$ref": "GooglePrivacyDlpV2beta1Projection" |
| 1084 }, |
| 1085 "type": "array" |
968 }, | 1086 }, |
969 "infoType": { | 1087 "kind": { |
970 "$ref": "GooglePrivacyDlpV2beta1InfoType", | 1088 "$ref": "GooglePrivacyDlpV2beta1KindExpression", |
971 "description": "The specific type of info the string might b
e." | 1089 "description": "The kind to process." |
972 }, | 1090 }, |
973 "location": { | 1091 "partitionId": { |
974 "$ref": "GooglePrivacyDlpV2beta1Location", | 1092 "$ref": "GooglePrivacyDlpV2beta1PartitionId", |
975 "description": "Location of the info found." | 1093 "description": "A partition ID identifies a grouping of enti
ties. The grouping is always\nby project and namespace, however the namespace ID
may be empty." |
976 }, | 1094 } |
977 "quote": { | 1095 }, |
978 "description": "The specific string that may be potentially
sensitive info.", | 1096 "type": "object" |
979 "type": "string" | 1097 }, |
980 }, | 1098 "GoogleLongrunningCancelOperationRequest": { |
981 "likelihood": { | 1099 "description": "The request message for Operations.CancelOperation."
, |
982 "description": "Estimate of how likely it is that the info_t
ype is correct.", | 1100 "id": "GoogleLongrunningCancelOperationRequest", |
| 1101 "properties": {}, |
| 1102 "type": "object" |
| 1103 }, |
| 1104 "GooglePrivacyDlpV2beta1InspectConfig": { |
| 1105 "description": "Configuration description of the scanning process.\n
When used with redactContent only info_types and min_likelihood are currently\nu
sed.", |
| 1106 "id": "GooglePrivacyDlpV2beta1InspectConfig", |
| 1107 "properties": { |
| 1108 "minLikelihood": { |
| 1109 "description": "Only returns findings equal or above this th
reshold.", |
983 "enum": [ | 1110 "enum": [ |
984 "LIKELIHOOD_UNSPECIFIED", | 1111 "LIKELIHOOD_UNSPECIFIED", |
985 "VERY_UNLIKELY", | 1112 "VERY_UNLIKELY", |
986 "UNLIKELY", | 1113 "UNLIKELY", |
987 "POSSIBLE", | 1114 "POSSIBLE", |
988 "LIKELY", | 1115 "LIKELY", |
989 "VERY_LIKELY" | 1116 "VERY_LIKELY" |
990 ], | 1117 ], |
991 "enumDescriptions": [ | 1118 "enumDescriptions": [ |
992 "Default value; information with all likelihoods is incl
uded.", | 1119 "Default value; information with all likelihoods is incl
uded.", |
993 "Few matching elements.", | 1120 "Few matching elements.", |
994 "", | 1121 "", |
995 "Some matching elements.", | 1122 "Some matching elements.", |
996 "", | 1123 "", |
997 "Many matching elements." | 1124 "Many matching elements." |
998 ], | 1125 ], |
999 "type": "string" | 1126 "type": "string" |
1000 } | 1127 }, |
1001 }, | 1128 "infoTypeLimits": { |
1002 "type": "object" | 1129 "description": "Configuration of findings limit given for sp
ecified info types.", |
1003 }, | 1130 "items": { |
1004 "GooglePrivacyDlpV2beta1CloudStorageKey": { | 1131 "$ref": "GooglePrivacyDlpV2beta1InfoTypeLimit" |
1005 "description": "Record key for a finding in a Cloud Storage file.", | 1132 }, |
1006 "id": "GooglePrivacyDlpV2beta1CloudStorageKey", | 1133 "type": "array" |
1007 "properties": { | 1134 }, |
1008 "filePath": { | 1135 "maxFindings": { |
1009 "description": "Path to the file.", | 1136 "description": "Limits the number of findings per content it
em or long running operation.", |
1010 "type": "string" | 1137 "format": "int32", |
1011 }, | 1138 "type": "integer" |
1012 "startOffset": { | 1139 }, |
1013 "description": "Byte offset of the referenced data in the fi
le.", | 1140 "infoTypes": { |
1014 "format": "int64", | 1141 "description": "Restricts what info_types to look for. The v
alues must correspond to\nInfoType values returned by ListInfoTypes or found in
documentation.\nEmpty info_types runs all enabled detectors.", |
1015 "type": "string" | 1142 "items": { |
1016 } | 1143 "$ref": "GooglePrivacyDlpV2beta1InfoType" |
1017 }, | 1144 }, |
1018 "type": "object" | 1145 "type": "array" |
1019 }, | 1146 }, |
1020 "GooglePrivacyDlpV2beta1PartitionId": { | 1147 "includeQuote": { |
1021 "description": "Datastore partition ID.\nA partition ID identifies a
grouping of entities. The grouping is always\nby project and namespace, however
the namespace ID may be empty.\n\nA partition ID contains several dimensions:\n
project ID and namespace ID.", | 1148 "description": "When true, a contextual quote from the data
that triggered a finding is\nincluded in the response; see Finding.quote.", |
1022 "id": "GooglePrivacyDlpV2beta1PartitionId", | 1149 "type": "boolean" |
1023 "properties": { | 1150 }, |
1024 "namespaceId": { | 1151 "excludeTypes": { |
1025 "description": "If not empty, the ID of the namespace to whi
ch the entities belong.", | 1152 "description": "When true, excludes type information of the
findings.", |
1026 "type": "string" | 1153 "type": "boolean" |
1027 }, | 1154 } |
1028 "projectId": { | 1155 }, |
1029 "description": "The ID of the project to which the entities
belong.", | 1156 "type": "object" |
1030 "type": "string" | 1157 }, |
1031 } | 1158 "GooglePrivacyDlpV2beta1Projection": { |
1032 }, | 1159 "description": "A representation of a Datastore property in a projec
tion.", |
1033 "type": "object" | 1160 "id": "GooglePrivacyDlpV2beta1Projection", |
1034 }, | 1161 "properties": { |
1035 "GooglePrivacyDlpV2beta1InspectContentResponse": { | 1162 "property": { |
1036 "description": "Results of inspecting a list of items.", | 1163 "$ref": "GooglePrivacyDlpV2beta1PropertyReference", |
1037 "id": "GooglePrivacyDlpV2beta1InspectContentResponse", | 1164 "description": "The property to project." |
1038 "properties": { | 1165 } |
1039 "results": { | 1166 }, |
1040 "description": "Each content_item from the request has a res
ult in this list, in the\nsame order as the request.", | 1167 "type": "object" |
1041 "items": { | 1168 }, |
1042 "$ref": "GooglePrivacyDlpV2beta1InspectResult" | 1169 "GooglePrivacyDlpV2beta1CreateInspectOperationRequest": { |
1043 }, | 1170 "description": "Request for scheduling a scan of a data subset from
a Google Platform data\nrepository.", |
1044 "type": "array" | 1171 "id": "GooglePrivacyDlpV2beta1CreateInspectOperationRequest", |
1045 } | 1172 "properties": { |
1046 }, | 1173 "outputConfig": { |
1047 "type": "object" | 1174 "$ref": "GooglePrivacyDlpV2beta1OutputStorageConfig", |
1048 }, | 1175 "description": "Optional location to store findings. The buc
ket must already exist and\nthe Google APIs service account for DLP must have wr
ite permission to\nwrite to the given bucket.\n<p>Results are split over multipl
e csv files with each file name matching\nthe pattern \"[operation_id]_[count].c
sv\", for example\n`3094877188788974909_1.csv`. The `operation_id` matches the\n
identifier for the Operation, and the `count` is a counter used for\ntracking th
e number of files written. <p>The CSV file(s) contain the\nfollowing columns reg
ardless of storage type scanned: <li>id <li>info_type\n<li>likelihood <li>byte s
ize of finding <li>quote <li>timestamp<br/>\n<p>For Cloud Storage the next colum
ns are: <li>file_path\n<li>start_offset<br/>\n<p>For Cloud Datastore the next co
lumns are: <li>project_id\n<li>namespace_id <li>path <li>column_name <li>offset<
br/>\n<p>For BigQuery the next columns are: <li>row_number <li>project_id\n<li>d
ataset_id <li>table_id" |
1049 "GooglePrivacyDlpV2beta1KindExpression": { | 1176 }, |
1050 "description": "A representation of a Datastore kind.", | 1177 "operationConfig": { |
1051 "id": "GooglePrivacyDlpV2beta1KindExpression", | 1178 "$ref": "GooglePrivacyDlpV2beta1OperationConfig", |
1052 "properties": { | 1179 "description": "Additional configuration settings for long r
unning operations." |
1053 "name": { | |
1054 "description": "The name of the kind.", | |
1055 "type": "string" | |
1056 } | |
1057 }, | |
1058 "type": "object" | |
1059 }, | |
1060 "GooglePrivacyDlpV2beta1RedactContentRequest": { | |
1061 "description": "Request to search for potentially sensitive info in
a list of items\nand replace it with a default or provided content.", | |
1062 "id": "GooglePrivacyDlpV2beta1RedactContentRequest", | |
1063 "properties": { | |
1064 "items": { | |
1065 "description": "The list of items to inspect. Up to 100 are
allowed per request.", | |
1066 "items": { | |
1067 "$ref": "GooglePrivacyDlpV2beta1ContentItem" | |
1068 }, | |
1069 "type": "array" | |
1070 }, | |
1071 "replaceConfigs": { | |
1072 "description": "The strings to replace findings text finding
s with. Must specify at least\none of these or one ImageRedactionConfig if redac
ting images.", | |
1073 "items": { | |
1074 "$ref": "GooglePrivacyDlpV2beta1ReplaceConfig" | |
1075 }, | |
1076 "type": "array" | |
1077 }, | |
1078 "imageRedactionConfigs": { | |
1079 "description": "The configuration for specifying what conten
t to redact from images.", | |
1080 "items": { | |
1081 "$ref": "GooglePrivacyDlpV2beta1ImageRedactionConfig" | |
1082 }, | |
1083 "type": "array" | |
1084 }, | 1180 }, |
1085 "inspectConfig": { | 1181 "inspectConfig": { |
1086 "$ref": "GooglePrivacyDlpV2beta1InspectConfig", | 1182 "$ref": "GooglePrivacyDlpV2beta1InspectConfig", |
1087 "description": "Configuration for the inspector." | 1183 "description": "Configuration for the inspector." |
1088 } | 1184 }, |
1089 }, | 1185 "storageConfig": { |
1090 "type": "object" | 1186 "$ref": "GooglePrivacyDlpV2beta1StorageConfig", |
1091 }, | 1187 "description": "Specification of the data set to process." |
1092 "GoogleLongrunningListOperationsResponse": { | 1188 } |
1093 "description": "The response message for Operations.ListOperations."
, | 1189 }, |
1094 "id": "GoogleLongrunningListOperationsResponse", | 1190 "type": "object" |
1095 "properties": { | 1191 }, |
1096 "operations": { | 1192 "GooglePrivacyDlpV2beta1Key": { |
1097 "description": "A list of operations that matches the specif
ied filter in the request.", | 1193 "description": "A unique identifier for a Datastore entity.\nIf a ke
y's partition ID or any of its path kinds or names are\nreserved/read-only, the
key is reserved/read-only.\nA reserved/read-only key is forbidden in certain doc
umented contexts.", |
1098 "items": { | 1194 "id": "GooglePrivacyDlpV2beta1Key", |
1099 "$ref": "GoogleLongrunningOperation" | 1195 "properties": { |
1100 }, | 1196 "path": { |
1101 "type": "array" | 1197 "description": "The entity path.\nAn entity path consists of
one or more elements composed of a kind and a\nstring or numerical identifier,
which identify entities. The first\nelement identifies a _root entity_, the seco
nd element identifies\na _child_ of the root entity, the third element identifie
s a child of the\nsecond entity, and so forth. The entities identified by all pr
efixes of\nthe path are called the element's _ancestors_.\n\nA path can never be
empty, and a path can have at most 100 elements.", |
1102 }, | 1198 "items": { |
1103 "nextPageToken": { | 1199 "$ref": "GooglePrivacyDlpV2beta1PathElement" |
1104 "description": "The standard List next-page token.", | 1200 }, |
1105 "type": "string" | 1201 "type": "array" |
1106 } | 1202 }, |
1107 }, | |
1108 "type": "object" | |
1109 }, | |
1110 "GooglePrivacyDlpV2beta1FieldId": { | |
1111 "description": "General identifier of a data field in a storage serv
ice.", | |
1112 "id": "GooglePrivacyDlpV2beta1FieldId", | |
1113 "properties": { | |
1114 "columnName": { | |
1115 "description": "Name describing the field.", | |
1116 "type": "string" | |
1117 } | |
1118 }, | |
1119 "type": "object" | |
1120 }, | |
1121 "GooglePrivacyDlpV2beta1FileSet": { | |
1122 "description": "Set of files to scan.", | |
1123 "id": "GooglePrivacyDlpV2beta1FileSet", | |
1124 "properties": { | |
1125 "url": { | |
1126 "description": "The url, in the format `gs://<bucket>/<path>
`. Trailing wildcard in the\npath is allowed.", | |
1127 "type": "string" | |
1128 } | |
1129 }, | |
1130 "type": "object" | |
1131 }, | |
1132 "GooglePrivacyDlpV2beta1DatastoreOptions": { | |
1133 "description": "Options defining a data set within Google Cloud Data
store.", | |
1134 "id": "GooglePrivacyDlpV2beta1DatastoreOptions", | |
1135 "properties": { | |
1136 "partitionId": { | 1203 "partitionId": { |
1137 "$ref": "GooglePrivacyDlpV2beta1PartitionId", | 1204 "$ref": "GooglePrivacyDlpV2beta1PartitionId", |
1138 "description": "A partition ID identifies a grouping of enti
ties. The grouping is always\nby project and namespace, however the namespace ID
may be empty." | 1205 "description": "Entities are partitioned into subsets, curre
ntly identified by a project\nID and namespace ID.\nQueries are scoped to a sing
le partition." |
1139 }, | 1206 } |
1140 "projection": { | 1207 }, |
1141 "description": "Properties to scan. If none are specified, a
ll properties will be scanned\nby default.", | 1208 "type": "object" |
1142 "items": { | 1209 }, |
1143 "$ref": "GooglePrivacyDlpV2beta1Projection" | 1210 "GooglePrivacyDlpV2beta1InspectContentRequest": { |
1144 }, | 1211 "description": "Request to search for potentially sensitive info in
a list of items.", |
1145 "type": "array" | 1212 "id": "GooglePrivacyDlpV2beta1InspectContentRequest", |
1146 }, | 1213 "properties": { |
1147 "kind": { | 1214 "inspectConfig": { |
1148 "$ref": "GooglePrivacyDlpV2beta1KindExpression", | 1215 "$ref": "GooglePrivacyDlpV2beta1InspectConfig", |
1149 "description": "The kind to process." | 1216 "description": "Configuration for the inspector." |
1150 } | 1217 }, |
1151 }, | 1218 "items": { |
1152 "type": "object" | 1219 "description": "The list of items to inspect. Items in a sin
gle request are\nconsidered \"related\" unless inspect_config.independent_inputs
is true.\nUp to 100 are allowed per request.", |
1153 }, | 1220 "items": { |
1154 "GoogleLongrunningCancelOperationRequest": { | 1221 "$ref": "GooglePrivacyDlpV2beta1ContentItem" |
1155 "description": "The request message for Operations.CancelOperation."
, | 1222 }, |
1156 "id": "GoogleLongrunningCancelOperationRequest", | 1223 "type": "array" |
1157 "properties": {}, | 1224 } |
1158 "type": "object" | 1225 }, |
1159 }, | 1226 "type": "object" |
1160 "GoogleProtobufEmpty": { | 1227 }, |
1161 "description": "A generic empty message that you can re-use to avoid
defining duplicated\nempty messages in your APIs. A typical example is to use i
t as the request\nor the response type of an API method. For instance:\n\n se
rvice Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty
);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.", | 1228 "GoogleTypeDate": { |
1162 "id": "GoogleProtobufEmpty", | 1229 "description": "Represents a whole calendar date, e.g. date of birth
. The time of day and\ntime zone are either specified elsewhere or are not signi
ficant. The date\nis relative to the Proleptic Gregorian Calendar. The day may b
e 0 to\nrepresent a year and month where the day is not significant, e.g. credit
card\nexpiration date. The year may be 0 to represent a month and day independe
nt\nof year, e.g. anniversary date. Related types are google.type.TimeOfDay\nand
`google.protobuf.Timestamp`.", |
1163 "properties": {}, | 1230 "id": "GoogleTypeDate", |
1164 "type": "object" | 1231 "properties": { |
1165 }, | 1232 "day": { |
1166 "GooglePrivacyDlpV2beta1ListInspectFindingsResponse": { | 1233 "description": "Day of month. Must be from 1 to 31 and valid
for the year and month, or 0\nif specifying a year/month where the day is not s
ignificant.", |
1167 "description": "Response to the ListInspectFindings request.", | 1234 "format": "int32", |
1168 "id": "GooglePrivacyDlpV2beta1ListInspectFindingsResponse", | 1235 "type": "integer" |
1169 "properties": { | 1236 }, |
1170 "nextPageToken": { | 1237 "year": { |
1171 "description": "If not empty, indicates that there may be mo
re results that match the\nrequest; this value should be passed in a new `ListIn
spectFindingsRequest`.", | 1238 "description": "Year of date. Must be from 1 to 9999, or 0 i
f specifying a date without\na year.", |
1172 "type": "string" | 1239 "format": "int32", |
1173 }, | 1240 "type": "integer" |
1174 "result": { | 1241 }, |
1175 "$ref": "GooglePrivacyDlpV2beta1InspectResult", | 1242 "month": { |
1176 "description": "The results." | 1243 "description": "Month of year. Must be from 1 to 12.", |
1177 } | 1244 "format": "int32", |
1178 }, | 1245 "type": "integer" |
1179 "type": "object" | 1246 } |
1180 }, | 1247 }, |
1181 "GooglePrivacyDlpV2beta1InspectConfig": { | 1248 "type": "object" |
1182 "description": "Configuration description of the scanning process.\n
When used with redactContent only info_types and min_likelihood are currently\nu
sed.", | 1249 }, |
1183 "id": "GooglePrivacyDlpV2beta1InspectConfig", | 1250 "GooglePrivacyDlpV2beta1InfoTypeStatistics": { |
1184 "properties": { | 1251 "description": "Statistics regarding a specific InfoType.", |
1185 "maxFindings": { | 1252 "id": "GooglePrivacyDlpV2beta1InfoTypeStatistics", |
1186 "description": "Limits the number of findings per content it
em or long running operation.", | 1253 "properties": { |
1187 "format": "int32", | 1254 "count": { |
1188 "type": "integer" | 1255 "description": "Number of findings for this info type.", |
1189 }, | 1256 "format": "int64", |
1190 "excludeTypes": { | 1257 "type": "string" |
1191 "description": "When true, excludes type information of the
findings.", | 1258 }, |
| 1259 "infoType": { |
| 1260 "$ref": "GooglePrivacyDlpV2beta1InfoType", |
| 1261 "description": "The type of finding this stat is for." |
| 1262 } |
| 1263 }, |
| 1264 "type": "object" |
| 1265 }, |
| 1266 "GooglePrivacyDlpV2beta1ImageRedactionConfig": { |
| 1267 "description": "Configuration for determing how redaction of images
should occur.", |
| 1268 "id": "GooglePrivacyDlpV2beta1ImageRedactionConfig", |
| 1269 "properties": { |
| 1270 "redactionColor": { |
| 1271 "$ref": "GooglePrivacyDlpV2beta1Color", |
| 1272 "description": "The color to use when redacting content from
an image. If not specified,\nthe default is black." |
| 1273 }, |
| 1274 "redactAllText": { |
| 1275 "description": "If true, all text found in the image, regard
less whether it matches an\ninfo_type, is redacted.", |
1192 "type": "boolean" | 1276 "type": "boolean" |
1193 }, | 1277 }, |
1194 "infoTypes": { | 1278 "infoType": { |
1195 "description": "Restricts what info_types to look for. The v
alues must correspond to\nInfoType values returned by ListInfoTypes or found in
documentation.\nEmpty info_types runs all enabled detectors.", | 1279 "$ref": "GooglePrivacyDlpV2beta1InfoType", |
1196 "items": { | 1280 "description": "Only one per info_type should be provided pe
r request. If not\nspecified, and redact_all_text is false, the DLP API will red
act all\ntext that it matches against all info_types that are found, but not\nsp
ecified in another ImageRedactionConfig." |
1197 "$ref": "GooglePrivacyDlpV2beta1InfoType" | 1281 } |
1198 }, | 1282 }, |
1199 "type": "array" | 1283 "type": "object" |
1200 }, | 1284 }, |
1201 "includeQuote": { | 1285 "GooglePrivacyDlpV2beta1RedactContentResponse": { |
1202 "description": "When true, a contextual quote from the data
that triggered a finding is\nincluded in the response; see Finding.quote.", | 1286 "description": "Results of redacting a list of items.", |
| 1287 "id": "GooglePrivacyDlpV2beta1RedactContentResponse", |
| 1288 "properties": { |
| 1289 "items": { |
| 1290 "description": "The redacted content.", |
| 1291 "items": { |
| 1292 "$ref": "GooglePrivacyDlpV2beta1ContentItem" |
| 1293 }, |
| 1294 "type": "array" |
| 1295 } |
| 1296 }, |
| 1297 "type": "object" |
| 1298 }, |
| 1299 "GooglePrivacyDlpV2beta1PropertyReference": { |
| 1300 "description": "A reference to a property relative to the Datastore
kind expressions.", |
| 1301 "id": "GooglePrivacyDlpV2beta1PropertyReference", |
| 1302 "properties": { |
| 1303 "name": { |
| 1304 "description": "The name of the property.\nIf name includes
\".\"s, it may be interpreted as a property name path.", |
| 1305 "type": "string" |
| 1306 } |
| 1307 }, |
| 1308 "type": "object" |
| 1309 }, |
| 1310 "GooglePrivacyDlpV2beta1Location": { |
| 1311 "description": "Specifies the location of a finding within its sourc
e item.", |
| 1312 "id": "GooglePrivacyDlpV2beta1Location", |
| 1313 "properties": { |
| 1314 "tableLocation": { |
| 1315 "$ref": "GooglePrivacyDlpV2beta1TableLocation", |
| 1316 "description": "Location within a `ContentItem.Table`." |
| 1317 }, |
| 1318 "codepointRange": { |
| 1319 "$ref": "GooglePrivacyDlpV2beta1Range", |
| 1320 "description": "Character offsets within a content item, inc
luded when content type\nis a text. Default charset assumed to be UTF-8." |
| 1321 }, |
| 1322 "fieldId": { |
| 1323 "$ref": "GooglePrivacyDlpV2beta1FieldId", |
| 1324 "description": "Field id of the field containing the finding
." |
| 1325 }, |
| 1326 "imageBoxes": { |
| 1327 "description": "Location within an image's pixels.", |
| 1328 "items": { |
| 1329 "$ref": "GooglePrivacyDlpV2beta1ImageLocation" |
| 1330 }, |
| 1331 "type": "array" |
| 1332 }, |
| 1333 "byteRange": { |
| 1334 "$ref": "GooglePrivacyDlpV2beta1Range", |
| 1335 "description": "Zero-based byte offsets within a content ite
m." |
| 1336 }, |
| 1337 "recordKey": { |
| 1338 "$ref": "GooglePrivacyDlpV2beta1RecordKey", |
| 1339 "description": "Key of the finding." |
| 1340 } |
| 1341 }, |
| 1342 "type": "object" |
| 1343 }, |
| 1344 "GooglePrivacyDlpV2beta1InfoTypeDescription": { |
| 1345 "description": "Info type description.", |
| 1346 "id": "GooglePrivacyDlpV2beta1InfoTypeDescription", |
| 1347 "properties": { |
| 1348 "categories": { |
| 1349 "description": "List of categories this info type belongs to
.", |
| 1350 "items": { |
| 1351 "$ref": "GooglePrivacyDlpV2beta1CategoryDescription" |
| 1352 }, |
| 1353 "type": "array" |
| 1354 }, |
| 1355 "name": { |
| 1356 "description": "Internal name of the info type.", |
| 1357 "type": "string" |
| 1358 }, |
| 1359 "displayName": { |
| 1360 "description": "Human readable form of the info type name.", |
| 1361 "type": "string" |
| 1362 } |
| 1363 }, |
| 1364 "type": "object" |
| 1365 }, |
| 1366 "GooglePrivacyDlpV2beta1OutputStorageConfig": { |
| 1367 "description": "Cloud repository for storing output.", |
| 1368 "id": "GooglePrivacyDlpV2beta1OutputStorageConfig", |
| 1369 "properties": { |
| 1370 "storagePath": { |
| 1371 "$ref": "GooglePrivacyDlpV2beta1CloudStoragePath", |
| 1372 "description": "The path to a Google Cloud Storage location
to store output." |
| 1373 }, |
| 1374 "table": { |
| 1375 "$ref": "GooglePrivacyDlpV2beta1BigQueryTable", |
| 1376 "description": "Store findings in a new table in the dataset
." |
| 1377 } |
| 1378 }, |
| 1379 "type": "object" |
| 1380 }, |
| 1381 "GoogleRpcStatus": { |
| 1382 "description": "The `Status` type defines a logical error model that
is suitable for different\nprogramming environments, including REST APIs and RP
C APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is desig
ned to be:\n\n- Simple to use and understand for most users\n- Flexible enough t
o meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pie
ces of data: error code, error message,\nand error details. The error code shoul
d be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes
if needed. The\nerror message should be a developer-facing English message tha
t helps\ndevelopers *understand* and *resolve* the error. If a localized user-fa
cing\nerror message is needed, put the localized message in the error details or
\nlocalize it in the client. The optional error details may contain arbitrary\ni
nformation about the error. There is a predefined set of error detail types\nin
the package `google.rpc` that can be used for common error conditions.\n\n# Lang
uage mapping\n\nThe `Status` message is the logical representation of the error
model, but it\nis not necessarily the actual wire format. When the `Status` mess
age is\nexposed in different client libraries and different wire protocols, it c
an be\nmapped differently. For example, it will likely be mapped to some excepti
ons\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\n
\nThe error model and the `Status` message can be used in a variety of\nenvironm
ents, either with or without APIs, to provide a\nconsistent developer experience
across different environments.\n\nExample uses of this error model include:\n\n
- Partial errors. If a service needs to return partial errors to the client,\n
it may embed the `Status` in the normal response to indicate the partial\n
errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step m
ay\n have a `Status` message for error reporting.\n\n- Batch operations. If a
client uses batch request and batch response, the\n `Status` message should
be used directly inside batch response, one for\n each error sub-response.\n\
n- Asynchronous operations. If an API call embeds asynchronous operation\n re
sults in its response, the status of those operations should be\n represented
directly using the `Status` message.\n\n- Logging. If some API errors are store
d in logs, the message `Status` could\n be used directly after any stripping
needed for security/privacy reasons.", |
| 1383 "id": "GoogleRpcStatus", |
| 1384 "properties": { |
| 1385 "code": { |
| 1386 "description": "The status code, which should be an enum val
ue of google.rpc.Code.", |
| 1387 "format": "int32", |
| 1388 "type": "integer" |
| 1389 }, |
| 1390 "message": { |
| 1391 "description": "A developer-facing error message, which shou
ld be in English. Any\nuser-facing error message should be localized and sent in
the\ngoogle.rpc.Status.details field, or localized by the client.", |
| 1392 "type": "string" |
| 1393 }, |
| 1394 "details": { |
| 1395 "description": "A list of messages that carry the error deta
ils. There is a common set of\nmessage types for APIs to use.", |
| 1396 "items": { |
| 1397 "additionalProperties": { |
| 1398 "description": "Properties of the object. Contains f
ield @type with type URL.", |
| 1399 "type": "any" |
| 1400 }, |
| 1401 "type": "object" |
| 1402 }, |
| 1403 "type": "array" |
| 1404 } |
| 1405 }, |
| 1406 "type": "object" |
| 1407 }, |
| 1408 "GoogleLongrunningOperation": { |
| 1409 "description": "This resource represents a long-running operation th
at is the result of a\nnetwork API call.", |
| 1410 "id": "GoogleLongrunningOperation", |
| 1411 "properties": { |
| 1412 "name": { |
| 1413 "description": "The server-assigned name, The `name` should
have the format of `inspect/operations/<identifier>`.", |
| 1414 "type": "string" |
| 1415 }, |
| 1416 "error": { |
| 1417 "$ref": "GoogleRpcStatus", |
| 1418 "description": "The error result of the operation in case of
failure or cancellation." |
| 1419 }, |
| 1420 "metadata": { |
| 1421 "additionalProperties": { |
| 1422 "description": "Properties of the object. Contains field
@type with type URL.", |
| 1423 "type": "any" |
| 1424 }, |
| 1425 "description": "This field will contain an InspectOperationM
etadata object. This will always be returned with the Operation.", |
| 1426 "type": "object" |
| 1427 }, |
| 1428 "done": { |
| 1429 "description": "If the value is `false`, it means the operat
ion is still in progress.\nIf true, the operation is completed, and either `erro
r` or `response` is\navailable.", |
1203 "type": "boolean" | 1430 "type": "boolean" |
1204 }, | 1431 }, |
1205 "minLikelihood": { | 1432 "response": { |
1206 "description": "Only returns findings equal or above this th
reshold.", | 1433 "additionalProperties": { |
1207 "enum": [ | 1434 "description": "Properties of the object. Contains field
@type with type URL.", |
1208 "LIKELIHOOD_UNSPECIFIED", | 1435 "type": "any" |
1209 "VERY_UNLIKELY", | 1436 }, |
1210 "UNLIKELY", | 1437 "description": "This field will contain an InspectOperationR
esult object.", |
1211 "POSSIBLE", | 1438 "type": "object" |
1212 "LIKELY", | 1439 } |
1213 "VERY_LIKELY" | 1440 }, |
1214 ], | 1441 "type": "object" |
1215 "enumDescriptions": [ | |
1216 "Default value; information with all likelihoods is incl
uded.", | |
1217 "Few matching elements.", | |
1218 "", | |
1219 "Some matching elements.", | |
1220 "", | |
1221 "Many matching elements." | |
1222 ], | |
1223 "type": "string" | |
1224 } | |
1225 }, | |
1226 "type": "object" | |
1227 } | 1442 } |
1228 }, | 1443 }, |
1229 "servicePath": "", | 1444 "servicePath": "", |
1230 "title": "DLP API", | 1445 "title": "DLP API", |
1231 "version": "v2beta1" | 1446 "version": "v2beta1" |
1232 } | 1447 } |
OLD | NEW |