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: Email domain (without extension) that determines the deployment backend.
3230
+
parameters:
3231
+
- name: groupName
3232
+
in: path
3233
+
description: Name of the metadata group schema
3234
+
required: true
3235
+
schema:
3236
+
type: string
3203
3237
/rest/api/v1/governance/data/policies/{id}:
3204
3238
get:
3205
3239
description: Fetches the specified policy version, or the latest if no version is provided.
@@ -8069,6 +8103,7 @@ components:
8069
8103
- VISITORS_COUNT
8070
8104
- RECENT_SHARES
8071
8105
- DOCUMENT_CONTENT
8106
+
- CUSTOM_METADATA
8072
8107
DocumentOrError:
8073
8108
oneOf:
8074
8109
- $ref: "#/components/schemas/Document"
@@ -12092,6 +12127,48 @@ components:
12092
12127
description: List of lifecycle events corresponding to the document
12093
12128
items:
12094
12129
$ref: "#/components/schemas/LifeCycleEvent"
12130
+
CustomMetadataPutRequest:
12131
+
type: object
12132
+
description: Request body for adding or updating custom metadata on a document
12133
+
properties:
12134
+
customMetadata:
12135
+
type: array
12136
+
description: Array of custom metadata key-value pairs
12137
+
items:
12138
+
$ref: "#/components/schemas/CustomProperty"
12139
+
required:
12140
+
- customMetadata
12141
+
CustomMetadataSchema:
12142
+
type: object
12143
+
description: Schema for custom metadata containing metadata key definitions
12144
+
properties:
12145
+
metadataKeys:
12146
+
type: array
12147
+
description: Array of metadata key definitions
12148
+
items:
12149
+
$ref: "#/components/schemas/PropertyDefinition"
12150
+
required:
12151
+
- metadataKeys
12152
+
SuccessResponse:
12153
+
type: object
12154
+
description: Success response for custom metadata operations
12155
+
properties:
12156
+
success:
12157
+
type: boolean
12158
+
description: Indicates if the operation was successful
12159
+
default: true
12160
+
ErrorInfoResponse:
12161
+
type: object
12162
+
description: Error response for custom metadata operations
12163
+
properties:
12164
+
error:
12165
+
type: string
12166
+
description: Error message describing what went wrong
12167
+
message:
12168
+
type: string
12169
+
description: Additional details about the error
12170
+
required:
12171
+
- error
12095
12172
PropertyDefinition:
12096
12173
properties:
12097
12174
name:
@@ -12537,24 +12614,69 @@ components:
12537
12614
type: array
12538
12615
items:
12539
12616
$ref: "#/components/schemas/Hotword"
12617
+
CustomSensitiveRuleType:
12618
+
type: string
12619
+
description: Type of the custom sensitive rule.
12620
+
enum:
12621
+
- REGEX
12622
+
- TERM
12623
+
- INFO_TYPE
12624
+
CustomSensitiveRule:
12625
+
properties:
12626
+
id:
12627
+
description: Identifier for the custom sensitive expression.
12628
+
type: string
12629
+
value:
12630
+
type: string
12631
+
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.
12636
+
type: string
12637
+
enum:
12638
+
- LIKELY
12639
+
- VERY_LIKELY
12640
+
- POSSIBLE
12641
+
- UNLIKELY
12642
+
- VERY_UNLIKELY
12643
+
CustomSensitiveExpression:
12644
+
properties:
12645
+
id:
12646
+
description: Identifier for the custom sensitive expression.
12647
+
type: string
12648
+
keyword:
12649
+
description: The keyword to match against.
12650
+
$ref: "#/components/schemas/CustomSensitiveRule"
12651
+
evaluationExpression:
12652
+
description: The expression to evaluate the keyword match.
12653
+
type: string
12540
12654
SensitiveContentOptions:
12541
12655
description: Options for defining sensitive content within scanned documents.
12542
12656
properties:
12543
12657
sensitiveInfoTypes:
12544
-
description: Predefined categories of terms to consider as sensitive content. See https://cloud.google.com/dlp/docs/infotypes-reference for available types.
12658
+
deprecated: true
12659
+
description: DEPRECATED - use 'customSensitiveExpressions' instead.
12545
12660
type: array
12546
12661
items:
12547
12662
$ref: "#/components/schemas/SensitiveInfoType"
12548
12663
sensitiveTerms:
12549
-
description: list of words and phrases to consider as sensitive content
12664
+
deprecated: true
12665
+
description: DEPRECATED - use 'customSensitiveExpressions' instead.
12550
12666
type: array
12551
12667
items:
12552
12668
$ref: "#/components/schemas/SensitiveExpression"
12553
12669
sensitiveRegexes:
12554
-
description: list of regular expressions to consider as sensitive content
12670
+
deprecated: true
12671
+
description: DEPRECATED - use 'customSensitiveExpressions' instead.
12555
12672
type: array
12556
12673
items:
12557
12674
$ref: "#/components/schemas/SensitiveExpression"
12675
+
customSensitiveExpressions:
12676
+
description: list of custom sensitive expressions to consider as sensitive content
0 commit comments