@maxim_mazurok/gapi.client.securitycenter-v1 0.0.20221021 → 0.0.20221103
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 +28 -19
- package/package.json +1 -1
- package/tests.ts +41 -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=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20221103
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -358,6 +358,8 @@ declare namespace gapi.client {
|
|
|
358
358
|
* either empty or a well formed URL.
|
|
359
359
|
*/
|
|
360
360
|
externalUri?: string;
|
|
361
|
+
/** File associated with the finding. */
|
|
362
|
+
files?: File[];
|
|
361
363
|
/** The class of the finding. */
|
|
362
364
|
findingClass?: string;
|
|
363
365
|
/** Represents IAM bindings associated with the Finding. */
|
|
@@ -691,8 +693,15 @@ declare namespace gapi.client {
|
|
|
691
693
|
interface GoogleCloudSecuritycenterV1ResourceValueConfig {
|
|
692
694
|
/** Name for the resource value config */
|
|
693
695
|
name?: string;
|
|
696
|
+
/**
|
|
697
|
+
* 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
|
|
698
|
+
* resource_value "HIGH" will apply "HIGH" value only to "storage.googleapis.com/Bucket" resources.
|
|
699
|
+
*/
|
|
700
|
+
resourceType?: string;
|
|
694
701
|
/** Required. Resource value level this expression represents */
|
|
695
702
|
resourceValue?: string;
|
|
703
|
+
/** 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. */
|
|
704
|
+
scope?: string;
|
|
696
705
|
/**
|
|
697
706
|
* Required. Tag values combined with AND to check against. Values in the form "tagValues/123" E.g. [ "tagValues/123", "tagValues/456", "tagValues/789" ]
|
|
698
707
|
* https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
|
|
@@ -2543,8 +2552,8 @@ declare namespace gapi.client {
|
|
|
2543
2552
|
key?: string;
|
|
2544
2553
|
/**
|
|
2545
2554
|
* Required. The relative resource name of the finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example:
|
|
2546
|
-
* "organizations/{organization_id}/sources/{source_id}/
|
|
2547
|
-
* "projects/{project_id}/sources/{source_id}/
|
|
2555
|
+
* "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", "folders/{folder_id}/sources/{source_id}/findings/{finding_id}",
|
|
2556
|
+
* "projects/{project_id}/sources/{source_id}/findings/{finding_id}".
|
|
2548
2557
|
*/
|
|
2549
2558
|
name: string;
|
|
2550
2559
|
/** OAuth 2.0 token for the current user. */
|
|
@@ -2575,8 +2584,8 @@ declare namespace gapi.client {
|
|
|
2575
2584
|
key?: string;
|
|
2576
2585
|
/**
|
|
2577
2586
|
* Required. The relative resource name of the finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example:
|
|
2578
|
-
* "organizations/{organization_id}/sources/{source_id}/
|
|
2579
|
-
* "projects/{project_id}/sources/{source_id}/
|
|
2587
|
+
* "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", "folders/{folder_id}/sources/{source_id}/findings/{finding_id}",
|
|
2588
|
+
* "projects/{project_id}/sources/{source_id}/findings/{finding_id}".
|
|
2580
2589
|
*/
|
|
2581
2590
|
name: string;
|
|
2582
2591
|
/** OAuth 2.0 token for the current user. */
|
|
@@ -2607,7 +2616,7 @@ declare namespace gapi.client {
|
|
|
2607
2616
|
key?: string;
|
|
2608
2617
|
/**
|
|
2609
2618
|
* Required. The relative resource name of the finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example:
|
|
2610
|
-
* "organizations/{organization_id}/sources/{source_id}/
|
|
2619
|
+
* "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}".
|
|
2611
2620
|
*/
|
|
2612
2621
|
name: string;
|
|
2613
2622
|
/** OAuth 2.0 token for the current user. */
|
|
@@ -2638,7 +2647,7 @@ declare namespace gapi.client {
|
|
|
2638
2647
|
key?: string;
|
|
2639
2648
|
/**
|
|
2640
2649
|
* Required. The relative resource name of the finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example:
|
|
2641
|
-
* "organizations/{organization_id}/sources/{source_id}/
|
|
2650
|
+
* "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}".
|
|
2642
2651
|
*/
|
|
2643
2652
|
name: string;
|
|
2644
2653
|
/** OAuth 2.0 token for the current user. */
|
|
@@ -4302,8 +4311,8 @@ declare namespace gapi.client {
|
|
|
4302
4311
|
key?: string;
|
|
4303
4312
|
/**
|
|
4304
4313
|
* Required. The relative resource name of the finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example:
|
|
4305
|
-
* "organizations/{organization_id}/sources/{source_id}/
|
|
4306
|
-
* "projects/{project_id}/sources/{source_id}/
|
|
4314
|
+
* "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", "folders/{folder_id}/sources/{source_id}/findings/{finding_id}",
|
|
4315
|
+
* "projects/{project_id}/sources/{source_id}/findings/{finding_id}".
|
|
4307
4316
|
*/
|
|
4308
4317
|
name: string;
|
|
4309
4318
|
/** OAuth 2.0 token for the current user. */
|
|
@@ -4334,8 +4343,8 @@ declare namespace gapi.client {
|
|
|
4334
4343
|
key?: string;
|
|
4335
4344
|
/**
|
|
4336
4345
|
* Required. The relative resource name of the finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example:
|
|
4337
|
-
* "organizations/{organization_id}/sources/{source_id}/
|
|
4338
|
-
* "projects/{project_id}/sources/{source_id}/
|
|
4346
|
+
* "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", "folders/{folder_id}/sources/{source_id}/findings/{finding_id}",
|
|
4347
|
+
* "projects/{project_id}/sources/{source_id}/findings/{finding_id}".
|
|
4339
4348
|
*/
|
|
4340
4349
|
name: string;
|
|
4341
4350
|
/** OAuth 2.0 token for the current user. */
|
|
@@ -4366,7 +4375,7 @@ declare namespace gapi.client {
|
|
|
4366
4375
|
key?: string;
|
|
4367
4376
|
/**
|
|
4368
4377
|
* Required. The relative resource name of the finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example:
|
|
4369
|
-
* "organizations/{organization_id}/sources/{source_id}/
|
|
4378
|
+
* "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}".
|
|
4370
4379
|
*/
|
|
4371
4380
|
name: string;
|
|
4372
4381
|
/** OAuth 2.0 token for the current user. */
|
|
@@ -4397,7 +4406,7 @@ declare namespace gapi.client {
|
|
|
4397
4406
|
key?: string;
|
|
4398
4407
|
/**
|
|
4399
4408
|
* Required. The relative resource name of the finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example:
|
|
4400
|
-
* "organizations/{organization_id}/sources/{source_id}/
|
|
4409
|
+
* "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}".
|
|
4401
4410
|
*/
|
|
4402
4411
|
name: string;
|
|
4403
4412
|
/** OAuth 2.0 token for the current user. */
|
|
@@ -6143,8 +6152,8 @@ declare namespace gapi.client {
|
|
|
6143
6152
|
key?: string;
|
|
6144
6153
|
/**
|
|
6145
6154
|
* Required. The relative resource name of the finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example:
|
|
6146
|
-
* "organizations/{organization_id}/sources/{source_id}/
|
|
6147
|
-
* "projects/{project_id}/sources/{source_id}/
|
|
6155
|
+
* "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", "folders/{folder_id}/sources/{source_id}/findings/{finding_id}",
|
|
6156
|
+
* "projects/{project_id}/sources/{source_id}/findings/{finding_id}".
|
|
6148
6157
|
*/
|
|
6149
6158
|
name: string;
|
|
6150
6159
|
/** OAuth 2.0 token for the current user. */
|
|
@@ -6175,8 +6184,8 @@ declare namespace gapi.client {
|
|
|
6175
6184
|
key?: string;
|
|
6176
6185
|
/**
|
|
6177
6186
|
* Required. The relative resource name of the finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example:
|
|
6178
|
-
* "organizations/{organization_id}/sources/{source_id}/
|
|
6179
|
-
* "projects/{project_id}/sources/{source_id}/
|
|
6187
|
+
* "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", "folders/{folder_id}/sources/{source_id}/findings/{finding_id}",
|
|
6188
|
+
* "projects/{project_id}/sources/{source_id}/findings/{finding_id}".
|
|
6180
6189
|
*/
|
|
6181
6190
|
name: string;
|
|
6182
6191
|
/** OAuth 2.0 token for the current user. */
|
|
@@ -6207,7 +6216,7 @@ declare namespace gapi.client {
|
|
|
6207
6216
|
key?: string;
|
|
6208
6217
|
/**
|
|
6209
6218
|
* Required. The relative resource name of the finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example:
|
|
6210
|
-
* "organizations/{organization_id}/sources/{source_id}/
|
|
6219
|
+
* "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}".
|
|
6211
6220
|
*/
|
|
6212
6221
|
name: string;
|
|
6213
6222
|
/** OAuth 2.0 token for the current user. */
|
|
@@ -6238,7 +6247,7 @@ declare namespace gapi.client {
|
|
|
6238
6247
|
key?: string;
|
|
6239
6248
|
/**
|
|
6240
6249
|
* Required. The relative resource name of the finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example:
|
|
6241
|
-
* "organizations/{organization_id}/sources/{source_id}/
|
|
6250
|
+
* "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}".
|
|
6242
6251
|
*/
|
|
6243
6252
|
name: string;
|
|
6244
6253
|
/** OAuth 2.0 token for the current user. */
|
package/package.json
CHANGED
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: 20221103
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -337,6 +337,16 @@ gapi.load('client', async () => {
|
|
|
337
337
|
}
|
|
338
338
|
},
|
|
339
339
|
externalUri: "Test string",
|
|
340
|
+
files: [
|
|
341
|
+
{
|
|
342
|
+
contents: "Test string",
|
|
343
|
+
hashedSize: "Test string",
|
|
344
|
+
partiallyHashed: true,
|
|
345
|
+
path: "Test string",
|
|
346
|
+
sha256: "Test string",
|
|
347
|
+
size: "Test string",
|
|
348
|
+
}
|
|
349
|
+
],
|
|
340
350
|
findingClass: "Test string",
|
|
341
351
|
iamBindings: [
|
|
342
352
|
{
|
|
@@ -1009,6 +1019,16 @@ gapi.load('client', async () => {
|
|
|
1009
1019
|
}
|
|
1010
1020
|
},
|
|
1011
1021
|
externalUri: "Test string",
|
|
1022
|
+
files: [
|
|
1023
|
+
{
|
|
1024
|
+
contents: "Test string",
|
|
1025
|
+
hashedSize: "Test string",
|
|
1026
|
+
partiallyHashed: true,
|
|
1027
|
+
path: "Test string",
|
|
1028
|
+
sha256: "Test string",
|
|
1029
|
+
size: "Test string",
|
|
1030
|
+
}
|
|
1031
|
+
],
|
|
1012
1032
|
findingClass: "Test string",
|
|
1013
1033
|
iamBindings: [
|
|
1014
1034
|
{
|
|
@@ -1356,6 +1376,16 @@ gapi.load('client', async () => {
|
|
|
1356
1376
|
}
|
|
1357
1377
|
},
|
|
1358
1378
|
externalUri: "Test string",
|
|
1379
|
+
files: [
|
|
1380
|
+
{
|
|
1381
|
+
contents: "Test string",
|
|
1382
|
+
hashedSize: "Test string",
|
|
1383
|
+
partiallyHashed: true,
|
|
1384
|
+
path: "Test string",
|
|
1385
|
+
sha256: "Test string",
|
|
1386
|
+
size: "Test string",
|
|
1387
|
+
}
|
|
1388
|
+
],
|
|
1359
1389
|
findingClass: "Test string",
|
|
1360
1390
|
iamBindings: [
|
|
1361
1391
|
{
|
|
@@ -1916,6 +1946,16 @@ gapi.load('client', async () => {
|
|
|
1916
1946
|
}
|
|
1917
1947
|
},
|
|
1918
1948
|
externalUri: "Test string",
|
|
1949
|
+
files: [
|
|
1950
|
+
{
|
|
1951
|
+
contents: "Test string",
|
|
1952
|
+
hashedSize: "Test string",
|
|
1953
|
+
partiallyHashed: true,
|
|
1954
|
+
path: "Test string",
|
|
1955
|
+
sha256: "Test string",
|
|
1956
|
+
size: "Test string",
|
|
1957
|
+
}
|
|
1958
|
+
],
|
|
1919
1959
|
findingClass: "Test string",
|
|
1920
1960
|
iamBindings: [
|
|
1921
1961
|
{
|