@googleapis/threatintelligence 2.0.0 → 4.0.0
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/CHANGELOG.md +22 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1beta.d.ts +293 -2
- package/build/v1beta.js +32 -0
- package/build/v1beta.js.map +1 -1
- package/package.json +1 -1
- package/v1beta.ts +385 -32
package/v1beta.ts
CHANGED
|
@@ -129,7 +129,7 @@ export namespace threatintelligence_v1beta {
|
|
|
129
129
|
*/
|
|
130
130
|
export interface Schema$Alert {
|
|
131
131
|
/**
|
|
132
|
-
* Optional. AI summary of the
|
|
132
|
+
* Optional. AI summary of the alert.
|
|
133
133
|
*/
|
|
134
134
|
aiSummary?: string | null;
|
|
135
135
|
/**
|
|
@@ -213,13 +213,17 @@ export namespace threatintelligence_v1beta {
|
|
|
213
213
|
* Insider Threat alert detail type.
|
|
214
214
|
*/
|
|
215
215
|
insiderThreat?: Schema$InsiderThreatAlertDetail;
|
|
216
|
+
/**
|
|
217
|
+
* Technology Watchlist alert detail type.
|
|
218
|
+
*/
|
|
219
|
+
targetTechnology?: Schema$TargetTechnologyAlertDetail;
|
|
216
220
|
}
|
|
217
221
|
/**
|
|
218
222
|
* A document that is associated with an alert.
|
|
219
223
|
*/
|
|
220
224
|
export interface Schema$AlertDocument {
|
|
221
225
|
/**
|
|
222
|
-
* Output only. AI summary of the
|
|
226
|
+
* Output only. AI summary of the document.
|
|
223
227
|
*/
|
|
224
228
|
aiSummary?: string | null;
|
|
225
229
|
/**
|
|
@@ -284,6 +288,19 @@ export namespace threatintelligence_v1beta {
|
|
|
284
288
|
*/
|
|
285
289
|
translatedTitle?: string | null;
|
|
286
290
|
}
|
|
291
|
+
/**
|
|
292
|
+
* Represents an association with a vulnerability.
|
|
293
|
+
*/
|
|
294
|
+
export interface Schema$Association {
|
|
295
|
+
/**
|
|
296
|
+
* Required. The ID of the association.
|
|
297
|
+
*/
|
|
298
|
+
id?: string | null;
|
|
299
|
+
/**
|
|
300
|
+
* Required. The type of the association.
|
|
301
|
+
*/
|
|
302
|
+
type?: string | null;
|
|
303
|
+
}
|
|
287
304
|
/**
|
|
288
305
|
* Tracks basic CRUD facts.
|
|
289
306
|
*/
|
|
@@ -325,6 +342,10 @@ export namespace threatintelligence_v1beta {
|
|
|
325
342
|
* Output only. Human readable name for the configuration.
|
|
326
343
|
*/
|
|
327
344
|
displayName?: string | null;
|
|
345
|
+
/**
|
|
346
|
+
* If included when updating a configuration, this should be set to the current etag of the configuration. If the etags do not match, the update will be rejected and an ABORTED error will be returned.
|
|
347
|
+
*/
|
|
348
|
+
etag?: string | null;
|
|
328
349
|
/**
|
|
329
350
|
* Identifier. Server generated name for the configuration. format is projects/{project\}/configurations/{configuration\}
|
|
330
351
|
*/
|
|
@@ -354,6 +375,10 @@ export namespace threatintelligence_v1beta {
|
|
|
354
375
|
* Output only. Name of the detail type. Will be set by the server during creation to the name of the field that is set in the detail union.
|
|
355
376
|
*/
|
|
356
377
|
detailType?: string | null;
|
|
378
|
+
/**
|
|
379
|
+
* Technology Watchlist detail config.
|
|
380
|
+
*/
|
|
381
|
+
technologyWatchlist?: Schema$TechnologyWatchListConfig;
|
|
357
382
|
}
|
|
358
383
|
/**
|
|
359
384
|
* A ConfigurationRevision is a snapshot of a Configuration at a point in time. It is immutable.
|
|
@@ -823,6 +848,10 @@ export namespace threatintelligence_v1beta {
|
|
|
823
848
|
* Insider Threat finding detail type.
|
|
824
849
|
*/
|
|
825
850
|
insiderThreat?: Schema$InsiderThreatFindingDetail;
|
|
851
|
+
/**
|
|
852
|
+
* Technology Watchlist finding detail type.
|
|
853
|
+
*/
|
|
854
|
+
targetTechnology?: Schema$TargetTechnologyFindingDetail;
|
|
826
855
|
}
|
|
827
856
|
/**
|
|
828
857
|
* Request message for GenerateOrgProfileConfiguration.
|
|
@@ -1032,6 +1061,56 @@ export namespace threatintelligence_v1beta {
|
|
|
1032
1061
|
*/
|
|
1033
1062
|
reasoning?: string | null;
|
|
1034
1063
|
}
|
|
1064
|
+
/**
|
|
1065
|
+
* Contains details about a product fix.
|
|
1066
|
+
*/
|
|
1067
|
+
export interface Schema$ProductFix {
|
|
1068
|
+
/**
|
|
1069
|
+
* Required. The name of the fix. Ex: "Magento".
|
|
1070
|
+
*/
|
|
1071
|
+
displayName?: string | null;
|
|
1072
|
+
/**
|
|
1073
|
+
* Optional. The published time of the fix.
|
|
1074
|
+
*/
|
|
1075
|
+
publishTime?: string | null;
|
|
1076
|
+
/**
|
|
1077
|
+
* Required. The source ID of the fix. Ex: "APPSEC-1420".
|
|
1078
|
+
*/
|
|
1079
|
+
sourceId?: string | null;
|
|
1080
|
+
/**
|
|
1081
|
+
* Optional. The URI of the fix.
|
|
1082
|
+
*/
|
|
1083
|
+
uri?: string | null;
|
|
1084
|
+
}
|
|
1085
|
+
/**
|
|
1086
|
+
* Contains details about a public exploit.
|
|
1087
|
+
*/
|
|
1088
|
+
export interface Schema$PublicExploit {
|
|
1089
|
+
/**
|
|
1090
|
+
* Optional. The grade of the exploit. Ex: "non-weaponized".
|
|
1091
|
+
*/
|
|
1092
|
+
exploitGrade?: string | null;
|
|
1093
|
+
/**
|
|
1094
|
+
* Required. The name of the exploit. Ex: "Magentounauth.php.txt".
|
|
1095
|
+
*/
|
|
1096
|
+
exploitName?: string | null;
|
|
1097
|
+
/**
|
|
1098
|
+
* Optional. The reliability of the exploit. Ex: "Unreviewed".
|
|
1099
|
+
*/
|
|
1100
|
+
exploitReliability?: string | null;
|
|
1101
|
+
/**
|
|
1102
|
+
* Optional. The release time of the exploit.
|
|
1103
|
+
*/
|
|
1104
|
+
releaseTime?: string | null;
|
|
1105
|
+
/**
|
|
1106
|
+
* Optional. The size of the exploit.
|
|
1107
|
+
*/
|
|
1108
|
+
sizeBytes?: string | null;
|
|
1109
|
+
/**
|
|
1110
|
+
* Optional. The URI of the exploit.
|
|
1111
|
+
*/
|
|
1112
|
+
uri?: string | null;
|
|
1113
|
+
}
|
|
1035
1114
|
/**
|
|
1036
1115
|
* Structured relevance analysis for a threat.
|
|
1037
1116
|
*/
|
|
@@ -1104,6 +1183,62 @@ export namespace threatintelligence_v1beta {
|
|
|
1104
1183
|
*/
|
|
1105
1184
|
message?: string | null;
|
|
1106
1185
|
}
|
|
1186
|
+
/**
|
|
1187
|
+
* Contains details for a technology watchlist alert.
|
|
1188
|
+
*/
|
|
1189
|
+
export interface Schema$TargetTechnologyAlertDetail {
|
|
1190
|
+
/**
|
|
1191
|
+
* Optional. The vulnerability match details.
|
|
1192
|
+
*/
|
|
1193
|
+
vulnerabilityMatch?: Schema$VulnerabilityMatch;
|
|
1194
|
+
}
|
|
1195
|
+
/**
|
|
1196
|
+
* Contains details for a technology watchlist finding.
|
|
1197
|
+
*/
|
|
1198
|
+
export interface Schema$TargetTechnologyFindingDetail {
|
|
1199
|
+
/**
|
|
1200
|
+
* Optional. The vulnerability match details.
|
|
1201
|
+
*/
|
|
1202
|
+
vulnerabilityMatch?: Schema$VulnerabilityMatch;
|
|
1203
|
+
}
|
|
1204
|
+
/**
|
|
1205
|
+
* TechnologyWatchListAlertThreshold contains the thresholds for alerting.
|
|
1206
|
+
*/
|
|
1207
|
+
export interface Schema$TechnologyWatchListAlertThreshold {
|
|
1208
|
+
/**
|
|
1209
|
+
* Optional. The minimum CVSS score for the alert. Evaluates to CVSS v3 when available with a fallback to v2 and v4. Ex: 7.0. Valid range is [0.0, 10.0].
|
|
1210
|
+
*/
|
|
1211
|
+
cvssScoreMinimum?: number | null;
|
|
1212
|
+
/**
|
|
1213
|
+
* Optional. The minimum epss score for the alert. Ex: 0.8. Valid range is [0.0, 1.0].
|
|
1214
|
+
*/
|
|
1215
|
+
epssScoreMinimum?: number | null;
|
|
1216
|
+
/**
|
|
1217
|
+
* Optional. The exploitation states of the alert.
|
|
1218
|
+
*/
|
|
1219
|
+
exploitationStates?: string[] | null;
|
|
1220
|
+
/**
|
|
1221
|
+
* Optional. The minimum priority for the alert.
|
|
1222
|
+
*/
|
|
1223
|
+
priorityMinimum?: string | null;
|
|
1224
|
+
/**
|
|
1225
|
+
* Optional. The minimum risk rating for the alert.
|
|
1226
|
+
*/
|
|
1227
|
+
riskRatingMinimum?: string | null;
|
|
1228
|
+
}
|
|
1229
|
+
/**
|
|
1230
|
+
* TechnologyWatchListConfig is the configuration for the technology watchlist.
|
|
1231
|
+
*/
|
|
1232
|
+
export interface Schema$TechnologyWatchListConfig {
|
|
1233
|
+
/**
|
|
1234
|
+
* Optional. Alert thresholds to effectively reduce noise.
|
|
1235
|
+
*/
|
|
1236
|
+
alertThreshold?: Schema$TechnologyWatchListAlertThreshold;
|
|
1237
|
+
/**
|
|
1238
|
+
* Optional. List of vendor, technology or cpe fingerprint. example: Microsoft office 360 Apache Server 3.5 cpe:2.3:a:microsoft:outlook:*:*:*:*:*:*:*:*
|
|
1239
|
+
*/
|
|
1240
|
+
technologies?: string[] | null;
|
|
1241
|
+
}
|
|
1107
1242
|
/**
|
|
1108
1243
|
* Response message for UpsertConfiguration.
|
|
1109
1244
|
*/
|
|
@@ -1113,6 +1248,79 @@ export namespace threatintelligence_v1beta {
|
|
|
1113
1248
|
*/
|
|
1114
1249
|
configuration?: string | null;
|
|
1115
1250
|
}
|
|
1251
|
+
/**
|
|
1252
|
+
* Contains details about a vulnerability match.
|
|
1253
|
+
*/
|
|
1254
|
+
export interface Schema$VulnerabilityMatch {
|
|
1255
|
+
/**
|
|
1256
|
+
* Optional. Associated threat actors, malware, etc. This is embedded as a snapshot because the details of the association at the time of the vulnerability match are important for context and reporting.
|
|
1257
|
+
*/
|
|
1258
|
+
associations?: Schema$Association[];
|
|
1259
|
+
/**
|
|
1260
|
+
* Required. The collection ID of the vulnerability. Ex: "vulnerability--cve-2025-9876".
|
|
1261
|
+
*/
|
|
1262
|
+
collectionId?: string | null;
|
|
1263
|
+
/**
|
|
1264
|
+
* Required. The CVE ID of the vulnerability. Ex: "CVE-2025-9876". See https://www.cve.org/ for more information.
|
|
1265
|
+
*/
|
|
1266
|
+
cveId?: string | null;
|
|
1267
|
+
/**
|
|
1268
|
+
* Required. The CVSS score of the vulnerability. Evaluates to CVSS v3 when available with a fallback to v2 and v4. Example: 6.4.
|
|
1269
|
+
*/
|
|
1270
|
+
cvss3Score?: number | null;
|
|
1271
|
+
/**
|
|
1272
|
+
* Required. A description of the vulnerability.
|
|
1273
|
+
*/
|
|
1274
|
+
description?: string | null;
|
|
1275
|
+
/**
|
|
1276
|
+
* Optional. The disclosure time of the vulnerability.
|
|
1277
|
+
*/
|
|
1278
|
+
disclosureTime?: string | null;
|
|
1279
|
+
/**
|
|
1280
|
+
* Optional. The EPSS score, representing the probability of exploitation. Example: 0.87.
|
|
1281
|
+
*/
|
|
1282
|
+
epssScore?: number | null;
|
|
1283
|
+
/**
|
|
1284
|
+
* Optional. List of exploitation consequences for the vulnerability.
|
|
1285
|
+
*/
|
|
1286
|
+
exploitationConsequences?: string[] | null;
|
|
1287
|
+
/**
|
|
1288
|
+
* Required. The exploitation state of the vulnerability.
|
|
1289
|
+
*/
|
|
1290
|
+
exploitationState?: string | null;
|
|
1291
|
+
/**
|
|
1292
|
+
* Optional. List of exploitation vectors for the vulnerability.
|
|
1293
|
+
*/
|
|
1294
|
+
exploitationVectors?: string[] | null;
|
|
1295
|
+
/**
|
|
1296
|
+
* Optional. The specific technologies from the configured watchlist that triggered the match. Ex: "Apache Struts".
|
|
1297
|
+
*/
|
|
1298
|
+
matchedTechnologies?: string[] | null;
|
|
1299
|
+
/**
|
|
1300
|
+
* Optional. The priority level of the vulnerability data. Ex: "P1".
|
|
1301
|
+
*/
|
|
1302
|
+
priority?: string | null;
|
|
1303
|
+
/**
|
|
1304
|
+
* Optional. List of product fixes for the vulnerability.
|
|
1305
|
+
*/
|
|
1306
|
+
productFixes?: Schema$ProductFix[];
|
|
1307
|
+
/**
|
|
1308
|
+
* Optional. List of public exploits.
|
|
1309
|
+
*/
|
|
1310
|
+
publicExploits?: Schema$PublicExploit[];
|
|
1311
|
+
/**
|
|
1312
|
+
* Output only. Whether a publicly available exploit exists.
|
|
1313
|
+
*/
|
|
1314
|
+
publiclyAvailableExploit?: boolean | null;
|
|
1315
|
+
/**
|
|
1316
|
+
* Required. The risk rating of the vulnerability.
|
|
1317
|
+
*/
|
|
1318
|
+
riskRating?: string | null;
|
|
1319
|
+
/**
|
|
1320
|
+
* Required. All technologies affected by the vulnerability. Ex: "Apache Struts".
|
|
1321
|
+
*/
|
|
1322
|
+
technologies?: string[] | null;
|
|
1323
|
+
}
|
|
1116
1324
|
|
|
1117
1325
|
export class Resource$Projects {
|
|
1118
1326
|
context: APIRequestContext;
|
|
@@ -1227,8 +1435,7 @@ export namespace threatintelligence_v1beta {
|
|
|
1227
1435
|
| BodyResponseCallback<Schema$Operation>
|
|
1228
1436
|
| BodyResponseCallback<Readable>,
|
|
1229
1437
|
callback?:
|
|
1230
|
-
|
|
1231
|
-
| BodyResponseCallback<Readable>
|
|
1438
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
1232
1439
|
):
|
|
1233
1440
|
| void
|
|
1234
1441
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -1407,8 +1614,7 @@ export namespace threatintelligence_v1beta {
|
|
|
1407
1614
|
| BodyResponseCallback<Schema$Alert>
|
|
1408
1615
|
| BodyResponseCallback<Readable>,
|
|
1409
1616
|
callback?:
|
|
1410
|
-
|
|
1411
|
-
| BodyResponseCallback<Readable>
|
|
1617
|
+
BodyResponseCallback<Schema$Alert> | BodyResponseCallback<Readable>
|
|
1412
1618
|
):
|
|
1413
1619
|
| void
|
|
1414
1620
|
| Promise<GaxiosResponseWithHTTP2<Schema$Alert>>
|
|
@@ -1568,8 +1774,7 @@ export namespace threatintelligence_v1beta {
|
|
|
1568
1774
|
| BodyResponseCallback<Schema$Alert>
|
|
1569
1775
|
| BodyResponseCallback<Readable>,
|
|
1570
1776
|
callback?:
|
|
1571
|
-
|
|
1572
|
-
| BodyResponseCallback<Readable>
|
|
1777
|
+
BodyResponseCallback<Schema$Alert> | BodyResponseCallback<Readable>
|
|
1573
1778
|
):
|
|
1574
1779
|
| void
|
|
1575
1780
|
| Promise<GaxiosResponseWithHTTP2<Schema$Alert>>
|
|
@@ -1873,8 +2078,7 @@ export namespace threatintelligence_v1beta {
|
|
|
1873
2078
|
| BodyResponseCallback<Schema$Alert>
|
|
1874
2079
|
| BodyResponseCallback<Readable>,
|
|
1875
2080
|
callback?:
|
|
1876
|
-
|
|
1877
|
-
| BodyResponseCallback<Readable>
|
|
2081
|
+
BodyResponseCallback<Schema$Alert> | BodyResponseCallback<Readable>
|
|
1878
2082
|
):
|
|
1879
2083
|
| void
|
|
1880
2084
|
| Promise<GaxiosResponseWithHTTP2<Schema$Alert>>
|
|
@@ -2032,8 +2236,7 @@ export namespace threatintelligence_v1beta {
|
|
|
2032
2236
|
| BodyResponseCallback<Schema$Alert>
|
|
2033
2237
|
| BodyResponseCallback<Readable>,
|
|
2034
2238
|
callback?:
|
|
2035
|
-
|
|
2036
|
-
| BodyResponseCallback<Readable>
|
|
2239
|
+
BodyResponseCallback<Schema$Alert> | BodyResponseCallback<Readable>
|
|
2037
2240
|
):
|
|
2038
2241
|
| void
|
|
2039
2242
|
| Promise<GaxiosResponseWithHTTP2<Schema$Alert>>
|
|
@@ -2185,8 +2388,7 @@ export namespace threatintelligence_v1beta {
|
|
|
2185
2388
|
| BodyResponseCallback<Schema$Alert>
|
|
2186
2389
|
| BodyResponseCallback<Readable>,
|
|
2187
2390
|
callback?:
|
|
2188
|
-
|
|
2189
|
-
| BodyResponseCallback<Readable>
|
|
2391
|
+
BodyResponseCallback<Schema$Alert> | BodyResponseCallback<Readable>
|
|
2190
2392
|
):
|
|
2191
2393
|
| void
|
|
2192
2394
|
| Promise<GaxiosResponseWithHTTP2<Schema$Alert>>
|
|
@@ -2232,6 +2434,158 @@ export namespace threatintelligence_v1beta {
|
|
|
2232
2434
|
}
|
|
2233
2435
|
}
|
|
2234
2436
|
|
|
2437
|
+
/**
|
|
2438
|
+
* Get the decrypted password of an alert.
|
|
2439
|
+
* @example
|
|
2440
|
+
* ```js
|
|
2441
|
+
* // Before running the sample:
|
|
2442
|
+
* // - Enable the API at:
|
|
2443
|
+
* // https://console.developers.google.com/apis/api/threatintelligence.googleapis.com
|
|
2444
|
+
* // - Login into gcloud by running:
|
|
2445
|
+
* // ```sh
|
|
2446
|
+
* // $ gcloud auth application-default login
|
|
2447
|
+
* // ```
|
|
2448
|
+
* // - Install the npm module by running:
|
|
2449
|
+
* // ```sh
|
|
2450
|
+
* // $ npm install googleapis
|
|
2451
|
+
* // ```
|
|
2452
|
+
*
|
|
2453
|
+
* const {google} = require('googleapis');
|
|
2454
|
+
* const threatintelligence = google.threatintelligence('v1beta');
|
|
2455
|
+
*
|
|
2456
|
+
* async function main() {
|
|
2457
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2458
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2459
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
2460
|
+
* });
|
|
2461
|
+
*
|
|
2462
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2463
|
+
* const authClient = await auth.getClient();
|
|
2464
|
+
* google.options({auth: authClient});
|
|
2465
|
+
*
|
|
2466
|
+
* // Do the magic
|
|
2467
|
+
* const res = await threatintelligence.projects.alerts.getPassword({
|
|
2468
|
+
* // Required. Name of the alert to get. Format: projects/{project\}/alerts/{alert\}
|
|
2469
|
+
* name: 'projects/my-project/alerts/my-alert',
|
|
2470
|
+
* });
|
|
2471
|
+
* console.log(res.data);
|
|
2472
|
+
*
|
|
2473
|
+
* // Example response
|
|
2474
|
+
* // {
|
|
2475
|
+
* // "aiSummary": "my_aiSummary",
|
|
2476
|
+
* // "audit": {},
|
|
2477
|
+
* // "configurations": [],
|
|
2478
|
+
* // "detail": {},
|
|
2479
|
+
* // "displayName": "my_displayName",
|
|
2480
|
+
* // "duplicateOf": "my_duplicateOf",
|
|
2481
|
+
* // "duplicatedBy": [],
|
|
2482
|
+
* // "etag": "my_etag",
|
|
2483
|
+
* // "externalId": "my_externalId",
|
|
2484
|
+
* // "findingCount": "my_findingCount",
|
|
2485
|
+
* // "findings": [],
|
|
2486
|
+
* // "name": "my_name",
|
|
2487
|
+
* // "priorityAnalysis": {},
|
|
2488
|
+
* // "relevanceAnalysis": {},
|
|
2489
|
+
* // "severityAnalysis": {},
|
|
2490
|
+
* // "state": "my_state"
|
|
2491
|
+
* // }
|
|
2492
|
+
* }
|
|
2493
|
+
*
|
|
2494
|
+
* main().catch(e => {
|
|
2495
|
+
* console.error(e);
|
|
2496
|
+
* throw e;
|
|
2497
|
+
* });
|
|
2498
|
+
*
|
|
2499
|
+
* ```
|
|
2500
|
+
*
|
|
2501
|
+
* @param params - Parameters for request
|
|
2502
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2503
|
+
* @param callback - Optional callback that handles the response.
|
|
2504
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2505
|
+
*/
|
|
2506
|
+
getPassword(
|
|
2507
|
+
params: Params$Resource$Projects$Alerts$Getpassword,
|
|
2508
|
+
options: StreamMethodOptions
|
|
2509
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2510
|
+
getPassword(
|
|
2511
|
+
params?: Params$Resource$Projects$Alerts$Getpassword,
|
|
2512
|
+
options?: MethodOptions
|
|
2513
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Alert>>;
|
|
2514
|
+
getPassword(
|
|
2515
|
+
params: Params$Resource$Projects$Alerts$Getpassword,
|
|
2516
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
2517
|
+
callback: BodyResponseCallback<Readable>
|
|
2518
|
+
): void;
|
|
2519
|
+
getPassword(
|
|
2520
|
+
params: Params$Resource$Projects$Alerts$Getpassword,
|
|
2521
|
+
options: MethodOptions | BodyResponseCallback<Schema$Alert>,
|
|
2522
|
+
callback: BodyResponseCallback<Schema$Alert>
|
|
2523
|
+
): void;
|
|
2524
|
+
getPassword(
|
|
2525
|
+
params: Params$Resource$Projects$Alerts$Getpassword,
|
|
2526
|
+
callback: BodyResponseCallback<Schema$Alert>
|
|
2527
|
+
): void;
|
|
2528
|
+
getPassword(callback: BodyResponseCallback<Schema$Alert>): void;
|
|
2529
|
+
getPassword(
|
|
2530
|
+
paramsOrCallback?:
|
|
2531
|
+
| Params$Resource$Projects$Alerts$Getpassword
|
|
2532
|
+
| BodyResponseCallback<Schema$Alert>
|
|
2533
|
+
| BodyResponseCallback<Readable>,
|
|
2534
|
+
optionsOrCallback?:
|
|
2535
|
+
| MethodOptions
|
|
2536
|
+
| StreamMethodOptions
|
|
2537
|
+
| BodyResponseCallback<Schema$Alert>
|
|
2538
|
+
| BodyResponseCallback<Readable>,
|
|
2539
|
+
callback?:
|
|
2540
|
+
BodyResponseCallback<Schema$Alert> | BodyResponseCallback<Readable>
|
|
2541
|
+
):
|
|
2542
|
+
| void
|
|
2543
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Alert>>
|
|
2544
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
2545
|
+
let params = (paramsOrCallback ||
|
|
2546
|
+
{}) as Params$Resource$Projects$Alerts$Getpassword;
|
|
2547
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
2548
|
+
|
|
2549
|
+
if (typeof paramsOrCallback === 'function') {
|
|
2550
|
+
callback = paramsOrCallback;
|
|
2551
|
+
params = {} as Params$Resource$Projects$Alerts$Getpassword;
|
|
2552
|
+
options = {};
|
|
2553
|
+
}
|
|
2554
|
+
|
|
2555
|
+
if (typeof optionsOrCallback === 'function') {
|
|
2556
|
+
callback = optionsOrCallback;
|
|
2557
|
+
options = {};
|
|
2558
|
+
}
|
|
2559
|
+
|
|
2560
|
+
const rootUrl =
|
|
2561
|
+
options.rootUrl || 'https://threatintelligence.googleapis.com/';
|
|
2562
|
+
const parameters = {
|
|
2563
|
+
options: Object.assign(
|
|
2564
|
+
{
|
|
2565
|
+
url: (rootUrl + '/v1beta/{+name}:getPassword').replace(
|
|
2566
|
+
/([^:]\/)\/+/g,
|
|
2567
|
+
'$1'
|
|
2568
|
+
),
|
|
2569
|
+
method: 'GET',
|
|
2570
|
+
apiVersion: '',
|
|
2571
|
+
},
|
|
2572
|
+
options
|
|
2573
|
+
),
|
|
2574
|
+
params,
|
|
2575
|
+
requiredParams: ['name'],
|
|
2576
|
+
pathParams: ['name'],
|
|
2577
|
+
context: this.context,
|
|
2578
|
+
};
|
|
2579
|
+
if (callback) {
|
|
2580
|
+
createAPIRequest<Schema$Alert>(
|
|
2581
|
+
parameters,
|
|
2582
|
+
callback as BodyResponseCallback<unknown>
|
|
2583
|
+
);
|
|
2584
|
+
} else {
|
|
2585
|
+
return createAPIRequest<Schema$Alert>(parameters);
|
|
2586
|
+
}
|
|
2587
|
+
}
|
|
2588
|
+
|
|
2235
2589
|
/**
|
|
2236
2590
|
* Get a list of alerts that meet the filter criteria.
|
|
2237
2591
|
* @example
|
|
@@ -2488,8 +2842,7 @@ export namespace threatintelligence_v1beta {
|
|
|
2488
2842
|
| BodyResponseCallback<Schema$Alert>
|
|
2489
2843
|
| BodyResponseCallback<Readable>,
|
|
2490
2844
|
callback?:
|
|
2491
|
-
|
|
2492
|
-
| BodyResponseCallback<Readable>
|
|
2845
|
+
BodyResponseCallback<Schema$Alert> | BodyResponseCallback<Readable>
|
|
2493
2846
|
):
|
|
2494
2847
|
| void
|
|
2495
2848
|
| Promise<GaxiosResponseWithHTTP2<Schema$Alert>>
|
|
@@ -2647,8 +3000,7 @@ export namespace threatintelligence_v1beta {
|
|
|
2647
3000
|
| BodyResponseCallback<Schema$Alert>
|
|
2648
3001
|
| BodyResponseCallback<Readable>,
|
|
2649
3002
|
callback?:
|
|
2650
|
-
|
|
2651
|
-
| BodyResponseCallback<Readable>
|
|
3003
|
+
BodyResponseCallback<Schema$Alert> | BodyResponseCallback<Readable>
|
|
2652
3004
|
):
|
|
2653
3005
|
| void
|
|
2654
3006
|
| Promise<GaxiosResponseWithHTTP2<Schema$Alert>>
|
|
@@ -2806,8 +3158,7 @@ export namespace threatintelligence_v1beta {
|
|
|
2806
3158
|
| BodyResponseCallback<Schema$Alert>
|
|
2807
3159
|
| BodyResponseCallback<Readable>,
|
|
2808
3160
|
callback?:
|
|
2809
|
-
|
|
2810
|
-
| BodyResponseCallback<Readable>
|
|
3161
|
+
BodyResponseCallback<Schema$Alert> | BodyResponseCallback<Readable>
|
|
2811
3162
|
):
|
|
2812
3163
|
| void
|
|
2813
3164
|
| Promise<GaxiosResponseWithHTTP2<Schema$Alert>>
|
|
@@ -2965,8 +3316,7 @@ export namespace threatintelligence_v1beta {
|
|
|
2965
3316
|
| BodyResponseCallback<Schema$Alert>
|
|
2966
3317
|
| BodyResponseCallback<Readable>,
|
|
2967
3318
|
callback?:
|
|
2968
|
-
|
|
2969
|
-
| BodyResponseCallback<Readable>
|
|
3319
|
+
BodyResponseCallback<Schema$Alert> | BodyResponseCallback<Readable>
|
|
2970
3320
|
):
|
|
2971
3321
|
| void
|
|
2972
3322
|
| Promise<GaxiosResponseWithHTTP2<Schema$Alert>>
|
|
@@ -3124,8 +3474,7 @@ export namespace threatintelligence_v1beta {
|
|
|
3124
3474
|
| BodyResponseCallback<Schema$Alert>
|
|
3125
3475
|
| BodyResponseCallback<Readable>,
|
|
3126
3476
|
callback?:
|
|
3127
|
-
|
|
3128
|
-
| BodyResponseCallback<Readable>
|
|
3477
|
+
BodyResponseCallback<Schema$Alert> | BodyResponseCallback<Readable>
|
|
3129
3478
|
):
|
|
3130
3479
|
| void
|
|
3131
3480
|
| Promise<GaxiosResponseWithHTTP2<Schema$Alert>>
|
|
@@ -3235,6 +3584,12 @@ export namespace threatintelligence_v1beta {
|
|
|
3235
3584
|
*/
|
|
3236
3585
|
name?: string;
|
|
3237
3586
|
}
|
|
3587
|
+
export interface Params$Resource$Projects$Alerts$Getpassword extends StandardParameters {
|
|
3588
|
+
/**
|
|
3589
|
+
* Required. Name of the alert to get. Format: projects/{project\}/alerts/{alert\}
|
|
3590
|
+
*/
|
|
3591
|
+
name?: string;
|
|
3592
|
+
}
|
|
3238
3593
|
export interface Params$Resource$Projects$Alerts$List extends StandardParameters {
|
|
3239
3594
|
/**
|
|
3240
3595
|
* Optional. Filter criteria. Supported fields for filtering include: * `audit.create_time` * `audit.creator` * `audit.update_time` * `audit.updater` * `detail.data_leak.discovery_document_ids` * `detail.data_leak.severity` * `detail.detail_type` * `detail.initial_access_broker.discovery_document_ids` * `detail.initial_access_broker.severity` * `detail.insider_threat.discovery_document_ids` * `detail.insider_threat.severity` * `finding_count` * `priority_analysis.priority_level` * `relevance_analysis.confidence` * `relevance_analysis.relevance_level` * `relevance_analysis.relevant` * `severity_analysis.severity_level` * `state` Examples: * `detail.detail_type = "initial_access_broker"` * `detail.detail_type != "data_leak"` * `detail.insider_threat.severity = "HIGH"` * `audit.create_time \>= "2026-04-03T00:00:00Z" AND audit.create_time < "2026-04-06T00:00:00Z"` * `state = "NEW" OR state = "TRIAGED"` * `severity_analysis.severity_level = "SEVERITY_LEVEL_CRITICAL"`
|
|
@@ -3526,6 +3881,7 @@ export namespace threatintelligence_v1beta {
|
|
|
3526
3881
|
* // "description": "my_description",
|
|
3527
3882
|
* // "detail": {},
|
|
3528
3883
|
* // "displayName": "my_displayName",
|
|
3884
|
+
* // "etag": "my_etag",
|
|
3529
3885
|
* // "name": "my_name",
|
|
3530
3886
|
* // "provider": "my_provider",
|
|
3531
3887
|
* // "state": "my_state",
|
|
@@ -3705,8 +4061,7 @@ export namespace threatintelligence_v1beta {
|
|
|
3705
4061
|
list(
|
|
3706
4062
|
params: Params$Resource$Projects$Configurations$List,
|
|
3707
4063
|
options:
|
|
3708
|
-
|
|
|
3709
|
-
| BodyResponseCallback<Schema$ListConfigurationsResponse>,
|
|
4064
|
+
MethodOptions | BodyResponseCallback<Schema$ListConfigurationsResponse>,
|
|
3710
4065
|
callback: BodyResponseCallback<Schema$ListConfigurationsResponse>
|
|
3711
4066
|
): void;
|
|
3712
4067
|
list(
|
|
@@ -3821,6 +4176,7 @@ export namespace threatintelligence_v1beta {
|
|
|
3821
4176
|
* // "description": "my_description",
|
|
3822
4177
|
* // "detail": {},
|
|
3823
4178
|
* // "displayName": "my_displayName",
|
|
4179
|
+
* // "etag": "my_etag",
|
|
3824
4180
|
* // "name": "my_name",
|
|
3825
4181
|
* // "provider": "my_provider",
|
|
3826
4182
|
* // "state": "my_state",
|
|
@@ -4273,8 +4629,7 @@ export namespace threatintelligence_v1beta {
|
|
|
4273
4629
|
| BodyResponseCallback<Schema$Finding>
|
|
4274
4630
|
| BodyResponseCallback<Readable>,
|
|
4275
4631
|
callback?:
|
|
4276
|
-
|
|
4277
|
-
| BodyResponseCallback<Readable>
|
|
4632
|
+
BodyResponseCallback<Schema$Finding> | BodyResponseCallback<Readable>
|
|
4278
4633
|
):
|
|
4279
4634
|
| void
|
|
4280
4635
|
| Promise<GaxiosResponseWithHTTP2<Schema$Finding>>
|
|
@@ -4399,8 +4754,7 @@ export namespace threatintelligence_v1beta {
|
|
|
4399
4754
|
list(
|
|
4400
4755
|
params: Params$Resource$Projects$Findings$List,
|
|
4401
4756
|
options:
|
|
4402
|
-
|
|
|
4403
|
-
| BodyResponseCallback<Schema$ListFindingsResponse>,
|
|
4757
|
+
MethodOptions | BodyResponseCallback<Schema$ListFindingsResponse>,
|
|
4404
4758
|
callback: BodyResponseCallback<Schema$ListFindingsResponse>
|
|
4405
4759
|
): void;
|
|
4406
4760
|
list(
|
|
@@ -4548,8 +4902,7 @@ export namespace threatintelligence_v1beta {
|
|
|
4548
4902
|
search(
|
|
4549
4903
|
params: Params$Resource$Projects$Findings$Search,
|
|
4550
4904
|
options:
|
|
4551
|
-
|
|
|
4552
|
-
| BodyResponseCallback<Schema$SearchFindingsResponse>,
|
|
4905
|
+
MethodOptions | BodyResponseCallback<Schema$SearchFindingsResponse>,
|
|
4553
4906
|
callback: BodyResponseCallback<Schema$SearchFindingsResponse>
|
|
4554
4907
|
): void;
|
|
4555
4908
|
search(
|