@maxim_mazurok/gapi.client.securitycenter-v1beta2 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.
Files changed (3) hide show
  1. package/index.d.ts +65 -1
  2. package/package.json +2 -2
  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=v1beta2
12
- // Revision: 20230721
12
+ // Revision: 20230803
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -98,6 +98,29 @@ declare namespace gapi.client {
98
98
  version?:
99
99
  string;
100
100
  }
101
+ interface AttackExposure {
102
+ /** The resource name of the attack path simulation result that contains the details regarding this attack exposure score. Example: organizations/123/attackExposureResults/456 */
103
+ attackExposureResult?:
104
+ string;
105
+ /** The number of high value resources that are exposed as a result of this finding. */
106
+ exposedHighValueResourcesCount?:
107
+ number;
108
+ /** The number of high value resources that are exposed as a result of this finding. */
109
+ exposedLowValueResourcesCount?:
110
+ number;
111
+ /** The number of medium value resources that are exposed as a result of this finding. */
112
+ exposedMediumValueResourcesCount?:
113
+ number;
114
+ /** The most recent time the attack exposure was updated on this finding. */
115
+ latestCalculationTime?:
116
+ string;
117
+ /** 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. */
118
+ score?:
119
+ number;
120
+ /** What state this AttackExposure is in. This captures whether or not an attack exposure has been calculated or not. */
121
+ state?:
122
+ string;
123
+ }
101
124
  interface CloudDlpDataProfile {
102
125
  /** Name of the data profile, for example, `projects/123/locations/europe/tableProfiles/8383929`. */
103
126
  dataProfile?:
@@ -384,6 +407,9 @@ declare namespace gapi.client {
384
407
  /** Access details associated with the finding, such as more information on the caller, which method was accessed, and from where. */
385
408
  access?:
386
409
  Access;
410
+ /** The results of an attack path simulation relevant to this finding. */
411
+ attackExposure?:
412
+ AttackExposure;
387
413
  /**
388
414
  * The canonical name of the finding. It's either "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
389
415
  * "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
@@ -898,6 +924,44 @@ declare namespace gapi.client {
898
924
  resourceTypes?:
899
925
  string[];
900
926
  }
927
+ interface GoogleCloudSecuritycenterV1ResourceValueConfig {
928
+ /** Output only. Timestamp this resource value config was created. */
929
+ createTime?:
930
+ string;
931
+ /** Description of the resource value config. */
932
+ description?:
933
+ string;
934
+ /** Name for the resource value config */
935
+ name?:
936
+ string;
937
+ /**
938
+ * 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
939
+ * "env": "prod" https://cloud.google.com/resource-manager/docs/creating-managing-labels
940
+ */
941
+ resourceLabelsSelector?:
942
+ { [P in string]: string };
943
+ /**
944
+ * 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
945
+ * resource_value "HIGH" will apply "HIGH" value only to "storage.googleapis.com/Bucket" resources.
946
+ */
947
+ resourceType?:
948
+ string;
949
+ /** Required. Resource value level this expression represents */
950
+ resourceValue?:
951
+ string;
952
+ /** 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. */
953
+ scope?:
954
+ string;
955
+ /**
956
+ * Required. Tag values combined with AND to check against. Values in the form "tagValues/123" E.g. [ "tagValues/123", "tagValues/456", "tagValues/789" ]
957
+ * https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
958
+ */
959
+ tagValues?:
960
+ string[];
961
+ /** Output only. Timestamp this resource value config was last updated. */
962
+ updateTime?:
963
+ string;
964
+ }
901
965
  interface GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse {
902
966
  /** The duration between asset discovery run start and end */
903
967
  duration?:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.securitycenter-v1beta2",
3
- "version": "0.0.20230721",
3
+ "version": "0.0.20230803",
4
4
  "description": "TypeScript typings for Security Command Center API v1beta2",
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: 20230721
6
+ // Revision: 20230803
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */