@maxim_mazurok/gapi.client.securitycenter-v1beta1 0.0.20230721 → 0.0.20230727

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.
Files changed (3) hide show
  1. package/index.d.ts +65 -1
  2. package/package.json +1 -1
  3. 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: 20230721
12
+ // Revision: 20230727
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?:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.securitycenter-v1beta1",
3
- "version": "0.0.20230721",
3
+ "version": "0.0.20230727",
4
4
  "description": "TypeScript typings for Security Command Center API v1beta1",
5
5
  "license": "MIT",
6
6
  "author": {
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: 20230721
6
+ // Revision: 20230727
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */