@maxim_mazurok/gapi.client.securitycenter-v1 0.0.20230321 → 0.0.20230330

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 +1 -84
  2. package/package.json +1 -1
  3. package/tests.ts +1 -21
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=v1
12
- // Revision: 20230321
12
+ // Revision: 20230330
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -113,14 +113,6 @@ declare namespace gapi.client {
113
113
  /** The project ids to use for filtering asset discovery. */
114
114
  projectIds?: string[];
115
115
  }
116
- interface AssociatedFinding {
117
- /** Canonical name of the associated findings. Example: organizations/123/sources/456/findings/789 */
118
- canonicalFindingName?: string;
119
- /** The additional taxonomy group within findings from a given source. */
120
- findingCategory?: string;
121
- /** Full resource name of the finding. */
122
- name?: string;
123
- }
124
116
  interface AuditConfig {
125
117
  /** The configuration for logging of each type of permission. */
126
118
  auditLogConfigs?: AuditLogConfig[];
@@ -277,12 +269,6 @@ declare namespace gapi.client {
277
269
  /** The percentage of memory page hashes in the signature that were matched. */
278
270
  percentPagesMatched?: number;
279
271
  }
280
- interface Edge {
281
- /** This is the resource name of the destination node. */
282
- destination?: string;
283
- /** This is the resource name of the source node. */
284
- source?: string;
285
- }
286
272
  // tslint:disable-next-line:no-empty-interface
287
273
  interface Empty {
288
274
  }
@@ -414,8 +400,6 @@ declare namespace gapi.client {
414
400
  name?: string;
415
401
  /** Next steps associate to the finding. */
416
402
  nextSteps?: string;
417
- /** Contains information about the org policy constraints associated with the finding. */
418
- orgPolicyConstraints?: OrgPolicyConstraint[];
419
403
  /**
420
404
  * The relative resource name of the source the finding belongs to. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name This field is immutable after
421
405
  * creation time. For example: "organizations/{organization_id}/sources/{source_id}"
@@ -518,30 +502,6 @@ declare namespace gapi.client {
518
502
  // tslint:disable-next-line:no-empty-interface
519
503
  interface GoogleCloudSecuritycenterV1BulkMuteFindingsResponse {
520
504
  }
521
- interface GoogleCloudSecuritycenterV1ExposedResource {
522
- /** Human readable name of the resource that is exposed. */
523
- displayName?: string;
524
- /** The ways in which this resource is exposed. Examples: Read, Write */
525
- methods?: string[];
526
- /** Exposed Resource Name e.g.: `organizations/123/attackExposureResults/456/exposedResources/789` */
527
- name?: string;
528
- /** The name of the resource that is exposed. See: https://cloud.google.com/apis/design/resource_names#full_resource_name */
529
- resource?: string;
530
- /** The resource type of the exposed resource. See: https://cloud.google.com/asset-inventory/docs/supported-asset-types */
531
- resourceType?: string;
532
- /** How valuable this resource is. */
533
- resourceValue?: string;
534
- }
535
- interface GoogleCloudSecuritycenterV1ExposurePath {
536
- /** A list of the edges between nodes in this exposure path. */
537
- edges?: Edge[];
538
- /** The leaf node of this exposure path. */
539
- exposedResource?: GoogleCloudSecuritycenterV1ExposedResource;
540
- /** Exposure Path Name e.g.: `organizations/123/attackExposureResults/456/exposurePaths/789` */
541
- name?: string;
542
- /** A list of nodes that exist in this exposure path. */
543
- pathNodes?: PathNode[];
544
- }
545
505
  interface GoogleCloudSecuritycenterV1ExternalSystem {
546
506
  /** References primary/secondary etc assignees in the external system. */
547
507
  assignees?: string[];
@@ -717,35 +677,6 @@ declare namespace gapi.client {
717
677
  /** The full resource type of the resource. */
718
678
  type?: string;
719
679
  }
720
- interface GoogleCloudSecuritycenterV1ResourceValueConfig {
721
- /** Output only. Timestamp this resource value config was created. */
722
- createTime?: string;
723
- /** Description of the resource value config. */
724
- description?: string;
725
- /** Name for the resource value config */
726
- name?: string;
727
- /**
728
- * 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
729
- * "env": "prod" https://cloud.google.com/resource-manager/docs/creating-managing-labels
730
- */
731
- resourceLabelsSelector?: { [P in string]: string };
732
- /**
733
- * 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
734
- * resource_value "HIGH" will apply "HIGH" value only to "storage.googleapis.com/Bucket" resources.
735
- */
736
- resourceType?: string;
737
- /** Required. Resource value level this expression represents */
738
- resourceValue?: string;
739
- /** 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. */
740
- scope?: string;
741
- /**
742
- * Required. Tag values combined with AND to check against. Values in the form "tagValues/123" E.g. [ "tagValues/123", "tagValues/456", "tagValues/789" ]
743
- * https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
744
- */
745
- tagValues?: string[];
746
- /** Output only. Timestamp this resource value config was last updated. */
747
- updateTime?: string;
748
- }
749
680
  interface GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse {
750
681
  /** The duration between asset discovery run start and end */
751
682
  duration?: string;
@@ -1084,20 +1015,6 @@ declare namespace gapi.client {
1084
1015
  */
1085
1016
  name?: string;
1086
1017
  }
1087
- interface OrgPolicyConstraint {
1088
- /** The resource name of the constraint. Example: "organizations/{organization_id}/constraints/{constraint_name}" */
1089
- name?: string;
1090
- }
1091
- interface PathNode {
1092
- /** The findings associated with this node in the exposure path. */
1093
- associatedFindings?: AssociatedFinding[];
1094
- /** Human readable name of this resource. */
1095
- displayName?: string;
1096
- /** The name of the resource at this point in the exposure path. The format of the name is: https://cloud.google.com/apis/design/resource_names#full_resource_name */
1097
- resource?: string;
1098
- /** The resource type of this resource. See: https://cloud.google.com/asset-inventory/docs/supported-asset-types */
1099
- resourceType?: string;
1100
- }
1101
1018
  interface Pod {
1102
1019
  /** Pod containers associated with this finding, if any. */
1103
1020
  containers?: Container[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.securitycenter-v1",
3
- "version": "0.0.20230321",
3
+ "version": "0.0.20230330",
4
4
  "description": "TypeScript typings for Security Command Center API v1",
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: 20230321
6
+ // Revision: 20230330
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -499,11 +499,6 @@ gapi.load('client', async () => {
499
499
  muteUpdateTime: "Test string",
500
500
  name: "Test string",
501
501
  nextSteps: "Test string",
502
- orgPolicyConstraints: [
503
- {
504
- name: "Test string",
505
- }
506
- ],
507
502
  parent: "Test string",
508
503
  parentDisplayName: "Test string",
509
504
  processes: [
@@ -1202,11 +1197,6 @@ gapi.load('client', async () => {
1202
1197
  muteUpdateTime: "Test string",
1203
1198
  name: "Test string",
1204
1199
  nextSteps: "Test string",
1205
- orgPolicyConstraints: [
1206
- {
1207
- name: "Test string",
1208
- }
1209
- ],
1210
1200
  parent: "Test string",
1211
1201
  parentDisplayName: "Test string",
1212
1202
  processes: [
@@ -1585,11 +1575,6 @@ gapi.load('client', async () => {
1585
1575
  muteUpdateTime: "Test string",
1586
1576
  name: "Test string",
1587
1577
  nextSteps: "Test string",
1588
- orgPolicyConstraints: [
1589
- {
1590
- name: "Test string",
1591
- }
1592
- ],
1593
1578
  parent: "Test string",
1594
1579
  parentDisplayName: "Test string",
1595
1580
  processes: [
@@ -2181,11 +2166,6 @@ gapi.load('client', async () => {
2181
2166
  muteUpdateTime: "Test string",
2182
2167
  name: "Test string",
2183
2168
  nextSteps: "Test string",
2184
- orgPolicyConstraints: [
2185
- {
2186
- name: "Test string",
2187
- }
2188
- ],
2189
2169
  parent: "Test string",
2190
2170
  parentDisplayName: "Test string",
2191
2171
  processes: [