You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In addition to the data sources that Glean has built-in support for, Glean also provides a REST API that enables customers to put arbitrary content in the search index. This is useful, for example, for doing permissions-aware search over content in internal tools that reside on-prem as well as for searching over applications that Glean does not currently support first class. In addition these APIs allow the customer to push organization data (people info, organization structure etc) into Glean.
@@ -22,7 +22,7 @@ info:
22
22
These API clients provide type-safe, idiomatic interfaces for working with Glean IndexingAPIs in your language of choice.
description: The offset of the person's timezone in seconds from UTC.
6476
+
timezoneIANA:
6477
+
type: string
6478
+
description: The IANA timezone identifier, e.g. "America/Los_Angeles".
6476
6479
photoUrl:
6477
6480
type: string
6478
6481
format: url
@@ -8069,6 +8072,7 @@ components:
8069
8072
- VISITORS_COUNT
8070
8073
- RECENT_SHARES
8071
8074
- DOCUMENT_CONTENT
8075
+
- CUSTOM_METADATA
8072
8076
DocumentOrError:
8073
8077
oneOf:
8074
8078
- $ref: "#/components/schemas/Document"
@@ -12092,6 +12096,26 @@ components:
12092
12096
description: List of lifecycle events corresponding to the document
12093
12097
items:
12094
12098
$ref: "#/components/schemas/LifeCycleEvent"
12099
+
SuccessResponse:
12100
+
type: object
12101
+
description: Success response for custom metadata operations
12102
+
properties:
12103
+
success:
12104
+
type: boolean
12105
+
description: Indicates if the operation was successful
12106
+
default: true
12107
+
ErrorInfoResponse:
12108
+
type: object
12109
+
description: Error response for custom metadata operations
12110
+
properties:
12111
+
error:
12112
+
type: string
12113
+
description: Error message describing what went wrong
12114
+
message:
12115
+
type: string
12116
+
description: Additional details about the error
12117
+
required:
12118
+
- error
12095
12119
PropertyDefinition:
12096
12120
properties:
12097
12121
name:
@@ -12537,24 +12561,69 @@ components:
12537
12561
type: array
12538
12562
items:
12539
12563
$ref: "#/components/schemas/Hotword"
12564
+
CustomSensitiveRuleType:
12565
+
type: string
12566
+
description: Type of the custom sensitive rule.
12567
+
enum:
12568
+
- REGEX
12569
+
- TERM
12570
+
- INFO_TYPE
12571
+
CustomSensitiveRule:
12572
+
properties:
12573
+
id:
12574
+
description: Identifier for the custom sensitive expression.
12575
+
type: string
12576
+
value:
12577
+
type: string
12578
+
description: The value of the custom sensitive rule. For REGEX type, this is the regex pattern; for TERM type, it is the term to match; and for INFO_TYPE type, it refers to predefined categories of sensitive content. See https://cloud.google.com/dlp/docs/infotypes-reference for available options.
description: Likelihood threshold for BUILT_IN infotypes (e.g., LIKELY, VERY_LIKELY). Only applicable for BUILT_IN type.
12583
+
type: string
12584
+
enum:
12585
+
- LIKELY
12586
+
- VERY_LIKELY
12587
+
- POSSIBLE
12588
+
- UNLIKELY
12589
+
- VERY_UNLIKELY
12590
+
CustomSensitiveExpression:
12591
+
properties:
12592
+
id:
12593
+
description: Identifier for the custom sensitive expression.
12594
+
type: string
12595
+
keyword:
12596
+
description: The keyword to match against.
12597
+
$ref: "#/components/schemas/CustomSensitiveRule"
12598
+
evaluationExpression:
12599
+
description: The expression to evaluate the keyword match.
12600
+
type: string
12540
12601
SensitiveContentOptions:
12541
12602
description: Options for defining sensitive content within scanned documents.
12542
12603
properties:
12543
12604
sensitiveInfoTypes:
12544
-
description: Predefined categories of terms to consider as sensitive content. See https://cloud.google.com/dlp/docs/infotypes-reference for available types.
12605
+
deprecated: true
12606
+
description: DEPRECATED - use 'customSensitiveExpressions' instead.
12545
12607
type: array
12546
12608
items:
12547
12609
$ref: "#/components/schemas/SensitiveInfoType"
12548
12610
sensitiveTerms:
12549
-
description: list of words and phrases to consider as sensitive content
12611
+
deprecated: true
12612
+
description: DEPRECATED - use 'customSensitiveExpressions' instead.
12550
12613
type: array
12551
12614
items:
12552
12615
$ref: "#/components/schemas/SensitiveExpression"
12553
12616
sensitiveRegexes:
12554
-
description: list of regular expressions to consider as sensitive content
12617
+
deprecated: true
12618
+
description: DEPRECATED - use 'customSensitiveExpressions' instead.
12555
12619
type: array
12556
12620
items:
12557
12621
$ref: "#/components/schemas/SensitiveExpression"
12622
+
customSensitiveExpressions:
12623
+
description: list of custom sensitive expressions to consider as sensitive content
| `id` | *Optional[str]* | :heavy_minus_sign: | Identifier for the custom sensitive expression. |
9
+
| `value` | *Optional[str]* | :heavy_minus_sign: | The value of the custom sensitive rule. For REGEX type, this is the regex pattern; for TERM type, it is the term to match; and for INFO_TYPE type, it refers to predefined categories of sensitive content. See https://cloud.google.com/dlp/docs/infotypes-reference for available options. |
10
+
| `type` | [Optional[models.CustomSensitiveRuleType]](../models/customsensitiveruletype.md) | :heavy_minus_sign: | Type of the custom sensitive rule. |
11
+
| `likelihood_threshold` | [Optional[models.CustomSensitiveRuleLikelihoodThreshold]](../models/customsensitiverulelikelihoodthreshold.md) | :heavy_minus_sign: | Likelihood threshold for BUILT_IN infotypes (e.g., LIKELY, VERY_LIKELY). Only applicable for BUILT_IN type. |
0 commit comments