@maxim_mazurok/gapi.client.securitycenter-v1beta1 0.0.20230721 → 0.0.20230803
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 +68 -4
- package/package.json +2 -2
- package/tests.ts +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://securitycenter.googleapis.com/$discovery/rest?version=v1beta1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230803
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -129,6 +129,29 @@ declare namespace gapi.client {
|
|
|
129
129
|
projectIds?:
|
|
130
130
|
string[];
|
|
131
131
|
}
|
|
132
|
+
interface AttackExposure {
|
|
133
|
+
/** The resource name of the attack path simulation result that contains the details regarding this attack exposure score. Example: organizations/123/attackExposureResults/456 */
|
|
134
|
+
attackExposureResult?:
|
|
135
|
+
string;
|
|
136
|
+
/** The number of high value resources that are exposed as a result of this finding. */
|
|
137
|
+
exposedHighValueResourcesCount?:
|
|
138
|
+
number;
|
|
139
|
+
/** The number of high value resources that are exposed as a result of this finding. */
|
|
140
|
+
exposedLowValueResourcesCount?:
|
|
141
|
+
number;
|
|
142
|
+
/** The number of medium value resources that are exposed as a result of this finding. */
|
|
143
|
+
exposedMediumValueResourcesCount?:
|
|
144
|
+
number;
|
|
145
|
+
/** The most recent time the attack exposure was updated on this finding. */
|
|
146
|
+
latestCalculationTime?:
|
|
147
|
+
string;
|
|
148
|
+
/** A number between 0 (inclusive) and infinity that represents how important this finding is to remediate. The higher the score, the more important it is to remediate. */
|
|
149
|
+
score?:
|
|
150
|
+
number;
|
|
151
|
+
/** What state this AttackExposure is in. This captures whether or not an attack exposure has been calculated or not. */
|
|
152
|
+
state?:
|
|
153
|
+
string;
|
|
154
|
+
}
|
|
132
155
|
interface AuditConfig {
|
|
133
156
|
/** The configuration for logging of each type of permission. */
|
|
134
157
|
auditLogConfigs?:
|
|
@@ -404,6 +427,9 @@ declare namespace gapi.client {
|
|
|
404
427
|
/** Access details associated with the finding, such as more information on the caller, which method was accessed, and from where. */
|
|
405
428
|
access?:
|
|
406
429
|
Access;
|
|
430
|
+
/** The results of an attack path simulation relevant to this finding. */
|
|
431
|
+
attackExposure?:
|
|
432
|
+
AttackExposure;
|
|
407
433
|
/**
|
|
408
434
|
* The canonical name of the finding. It's either "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
|
|
409
435
|
* "folders/{folder_id}/sources/{source_id}/findings/{finding_id}" or "projects/{project_number}/sources/{source_id}/findings/{finding_id}", depending on the closest CRM ancestor of
|
|
@@ -1000,6 +1026,44 @@ declare namespace gapi.client {
|
|
|
1000
1026
|
resourceTypes?:
|
|
1001
1027
|
string[];
|
|
1002
1028
|
}
|
|
1029
|
+
interface GoogleCloudSecuritycenterV1ResourceValueConfig {
|
|
1030
|
+
/** Output only. Timestamp this resource value config was created. */
|
|
1031
|
+
createTime?:
|
|
1032
|
+
string;
|
|
1033
|
+
/** Description of the resource value config. */
|
|
1034
|
+
description?:
|
|
1035
|
+
string;
|
|
1036
|
+
/** Name for the resource value config */
|
|
1037
|
+
name?:
|
|
1038
|
+
string;
|
|
1039
|
+
/**
|
|
1040
|
+
* List of resource labels to search for, evaluated with AND. E.g. "resource_labels_selector": {"key": "value", "env": "prod"} will match resources with labels "key": "value" AND
|
|
1041
|
+
* "env": "prod" https://cloud.google.com/resource-manager/docs/creating-managing-labels
|
|
1042
|
+
*/
|
|
1043
|
+
resourceLabelsSelector?:
|
|
1044
|
+
{ [P in string]: string };
|
|
1045
|
+
/**
|
|
1046
|
+
* Apply resource_value only to resources that match resource_type. resource_type will be checked with "AND" of other resources. E.g. "storage.googleapis.com/Bucket" with
|
|
1047
|
+
* resource_value "HIGH" will apply "HIGH" value only to "storage.googleapis.com/Bucket" resources.
|
|
1048
|
+
*/
|
|
1049
|
+
resourceType?:
|
|
1050
|
+
string;
|
|
1051
|
+
/** Required. Resource value level this expression represents */
|
|
1052
|
+
resourceValue?:
|
|
1053
|
+
string;
|
|
1054
|
+
/** Project or folder to scope this config to. For example, "project/456" would apply this config only to resources in "project/456" scope will be checked with "AND" of other resources. */
|
|
1055
|
+
scope?:
|
|
1056
|
+
string;
|
|
1057
|
+
/**
|
|
1058
|
+
* Required. Tag values combined with AND to check against. Values in the form "tagValues/123" E.g. [ "tagValues/123", "tagValues/456", "tagValues/789" ]
|
|
1059
|
+
* https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
|
|
1060
|
+
*/
|
|
1061
|
+
tagValues?:
|
|
1062
|
+
string[];
|
|
1063
|
+
/** Output only. Timestamp this resource value config was last updated. */
|
|
1064
|
+
updateTime?:
|
|
1065
|
+
string;
|
|
1066
|
+
}
|
|
1003
1067
|
interface GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse {
|
|
1004
1068
|
/** The duration between asset discovery run start and end */
|
|
1005
1069
|
duration?:
|
|
@@ -1355,9 +1419,9 @@ declare namespace gapi.client {
|
|
|
1355
1419
|
name?:
|
|
1356
1420
|
string;
|
|
1357
1421
|
/**
|
|
1358
|
-
* The normal response of the operation
|
|
1359
|
-
*
|
|
1360
|
-
*
|
|
1422
|
+
* The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original
|
|
1423
|
+
* method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original
|
|
1424
|
+
* method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
|
|
1361
1425
|
*/
|
|
1362
1426
|
response?:
|
|
1363
1427
|
{ [P in string]: any };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maxim_mazurok/gapi.client.securitycenter-v1beta1",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.20230803",
|
|
4
4
|
"description": "TypeScript typings for Security Command Center API v1beta1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -15,6 +15,6 @@
|
|
|
15
15
|
"types": "index.d.ts",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@types/gapi.client": "*",
|
|
18
|
-
"@types/gapi.client.discovery": "*"
|
|
18
|
+
"@types/gapi.client.discovery-v1": "*"
|
|
19
19
|
}
|
|
20
20
|
}
|
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20230803
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|