@maxim_mazurok/gapi.client.containeranalysis-v1beta1 0.0.20230317 → 0.0.20230331
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 +45 -1
- package/package.json +1 -1
- package/tests.ts +100 -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: 20230331
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -1252,6 +1252,8 @@ declare namespace gapi.client {
|
|
|
1252
1252
|
relatedUrl?: RelatedUrl[];
|
|
1253
1253
|
/** A note describing a software bill of materials. */
|
|
1254
1254
|
sbom?: DocumentNote;
|
|
1255
|
+
/** A note describing an SBOM reference. */
|
|
1256
|
+
sbomReference?: SBOMReferenceNote;
|
|
1255
1257
|
/** A one sentence description of this note. */
|
|
1256
1258
|
shortDescription?: string;
|
|
1257
1259
|
/** A note describing an SPDX File. */
|
|
@@ -1298,6 +1300,8 @@ declare namespace gapi.client {
|
|
|
1298
1300
|
resource?: Resource;
|
|
1299
1301
|
/** Describes a specific software bill of materials document. */
|
|
1300
1302
|
sbom?: DocumentOccurrence;
|
|
1303
|
+
/** Describes a specific SBOM reference occurrences. */
|
|
1304
|
+
sbomReference?: SBOMReferenceOccurrence;
|
|
1301
1305
|
/** Describes a specific SPDX File. */
|
|
1302
1306
|
spdxFile?: FileOccurrence;
|
|
1303
1307
|
/** Describes a specific SPDX Package. */
|
|
@@ -1533,6 +1537,40 @@ declare namespace gapi.client {
|
|
|
1533
1537
|
/** Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image. */
|
|
1534
1538
|
uri?: string;
|
|
1535
1539
|
}
|
|
1540
|
+
interface SbomReferenceIntotoPayload {
|
|
1541
|
+
/** Identifier for the schema of the Statement. */
|
|
1542
|
+
_type?: string;
|
|
1543
|
+
/** Additional parameters of the Predicate. Includes the actual data about the SBOM. */
|
|
1544
|
+
predicate?: SbomReferenceIntotoPredicate;
|
|
1545
|
+
/** URI identifying the type of the Predicate. */
|
|
1546
|
+
predicateType?: string;
|
|
1547
|
+
/** Set of software artifacts that the attestation applies to. Each element represents a single software artifact. */
|
|
1548
|
+
subject?: Subject[];
|
|
1549
|
+
}
|
|
1550
|
+
interface SbomReferenceIntotoPredicate {
|
|
1551
|
+
/** A map of algorithm to digest of the contents of the SBOM. */
|
|
1552
|
+
digest?: { [P in string]: string };
|
|
1553
|
+
/** The location of the SBOM. */
|
|
1554
|
+
location?: string;
|
|
1555
|
+
/** The mime type of the SBOM. */
|
|
1556
|
+
mimeType?: string;
|
|
1557
|
+
/** The person or system referring this predicate to the consumer. */
|
|
1558
|
+
referrerId?: string;
|
|
1559
|
+
}
|
|
1560
|
+
interface SBOMReferenceNote {
|
|
1561
|
+
/** The format that SBOM takes. E.g. may be spdx, cyclonedx, etc... */
|
|
1562
|
+
format?: string;
|
|
1563
|
+
/** The version of the format that the SBOM takes. E.g. if the format is spdx, the version may be 2.3. */
|
|
1564
|
+
version?: string;
|
|
1565
|
+
}
|
|
1566
|
+
interface SBOMReferenceOccurrence {
|
|
1567
|
+
/** The actual payload that contains the SBOM reference data. */
|
|
1568
|
+
payload?: SbomReferenceIntotoPayload;
|
|
1569
|
+
/** The kind of payload that SbomReferenceIntotoPayload takes. Since it's in the intoto format, this value is expected to be 'application/vnd.in-toto+json'. */
|
|
1570
|
+
payloadType?: string;
|
|
1571
|
+
/** The signatures over the payload. */
|
|
1572
|
+
signatures?: EnvelopeSignature[];
|
|
1573
|
+
}
|
|
1536
1574
|
interface SetIamPolicyRequest {
|
|
1537
1575
|
/**
|
|
1538
1576
|
* REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud
|
|
@@ -1603,6 +1641,12 @@ declare namespace gapi.client {
|
|
|
1603
1641
|
*/
|
|
1604
1642
|
message?: string;
|
|
1605
1643
|
}
|
|
1644
|
+
interface Subject {
|
|
1645
|
+
/** `"": ""` Algorithms can be e.g. sha256, sha512 See https://github.com/in-toto/attestation/blob/main/spec/field_types.md#DigestSet */
|
|
1646
|
+
digest?: { [P in string]: string };
|
|
1647
|
+
/** Identifier to distinguish this artifact from others within the subject. */
|
|
1648
|
+
name?: string;
|
|
1649
|
+
}
|
|
1606
1650
|
interface TestIamPermissionsRequest {
|
|
1607
1651
|
/**
|
|
1608
1652
|
* The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM
|
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: 20230331
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -156,6 +156,10 @@ gapi.load('client', async () => {
|
|
|
156
156
|
dataLicence: "Test string",
|
|
157
157
|
spdxVersion: "Test string",
|
|
158
158
|
},
|
|
159
|
+
sbomReference: {
|
|
160
|
+
format: "Test string",
|
|
161
|
+
version: "Test string",
|
|
162
|
+
},
|
|
159
163
|
shortDescription: "Test string",
|
|
160
164
|
spdxFile: {
|
|
161
165
|
checksum: [
|
|
@@ -460,6 +464,10 @@ gapi.load('client', async () => {
|
|
|
460
464
|
dataLicence: "Test string",
|
|
461
465
|
spdxVersion: "Test string",
|
|
462
466
|
},
|
|
467
|
+
sbomReference: {
|
|
468
|
+
format: "Test string",
|
|
469
|
+
version: "Test string",
|
|
470
|
+
},
|
|
463
471
|
shortDescription: "Test string",
|
|
464
472
|
spdxFile: {
|
|
465
473
|
checksum: [
|
|
@@ -789,6 +797,10 @@ gapi.load('client', async () => {
|
|
|
789
797
|
dataLicence: "Test string",
|
|
790
798
|
spdxVersion: "Test string",
|
|
791
799
|
},
|
|
800
|
+
sbomReference: {
|
|
801
|
+
format: "Test string",
|
|
802
|
+
version: "Test string",
|
|
803
|
+
},
|
|
792
804
|
shortDescription: "Test string",
|
|
793
805
|
spdxFile: {
|
|
794
806
|
checksum: [
|
|
@@ -1329,6 +1341,35 @@ gapi.load('client', async () => {
|
|
|
1329
1341
|
namespace: "Test string",
|
|
1330
1342
|
title: "Test string",
|
|
1331
1343
|
},
|
|
1344
|
+
sbomReference: {
|
|
1345
|
+
payload: {
|
|
1346
|
+
_type: "Test string",
|
|
1347
|
+
predicate: {
|
|
1348
|
+
digest: {
|
|
1349
|
+
A: "Test string"
|
|
1350
|
+
},
|
|
1351
|
+
location: "Test string",
|
|
1352
|
+
mimeType: "Test string",
|
|
1353
|
+
referrerId: "Test string",
|
|
1354
|
+
},
|
|
1355
|
+
predicateType: "Test string",
|
|
1356
|
+
subject: [
|
|
1357
|
+
{
|
|
1358
|
+
digest: {
|
|
1359
|
+
A: "Test string"
|
|
1360
|
+
},
|
|
1361
|
+
name: "Test string",
|
|
1362
|
+
}
|
|
1363
|
+
],
|
|
1364
|
+
},
|
|
1365
|
+
payloadType: "Test string",
|
|
1366
|
+
signatures: [
|
|
1367
|
+
{
|
|
1368
|
+
keyid: "Test string",
|
|
1369
|
+
sig: "Test string",
|
|
1370
|
+
}
|
|
1371
|
+
],
|
|
1372
|
+
},
|
|
1332
1373
|
spdxFile: {
|
|
1333
1374
|
attributions: [
|
|
1334
1375
|
"Test string"
|
|
@@ -1790,6 +1831,35 @@ gapi.load('client', async () => {
|
|
|
1790
1831
|
namespace: "Test string",
|
|
1791
1832
|
title: "Test string",
|
|
1792
1833
|
},
|
|
1834
|
+
sbomReference: {
|
|
1835
|
+
payload: {
|
|
1836
|
+
_type: "Test string",
|
|
1837
|
+
predicate: {
|
|
1838
|
+
digest: {
|
|
1839
|
+
A: "Test string"
|
|
1840
|
+
},
|
|
1841
|
+
location: "Test string",
|
|
1842
|
+
mimeType: "Test string",
|
|
1843
|
+
referrerId: "Test string",
|
|
1844
|
+
},
|
|
1845
|
+
predicateType: "Test string",
|
|
1846
|
+
subject: [
|
|
1847
|
+
{
|
|
1848
|
+
digest: {
|
|
1849
|
+
A: "Test string"
|
|
1850
|
+
},
|
|
1851
|
+
name: "Test string",
|
|
1852
|
+
}
|
|
1853
|
+
],
|
|
1854
|
+
},
|
|
1855
|
+
payloadType: "Test string",
|
|
1856
|
+
signatures: [
|
|
1857
|
+
{
|
|
1858
|
+
keyid: "Test string",
|
|
1859
|
+
sig: "Test string",
|
|
1860
|
+
}
|
|
1861
|
+
],
|
|
1862
|
+
},
|
|
1793
1863
|
spdxFile: {
|
|
1794
1864
|
attributions: [
|
|
1795
1865
|
"Test string"
|
|
@@ -2286,6 +2356,35 @@ gapi.load('client', async () => {
|
|
|
2286
2356
|
namespace: "Test string",
|
|
2287
2357
|
title: "Test string",
|
|
2288
2358
|
},
|
|
2359
|
+
sbomReference: {
|
|
2360
|
+
payload: {
|
|
2361
|
+
_type: "Test string",
|
|
2362
|
+
predicate: {
|
|
2363
|
+
digest: {
|
|
2364
|
+
A: "Test string"
|
|
2365
|
+
},
|
|
2366
|
+
location: "Test string",
|
|
2367
|
+
mimeType: "Test string",
|
|
2368
|
+
referrerId: "Test string",
|
|
2369
|
+
},
|
|
2370
|
+
predicateType: "Test string",
|
|
2371
|
+
subject: [
|
|
2372
|
+
{
|
|
2373
|
+
digest: {
|
|
2374
|
+
A: "Test string"
|
|
2375
|
+
},
|
|
2376
|
+
name: "Test string",
|
|
2377
|
+
}
|
|
2378
|
+
],
|
|
2379
|
+
},
|
|
2380
|
+
payloadType: "Test string",
|
|
2381
|
+
signatures: [
|
|
2382
|
+
{
|
|
2383
|
+
keyid: "Test string",
|
|
2384
|
+
sig: "Test string",
|
|
2385
|
+
}
|
|
2386
|
+
],
|
|
2387
|
+
},
|
|
2289
2388
|
spdxFile: {
|
|
2290
2389
|
attributions: [
|
|
2291
2390
|
"Test string"
|