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

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 +28 -6
  2. package/package.json +1 -1
  3. package/tests.ts +190 -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: 20230707
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -1191,6 +1191,9 @@ declare namespace gapi.client {
1191
1191
  /** The last time continuous analysis was done for this resource. Deprecated, do not use. */
1192
1192
  lastAnalysisTime?:
1193
1193
  string;
1194
+ /** The status of an SBOM generation. */
1195
+ sbomStatus?:
1196
+ SBOMStatus;
1194
1197
  }
1195
1198
  interface Discovery {
1196
1199
  /** Required. Immutable. The kind of analysis that is handled by this discovery. */
@@ -1279,7 +1282,7 @@ declare namespace gapi.client {
1279
1282
  interface ExportSBOMRequest {
1280
1283
  }
1281
1284
  interface ExportSBOMResponse {
1282
- /** The id of the discovery occurrence that can be used to track the progression of the SBOM export. */
1285
+ /** 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
1286
  discoveryOccurrenceId?:
1284
1287
  string;
1285
1288
  }
@@ -1604,10 +1607,15 @@ declare namespace gapi.client {
1604
1607
  string;
1605
1608
  }
1606
1609
  interface InTotoSlsaProvenanceV1 {
1607
- buildDefinition?:
1608
- BuildDefinition;
1609
- runDetails?:
1610
- RunDetails;
1610
+ /** InToto spec defined at https://github.com/in-toto/attestation/tree/main/spec#statement */
1611
+ _type?:
1612
+ string;
1613
+ predicate?:
1614
+ SlsaProvenanceV1;
1615
+ predicateType?:
1616
+ string;
1617
+ subject?:
1618
+ Subject[];
1611
1619
  }
1612
1620
  interface Justification {
1613
1621
  /** Additional details on why this justification was chosen. */
@@ -2237,6 +2245,14 @@ declare namespace gapi.client {
2237
2245
  signatures?:
2238
2246
  EnvelopeSignature[];
2239
2247
  }
2248
+ interface SBOMStatus {
2249
+ /** If there was an error generating an SBOM, this will indicate what that error was. */
2250
+ error?:
2251
+ string;
2252
+ /** The progress of the SBOM generation. */
2253
+ sbomState?:
2254
+ string;
2255
+ }
2240
2256
  interface SetIamPolicyRequest {
2241
2257
  /**
2242
2258
  * 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 +2292,12 @@ declare namespace gapi.client {
2276
2292
  publicKeyValue?:
2277
2293
  string;
2278
2294
  }
2295
+ interface SlsaProvenanceV1 {
2296
+ buildDefinition?:
2297
+ BuildDefinition;
2298
+ runDetails?:
2299
+ RunDetails;
2300
+ }
2279
2301
  interface Source {
2280
2302
  /**
2281
2303
  * 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
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.20230707",
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: 20230707
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -1049,33 +1049,55 @@ gapi.load('client', async () => {
1049
1049
  },
1050
1050
  build: {
1051
1051
  inTotoSlsaProvenanceV1: {
1052
- buildDefinition: {
1053
- buildType: "Test string",
1054
- externalParameters: {
1055
- A: 42
1056
- },
1057
- internalParameters: {
1058
- A: 42
1052
+ _type: "Test string",
1053
+ predicate: {
1054
+ buildDefinition: {
1055
+ buildType: "Test string",
1056
+ externalParameters: {
1057
+ A: 42
1058
+ },
1059
+ internalParameters: {
1060
+ A: 42
1061
+ },
1062
+ resolvedDependencies: [
1063
+ {
1064
+ annotations: {
1065
+ A: 42
1066
+ },
1067
+ content: "Test string",
1068
+ digest: {
1069
+ A: "Test string"
1070
+ },
1071
+ downloadLocation: "Test string",
1072
+ mediaType: "Test string",
1073
+ name: "Test string",
1074
+ uri: "Test string",
1075
+ }
1076
+ ],
1059
1077
  },
1060
- resolvedDependencies: [
1061
- {
1062
- annotations: {
1063
- A: 42
1064
- },
1065
- content: "Test string",
1066
- digest: {
1078
+ runDetails: {
1079
+ builder: {
1080
+ builderDependencies: [
1081
+ {
1082
+ annotations: {
1083
+ A: 42
1084
+ },
1085
+ content: "Test string",
1086
+ digest: {
1087
+ A: "Test string"
1088
+ },
1089
+ downloadLocation: "Test string",
1090
+ mediaType: "Test string",
1091
+ name: "Test string",
1092
+ uri: "Test string",
1093
+ }
1094
+ ],
1095
+ id: "Test string",
1096
+ version: {
1067
1097
  A: "Test string"
1068
1098
  },
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: [
1099
+ },
1100
+ byproducts: [
1079
1101
  {
1080
1102
  annotations: {
1081
1103
  A: 42
@@ -1090,32 +1112,22 @@ gapi.load('client', async () => {
1090
1112
  uri: "Test string",
1091
1113
  }
1092
1114
  ],
1093
- id: "Test string",
1094
- version: {
1095
- A: "Test string"
1115
+ metadata: {
1116
+ finishedOn: "Test string",
1117
+ invocationId: "Test string",
1118
+ startedOn: "Test string",
1096
1119
  },
1097
1120
  },
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
1121
  },
1122
+ predicateType: "Test string",
1123
+ subject: [
1124
+ {
1125
+ digest: {
1126
+ A: "Test string"
1127
+ },
1128
+ name: "Test string",
1129
+ }
1130
+ ],
1119
1131
  },
1120
1132
  provenance: {
1121
1133
  builderVersion: "Test string",
@@ -1300,6 +1312,10 @@ gapi.load('client', async () => {
1300
1312
  },
1301
1313
  continuousAnalysis: "Test string",
1302
1314
  lastAnalysisTime: "Test string",
1315
+ sbomStatus: {
1316
+ error: "Test string",
1317
+ sbomState: "Test string",
1318
+ },
1303
1319
  },
1304
1320
  },
1305
1321
  envelope: {
@@ -1608,33 +1624,55 @@ gapi.load('client', async () => {
1608
1624
  },
1609
1625
  build: {
1610
1626
  inTotoSlsaProvenanceV1: {
1611
- buildDefinition: {
1612
- buildType: "Test string",
1613
- externalParameters: {
1614
- A: 42
1615
- },
1616
- internalParameters: {
1617
- A: 42
1627
+ _type: "Test string",
1628
+ predicate: {
1629
+ buildDefinition: {
1630
+ buildType: "Test string",
1631
+ externalParameters: {
1632
+ A: 42
1633
+ },
1634
+ internalParameters: {
1635
+ A: 42
1636
+ },
1637
+ resolvedDependencies: [
1638
+ {
1639
+ annotations: {
1640
+ A: 42
1641
+ },
1642
+ content: "Test string",
1643
+ digest: {
1644
+ A: "Test string"
1645
+ },
1646
+ downloadLocation: "Test string",
1647
+ mediaType: "Test string",
1648
+ name: "Test string",
1649
+ uri: "Test string",
1650
+ }
1651
+ ],
1618
1652
  },
1619
- resolvedDependencies: [
1620
- {
1621
- annotations: {
1622
- A: 42
1623
- },
1624
- content: "Test string",
1625
- digest: {
1653
+ runDetails: {
1654
+ builder: {
1655
+ builderDependencies: [
1656
+ {
1657
+ annotations: {
1658
+ A: 42
1659
+ },
1660
+ content: "Test string",
1661
+ digest: {
1662
+ A: "Test string"
1663
+ },
1664
+ downloadLocation: "Test string",
1665
+ mediaType: "Test string",
1666
+ name: "Test string",
1667
+ uri: "Test string",
1668
+ }
1669
+ ],
1670
+ id: "Test string",
1671
+ version: {
1626
1672
  A: "Test string"
1627
1673
  },
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: [
1674
+ },
1675
+ byproducts: [
1638
1676
  {
1639
1677
  annotations: {
1640
1678
  A: 42
@@ -1649,32 +1687,22 @@ gapi.load('client', async () => {
1649
1687
  uri: "Test string",
1650
1688
  }
1651
1689
  ],
1652
- id: "Test string",
1653
- version: {
1654
- A: "Test string"
1690
+ metadata: {
1691
+ finishedOn: "Test string",
1692
+ invocationId: "Test string",
1693
+ startedOn: "Test string",
1655
1694
  },
1656
1695
  },
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
1696
  },
1697
+ predicateType: "Test string",
1698
+ subject: [
1699
+ {
1700
+ digest: {
1701
+ A: "Test string"
1702
+ },
1703
+ name: "Test string",
1704
+ }
1705
+ ],
1678
1706
  },
1679
1707
  provenance: {
1680
1708
  builderVersion: "Test string",
@@ -1859,6 +1887,10 @@ gapi.load('client', async () => {
1859
1887
  },
1860
1888
  continuousAnalysis: "Test string",
1861
1889
  lastAnalysisTime: "Test string",
1890
+ sbomStatus: {
1891
+ error: "Test string",
1892
+ sbomState: "Test string",
1893
+ },
1862
1894
  },
1863
1895
  },
1864
1896
  envelope: {
@@ -2202,33 +2234,55 @@ gapi.load('client', async () => {
2202
2234
  },
2203
2235
  build: {
2204
2236
  inTotoSlsaProvenanceV1: {
2205
- buildDefinition: {
2206
- buildType: "Test string",
2207
- externalParameters: {
2208
- A: 42
2209
- },
2210
- internalParameters: {
2211
- A: 42
2237
+ _type: "Test string",
2238
+ predicate: {
2239
+ buildDefinition: {
2240
+ buildType: "Test string",
2241
+ externalParameters: {
2242
+ A: 42
2243
+ },
2244
+ internalParameters: {
2245
+ A: 42
2246
+ },
2247
+ resolvedDependencies: [
2248
+ {
2249
+ annotations: {
2250
+ A: 42
2251
+ },
2252
+ content: "Test string",
2253
+ digest: {
2254
+ A: "Test string"
2255
+ },
2256
+ downloadLocation: "Test string",
2257
+ mediaType: "Test string",
2258
+ name: "Test string",
2259
+ uri: "Test string",
2260
+ }
2261
+ ],
2212
2262
  },
2213
- resolvedDependencies: [
2214
- {
2215
- annotations: {
2216
- A: 42
2217
- },
2218
- content: "Test string",
2219
- digest: {
2263
+ runDetails: {
2264
+ builder: {
2265
+ builderDependencies: [
2266
+ {
2267
+ annotations: {
2268
+ A: 42
2269
+ },
2270
+ content: "Test string",
2271
+ digest: {
2272
+ A: "Test string"
2273
+ },
2274
+ downloadLocation: "Test string",
2275
+ mediaType: "Test string",
2276
+ name: "Test string",
2277
+ uri: "Test string",
2278
+ }
2279
+ ],
2280
+ id: "Test string",
2281
+ version: {
2220
2282
  A: "Test string"
2221
2283
  },
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: [
2284
+ },
2285
+ byproducts: [
2232
2286
  {
2233
2287
  annotations: {
2234
2288
  A: 42
@@ -2243,32 +2297,22 @@ gapi.load('client', async () => {
2243
2297
  uri: "Test string",
2244
2298
  }
2245
2299
  ],
2246
- id: "Test string",
2247
- version: {
2248
- A: "Test string"
2300
+ metadata: {
2301
+ finishedOn: "Test string",
2302
+ invocationId: "Test string",
2303
+ startedOn: "Test string",
2249
2304
  },
2250
2305
  },
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
2306
  },
2307
+ predicateType: "Test string",
2308
+ subject: [
2309
+ {
2310
+ digest: {
2311
+ A: "Test string"
2312
+ },
2313
+ name: "Test string",
2314
+ }
2315
+ ],
2272
2316
  },
2273
2317
  provenance: {
2274
2318
  builderVersion: "Test string",
@@ -2453,6 +2497,10 @@ gapi.load('client', async () => {
2453
2497
  },
2454
2498
  continuousAnalysis: "Test string",
2455
2499
  lastAnalysisTime: "Test string",
2500
+ sbomStatus: {
2501
+ error: "Test string",
2502
+ sbomState: "Test string",
2503
+ },
2456
2504
  },
2457
2505
  },
2458
2506
  envelope: {