Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Side by Side Diff: discovery/googleapis_beta/dlp__v2beta1.json

Issue 2779563003: Api-roll 47: 2017-03-27 (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 {
2 "auth": {
3 "oauth2": {
4 "scopes": {
5 "https://www.googleapis.com/auth/cloud-platform": {
6 "description": "View and manage your data across Google Clou d Platform services"
7 }
8 }
9 }
10 },
11 "basePath": "",
12 "baseUrl": "https://dlp.googleapis.com/",
13 "batchPath": "batch",
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.",
16 "discoveryVersion": "v1",
17 "documentationLink": "https://cloud.google.com/dlp/docs/",
18 "icons": {
19 "x16": "http://www.google.com/images/icons/product/search-16.gif",
20 "x32": "http://www.google.com/images/icons/product/search-32.gif"
21 },
22 "id": "dlp:v2beta1",
23 "kind": "discovery#restDescription",
24 "name": "dlp",
25 "ownerDomain": "google.com",
26 "ownerName": "Google",
27 "parameters": {
28 "$.xgafv": {
29 "description": "V1 error format.",
30 "enum": [
31 "1",
32 "2"
33 ],
34 "enumDescriptions": [
35 "v1 error format",
36 "v2 error format"
37 ],
38 "location": "query",
39 "type": "string"
40 },
41 "callback": {
42 "description": "JSONP",
43 "location": "query",
44 "type": "string"
45 },
46 "alt": {
47 "default": "json",
48 "description": "Data format for response.",
49 "enum": [
50 "json",
51 "media",
52 "proto"
53 ],
54 "enumDescriptions": [
55 "Responses with Content-Type of application/json",
56 "Media download with context-dependent Content-Type",
57 "Responses with Content-Type of application/x-protobuf"
58 ],
59 "location": "query",
60 "type": "string"
61 },
62 "key": {
63 "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.",
64 "location": "query",
65 "type": "string"
66 },
67 "access_token": {
68 "description": "OAuth access token.",
69 "location": "query",
70 "type": "string"
71 },
72 "quotaUser": {
73 "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.",
74 "location": "query",
75 "type": "string"
76 },
77 "pp": {
78 "default": "true",
79 "description": "Pretty-print response.",
80 "location": "query",
81 "type": "boolean"
82 },
83 "oauth_token": {
84 "description": "OAuth 2.0 token for the current user.",
85 "location": "query",
86 "type": "string"
87 },
88 "bearer_token": {
89 "description": "OAuth bearer token.",
90 "location": "query",
91 "type": "string"
92 },
93 "upload_protocol": {
94 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").",
95 "location": "query",
96 "type": "string"
97 },
98 "prettyPrint": {
99 "default": "true",
100 "description": "Returns response with indentations and line breaks." ,
101 "location": "query",
102 "type": "boolean"
103 },
104 "fields": {
105 "description": "Selector specifying which fields to include in a par tial response.",
106 "location": "query",
107 "type": "string"
108 },
109 "uploadType": {
110 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").",
111 "location": "query",
112 "type": "string"
113 }
114 },
115 "protocol": "rest",
116 "resources": {
117 "content": {
118 "methods": {
119 "inspect": {
120 "description": "Find potentially sensitive info in a list of strings.\nThis method has limits on input size, processing time, and output siz e.",
121 "httpMethod": "POST",
122 "id": "dlp.content.inspect",
123 "parameterOrder": [],
124 "parameters": {},
125 "path": "v2beta1/content:inspect",
126 "request": {
127 "$ref": "InspectContentRequest"
128 },
129 "response": {
130 "$ref": "InspectContentResponse"
131 },
132 "scopes": [
133 "https://www.googleapis.com/auth/cloud-platform"
134 ]
135 },
136 "redact": {
137 "description": "Redact potentially sensitive info from a lis t of strings.\nThis method has limits on input size, processing time, and output size.",
138 "httpMethod": "POST",
139 "id": "dlp.content.redact",
140 "parameterOrder": [],
141 "parameters": {},
142 "path": "v2beta1/content:redact",
143 "request": {
144 "$ref": "RedactContentRequest"
145 },
146 "response": {
147 "$ref": "RedactContentResponse"
148 },
149 "scopes": [
150 "https://www.googleapis.com/auth/cloud-platform"
151 ]
152 }
153 }
154 },
155 "rootCategories": {
156 "methods": {
157 "list": {
158 "description": "Returns the list of root categories of sensi tive information.",
159 "httpMethod": "GET",
160 "id": "dlp.rootCategories.list",
161 "parameterOrder": [],
162 "parameters": {
163 "languageCode": {
164 "description": "Optional language code for localized friendly category names.\nIf omitted or if localized strings are not available, \nen-US strings will be returned.",
165 "location": "query",
166 "type": "string"
167 }
168 },
169 "path": "v2beta1/rootCategories",
170 "response": {
171 "$ref": "ListRootCategoriesResponse"
172 },
173 "scopes": [
174 "https://www.googleapis.com/auth/cloud-platform"
175 ]
176 }
177 },
178 "resources": {
179 "infoTypes": {
180 "methods": {
181 "list": {
182 "description": "Returns sensitive information types for given category.",
183 "httpMethod": "GET",
184 "id": "dlp.rootCategories.infoTypes.list",
185 "parameterOrder": [
186 "category"
187 ],
188 "parameters": {
189 "languageCode": {
190 "description": "Optional BCP-47 language cod e for localized info type friendly\nnames. If omitted, or if localized strings a re not available,\nen-US strings will be returned.",
191 "location": "query",
192 "type": "string"
193 },
194 "category": {
195 "description": "Category name as returned by ListRootCategories.",
196 "location": "path",
197 "pattern": "^[^/]+$",
198 "required": true,
199 "type": "string"
200 }
201 },
202 "path": "v2beta1/rootCategories/{+category}/infoType s",
203 "response": {
204 "$ref": "ListInfoTypesResponse"
205 },
206 "scopes": [
207 "https://www.googleapis.com/auth/cloud-platform"
208 ]
209 }
210 }
211 }
212 }
213 },
214 "inspect": {
215 "resources": {
216 "results": {
217 "resources": {
218 "findings": {
219 "methods": {
220 "list": {
221 "description": "Returns list of results for given inspect operation result set id.",
222 "httpMethod": "GET",
223 "id": "dlp.inspect.results.findings.list",
224 "parameterOrder": [
225 "name"
226 ],
227 "parameters": {
228 "name": {
229 "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}.",
230 "location": "path",
231 "pattern": "^inspect/results/[^/]+$" ,
232 "required": true,
233 "type": "string"
234 },
235 "pageToken": {
236 "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.",
237 "location": "query",
238 "type": "string"
239 },
240 "pageSize": {
241 "description": "Maximum number of re sults to return.\nIf 0, the implementation will select a reasonable value.",
242 "format": "int32",
243 "location": "query",
244 "type": "integer"
245 }
246 },
247 "path": "v2beta1/{+name}/findings",
248 "response": {
249 "$ref": "ListInspectFindingsResponse"
250 },
251 "scopes": [
252 "https://www.googleapis.com/auth/cloud-p latform"
253 ]
254 }
255 }
256 }
257 }
258 },
259 "operations": {
260 "methods": {
261 "cancel": {
262 "description": "Cancels an operation. Use the get me thod to check whether the cancellation succeeded or whether the operation comple ted despite cancellation.",
263 "httpMethod": "POST",
264 "id": "dlp.inspect.operations.cancel",
265 "parameterOrder": [
266 "name"
267 ],
268 "parameters": {
269 "name": {
270 "description": "The name of the operation re source to be cancelled.",
271 "location": "path",
272 "pattern": "^inspect/operations/[^/]+$",
273 "required": true,
274 "type": "string"
275 }
276 },
277 "path": "v2beta1/{+name}:cancel",
278 "request": {
279 "$ref": "CancelOperationRequest"
280 },
281 "response": {
282 "$ref": "Empty"
283 },
284 "scopes": [
285 "https://www.googleapis.com/auth/cloud-platform"
286 ]
287 },
288 "delete": {
289 "description": "This method is not supported and the server returns `UNIMPLEMENTED`.",
290 "httpMethod": "DELETE",
291 "id": "dlp.inspect.operations.delete",
292 "parameterOrder": [
293 "name"
294 ],
295 "parameters": {
296 "name": {
297 "description": "The name of the operation re source to be deleted.",
298 "location": "path",
299 "pattern": "^inspect/operations/[^/]+$",
300 "required": true,
301 "type": "string"
302 }
303 },
304 "path": "v2beta1/{+name}",
305 "response": {
306 "$ref": "Empty"
307 },
308 "scopes": [
309 "https://www.googleapis.com/auth/cloud-platform"
310 ]
311 },
312 "list": {
313 "description": "Lists operations that match the spec ified filter in the request. If the\nserver doesn't support this method, it retu rns `UNIMPLEMENTED`.\n\nNOTE: the `name` binding below allows API services to ov erride the binding\nto use different resource name schemes, such as `users/*/ope rations`.",
314 "httpMethod": "GET",
315 "id": "dlp.inspect.operations.list",
316 "parameterOrder": [
317 "name"
318 ],
319 "parameters": {
320 "pageSize": {
321 "description": "The list page size. The max allowed value is 256 and default is 100.",
322 "format": "int32",
323 "location": "query",
324 "type": "integer"
325 },
326 "filter": {
327 "description": "This parameter supports filt ering by done, ie done=true or done=false.",
328 "location": "query",
329 "type": "string"
330 },
331 "name": {
332 "description": "The name of the operation co llection.",
333 "location": "path",
334 "pattern": "^inspect/operations$",
335 "required": true,
336 "type": "string"
337 },
338 "pageToken": {
339 "description": "The list page token.",
340 "location": "query",
341 "type": "string"
342 }
343 },
344 "path": "v2beta1/{+name}",
345 "response": {
346 "$ref": "ListOperationsResponse"
347 },
348 "scopes": [
349 "https://www.googleapis.com/auth/cloud-platform"
350 ]
351 },
352 "get": {
353 "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.",
354 "httpMethod": "GET",
355 "id": "dlp.inspect.operations.get",
356 "parameterOrder": [
357 "name"
358 ],
359 "parameters": {
360 "name": {
361 "description": "The name of the operation re source.",
362 "location": "path",
363 "pattern": "^inspect/operations/[^/]+$",
364 "required": true,
365 "type": "string"
366 }
367 },
368 "path": "v2beta1/{+name}",
369 "response": {
370 "$ref": "Operation"
371 },
372 "scopes": [
373 "https://www.googleapis.com/auth/cloud-platform"
374 ]
375 },
376 "create": {
377 "description": "Schedule a job scanning content in a Google Cloud Platform data repository.",
378 "httpMethod": "POST",
379 "id": "dlp.inspect.operations.create",
380 "parameterOrder": [],
381 "parameters": {},
382 "path": "v2beta1/inspect/operations",
383 "request": {
384 "$ref": "CreateInspectOperationRequest"
385 },
386 "response": {
387 "$ref": "Operation"
388 },
389 "scopes": [
390 "https://www.googleapis.com/auth/cloud-platform"
391 ]
392 }
393 }
394 }
395 }
396 }
397 },
398 "revision": "20170321",
399 "rootUrl": "https://dlp.googleapis.com/",
400 "schemas": {
401 "CategoryDescription": {
402 "description": "Info Type Category description.",
403 "id": "CategoryDescription",
404 "properties": {
405 "displayName": {
406 "description": "Human readable form of the category name.",
407 "type": "string"
408 },
409 "name": {
410 "description": "Internal name of the category.",
411 "type": "string"
412 }
413 },
414 "type": "object"
415 },
416 "CancelOperationRequest": {
417 "description": "The request message for Operations.CancelOperation." ,
418 "id": "CancelOperationRequest",
419 "properties": {},
420 "type": "object"
421 },
422 "Operation": {
423 "description": "This resource represents a long-running operation th at is the result of a\nnetwork API call.",
424 "id": "Operation",
425 "properties": {
426 "done": {
427 "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.",
428 "type": "boolean"
429 },
430 "response": {
431 "additionalProperties": {
432 "description": "Properties of the object. Contains field @type with type URL.",
433 "type": "any"
434 },
435 "description": "This field will contain an `InspectOperation Result` object.",
436 "type": "object"
437 },
438 "name": {
439 "description": "The server-assigned name, The `name` should have the format of `inspect/operations/<identifier>`.",
440 "type": "string"
441 },
442 "error": {
443 "$ref": "Status",
444 "description": "The error result of the operation in case of failure or cancellation."
445 },
446 "metadata": {
447 "additionalProperties": {
448 "description": "Properties of the object. Contains field @type with type URL.",
449 "type": "any"
450 },
451 "description": "This field will contain an `InspectOperation Metdata` object.",
452 "type": "object"
453 }
454 },
455 "type": "object"
456 },
457 "CloudStorageOptions": {
458 "description": "Options defining a file or a set of files (path endi ng with *) within\na Google Cloud Storage bucket.",
459 "id": "CloudStorageOptions",
460 "properties": {
461 "fileSet": {
462 "$ref": "FileSet"
463 }
464 },
465 "type": "object"
466 },
467 "PathElement": {
468 "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.",
469 "id": "PathElement",
470 "properties": {
471 "name": {
472 "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 `\"\"`.",
473 "type": "string"
474 },
475 "kind": {
476 "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 `\"\"`.",
477 "type": "string"
478 },
479 "id": {
480 "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.",
481 "format": "int64",
482 "type": "string"
483 }
484 },
485 "type": "object"
486 },
487 "InspectResult": {
488 "description": "All the findings for a single scanned item.",
489 "id": "InspectResult",
490 "properties": {
491 "findings": {
492 "description": "List of findings for an item.",
493 "items": {
494 "$ref": "Finding"
495 },
496 "type": "array"
497 },
498 "findingsTruncated": {
499 "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.",
500 "type": "boolean"
501 }
502 },
503 "type": "object"
504 },
505 "Status": {
506 "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` which can be used for common error conditions.\n\n# Lan guage 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` mes sage is\nexposed in different client libraries and different wire protocols, it can be\nmapped differently. For example, it will likely be mapped to some except ions\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\nenviron ments, either with or without APIs, to provide a\nconsistent developer experienc e 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 may\n have a `Status` message for error reporting purpose.\n\n- Batch operati ons. If a client uses batch request and batch response, the\n `Status` messag e should be used directly inside batch response, one for\n each error sub-res ponse.\n\n- Asynchronous operations. If an API call embeds asynchronous operatio n\n results in its response, the status of those operations should be\n re presented directly using the `Status` message.\n\n- Logging. If some API errors are stored in logs, the message `Status` could\n be used directly after any s tripping needed for security/privacy reasons.",
507 "id": "Status",
508 "properties": {
509 "details": {
510 "description": "A list of messages that carry the error deta ils. There will be a\ncommon set of message types for APIs to use.",
511 "items": {
512 "additionalProperties": {
513 "description": "Properties of the object. Contains f ield @type with type URL.",
514 "type": "any"
515 },
516 "type": "object"
517 },
518 "type": "array"
519 },
520 "code": {
521 "description": "The status code, which should be an enum val ue of google.rpc.Code.",
522 "format": "int32",
523 "type": "integer"
524 },
525 "message": {
526 "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.",
527 "type": "string"
528 }
529 },
530 "type": "object"
531 },
532 "RedactContentResponse": {
533 "description": "Results of deidentifying a list of items.",
534 "id": "RedactContentResponse",
535 "properties": {
536 "items": {
537 "description": "The redacted content.",
538 "items": {
539 "$ref": "ContentItem"
540 },
541 "type": "array"
542 }
543 },
544 "type": "object"
545 },
546 "Range": {
547 "description": "Generic half-open interval [start, end)",
548 "id": "Range",
549 "properties": {
550 "start": {
551 "description": "Index of the first character of the range (i nclusive).",
552 "format": "int64",
553 "type": "string"
554 },
555 "end": {
556 "description": "Index of the last character of the range (ex clusive).",
557 "format": "int64",
558 "type": "string"
559 }
560 },
561 "type": "object"
562 },
563 "FieldId": {
564 "description": "General identifier of a data field in a storage serv ice.",
565 "id": "FieldId",
566 "properties": {
567 "columnName": {
568 "description": "Column name describing the field.",
569 "type": "string"
570 }
571 },
572 "type": "object"
573 },
574 "KindExpression": {
575 "description": "A representation of a Datastore kind.",
576 "id": "KindExpression",
577 "properties": {
578 "name": {
579 "description": "The name of the kind.",
580 "type": "string"
581 }
582 },
583 "type": "object"
584 },
585 "ListInfoTypesResponse": {
586 "description": "Response to the ListInfoTypes request.",
587 "id": "ListInfoTypesResponse",
588 "properties": {
589 "infoTypes": {
590 "description": "Set of sensitive info types belonging to a c ategory.",
591 "items": {
592 "$ref": "InfoTypeDescription"
593 },
594 "type": "array"
595 }
596 },
597 "type": "object"
598 },
599 "Key": {
600 "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.",
601 "id": "Key",
602 "properties": {
603 "partitionId": {
604 "$ref": "PartitionId",
605 "description": "Entities are partitioned into subsets, curre ntly identified by a project\nID and namespace ID.\nQueries are scoped to a sing le partition."
606 },
607 "path": {
608 "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.",
609 "items": {
610 "$ref": "PathElement"
611 },
612 "type": "array"
613 }
614 },
615 "type": "object"
616 },
617 "ListOperationsResponse": {
618 "description": "The response message for Operations.ListOperations." ,
619 "id": "ListOperationsResponse",
620 "properties": {
621 "nextPageToken": {
622 "description": "The standard List next-page token.",
623 "type": "string"
624 },
625 "operations": {
626 "description": "A list of operations that matches the specif ied filter in the request.",
627 "items": {
628 "$ref": "Operation"
629 },
630 "type": "array"
631 }
632 },
633 "type": "object"
634 },
635 "InspectContentRequest": {
636 "description": "Request to search for potentially sensitive info in a list of items.",
637 "id": "InspectContentRequest",
638 "properties": {
639 "inspectConfig": {
640 "$ref": "InspectConfig",
641 "description": "Configuration for the inspector."
642 },
643 "items": {
644 "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.",
645 "items": {
646 "$ref": "ContentItem"
647 },
648 "type": "array"
649 }
650 },
651 "type": "object"
652 },
653 "PropertyReference": {
654 "description": "A reference to a property relative to the Datastore kind expressions.",
655 "id": "PropertyReference",
656 "properties": {
657 "name": {
658 "description": "The name of the property.\nIf name includes \".\"s, it may be interpreted as a property name path.",
659 "type": "string"
660 }
661 },
662 "type": "object"
663 },
664 "Projection": {
665 "description": "A representation of a Datastore property in a projec tion.",
666 "id": "Projection",
667 "properties": {
668 "property": {
669 "$ref": "PropertyReference",
670 "description": "The property to project."
671 }
672 },
673 "type": "object"
674 },
675 "InfoTypeDescription": {
676 "description": "Info type description.",
677 "id": "InfoTypeDescription",
678 "properties": {
679 "displayName": {
680 "description": "Human readable form of the info type name.",
681 "type": "string"
682 },
683 "categories": {
684 "description": "List of categories this info type belongs to .",
685 "items": {
686 "$ref": "CategoryDescription"
687 },
688 "type": "array"
689 },
690 "name": {
691 "description": "Internal name of the info type.",
692 "type": "string"
693 }
694 },
695 "type": "object"
696 },
697 "ImageLocation": {
698 "description": "Bounding box encompassing detected text within an im age.",
699 "id": "ImageLocation",
700 "properties": {
701 "height": {
702 "description": "Height of the bounding box in pixels.",
703 "format": "int32",
704 "type": "integer"
705 },
706 "top": {
707 "description": "Top coordinate of the bounding box. (0,0) is upper left.",
708 "format": "int32",
709 "type": "integer"
710 },
711 "left": {
712 "description": "Left coordinate of the bounding box. (0,0) i s upper left.",
713 "format": "int32",
714 "type": "integer"
715 },
716 "width": {
717 "description": "Width of the bounding box in pixels.",
718 "format": "int32",
719 "type": "integer"
720 }
721 },
722 "type": "object"
723 },
724 "CloudStorageKey": {
725 "description": "Record key for a finding in a Cloud Storage file.",
726 "id": "CloudStorageKey",
727 "properties": {
728 "startOffset": {
729 "description": "Byte offset of the referenced data in the fi le.",
730 "format": "int64",
731 "type": "string"
732 },
733 "filePath": {
734 "description": "Path to the file.",
735 "type": "string"
736 }
737 },
738 "type": "object"
739 },
740 "DatastoreOptions": {
741 "description": "Options defining a data set within Google Cloud Data store.",
742 "id": "DatastoreOptions",
743 "properties": {
744 "partitionId": {
745 "$ref": "PartitionId",
746 "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."
747 },
748 "kind": {
749 "$ref": "KindExpression",
750 "description": "The kind to process."
751 },
752 "projection": {
753 "description": "Properties to scan. If none are specified, a ll properties will be scanned\nby default.",
754 "items": {
755 "$ref": "Projection"
756 },
757 "type": "array"
758 }
759 },
760 "type": "object"
761 },
762 "Empty": {
763 "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 `{}`.",
764 "id": "Empty",
765 "properties": {},
766 "type": "object"
767 },
768 "ListRootCategoriesResponse": {
769 "description": "Response for ListRootCategories request.",
770 "id": "ListRootCategoriesResponse",
771 "properties": {
772 "categories": {
773 "description": "List of all into type categories supported b y the API.",
774 "items": {
775 "$ref": "CategoryDescription"
776 },
777 "type": "array"
778 }
779 },
780 "type": "object"
781 },
782 "DatastoreKey": {
783 "description": "Record key for a finding in Cloud Datastore.",
784 "id": "DatastoreKey",
785 "properties": {
786 "entityKey": {
787 "$ref": "Key",
788 "description": "Datastore entity key."
789 }
790 },
791 "type": "object"
792 },
793 "Location": {
794 "description": "Specifies the location of a finding within its sourc e item.",
795 "id": "Location",
796 "properties": {
797 "recordKey": {
798 "$ref": "RecordKey",
799 "description": "Key of the finding."
800 },
801 "codepointRange": {
802 "$ref": "Range",
803 "description": "Character offsets within a content item, inc luded when content type\nis a text. Default charset assumed to be UTF-8."
804 },
805 "fieldId": {
806 "$ref": "FieldId",
807 "description": "Field id of the field containing the finding ."
808 },
809 "imageBoxes": {
810 "description": "Location within an image's pixels.",
811 "items": {
812 "$ref": "ImageLocation"
813 },
814 "type": "array"
815 },
816 "byteRange": {
817 "$ref": "Range",
818 "description": "Zero-based byte offsets within a content ite m."
819 }
820 },
821 "type": "object"
822 },
823 "ListInspectFindingsResponse": {
824 "description": "Response to the ListInspectFindings request.",
825 "id": "ListInspectFindingsResponse",
826 "properties": {
827 "result": {
828 "$ref": "InspectResult",
829 "description": "The results."
830 },
831 "nextPageToken": {
832 "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`.",
833 "type": "string"
834 }
835 },
836 "type": "object"
837 },
838 "RecordKey": {
839 "description": "Message for a unique key indicating a record that co ntains a finding.",
840 "id": "RecordKey",
841 "properties": {
842 "datastoreKey": {
843 "$ref": "DatastoreKey"
844 },
845 "cloudStorageKey": {
846 "$ref": "CloudStorageKey"
847 }
848 },
849 "type": "object"
850 },
851 "ContentItem": {
852 "description": "Container structure for the content to inspect.",
853 "id": "ContentItem",
854 "properties": {
855 "type": {
856 "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.",
857 "type": "string"
858 },
859 "value": {
860 "description": "String data to inspect or redact.",
861 "type": "string"
862 },
863 "data": {
864 "description": "Content data to inspect or redact.",
865 "format": "byte",
866 "type": "string"
867 }
868 },
869 "type": "object"
870 },
871 "InspectContentResponse": {
872 "description": "Results of inspecting a list of items.",
873 "id": "InspectContentResponse",
874 "properties": {
875 "results": {
876 "description": "Each content_item from the request will have a result in this list, in the\nsame order as the request.",
877 "items": {
878 "$ref": "InspectResult"
879 },
880 "type": "array"
881 }
882 },
883 "type": "object"
884 },
885 "CreateInspectOperationRequest": {
886 "description": "Request for scheduling a scan of a data subset from a Google Platform data\nrepository.",
887 "id": "CreateInspectOperationRequest",
888 "properties": {
889 "inspectConfig": {
890 "$ref": "InspectConfig",
891 "description": "Configuration for the inspector."
892 },
893 "storageConfig": {
894 "$ref": "StorageConfig",
895 "description": "Specification of the data set to process."
896 }
897 },
898 "type": "object"
899 },
900 "Finding": {
901 "description": "Container structure describing a single finding with in a string or image.",
902 "id": "Finding",
903 "properties": {
904 "infoType": {
905 "$ref": "InfoType",
906 "description": "The specific type of info the string might b e."
907 },
908 "createTime": {
909 "description": "Timestamp when finding was detected.",
910 "format": "google-datetime",
911 "type": "string"
912 },
913 "quote": {
914 "description": "The specific string that may be potentially sensitive info.",
915 "type": "string"
916 },
917 "location": {
918 "$ref": "Location",
919 "description": "Location of the info found."
920 },
921 "likelihood": {
922 "description": "Estimate of how likely it is that the info_t ype is correct.",
923 "enum": [
924 "LIKELIHOOD_UNSPECIFIED",
925 "VERY_UNLIKELY",
926 "UNLIKELY",
927 "POSSIBLE",
928 "LIKELY",
929 "VERY_LIKELY"
930 ],
931 "enumDescriptions": [
932 "Default value; information with all likelihoods will be included.",
933 "Few matching elements.",
934 "",
935 "Some matching elements.",
936 "",
937 "Many matching elements."
938 ],
939 "type": "string"
940 }
941 },
942 "type": "object"
943 },
944 "InspectConfig": {
945 "description": "Configuration description of the scanning process.\n When used with redactContent only info_types and min_likelihood are currently\nu sed.",
946 "id": "InspectConfig",
947 "properties": {
948 "infoTypes": {
949 "description": "Restrict what info_types to look for. The va lues must correspond to\nInfoType values returned by ListInfoTypes or found in d ocumentation.\nEmpty info_types runs all enabled detectors.",
950 "items": {
951 "$ref": "InfoType"
952 },
953 "type": "array"
954 },
955 "excludeTypes": {
956 "description": "When true, exclude type information of the f indings.",
957 "type": "boolean"
958 },
959 "includeQuote": {
960 "description": "When true, a contextual quote from the data that triggered a finding will\nbe included in the response; see Finding.quote.",
961 "type": "boolean"
962 },
963 "minLikelihood": {
964 "description": "Only return findings equal or above this thr eshold.",
965 "enum": [
966 "LIKELIHOOD_UNSPECIFIED",
967 "VERY_UNLIKELY",
968 "UNLIKELY",
969 "POSSIBLE",
970 "LIKELY",
971 "VERY_LIKELY"
972 ],
973 "enumDescriptions": [
974 "Default value; information with all likelihoods will be included.",
975 "Few matching elements.",
976 "",
977 "Some matching elements.",
978 "",
979 "Many matching elements."
980 ],
981 "type": "string"
982 },
983 "maxFindings": {
984 "description": "Limit the number of findings per content ite m.",
985 "format": "int32",
986 "type": "integer"
987 }
988 },
989 "type": "object"
990 },
991 "InfoType": {
992 "description": "Type of information detected by the API.",
993 "id": "InfoType",
994 "properties": {
995 "name": {
996 "description": "Name of the information type, provided by th e API call ListInfoTypes.",
997 "type": "string"
998 }
999 },
1000 "type": "object"
1001 },
1002 "ReplaceConfig": {
1003 "id": "ReplaceConfig",
1004 "properties": {
1005 "infoType": {
1006 "$ref": "InfoType",
1007 "description": "Type of information to replace. Only one Rep laceConfig per info_type\nshould be provided. If ReplaceConfig does not have an info_type, we'll\nmatch it against all info_types that are found but not specifi ed in\nanother ReplaceConfig."
1008 },
1009 "replaceWith": {
1010 "description": "Content replacing sensitive information of g iven type. Max 256 chars.",
1011 "type": "string"
1012 }
1013 },
1014 "type": "object"
1015 },
1016 "FileSet": {
1017 "description": "Set of files to scan.",
1018 "id": "FileSet",
1019 "properties": {
1020 "url": {
1021 "description": "The url, in the format gs://<bucket>/<path>. Trailing wildcard in the\npath is allowed.",
1022 "type": "string"
1023 }
1024 },
1025 "type": "object"
1026 },
1027 "StorageConfig": {
1028 "description": "Shared message indicating Cloud storage type.",
1029 "id": "StorageConfig",
1030 "properties": {
1031 "cloudStorageOptions": {
1032 "$ref": "CloudStorageOptions",
1033 "description": "Google Cloud Storage options specification."
1034 },
1035 "datastoreOptions": {
1036 "$ref": "DatastoreOptions",
1037 "description": "Google Cloud Datastore options specification ."
1038 }
1039 },
1040 "type": "object"
1041 },
1042 "RedactContentRequest": {
1043 "description": "Request to search for potentially sensitive info in a list of items\nand replace it with a default or provided content.",
1044 "id": "RedactContentRequest",
1045 "properties": {
1046 "inspectConfig": {
1047 "$ref": "InspectConfig",
1048 "description": "Configuration for the inspector."
1049 },
1050 "items": {
1051 "description": "The list of items to inspect. Up to 100 are allowed per request.",
1052 "items": {
1053 "$ref": "ContentItem"
1054 },
1055 "type": "array"
1056 },
1057 "replaceConfigs": {
1058 "description": "The strings to replace findings with. Must s pecify at least one.",
1059 "items": {
1060 "$ref": "ReplaceConfig"
1061 },
1062 "type": "array"
1063 }
1064 },
1065 "type": "object"
1066 },
1067 "PartitionId": {
1068 "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.",
1069 "id": "PartitionId",
1070 "properties": {
1071 "databaseId": {
1072 "description": "If not empty, the ID of the database to whic h the entities\nbelong.",
1073 "type": "string"
1074 },
1075 "namespaceId": {
1076 "description": "If not empty, the ID of the namespace to whi ch the entities belong.",
1077 "type": "string"
1078 },
1079 "projectId": {
1080 "description": "The ID of the project to which the entities belong.",
1081 "type": "string"
1082 }
1083 },
1084 "type": "object"
1085 }
1086 },
1087 "servicePath": "",
1088 "title": "DLP API",
1089 "version": "v2beta1"
1090 }
OLDNEW
« no previous file with comments | « discovery/googleapis_beta/dataproc__v1beta1.json ('k') | discovery/googleapis_beta/language__v1beta1.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698