@maxim_mazurok/gapi.client.containeranalysis-v1beta1 0.0.20230224 → 0.0.20230303
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 +15 -11
- package/package.json +1 -1
- package/tests.ts +43 -37
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://containeranalysis.googleapis.com/$discovery/rest?version=v1beta1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230303
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -51,6 +51,10 @@ declare namespace gapi.client {
|
|
|
51
51
|
interface Assessment {
|
|
52
52
|
/** Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking number for the vulnerability. */
|
|
53
53
|
cve?: string;
|
|
54
|
+
/** Contains information about the impact of this vulnerability, this will change with time. */
|
|
55
|
+
impacts?: string[];
|
|
56
|
+
/** Justification provides the justification when the state of the assessment if NOT_AFFECTED. */
|
|
57
|
+
justification?: Justification;
|
|
54
58
|
/** A detailed description of this Vex. */
|
|
55
59
|
longDescription?: string;
|
|
56
60
|
/**
|
|
@@ -64,8 +68,6 @@ declare namespace gapi.client {
|
|
|
64
68
|
shortDescription?: string;
|
|
65
69
|
/** Provides the state of this Vulnerability assessment. */
|
|
66
70
|
state?: string;
|
|
67
|
-
/** Contains information about this vulnerability, this will change with time. */
|
|
68
|
-
threats?: Threat[];
|
|
69
71
|
}
|
|
70
72
|
interface Attestation {
|
|
71
73
|
genericSignedAttestation?: GenericSignedAttestation;
|
|
@@ -1141,6 +1143,12 @@ declare namespace gapi.client {
|
|
|
1141
1143
|
/** This field contains a value that indicates the minimum number of keys that need to be used to sign the step's in-toto link. */
|
|
1142
1144
|
threshold?: string;
|
|
1143
1145
|
}
|
|
1146
|
+
interface Justification {
|
|
1147
|
+
/** Additional details on why this justification was chosen. */
|
|
1148
|
+
details?: string;
|
|
1149
|
+
/** The justification type for this vulnerability. */
|
|
1150
|
+
justificationType?: string;
|
|
1151
|
+
}
|
|
1144
1152
|
interface KnowledgeBase {
|
|
1145
1153
|
/** The KB name (generally of the form KB[0-9]+ i.e. KB123456). */
|
|
1146
1154
|
name?: string;
|
|
@@ -1606,12 +1614,6 @@ declare namespace gapi.client {
|
|
|
1606
1614
|
/** A subset of `TestPermissionsRequest.permissions` that the caller is allowed. */
|
|
1607
1615
|
permissions?: string[];
|
|
1608
1616
|
}
|
|
1609
|
-
interface Threat {
|
|
1610
|
-
/** Represents a thorough human-readable discussion of the threat. */
|
|
1611
|
-
details?: string;
|
|
1612
|
-
/** The type of threat. */
|
|
1613
|
-
threatType?: string;
|
|
1614
|
-
}
|
|
1615
1617
|
interface TimeSpan {
|
|
1616
1618
|
/** End of time span. */
|
|
1617
1619
|
endTime?: string;
|
|
@@ -1637,6 +1639,10 @@ declare namespace gapi.client {
|
|
|
1637
1639
|
interface VexAssessment {
|
|
1638
1640
|
/** Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking number for the vulnerability. */
|
|
1639
1641
|
cve?: string;
|
|
1642
|
+
/** Contains information about the impact of this vulnerability, this will change with time. */
|
|
1643
|
+
impacts?: string[];
|
|
1644
|
+
/** Justification provides the justification when the state of the assessment if NOT_AFFECTED. */
|
|
1645
|
+
justification?: Justification;
|
|
1640
1646
|
/** The VulnerabilityAssessment note from which this VexAssessment was generated. This will be of the form: `projects/[PROJECT_ID]/notes/[NOTE_ID]`. */
|
|
1641
1647
|
noteName?: string;
|
|
1642
1648
|
/** Holds a list of references associated with this vulnerability item and assessment. */
|
|
@@ -1645,8 +1651,6 @@ declare namespace gapi.client {
|
|
|
1645
1651
|
remediations?: Remediation[];
|
|
1646
1652
|
/** Provides the state of this Vulnerability assessment. */
|
|
1647
1653
|
state?: string;
|
|
1648
|
-
/** Contains information about this vulnerability, this will change with time. */
|
|
1649
|
-
threats?: Threat[];
|
|
1650
1654
|
}
|
|
1651
1655
|
interface Volume {
|
|
1652
1656
|
/** Name of the volume to mount. Volume names must be unique per build step and must be valid names for Docker volumes. Each named volume must be used by at least two build steps. */
|
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: 20230303
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -289,6 +289,13 @@ gapi.load('client', async () => {
|
|
|
289
289
|
vulnerabilityAssessment: {
|
|
290
290
|
assessment: {
|
|
291
291
|
cve: "Test string",
|
|
292
|
+
impacts: [
|
|
293
|
+
"Test string"
|
|
294
|
+
],
|
|
295
|
+
justification: {
|
|
296
|
+
details: "Test string",
|
|
297
|
+
justificationType: "Test string",
|
|
298
|
+
},
|
|
292
299
|
longDescription: "Test string",
|
|
293
300
|
relatedUris: [
|
|
294
301
|
{
|
|
@@ -309,12 +316,6 @@ gapi.load('client', async () => {
|
|
|
309
316
|
],
|
|
310
317
|
shortDescription: "Test string",
|
|
311
318
|
state: "Test string",
|
|
312
|
-
threats: [
|
|
313
|
-
{
|
|
314
|
-
details: "Test string",
|
|
315
|
-
threatType: "Test string",
|
|
316
|
-
}
|
|
317
|
-
],
|
|
318
319
|
},
|
|
319
320
|
languageCode: "Test string",
|
|
320
321
|
longDescription: "Test string",
|
|
@@ -593,6 +594,13 @@ gapi.load('client', async () => {
|
|
|
593
594
|
vulnerabilityAssessment: {
|
|
594
595
|
assessment: {
|
|
595
596
|
cve: "Test string",
|
|
597
|
+
impacts: [
|
|
598
|
+
"Test string"
|
|
599
|
+
],
|
|
600
|
+
justification: {
|
|
601
|
+
details: "Test string",
|
|
602
|
+
justificationType: "Test string",
|
|
603
|
+
},
|
|
596
604
|
longDescription: "Test string",
|
|
597
605
|
relatedUris: [
|
|
598
606
|
{
|
|
@@ -613,12 +621,6 @@ gapi.load('client', async () => {
|
|
|
613
621
|
],
|
|
614
622
|
shortDescription: "Test string",
|
|
615
623
|
state: "Test string",
|
|
616
|
-
threats: [
|
|
617
|
-
{
|
|
618
|
-
details: "Test string",
|
|
619
|
-
threatType: "Test string",
|
|
620
|
-
}
|
|
621
|
-
],
|
|
622
624
|
},
|
|
623
625
|
languageCode: "Test string",
|
|
624
626
|
longDescription: "Test string",
|
|
@@ -922,6 +924,13 @@ gapi.load('client', async () => {
|
|
|
922
924
|
vulnerabilityAssessment: {
|
|
923
925
|
assessment: {
|
|
924
926
|
cve: "Test string",
|
|
927
|
+
impacts: [
|
|
928
|
+
"Test string"
|
|
929
|
+
],
|
|
930
|
+
justification: {
|
|
931
|
+
details: "Test string",
|
|
932
|
+
justificationType: "Test string",
|
|
933
|
+
},
|
|
925
934
|
longDescription: "Test string",
|
|
926
935
|
relatedUris: [
|
|
927
936
|
{
|
|
@@ -942,12 +951,6 @@ gapi.load('client', async () => {
|
|
|
942
951
|
],
|
|
943
952
|
shortDescription: "Test string",
|
|
944
953
|
state: "Test string",
|
|
945
|
-
threats: [
|
|
946
|
-
{
|
|
947
|
-
details: "Test string",
|
|
948
|
-
threatType: "Test string",
|
|
949
|
-
}
|
|
950
|
-
],
|
|
951
954
|
},
|
|
952
955
|
languageCode: "Test string",
|
|
953
956
|
longDescription: "Test string",
|
|
@@ -1443,6 +1446,13 @@ gapi.load('client', async () => {
|
|
|
1443
1446
|
type: "Test string",
|
|
1444
1447
|
vexAssessment: {
|
|
1445
1448
|
cve: "Test string",
|
|
1449
|
+
impacts: [
|
|
1450
|
+
"Test string"
|
|
1451
|
+
],
|
|
1452
|
+
justification: {
|
|
1453
|
+
details: "Test string",
|
|
1454
|
+
justificationType: "Test string",
|
|
1455
|
+
},
|
|
1446
1456
|
noteName: "Test string",
|
|
1447
1457
|
relatedUris: [
|
|
1448
1458
|
{
|
|
@@ -1462,12 +1472,6 @@ gapi.load('client', async () => {
|
|
|
1462
1472
|
}
|
|
1463
1473
|
],
|
|
1464
1474
|
state: "Test string",
|
|
1465
|
-
threats: [
|
|
1466
|
-
{
|
|
1467
|
-
details: "Test string",
|
|
1468
|
-
threatType: "Test string",
|
|
1469
|
-
}
|
|
1470
|
-
],
|
|
1471
1475
|
},
|
|
1472
1476
|
},
|
|
1473
1477
|
}
|
|
@@ -1904,6 +1908,13 @@ gapi.load('client', async () => {
|
|
|
1904
1908
|
type: "Test string",
|
|
1905
1909
|
vexAssessment: {
|
|
1906
1910
|
cve: "Test string",
|
|
1911
|
+
impacts: [
|
|
1912
|
+
"Test string"
|
|
1913
|
+
],
|
|
1914
|
+
justification: {
|
|
1915
|
+
details: "Test string",
|
|
1916
|
+
justificationType: "Test string",
|
|
1917
|
+
},
|
|
1907
1918
|
noteName: "Test string",
|
|
1908
1919
|
relatedUris: [
|
|
1909
1920
|
{
|
|
@@ -1923,12 +1934,6 @@ gapi.load('client', async () => {
|
|
|
1923
1934
|
}
|
|
1924
1935
|
],
|
|
1925
1936
|
state: "Test string",
|
|
1926
|
-
threats: [
|
|
1927
|
-
{
|
|
1928
|
-
details: "Test string",
|
|
1929
|
-
threatType: "Test string",
|
|
1930
|
-
}
|
|
1931
|
-
],
|
|
1932
1937
|
},
|
|
1933
1938
|
},
|
|
1934
1939
|
});
|
|
@@ -2400,6 +2405,13 @@ gapi.load('client', async () => {
|
|
|
2400
2405
|
type: "Test string",
|
|
2401
2406
|
vexAssessment: {
|
|
2402
2407
|
cve: "Test string",
|
|
2408
|
+
impacts: [
|
|
2409
|
+
"Test string"
|
|
2410
|
+
],
|
|
2411
|
+
justification: {
|
|
2412
|
+
details: "Test string",
|
|
2413
|
+
justificationType: "Test string",
|
|
2414
|
+
},
|
|
2403
2415
|
noteName: "Test string",
|
|
2404
2416
|
relatedUris: [
|
|
2405
2417
|
{
|
|
@@ -2419,12 +2431,6 @@ gapi.load('client', async () => {
|
|
|
2419
2431
|
}
|
|
2420
2432
|
],
|
|
2421
2433
|
state: "Test string",
|
|
2422
|
-
threats: [
|
|
2423
|
-
{
|
|
2424
|
-
details: "Test string",
|
|
2425
|
-
threatType: "Test string",
|
|
2426
|
-
}
|
|
2427
|
-
],
|
|
2428
2434
|
},
|
|
2429
2435
|
},
|
|
2430
2436
|
});
|