@maxim_mazurok/gapi.client.containeranalysis-v1alpha1 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=v1alpha1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230303
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -46,6 +46,10 @@ declare namespace gapi.client {
|
|
|
46
46
|
interface Assessment {
|
|
47
47
|
/** Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking number for the vulnerability. */
|
|
48
48
|
cve?: string;
|
|
49
|
+
/** Contains information about the impact of this vulnerability, this will change with time. */
|
|
50
|
+
impacts?: string[];
|
|
51
|
+
/** Justification provides the justification when the state of the assessment if NOT_AFFECTED. */
|
|
52
|
+
justification?: Justification;
|
|
49
53
|
/** A detailed description of this Vex. */
|
|
50
54
|
longDescription?: string;
|
|
51
55
|
/**
|
|
@@ -59,8 +63,6 @@ declare namespace gapi.client {
|
|
|
59
63
|
shortDescription?: string;
|
|
60
64
|
/** Provides the state of this Vulnerability assessment. */
|
|
61
65
|
state?: string;
|
|
62
|
-
/** Contains information about this vulnerability, this will change with time. */
|
|
63
|
-
threats?: Threat[];
|
|
64
66
|
}
|
|
65
67
|
interface Attestation {
|
|
66
68
|
pgpSignedAttestation?: PgpSignedAttestation;
|
|
@@ -1200,6 +1202,12 @@ declare namespace gapi.client {
|
|
|
1200
1202
|
/** subject is the subjects of the intoto statement */
|
|
1201
1203
|
subject?: Subject[];
|
|
1202
1204
|
}
|
|
1205
|
+
interface Justification {
|
|
1206
|
+
/** Additional details on why this justification was chosen. */
|
|
1207
|
+
details?: string;
|
|
1208
|
+
/** The justification type for this vulnerability. */
|
|
1209
|
+
justificationType?: string;
|
|
1210
|
+
}
|
|
1203
1211
|
interface Layer {
|
|
1204
1212
|
/** The recovered arguments to the Dockerfile directive. */
|
|
1205
1213
|
arguments?: string;
|
|
@@ -1812,12 +1820,6 @@ declare namespace gapi.client {
|
|
|
1812
1820
|
/** A subset of `TestPermissionsRequest.permissions` that the caller is allowed. */
|
|
1813
1821
|
permissions?: string[];
|
|
1814
1822
|
}
|
|
1815
|
-
interface Threat {
|
|
1816
|
-
/** Represents a thorough human-readable discussion of the threat. */
|
|
1817
|
-
details?: string;
|
|
1818
|
-
/** The type of threat. */
|
|
1819
|
-
threatType?: string;
|
|
1820
|
-
}
|
|
1821
1823
|
interface TimeSpan {
|
|
1822
1824
|
/** End of time span. */
|
|
1823
1825
|
endTime?: string;
|
|
@@ -1880,6 +1882,10 @@ declare namespace gapi.client {
|
|
|
1880
1882
|
interface VexAssessment {
|
|
1881
1883
|
/** Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking number for the vulnerability. */
|
|
1882
1884
|
cve?: string;
|
|
1885
|
+
/** Contains information about the impact of this vulnerability, this will change with time. */
|
|
1886
|
+
impacts?: string[];
|
|
1887
|
+
/** Justification provides the justification when the state of the assessment if NOT_AFFECTED. */
|
|
1888
|
+
justification?: Justification;
|
|
1883
1889
|
/** The VulnerabilityAssessment note from which this VexAssessment was generated. This will be of the form: `projects/[PROJECT_ID]/notes/[NOTE_ID]`. */
|
|
1884
1890
|
noteName?: string;
|
|
1885
1891
|
/**
|
|
@@ -1891,8 +1897,6 @@ declare namespace gapi.client {
|
|
|
1891
1897
|
remediations?: Remediation[];
|
|
1892
1898
|
/** Provides the state of this Vulnerability assessment. */
|
|
1893
1899
|
state?: string;
|
|
1894
|
-
/** Contains information about this vulnerability, this will change with time. */
|
|
1895
|
-
threats?: Threat[];
|
|
1896
1900
|
}
|
|
1897
1901
|
interface Volume {
|
|
1898
1902
|
/** 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 */
|
|
@@ -213,6 +213,13 @@ gapi.load('client', async () => {
|
|
|
213
213
|
vulnerabilityAssessment: {
|
|
214
214
|
assessment: {
|
|
215
215
|
cve: "Test string",
|
|
216
|
+
impacts: [
|
|
217
|
+
"Test string"
|
|
218
|
+
],
|
|
219
|
+
justification: {
|
|
220
|
+
details: "Test string",
|
|
221
|
+
justificationType: "Test string",
|
|
222
|
+
},
|
|
216
223
|
longDescription: "Test string",
|
|
217
224
|
relatedUris: [
|
|
218
225
|
{
|
|
@@ -233,12 +240,6 @@ gapi.load('client', async () => {
|
|
|
233
240
|
],
|
|
234
241
|
shortDescription: "Test string",
|
|
235
242
|
state: "Test string",
|
|
236
|
-
threats: [
|
|
237
|
-
{
|
|
238
|
-
details: "Test string",
|
|
239
|
-
threatType: "Test string",
|
|
240
|
-
}
|
|
241
|
-
],
|
|
242
243
|
},
|
|
243
244
|
languageCode: "Test string",
|
|
244
245
|
longDescription: "Test string",
|
|
@@ -535,6 +536,13 @@ gapi.load('client', async () => {
|
|
|
535
536
|
vulnerabilityAssessment: {
|
|
536
537
|
assessment: {
|
|
537
538
|
cve: "Test string",
|
|
539
|
+
impacts: [
|
|
540
|
+
"Test string"
|
|
541
|
+
],
|
|
542
|
+
justification: {
|
|
543
|
+
details: "Test string",
|
|
544
|
+
justificationType: "Test string",
|
|
545
|
+
},
|
|
538
546
|
longDescription: "Test string",
|
|
539
547
|
relatedUris: [
|
|
540
548
|
{
|
|
@@ -555,12 +563,6 @@ gapi.load('client', async () => {
|
|
|
555
563
|
],
|
|
556
564
|
shortDescription: "Test string",
|
|
557
565
|
state: "Test string",
|
|
558
|
-
threats: [
|
|
559
|
-
{
|
|
560
|
-
details: "Test string",
|
|
561
|
-
threatType: "Test string",
|
|
562
|
-
}
|
|
563
|
-
],
|
|
564
566
|
},
|
|
565
567
|
languageCode: "Test string",
|
|
566
568
|
longDescription: "Test string",
|
|
@@ -1430,6 +1432,13 @@ gapi.load('client', async () => {
|
|
|
1430
1432
|
type: "Test string",
|
|
1431
1433
|
vexAssessment: {
|
|
1432
1434
|
cve: "Test string",
|
|
1435
|
+
impacts: [
|
|
1436
|
+
"Test string"
|
|
1437
|
+
],
|
|
1438
|
+
justification: {
|
|
1439
|
+
details: "Test string",
|
|
1440
|
+
justificationType: "Test string",
|
|
1441
|
+
},
|
|
1433
1442
|
noteName: "Test string",
|
|
1434
1443
|
relatedUris: [
|
|
1435
1444
|
{
|
|
@@ -1449,12 +1458,6 @@ gapi.load('client', async () => {
|
|
|
1449
1458
|
}
|
|
1450
1459
|
],
|
|
1451
1460
|
state: "Test string",
|
|
1452
|
-
threats: [
|
|
1453
|
-
{
|
|
1454
|
-
details: "Test string",
|
|
1455
|
-
threatType: "Test string",
|
|
1456
|
-
}
|
|
1457
|
-
],
|
|
1458
1461
|
},
|
|
1459
1462
|
},
|
|
1460
1463
|
});
|
|
@@ -2233,6 +2236,13 @@ gapi.load('client', async () => {
|
|
|
2233
2236
|
type: "Test string",
|
|
2234
2237
|
vexAssessment: {
|
|
2235
2238
|
cve: "Test string",
|
|
2239
|
+
impacts: [
|
|
2240
|
+
"Test string"
|
|
2241
|
+
],
|
|
2242
|
+
justification: {
|
|
2243
|
+
details: "Test string",
|
|
2244
|
+
justificationType: "Test string",
|
|
2245
|
+
},
|
|
2236
2246
|
noteName: "Test string",
|
|
2237
2247
|
relatedUris: [
|
|
2238
2248
|
{
|
|
@@ -2252,12 +2262,6 @@ gapi.load('client', async () => {
|
|
|
2252
2262
|
}
|
|
2253
2263
|
],
|
|
2254
2264
|
state: "Test string",
|
|
2255
|
-
threats: [
|
|
2256
|
-
{
|
|
2257
|
-
details: "Test string",
|
|
2258
|
-
threatType: "Test string",
|
|
2259
|
-
}
|
|
2260
|
-
],
|
|
2261
2265
|
},
|
|
2262
2266
|
},
|
|
2263
2267
|
});
|
|
@@ -2559,6 +2563,13 @@ gapi.load('client', async () => {
|
|
|
2559
2563
|
vulnerabilityAssessment: {
|
|
2560
2564
|
assessment: {
|
|
2561
2565
|
cve: "Test string",
|
|
2566
|
+
impacts: [
|
|
2567
|
+
"Test string"
|
|
2568
|
+
],
|
|
2569
|
+
justification: {
|
|
2570
|
+
details: "Test string",
|
|
2571
|
+
justificationType: "Test string",
|
|
2572
|
+
},
|
|
2562
2573
|
longDescription: "Test string",
|
|
2563
2574
|
relatedUris: [
|
|
2564
2575
|
{
|
|
@@ -2579,12 +2590,6 @@ gapi.load('client', async () => {
|
|
|
2579
2590
|
],
|
|
2580
2591
|
shortDescription: "Test string",
|
|
2581
2592
|
state: "Test string",
|
|
2582
|
-
threats: [
|
|
2583
|
-
{
|
|
2584
|
-
details: "Test string",
|
|
2585
|
-
threatType: "Test string",
|
|
2586
|
-
}
|
|
2587
|
-
],
|
|
2588
2593
|
},
|
|
2589
2594
|
languageCode: "Test string",
|
|
2590
2595
|
longDescription: "Test string",
|
|
@@ -2881,6 +2886,13 @@ gapi.load('client', async () => {
|
|
|
2881
2886
|
vulnerabilityAssessment: {
|
|
2882
2887
|
assessment: {
|
|
2883
2888
|
cve: "Test string",
|
|
2889
|
+
impacts: [
|
|
2890
|
+
"Test string"
|
|
2891
|
+
],
|
|
2892
|
+
justification: {
|
|
2893
|
+
details: "Test string",
|
|
2894
|
+
justificationType: "Test string",
|
|
2895
|
+
},
|
|
2884
2896
|
longDescription: "Test string",
|
|
2885
2897
|
relatedUris: [
|
|
2886
2898
|
{
|
|
@@ -2901,12 +2913,6 @@ gapi.load('client', async () => {
|
|
|
2901
2913
|
],
|
|
2902
2914
|
shortDescription: "Test string",
|
|
2903
2915
|
state: "Test string",
|
|
2904
|
-
threats: [
|
|
2905
|
-
{
|
|
2906
|
-
details: "Test string",
|
|
2907
|
-
threatType: "Test string",
|
|
2908
|
-
}
|
|
2909
|
-
],
|
|
2910
2916
|
},
|
|
2911
2917
|
languageCode: "Test string",
|
|
2912
2918
|
longDescription: "Test string",
|