@maxim_mazurok/gapi.client.containeranalysis-v1beta1 0.0.20230127 → 0.0.20230203
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 +88 -1
- package/package.json +1 -1
- package/tests.ts +220 -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://containeranalysis.googleapis.com/$discovery/rest?version=v1beta1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230203
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -48,6 +48,25 @@ declare namespace gapi.client {
|
|
|
48
48
|
interface ArtifactRule {
|
|
49
49
|
artifactRule?: string[];
|
|
50
50
|
}
|
|
51
|
+
interface Assessment {
|
|
52
|
+
/** Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking number for the vulnerability. */
|
|
53
|
+
cve?: string;
|
|
54
|
+
/** A detailed description of this Vex. */
|
|
55
|
+
longDescription?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Holds a list of references associated with this vulnerability item and assessment. These uris have additional information about the vulnerability and the assessment itself. E.g.
|
|
58
|
+
* Link to a document which details how this assessment concluded the state of this vulnerability.
|
|
59
|
+
*/
|
|
60
|
+
relatedUris?: RelatedUrl[];
|
|
61
|
+
/** Specifies details on how to handle (and presumably, fix) a vulnerability. */
|
|
62
|
+
remediations?: Remediation[];
|
|
63
|
+
/** A one sentence description of this Vex. */
|
|
64
|
+
shortDescription?: string;
|
|
65
|
+
/** Provides the state of this Vulnerability assessment. */
|
|
66
|
+
state?: string;
|
|
67
|
+
/** Contains information about this vulnerability, this will change with time. */
|
|
68
|
+
threats?: Threat[];
|
|
69
|
+
}
|
|
51
70
|
interface Attestation {
|
|
52
71
|
genericSignedAttestation?: GenericSignedAttestation;
|
|
53
72
|
/** A PGP signed attestation. */
|
|
@@ -1071,6 +1090,7 @@ declare namespace gapi.client {
|
|
|
1071
1090
|
shortDescription?: string;
|
|
1072
1091
|
/** The type of package; whether native or non native(ruby gems, node.js packages etc) */
|
|
1073
1092
|
type?: string;
|
|
1093
|
+
vexAssessment?: VexAssessment;
|
|
1074
1094
|
}
|
|
1075
1095
|
interface Hash {
|
|
1076
1096
|
/** Required. The type of hash that was performed. */
|
|
@@ -1230,6 +1250,8 @@ declare namespace gapi.client {
|
|
|
1230
1250
|
updateTime?: string;
|
|
1231
1251
|
/** A note describing a package vulnerability. */
|
|
1232
1252
|
vulnerability?: Vulnerability;
|
|
1253
|
+
/** A note describing a vulnerability assessment. */
|
|
1254
|
+
vulnerabilityAssessment?: VulnerabilityAssessmentNote;
|
|
1233
1255
|
}
|
|
1234
1256
|
interface Occurrence {
|
|
1235
1257
|
/** Describes an attestation of an artifact. */
|
|
@@ -1427,12 +1449,31 @@ declare namespace gapi.client {
|
|
|
1427
1449
|
*/
|
|
1428
1450
|
version?: number;
|
|
1429
1451
|
}
|
|
1452
|
+
interface Product {
|
|
1453
|
+
/** Contains a URI which is vendor-specific. Example: The artifact repository URL of an image. */
|
|
1454
|
+
genericUri?: string;
|
|
1455
|
+
/**
|
|
1456
|
+
* Token that identifies a product so that it can be referred to from other parts in the document. There is no predefined format as long as it uniquely identifies a group in the
|
|
1457
|
+
* context of the current document.
|
|
1458
|
+
*/
|
|
1459
|
+
id?: string;
|
|
1460
|
+
/** Name of the product. */
|
|
1461
|
+
name?: string;
|
|
1462
|
+
}
|
|
1430
1463
|
interface ProjectRepoId {
|
|
1431
1464
|
/** The ID of the project. */
|
|
1432
1465
|
projectId?: string;
|
|
1433
1466
|
/** The name of the repo. Leave empty for the default repo. */
|
|
1434
1467
|
repoName?: string;
|
|
1435
1468
|
}
|
|
1469
|
+
interface Publisher {
|
|
1470
|
+
/** The context or namespace. Contains a URL which is under control of the issuing party and can be used as a globally unique identifier for that issuing party. Example: https://csaf.io */
|
|
1471
|
+
context?: string;
|
|
1472
|
+
/** Provides information about the authority of the issuing party to release the document, in particular, the party's constituency and responsibilities or other obligations. */
|
|
1473
|
+
issuingAuthority?: string;
|
|
1474
|
+
/** Name of the publisher. Examples: 'Google', 'Google Cloud Platform'. */
|
|
1475
|
+
name?: string;
|
|
1476
|
+
}
|
|
1436
1477
|
interface RelatedUrl {
|
|
1437
1478
|
/** Label to describe usage of the URL. */
|
|
1438
1479
|
label?: string;
|
|
@@ -1456,6 +1497,16 @@ declare namespace gapi.client {
|
|
|
1456
1497
|
/** Output only. The type of relationship between the source and target SPDX elements */
|
|
1457
1498
|
type?: string;
|
|
1458
1499
|
}
|
|
1500
|
+
interface Remediation {
|
|
1501
|
+
/** Contains a comprehensive human-readable discussion of the remediation. */
|
|
1502
|
+
details?: string;
|
|
1503
|
+
/** Contains the date from which the remediation is available. */
|
|
1504
|
+
remediationTime?: string;
|
|
1505
|
+
/** The type of remediation that can be applied. */
|
|
1506
|
+
remediationType?: string;
|
|
1507
|
+
/** Contains the URL where to obtain the remediation. */
|
|
1508
|
+
remediationUri?: RelatedUrl;
|
|
1509
|
+
}
|
|
1459
1510
|
interface RepoId {
|
|
1460
1511
|
/** A combination of a project ID and a repo name. */
|
|
1461
1512
|
projectRepoId?: ProjectRepoId;
|
|
@@ -1551,6 +1602,12 @@ declare namespace gapi.client {
|
|
|
1551
1602
|
/** A subset of `TestPermissionsRequest.permissions` that the caller is allowed. */
|
|
1552
1603
|
permissions?: string[];
|
|
1553
1604
|
}
|
|
1605
|
+
interface Threat {
|
|
1606
|
+
/** Represents a thorough human-readable discussion of the threat. */
|
|
1607
|
+
details?: string;
|
|
1608
|
+
/** The type of threat. */
|
|
1609
|
+
threatType?: string;
|
|
1610
|
+
}
|
|
1554
1611
|
interface TimeSpan {
|
|
1555
1612
|
/** End of time span. */
|
|
1556
1613
|
endTime?: string;
|
|
@@ -1573,6 +1630,20 @@ declare namespace gapi.client {
|
|
|
1573
1630
|
/** The iteration of the package build from the above version. */
|
|
1574
1631
|
revision?: string;
|
|
1575
1632
|
}
|
|
1633
|
+
interface VexAssessment {
|
|
1634
|
+
/** Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking number for the vulnerability. */
|
|
1635
|
+
cve?: string;
|
|
1636
|
+
/** The VulnerabilityAssessment note from which this VexAssessment was generated. This will be of the form: `projects/[PROJECT_ID]/notes/[NOTE_ID]`. */
|
|
1637
|
+
noteName?: string;
|
|
1638
|
+
/** Holds a list of references associated with this vulnerability item and assessment. */
|
|
1639
|
+
relatedUris?: RelatedUrl[];
|
|
1640
|
+
/** Specifies details on how to handle (and presumably, fix) a vulnerability. */
|
|
1641
|
+
remediations?: Remediation[];
|
|
1642
|
+
/** Provides the state of this Vulnerability assessment. */
|
|
1643
|
+
state?: string;
|
|
1644
|
+
/** Contains information about this vulnerability, this will change with time. */
|
|
1645
|
+
threats?: Threat[];
|
|
1646
|
+
}
|
|
1576
1647
|
interface Volume {
|
|
1577
1648
|
/** 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. */
|
|
1578
1649
|
name?: string;
|
|
@@ -1602,6 +1673,22 @@ declare namespace gapi.client {
|
|
|
1602
1673
|
*/
|
|
1603
1674
|
windowsDetails?: WindowsDetail[];
|
|
1604
1675
|
}
|
|
1676
|
+
interface VulnerabilityAssessmentNote {
|
|
1677
|
+
/** Represents a vulnerability assessment for the product. */
|
|
1678
|
+
assessment?: Assessment;
|
|
1679
|
+
/** Identifies the language used by this document, corresponding to IETF BCP 47 / RFC 5646. */
|
|
1680
|
+
languageCode?: string;
|
|
1681
|
+
/** A detailed description of this Vex. */
|
|
1682
|
+
longDescription?: string;
|
|
1683
|
+
/** The product affected by this vex. */
|
|
1684
|
+
product?: Product;
|
|
1685
|
+
/** Publisher details of this Note. */
|
|
1686
|
+
publisher?: Publisher;
|
|
1687
|
+
/** A one sentence description of this Vex. */
|
|
1688
|
+
shortDescription?: string;
|
|
1689
|
+
/** The title of the note. E.g. `Vex-Debian-11.4` */
|
|
1690
|
+
title?: string;
|
|
1691
|
+
}
|
|
1605
1692
|
interface VulnerabilityLocation {
|
|
1606
1693
|
/** Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. */
|
|
1607
1694
|
cpeUri?: string;
|
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: 20230203
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -286,6 +286,51 @@ gapi.load('client', async () => {
|
|
|
286
286
|
}
|
|
287
287
|
],
|
|
288
288
|
},
|
|
289
|
+
vulnerabilityAssessment: {
|
|
290
|
+
assessment: {
|
|
291
|
+
cve: "Test string",
|
|
292
|
+
longDescription: "Test string",
|
|
293
|
+
relatedUris: [
|
|
294
|
+
{
|
|
295
|
+
label: "Test string",
|
|
296
|
+
url: "Test string",
|
|
297
|
+
}
|
|
298
|
+
],
|
|
299
|
+
remediations: [
|
|
300
|
+
{
|
|
301
|
+
details: "Test string",
|
|
302
|
+
remediationTime: "Test string",
|
|
303
|
+
remediationType: "Test string",
|
|
304
|
+
remediationUri: {
|
|
305
|
+
label: "Test string",
|
|
306
|
+
url: "Test string",
|
|
307
|
+
},
|
|
308
|
+
}
|
|
309
|
+
],
|
|
310
|
+
shortDescription: "Test string",
|
|
311
|
+
state: "Test string",
|
|
312
|
+
threats: [
|
|
313
|
+
{
|
|
314
|
+
details: "Test string",
|
|
315
|
+
threatType: "Test string",
|
|
316
|
+
}
|
|
317
|
+
],
|
|
318
|
+
},
|
|
319
|
+
languageCode: "Test string",
|
|
320
|
+
longDescription: "Test string",
|
|
321
|
+
product: {
|
|
322
|
+
genericUri: "Test string",
|
|
323
|
+
id: "Test string",
|
|
324
|
+
name: "Test string",
|
|
325
|
+
},
|
|
326
|
+
publisher: {
|
|
327
|
+
context: "Test string",
|
|
328
|
+
issuingAuthority: "Test string",
|
|
329
|
+
name: "Test string",
|
|
330
|
+
},
|
|
331
|
+
shortDescription: "Test string",
|
|
332
|
+
title: "Test string",
|
|
333
|
+
},
|
|
289
334
|
}
|
|
290
335
|
},
|
|
291
336
|
});
|
|
@@ -545,6 +590,51 @@ gapi.load('client', async () => {
|
|
|
545
590
|
}
|
|
546
591
|
],
|
|
547
592
|
},
|
|
593
|
+
vulnerabilityAssessment: {
|
|
594
|
+
assessment: {
|
|
595
|
+
cve: "Test string",
|
|
596
|
+
longDescription: "Test string",
|
|
597
|
+
relatedUris: [
|
|
598
|
+
{
|
|
599
|
+
label: "Test string",
|
|
600
|
+
url: "Test string",
|
|
601
|
+
}
|
|
602
|
+
],
|
|
603
|
+
remediations: [
|
|
604
|
+
{
|
|
605
|
+
details: "Test string",
|
|
606
|
+
remediationTime: "Test string",
|
|
607
|
+
remediationType: "Test string",
|
|
608
|
+
remediationUri: {
|
|
609
|
+
label: "Test string",
|
|
610
|
+
url: "Test string",
|
|
611
|
+
},
|
|
612
|
+
}
|
|
613
|
+
],
|
|
614
|
+
shortDescription: "Test string",
|
|
615
|
+
state: "Test string",
|
|
616
|
+
threats: [
|
|
617
|
+
{
|
|
618
|
+
details: "Test string",
|
|
619
|
+
threatType: "Test string",
|
|
620
|
+
}
|
|
621
|
+
],
|
|
622
|
+
},
|
|
623
|
+
languageCode: "Test string",
|
|
624
|
+
longDescription: "Test string",
|
|
625
|
+
product: {
|
|
626
|
+
genericUri: "Test string",
|
|
627
|
+
id: "Test string",
|
|
628
|
+
name: "Test string",
|
|
629
|
+
},
|
|
630
|
+
publisher: {
|
|
631
|
+
context: "Test string",
|
|
632
|
+
issuingAuthority: "Test string",
|
|
633
|
+
name: "Test string",
|
|
634
|
+
},
|
|
635
|
+
shortDescription: "Test string",
|
|
636
|
+
title: "Test string",
|
|
637
|
+
},
|
|
548
638
|
});
|
|
549
639
|
/** Deletes the specified note. */
|
|
550
640
|
await gapi.client.containeranalysis.projects.notes.delete({
|
|
@@ -829,6 +919,51 @@ gapi.load('client', async () => {
|
|
|
829
919
|
}
|
|
830
920
|
],
|
|
831
921
|
},
|
|
922
|
+
vulnerabilityAssessment: {
|
|
923
|
+
assessment: {
|
|
924
|
+
cve: "Test string",
|
|
925
|
+
longDescription: "Test string",
|
|
926
|
+
relatedUris: [
|
|
927
|
+
{
|
|
928
|
+
label: "Test string",
|
|
929
|
+
url: "Test string",
|
|
930
|
+
}
|
|
931
|
+
],
|
|
932
|
+
remediations: [
|
|
933
|
+
{
|
|
934
|
+
details: "Test string",
|
|
935
|
+
remediationTime: "Test string",
|
|
936
|
+
remediationType: "Test string",
|
|
937
|
+
remediationUri: {
|
|
938
|
+
label: "Test string",
|
|
939
|
+
url: "Test string",
|
|
940
|
+
},
|
|
941
|
+
}
|
|
942
|
+
],
|
|
943
|
+
shortDescription: "Test string",
|
|
944
|
+
state: "Test string",
|
|
945
|
+
threats: [
|
|
946
|
+
{
|
|
947
|
+
details: "Test string",
|
|
948
|
+
threatType: "Test string",
|
|
949
|
+
}
|
|
950
|
+
],
|
|
951
|
+
},
|
|
952
|
+
languageCode: "Test string",
|
|
953
|
+
longDescription: "Test string",
|
|
954
|
+
product: {
|
|
955
|
+
genericUri: "Test string",
|
|
956
|
+
id: "Test string",
|
|
957
|
+
name: "Test string",
|
|
958
|
+
},
|
|
959
|
+
publisher: {
|
|
960
|
+
context: "Test string",
|
|
961
|
+
issuingAuthority: "Test string",
|
|
962
|
+
name: "Test string",
|
|
963
|
+
},
|
|
964
|
+
shortDescription: "Test string",
|
|
965
|
+
title: "Test string",
|
|
966
|
+
},
|
|
832
967
|
});
|
|
833
968
|
/**
|
|
834
969
|
* Sets the access control policy on the specified note or occurrence. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the
|
|
@@ -1278,6 +1413,34 @@ gapi.load('client', async () => {
|
|
|
1278
1413
|
severity: "Test string",
|
|
1279
1414
|
shortDescription: "Test string",
|
|
1280
1415
|
type: "Test string",
|
|
1416
|
+
vexAssessment: {
|
|
1417
|
+
cve: "Test string",
|
|
1418
|
+
noteName: "Test string",
|
|
1419
|
+
relatedUris: [
|
|
1420
|
+
{
|
|
1421
|
+
label: "Test string",
|
|
1422
|
+
url: "Test string",
|
|
1423
|
+
}
|
|
1424
|
+
],
|
|
1425
|
+
remediations: [
|
|
1426
|
+
{
|
|
1427
|
+
details: "Test string",
|
|
1428
|
+
remediationTime: "Test string",
|
|
1429
|
+
remediationType: "Test string",
|
|
1430
|
+
remediationUri: {
|
|
1431
|
+
label: "Test string",
|
|
1432
|
+
url: "Test string",
|
|
1433
|
+
},
|
|
1434
|
+
}
|
|
1435
|
+
],
|
|
1436
|
+
state: "Test string",
|
|
1437
|
+
threats: [
|
|
1438
|
+
{
|
|
1439
|
+
details: "Test string",
|
|
1440
|
+
threatType: "Test string",
|
|
1441
|
+
}
|
|
1442
|
+
],
|
|
1443
|
+
},
|
|
1281
1444
|
},
|
|
1282
1445
|
}
|
|
1283
1446
|
],
|
|
@@ -1683,6 +1846,34 @@ gapi.load('client', async () => {
|
|
|
1683
1846
|
severity: "Test string",
|
|
1684
1847
|
shortDescription: "Test string",
|
|
1685
1848
|
type: "Test string",
|
|
1849
|
+
vexAssessment: {
|
|
1850
|
+
cve: "Test string",
|
|
1851
|
+
noteName: "Test string",
|
|
1852
|
+
relatedUris: [
|
|
1853
|
+
{
|
|
1854
|
+
label: "Test string",
|
|
1855
|
+
url: "Test string",
|
|
1856
|
+
}
|
|
1857
|
+
],
|
|
1858
|
+
remediations: [
|
|
1859
|
+
{
|
|
1860
|
+
details: "Test string",
|
|
1861
|
+
remediationTime: "Test string",
|
|
1862
|
+
remediationType: "Test string",
|
|
1863
|
+
remediationUri: {
|
|
1864
|
+
label: "Test string",
|
|
1865
|
+
url: "Test string",
|
|
1866
|
+
},
|
|
1867
|
+
}
|
|
1868
|
+
],
|
|
1869
|
+
state: "Test string",
|
|
1870
|
+
threats: [
|
|
1871
|
+
{
|
|
1872
|
+
details: "Test string",
|
|
1873
|
+
threatType: "Test string",
|
|
1874
|
+
}
|
|
1875
|
+
],
|
|
1876
|
+
},
|
|
1686
1877
|
},
|
|
1687
1878
|
});
|
|
1688
1879
|
/** Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource. */
|
|
@@ -2123,6 +2314,34 @@ gapi.load('client', async () => {
|
|
|
2123
2314
|
severity: "Test string",
|
|
2124
2315
|
shortDescription: "Test string",
|
|
2125
2316
|
type: "Test string",
|
|
2317
|
+
vexAssessment: {
|
|
2318
|
+
cve: "Test string",
|
|
2319
|
+
noteName: "Test string",
|
|
2320
|
+
relatedUris: [
|
|
2321
|
+
{
|
|
2322
|
+
label: "Test string",
|
|
2323
|
+
url: "Test string",
|
|
2324
|
+
}
|
|
2325
|
+
],
|
|
2326
|
+
remediations: [
|
|
2327
|
+
{
|
|
2328
|
+
details: "Test string",
|
|
2329
|
+
remediationTime: "Test string",
|
|
2330
|
+
remediationType: "Test string",
|
|
2331
|
+
remediationUri: {
|
|
2332
|
+
label: "Test string",
|
|
2333
|
+
url: "Test string",
|
|
2334
|
+
},
|
|
2335
|
+
}
|
|
2336
|
+
],
|
|
2337
|
+
state: "Test string",
|
|
2338
|
+
threats: [
|
|
2339
|
+
{
|
|
2340
|
+
details: "Test string",
|
|
2341
|
+
threatType: "Test string",
|
|
2342
|
+
}
|
|
2343
|
+
],
|
|
2344
|
+
},
|
|
2126
2345
|
},
|
|
2127
2346
|
});
|
|
2128
2347
|
/**
|