@maxim_mazurok/gapi.client.containeranalysis-v1beta1 0.0.20230623 → 0.0.20230717

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.
Files changed (3) hide show
  1. package/index.d.ts +36 -8
  2. package/package.json +1 -1
  3. package/tests.ts +196 -142
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: 20230623
12
+ // Revision: 20230717
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -57,7 +57,7 @@ declare namespace gapi.client {
57
57
  string[];
58
58
  }
59
59
  interface Assessment {
60
- /** Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking number for the vulnerability. */
60
+ /** Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking number for the vulnerability. Deprecated: Use vulnerability_id instead to denote CVEs. */
61
61
  cve?:
62
62
  string;
63
63
  /** Contains information about the impact of this vulnerability, this will change with time. */
@@ -84,6 +84,9 @@ declare namespace gapi.client {
84
84
  /** Provides the state of this Vulnerability assessment. */
85
85
  state?:
86
86
  string;
87
+ /** The vulnerability identifier for this Assessment. Will hold one of common identifiers e.g. CVE, GHSA etc. */
88
+ vulnerabilityId?:
89
+ string;
87
90
  }
88
91
  interface Attestation {
89
92
  genericSignedAttestation?:
@@ -1191,6 +1194,9 @@ declare namespace gapi.client {
1191
1194
  /** The last time continuous analysis was done for this resource. Deprecated, do not use. */
1192
1195
  lastAnalysisTime?:
1193
1196
  string;
1197
+ /** The status of an SBOM generation. */
1198
+ sbomStatus?:
1199
+ SBOMStatus;
1194
1200
  }
1195
1201
  interface Discovery {
1196
1202
  /** Required. Immutable. The kind of analysis that is handled by this discovery. */
@@ -1279,7 +1285,7 @@ declare namespace gapi.client {
1279
1285
  interface ExportSBOMRequest {
1280
1286
  }
1281
1287
  interface ExportSBOMResponse {
1282
- /** The id of the discovery occurrence that can be used to track the progression of the SBOM export. */
1288
+ /** The name of the discovery occurrence in the form "projects/{project_id}/occurrences/{OCCURRENCE_ID} It can be used to track the progression of the SBOM export. */
1283
1289
  discoveryOccurrenceId?:
1284
1290
  string;
1285
1291
  }
@@ -1604,10 +1610,15 @@ declare namespace gapi.client {
1604
1610
  string;
1605
1611
  }
1606
1612
  interface InTotoSlsaProvenanceV1 {
1607
- buildDefinition?:
1608
- BuildDefinition;
1609
- runDetails?:
1610
- RunDetails;
1613
+ /** InToto spec defined at https://github.com/in-toto/attestation/tree/main/spec#statement */
1614
+ _type?:
1615
+ string;
1616
+ predicate?:
1617
+ SlsaProvenanceV1;
1618
+ predicateType?:
1619
+ string;
1620
+ subject?:
1621
+ Subject[];
1611
1622
  }
1612
1623
  interface Justification {
1613
1624
  /** Additional details on why this justification was chosen. */
@@ -2237,6 +2248,14 @@ declare namespace gapi.client {
2237
2248
  signatures?:
2238
2249
  EnvelopeSignature[];
2239
2250
  }
2251
+ interface SBOMStatus {
2252
+ /** If there was an error generating an SBOM, this will indicate what that error was. */
2253
+ error?:
2254
+ string;
2255
+ /** The progress of the SBOM generation. */
2256
+ sbomState?:
2257
+ string;
2258
+ }
2240
2259
  interface SetIamPolicyRequest {
2241
2260
  /**
2242
2261
  * 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
@@ -2276,6 +2295,12 @@ declare namespace gapi.client {
2276
2295
  publicKeyValue?:
2277
2296
  string;
2278
2297
  }
2298
+ interface SlsaProvenanceV1 {
2299
+ buildDefinition?:
2300
+ BuildDefinition;
2301
+ runDetails?:
2302
+ RunDetails;
2303
+ }
2279
2304
  interface Source {
2280
2305
  /**
2281
2306
  * If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules. This list will
@@ -2376,7 +2401,7 @@ declare namespace gapi.client {
2376
2401
  string;
2377
2402
  }
2378
2403
  interface VexAssessment {
2379
- /** Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking number for the vulnerability. */
2404
+ /** Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking number for the vulnerability. Deprecated: Use vulnerability_id instead to denote CVEs. */
2380
2405
  cve?:
2381
2406
  string;
2382
2407
  /** Contains information about the impact of this vulnerability, this will change with time. */
@@ -2397,6 +2422,9 @@ declare namespace gapi.client {
2397
2422
  /** Provides the state of this Vulnerability assessment. */
2398
2423
  state?:
2399
2424
  string;
2425
+ /** The vulnerability identifier for this Assessment. Will hold one of common identifiers e.g. CVE, GHSA etc. */
2426
+ vulnerabilityId?:
2427
+ string;
2400
2428
  }
2401
2429
  interface Volume {
2402
2430
  /** 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.containeranalysis-v1beta1",
3
- "version": "0.0.20230623",
3
+ "version": "0.0.20230717",
4
4
  "description": "TypeScript typings for Container Analysis API v1beta1",
5
5
  "license": "MIT",
6
6
  "author": {
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: 20230623
6
+ // Revision: 20230717
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -319,6 +319,7 @@ gapi.load('client', async () => {
319
319
  ],
320
320
  shortDescription: "Test string",
321
321
  state: "Test string",
322
+ vulnerabilityId: "Test string",
322
323
  },
323
324
  languageCode: "Test string",
324
325
  longDescription: "Test string",
@@ -627,6 +628,7 @@ gapi.load('client', async () => {
627
628
  ],
628
629
  shortDescription: "Test string",
629
630
  state: "Test string",
631
+ vulnerabilityId: "Test string",
630
632
  },
631
633
  languageCode: "Test string",
632
634
  longDescription: "Test string",
@@ -960,6 +962,7 @@ gapi.load('client', async () => {
960
962
  ],
961
963
  shortDescription: "Test string",
962
964
  state: "Test string",
965
+ vulnerabilityId: "Test string",
963
966
  },
964
967
  languageCode: "Test string",
965
968
  longDescription: "Test string",
@@ -1049,33 +1052,55 @@ gapi.load('client', async () => {
1049
1052
  },
1050
1053
  build: {
1051
1054
  inTotoSlsaProvenanceV1: {
1052
- buildDefinition: {
1053
- buildType: "Test string",
1054
- externalParameters: {
1055
- A: 42
1056
- },
1057
- internalParameters: {
1058
- A: 42
1055
+ _type: "Test string",
1056
+ predicate: {
1057
+ buildDefinition: {
1058
+ buildType: "Test string",
1059
+ externalParameters: {
1060
+ A: 42
1061
+ },
1062
+ internalParameters: {
1063
+ A: 42
1064
+ },
1065
+ resolvedDependencies: [
1066
+ {
1067
+ annotations: {
1068
+ A: 42
1069
+ },
1070
+ content: "Test string",
1071
+ digest: {
1072
+ A: "Test string"
1073
+ },
1074
+ downloadLocation: "Test string",
1075
+ mediaType: "Test string",
1076
+ name: "Test string",
1077
+ uri: "Test string",
1078
+ }
1079
+ ],
1059
1080
  },
1060
- resolvedDependencies: [
1061
- {
1062
- annotations: {
1063
- A: 42
1064
- },
1065
- content: "Test string",
1066
- digest: {
1081
+ runDetails: {
1082
+ builder: {
1083
+ builderDependencies: [
1084
+ {
1085
+ annotations: {
1086
+ A: 42
1087
+ },
1088
+ content: "Test string",
1089
+ digest: {
1090
+ A: "Test string"
1091
+ },
1092
+ downloadLocation: "Test string",
1093
+ mediaType: "Test string",
1094
+ name: "Test string",
1095
+ uri: "Test string",
1096
+ }
1097
+ ],
1098
+ id: "Test string",
1099
+ version: {
1067
1100
  A: "Test string"
1068
1101
  },
1069
- downloadLocation: "Test string",
1070
- mediaType: "Test string",
1071
- name: "Test string",
1072
- uri: "Test string",
1073
- }
1074
- ],
1075
- },
1076
- runDetails: {
1077
- builder: {
1078
- builderDependencies: [
1102
+ },
1103
+ byproducts: [
1079
1104
  {
1080
1105
  annotations: {
1081
1106
  A: 42
@@ -1090,32 +1115,22 @@ gapi.load('client', async () => {
1090
1115
  uri: "Test string",
1091
1116
  }
1092
1117
  ],
1093
- id: "Test string",
1094
- version: {
1095
- A: "Test string"
1118
+ metadata: {
1119
+ finishedOn: "Test string",
1120
+ invocationId: "Test string",
1121
+ startedOn: "Test string",
1096
1122
  },
1097
1123
  },
1098
- byproducts: [
1099
- {
1100
- annotations: {
1101
- A: 42
1102
- },
1103
- content: "Test string",
1104
- digest: {
1105
- A: "Test string"
1106
- },
1107
- downloadLocation: "Test string",
1108
- mediaType: "Test string",
1109
- name: "Test string",
1110
- uri: "Test string",
1111
- }
1112
- ],
1113
- metadata: {
1114
- finishedOn: "Test string",
1115
- invocationId: "Test string",
1116
- startedOn: "Test string",
1117
- },
1118
1124
  },
1125
+ predicateType: "Test string",
1126
+ subject: [
1127
+ {
1128
+ digest: {
1129
+ A: "Test string"
1130
+ },
1131
+ name: "Test string",
1132
+ }
1133
+ ],
1119
1134
  },
1120
1135
  provenance: {
1121
1136
  builderVersion: "Test string",
@@ -1300,6 +1315,10 @@ gapi.load('client', async () => {
1300
1315
  },
1301
1316
  continuousAnalysis: "Test string",
1302
1317
  lastAnalysisTime: "Test string",
1318
+ sbomStatus: {
1319
+ error: "Test string",
1320
+ sbomState: "Test string",
1321
+ },
1303
1322
  },
1304
1323
  },
1305
1324
  envelope: {
@@ -1578,6 +1597,7 @@ gapi.load('client', async () => {
1578
1597
  }
1579
1598
  ],
1580
1599
  state: "Test string",
1600
+ vulnerabilityId: "Test string",
1581
1601
  },
1582
1602
  },
1583
1603
  }
@@ -1608,33 +1628,55 @@ gapi.load('client', async () => {
1608
1628
  },
1609
1629
  build: {
1610
1630
  inTotoSlsaProvenanceV1: {
1611
- buildDefinition: {
1612
- buildType: "Test string",
1613
- externalParameters: {
1614
- A: 42
1615
- },
1616
- internalParameters: {
1617
- A: 42
1631
+ _type: "Test string",
1632
+ predicate: {
1633
+ buildDefinition: {
1634
+ buildType: "Test string",
1635
+ externalParameters: {
1636
+ A: 42
1637
+ },
1638
+ internalParameters: {
1639
+ A: 42
1640
+ },
1641
+ resolvedDependencies: [
1642
+ {
1643
+ annotations: {
1644
+ A: 42
1645
+ },
1646
+ content: "Test string",
1647
+ digest: {
1648
+ A: "Test string"
1649
+ },
1650
+ downloadLocation: "Test string",
1651
+ mediaType: "Test string",
1652
+ name: "Test string",
1653
+ uri: "Test string",
1654
+ }
1655
+ ],
1618
1656
  },
1619
- resolvedDependencies: [
1620
- {
1621
- annotations: {
1622
- A: 42
1623
- },
1624
- content: "Test string",
1625
- digest: {
1657
+ runDetails: {
1658
+ builder: {
1659
+ builderDependencies: [
1660
+ {
1661
+ annotations: {
1662
+ A: 42
1663
+ },
1664
+ content: "Test string",
1665
+ digest: {
1666
+ A: "Test string"
1667
+ },
1668
+ downloadLocation: "Test string",
1669
+ mediaType: "Test string",
1670
+ name: "Test string",
1671
+ uri: "Test string",
1672
+ }
1673
+ ],
1674
+ id: "Test string",
1675
+ version: {
1626
1676
  A: "Test string"
1627
1677
  },
1628
- downloadLocation: "Test string",
1629
- mediaType: "Test string",
1630
- name: "Test string",
1631
- uri: "Test string",
1632
- }
1633
- ],
1634
- },
1635
- runDetails: {
1636
- builder: {
1637
- builderDependencies: [
1678
+ },
1679
+ byproducts: [
1638
1680
  {
1639
1681
  annotations: {
1640
1682
  A: 42
@@ -1649,32 +1691,22 @@ gapi.load('client', async () => {
1649
1691
  uri: "Test string",
1650
1692
  }
1651
1693
  ],
1652
- id: "Test string",
1653
- version: {
1654
- A: "Test string"
1694
+ metadata: {
1695
+ finishedOn: "Test string",
1696
+ invocationId: "Test string",
1697
+ startedOn: "Test string",
1655
1698
  },
1656
1699
  },
1657
- byproducts: [
1658
- {
1659
- annotations: {
1660
- A: 42
1661
- },
1662
- content: "Test string",
1663
- digest: {
1664
- A: "Test string"
1665
- },
1666
- downloadLocation: "Test string",
1667
- mediaType: "Test string",
1668
- name: "Test string",
1669
- uri: "Test string",
1670
- }
1671
- ],
1672
- metadata: {
1673
- finishedOn: "Test string",
1674
- invocationId: "Test string",
1675
- startedOn: "Test string",
1676
- },
1677
1700
  },
1701
+ predicateType: "Test string",
1702
+ subject: [
1703
+ {
1704
+ digest: {
1705
+ A: "Test string"
1706
+ },
1707
+ name: "Test string",
1708
+ }
1709
+ ],
1678
1710
  },
1679
1711
  provenance: {
1680
1712
  builderVersion: "Test string",
@@ -1859,6 +1891,10 @@ gapi.load('client', async () => {
1859
1891
  },
1860
1892
  continuousAnalysis: "Test string",
1861
1893
  lastAnalysisTime: "Test string",
1894
+ sbomStatus: {
1895
+ error: "Test string",
1896
+ sbomState: "Test string",
1897
+ },
1862
1898
  },
1863
1899
  },
1864
1900
  envelope: {
@@ -2137,6 +2173,7 @@ gapi.load('client', async () => {
2137
2173
  }
2138
2174
  ],
2139
2175
  state: "Test string",
2176
+ vulnerabilityId: "Test string",
2140
2177
  },
2141
2178
  },
2142
2179
  });
@@ -2202,33 +2239,55 @@ gapi.load('client', async () => {
2202
2239
  },
2203
2240
  build: {
2204
2241
  inTotoSlsaProvenanceV1: {
2205
- buildDefinition: {
2206
- buildType: "Test string",
2207
- externalParameters: {
2208
- A: 42
2209
- },
2210
- internalParameters: {
2211
- A: 42
2242
+ _type: "Test string",
2243
+ predicate: {
2244
+ buildDefinition: {
2245
+ buildType: "Test string",
2246
+ externalParameters: {
2247
+ A: 42
2248
+ },
2249
+ internalParameters: {
2250
+ A: 42
2251
+ },
2252
+ resolvedDependencies: [
2253
+ {
2254
+ annotations: {
2255
+ A: 42
2256
+ },
2257
+ content: "Test string",
2258
+ digest: {
2259
+ A: "Test string"
2260
+ },
2261
+ downloadLocation: "Test string",
2262
+ mediaType: "Test string",
2263
+ name: "Test string",
2264
+ uri: "Test string",
2265
+ }
2266
+ ],
2212
2267
  },
2213
- resolvedDependencies: [
2214
- {
2215
- annotations: {
2216
- A: 42
2217
- },
2218
- content: "Test string",
2219
- digest: {
2268
+ runDetails: {
2269
+ builder: {
2270
+ builderDependencies: [
2271
+ {
2272
+ annotations: {
2273
+ A: 42
2274
+ },
2275
+ content: "Test string",
2276
+ digest: {
2277
+ A: "Test string"
2278
+ },
2279
+ downloadLocation: "Test string",
2280
+ mediaType: "Test string",
2281
+ name: "Test string",
2282
+ uri: "Test string",
2283
+ }
2284
+ ],
2285
+ id: "Test string",
2286
+ version: {
2220
2287
  A: "Test string"
2221
2288
  },
2222
- downloadLocation: "Test string",
2223
- mediaType: "Test string",
2224
- name: "Test string",
2225
- uri: "Test string",
2226
- }
2227
- ],
2228
- },
2229
- runDetails: {
2230
- builder: {
2231
- builderDependencies: [
2289
+ },
2290
+ byproducts: [
2232
2291
  {
2233
2292
  annotations: {
2234
2293
  A: 42
@@ -2243,32 +2302,22 @@ gapi.load('client', async () => {
2243
2302
  uri: "Test string",
2244
2303
  }
2245
2304
  ],
2246
- id: "Test string",
2247
- version: {
2248
- A: "Test string"
2305
+ metadata: {
2306
+ finishedOn: "Test string",
2307
+ invocationId: "Test string",
2308
+ startedOn: "Test string",
2249
2309
  },
2250
2310
  },
2251
- byproducts: [
2252
- {
2253
- annotations: {
2254
- A: 42
2255
- },
2256
- content: "Test string",
2257
- digest: {
2258
- A: "Test string"
2259
- },
2260
- downloadLocation: "Test string",
2261
- mediaType: "Test string",
2262
- name: "Test string",
2263
- uri: "Test string",
2264
- }
2265
- ],
2266
- metadata: {
2267
- finishedOn: "Test string",
2268
- invocationId: "Test string",
2269
- startedOn: "Test string",
2270
- },
2271
2311
  },
2312
+ predicateType: "Test string",
2313
+ subject: [
2314
+ {
2315
+ digest: {
2316
+ A: "Test string"
2317
+ },
2318
+ name: "Test string",
2319
+ }
2320
+ ],
2272
2321
  },
2273
2322
  provenance: {
2274
2323
  builderVersion: "Test string",
@@ -2453,6 +2502,10 @@ gapi.load('client', async () => {
2453
2502
  },
2454
2503
  continuousAnalysis: "Test string",
2455
2504
  lastAnalysisTime: "Test string",
2505
+ sbomStatus: {
2506
+ error: "Test string",
2507
+ sbomState: "Test string",
2508
+ },
2456
2509
  },
2457
2510
  },
2458
2511
  envelope: {
@@ -2731,6 +2784,7 @@ gapi.load('client', async () => {
2731
2784
  }
2732
2785
  ],
2733
2786
  state: "Test string",
2787
+ vulnerabilityId: "Test string",
2734
2788
  },
2735
2789
  },
2736
2790
  });