@maxim_mazurok/gapi.client.dlp-v2 0.1.20260105 → 0.1.20260120
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +46 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://dlp.googleapis.com/$discovery/rest?version=v2
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20260120
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -47,6 +47,30 @@ declare namespace gapi.client {
|
|
|
47
47
|
deidentifyDetails?: GooglePrivacyDlpV2DeidentifyDataSourceDetails;
|
|
48
48
|
}
|
|
49
49
|
interface GooglePrivacyDlpV2ActivateJobTriggerRequest {}
|
|
50
|
+
interface GooglePrivacyDlpV2AdjustByImageFindings {
|
|
51
|
+
/** Specifies the required spatial relationship between the bounding boxes of the target finding and the context infoType findings. */
|
|
52
|
+
imageContainmentType?: GooglePrivacyDlpV2ImageContainmentType;
|
|
53
|
+
/** A list of image-supported infoTypes—excluding [document infoTypes](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference#documents)—to be used as context for the adjustment rule. Sensitive Data Protection adjusts the likelihood of an image finding if its bounding box has the specified spatial relationship (defined by `image_containment_type`) with a finding of an infoType in this list. For example, you can create a rule to adjust the likelihood of a `US_PASSPORT` finding if it is enclosed by a finding of `OBJECT_TYPE/PERSON/PASSPORT`. To configure this, set `US_PASSPORT` in `InspectionRuleSet.info_types`. Add an `adjustment_rule` with an `adjust_by_image_findings.info_types` that contains `OBJECT_TYPE/PERSON/PASSPORT` and `image_containment_type` set to `encloses`. In this case, the likelihood of the `US_PASSPORT` finding is adjusted, but the likelihood of the `OBJECT_TYPE/PERSON/PASSPORT` finding is not. */
|
|
54
|
+
infoTypes?: GooglePrivacyDlpV2InfoType[];
|
|
55
|
+
/** Required. Minimum likelihood of the `adjust_by_image_findings.info_types` finding. If the likelihood is lower than this value, Sensitive Data Protection doesn't adjust the likelihood of the `InspectionRuleSet.info_types` finding. */
|
|
56
|
+
minLikelihood?: string;
|
|
57
|
+
}
|
|
58
|
+
interface GooglePrivacyDlpV2AdjustByMatchingInfoTypes {
|
|
59
|
+
/** Sensitive Data Protection adjusts the likelihood of a finding if that finding also matches one of these infoTypes. For example, you can create a rule to adjust the likelihood of a `PHONE_NUMBER` finding if the string is found within a document that is classified as `DOCUMENT_TYPE/HR/RESUME`. To configure this, set `PHONE_NUMBER` in `InspectionRuleSet.info_types`. Add an `adjustment_rule` with an `adjust_by_matching_info_types.info_types` that contains `DOCUMENT_TYPE/HR/RESUME`. In this case, the likelihood of the `PHONE_NUMBER` finding is adjusted, but the likelihood of the `DOCUMENT_TYPE/HR/RESUME` finding is not. */
|
|
60
|
+
infoTypes?: GooglePrivacyDlpV2InfoType[];
|
|
61
|
+
/** How the adjustment rule is applied. Only MATCHING_TYPE_PARTIAL_MATCH is supported: - Partial match: adjusts the findings of infoTypes specified in the inspection rule when they have a nonempty intersection with a finding of an infoType specified in this adjustment rule. */
|
|
62
|
+
matchingType?: string;
|
|
63
|
+
/** Required. Minimum likelihood of the `adjust_by_matching_info_types.info_types` finding. If the likelihood is lower than this value, Sensitive Data Protection doesn't adjust the likelihood of the `InspectionRuleSet.info_types` finding. */
|
|
64
|
+
minLikelihood?: string;
|
|
65
|
+
}
|
|
66
|
+
interface GooglePrivacyDlpV2AdjustmentRule {
|
|
67
|
+
/** AdjustmentRule condition for image findings. */
|
|
68
|
+
adjustByImageFindings?: GooglePrivacyDlpV2AdjustByImageFindings;
|
|
69
|
+
/** Set of infoTypes for which findings would affect this rule. */
|
|
70
|
+
adjustByMatchingInfoTypes?: GooglePrivacyDlpV2AdjustByMatchingInfoTypes;
|
|
71
|
+
/** Likelihood adjustment to apply to the infoType. */
|
|
72
|
+
likelihoodAdjustment?: GooglePrivacyDlpV2LikelihoodAdjustment;
|
|
73
|
+
}
|
|
50
74
|
interface GooglePrivacyDlpV2AllInfoTypes {}
|
|
51
75
|
interface GooglePrivacyDlpV2AllOtherBigQueryTables {}
|
|
52
76
|
interface GooglePrivacyDlpV2AllOtherDatabaseResources {}
|
|
@@ -1031,6 +1055,7 @@ declare namespace gapi.client {
|
|
|
1031
1055
|
/** The collection of signals that influenced selection of the category. */
|
|
1032
1056
|
signals?: string[];
|
|
1033
1057
|
}
|
|
1058
|
+
interface GooglePrivacyDlpV2Encloses {}
|
|
1034
1059
|
interface GooglePrivacyDlpV2EntityId {
|
|
1035
1060
|
/** Composite key indicating which field contains the entity identifier. */
|
|
1036
1061
|
field?: GooglePrivacyDlpV2FieldId;
|
|
@@ -1049,6 +1074,12 @@ declare namespace gapi.client {
|
|
|
1049
1074
|
/** Range of characters within which the entire hotword must reside. The total length of the window cannot exceed 1000 characters. The windowBefore property in proximity should be set to 1 if the hotword needs to be included in a column header. */
|
|
1050
1075
|
proximity?: GooglePrivacyDlpV2Proximity;
|
|
1051
1076
|
}
|
|
1077
|
+
interface GooglePrivacyDlpV2ExcludeByImageFindings {
|
|
1078
|
+
/** Specifies the required spatial relationship between the bounding boxes of the target finding and the context infoType findings. */
|
|
1079
|
+
imageContainmentType?: GooglePrivacyDlpV2ImageContainmentType;
|
|
1080
|
+
/** A list of image-supported infoTypes—excluding [document infoTypes](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference#documents)—to be used as context for the exclusion rule. A finding is excluded if its bounding box has the specified spatial relationship (defined by `image_containment_type`) with a finding of an infoType in this list. For example, if `InspectionRuleSet.info_types` includes `OBJECT_TYPE/PERSON` and this `exclusion_rule` specifies `info_types` as `OBJECT_TYPE/PERSON/PASSPORT` with `image_containment_type` set to `encloses`, then `OBJECT_TYPE/PERSON` findings will be excluded if they are fully contained within the bounding box of an `OBJECT_TYPE/PERSON/PASSPORT` finding. */
|
|
1081
|
+
infoTypes?: GooglePrivacyDlpV2InfoType[];
|
|
1082
|
+
}
|
|
1052
1083
|
interface GooglePrivacyDlpV2ExcludeInfoTypes {
|
|
1053
1084
|
/** InfoType list in ExclusionRule rule drops a finding when it overlaps or contained within with a finding of an infoType from this list. For example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and `exclusion_rule` containing `exclude_info_types.info_types` with "EMAIL_ADDRESS" the phone number findings are dropped if they overlap with EMAIL_ADDRESS finding. That leads to "555-222-2222@example.org" to generate only a single finding, namely email address. */
|
|
1054
1085
|
infoTypes?: GooglePrivacyDlpV2InfoType[];
|
|
@@ -1058,6 +1089,8 @@ declare namespace gapi.client {
|
|
|
1058
1089
|
dictionary?: GooglePrivacyDlpV2Dictionary;
|
|
1059
1090
|
/** Drop if the hotword rule is contained in the proximate context. For tabular data, the context includes the column name. */
|
|
1060
1091
|
excludeByHotword?: GooglePrivacyDlpV2ExcludeByHotword;
|
|
1092
|
+
/** Exclude findings based on image containment rules. For example, exclude an image finding if it overlaps with another image finding. */
|
|
1093
|
+
excludeByImageFindings?: GooglePrivacyDlpV2ExcludeByImageFindings;
|
|
1061
1094
|
/** Set of infoTypes for which findings would affect this rule. */
|
|
1062
1095
|
excludeInfoTypes?: GooglePrivacyDlpV2ExcludeInfoTypes;
|
|
1063
1096
|
/** How the rule is applied, see MatchingType documentation for details. */
|
|
@@ -1242,6 +1275,7 @@ declare namespace gapi.client {
|
|
|
1242
1275
|
/** Required. Upper bound value of buckets. All values greater than upper_bound are grouped together into a single bucket; for example if `upper_bound` = 89, then all values greater than 89 are replaced with the value "89+". */
|
|
1243
1276
|
upperBound?: GooglePrivacyDlpV2Value;
|
|
1244
1277
|
}
|
|
1278
|
+
interface GooglePrivacyDlpV2FullyInside {}
|
|
1245
1279
|
interface GooglePrivacyDlpV2GlobalProcessing {}
|
|
1246
1280
|
interface GooglePrivacyDlpV2HotwordRule {
|
|
1247
1281
|
/** Regular expression pattern defining what qualifies as a hotword. */
|
|
@@ -1296,6 +1330,14 @@ declare namespace gapi.client {
|
|
|
1296
1330
|
/** If the container is a table, additional information to make findings meaningful such as the columns that are primary keys. */
|
|
1297
1331
|
tableOptions?: GooglePrivacyDlpV2TableOptions;
|
|
1298
1332
|
}
|
|
1333
|
+
interface GooglePrivacyDlpV2ImageContainmentType {
|
|
1334
|
+
/** The context finding's bounding box must fully contain the target finding's bounding box. */
|
|
1335
|
+
encloses?: any;
|
|
1336
|
+
/** The context finding's bounding box must be fully inside the target finding's bounding box. */
|
|
1337
|
+
fullyInside?: any;
|
|
1338
|
+
/** The context finding's bounding box and the target finding's bounding box must have a non-zero intersection. */
|
|
1339
|
+
overlaps?: any;
|
|
1340
|
+
}
|
|
1299
1341
|
interface GooglePrivacyDlpV2ImageFallbackLocation {
|
|
1300
1342
|
/** Processing occurs in the global region. */
|
|
1301
1343
|
globalProcessing?: any;
|
|
@@ -1443,6 +1485,8 @@ declare namespace gapi.client {
|
|
|
1443
1485
|
result?: GooglePrivacyDlpV2Result;
|
|
1444
1486
|
}
|
|
1445
1487
|
interface GooglePrivacyDlpV2InspectionRule {
|
|
1488
|
+
/** Adjustment rule. */
|
|
1489
|
+
adjustmentRule?: GooglePrivacyDlpV2AdjustmentRule;
|
|
1446
1490
|
/** Exclusion rule. */
|
|
1447
1491
|
exclusionRule?: GooglePrivacyDlpV2ExclusionRule;
|
|
1448
1492
|
/** Hotword-based detection rule. */
|
|
@@ -1798,6 +1842,7 @@ declare namespace gapi.client {
|
|
|
1798
1842
|
/** Store findings in an existing table or a new table in an existing dataset. If table_id is not set a new one will be generated for you with the following format: dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific time zone will be used for generating the date details. For Inspect, each column in an existing output table must have the same name, type, and mode of a field in the `Finding` object. For Risk, an existing output table should be the output of a previous Risk analysis job run on the same source table, with the same privacy metric and quasi-identifiers. Risk jobs that analyze the same table but compute a different privacy metric, or use different sets of quasi-identifiers, cannot store their results in the same table. */
|
|
1799
1843
|
table?: GooglePrivacyDlpV2BigQueryTable;
|
|
1800
1844
|
}
|
|
1845
|
+
interface GooglePrivacyDlpV2Overlap {}
|
|
1801
1846
|
interface GooglePrivacyDlpV2PartitionId {
|
|
1802
1847
|
/** If not empty, the ID of the namespace to which the entities belong. */
|
|
1803
1848
|
namespaceId?: string;
|