@maxim_mazurok/gapi.client.containeranalysis-v1alpha1 0.0.20230224 → 0.0.20230310

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 +19 -15
  2. package/package.json +1 -1
  3. package/tests.ts +47 -47
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: 20230224
12
+ // Revision: 20230310
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;
@@ -477,6 +479,8 @@ declare namespace gapi.client {
477
479
  type?: string;
478
480
  }
479
481
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions {
482
+ /** Optional. Option to specify how default logs buckets are setup. */
483
+ defaultLogsBucketBehavior?: string;
480
484
  /**
481
485
  * Requested disk size for the VM that runs the build. Note that this is *NOT* "disk free"; some of the space will be used by the operating system and build utilities. Also note that
482
486
  * this is the minimum disk size that will be allocated for the build -- the build may run with a larger disk than requested. At present, the maximum disk size is 2000GB; builds that
@@ -1200,6 +1204,12 @@ declare namespace gapi.client {
1200
1204
  /** subject is the subjects of the intoto statement */
1201
1205
  subject?: Subject[];
1202
1206
  }
1207
+ interface Justification {
1208
+ /** Additional details on why this justification was chosen. */
1209
+ details?: string;
1210
+ /** The justification type for this vulnerability. */
1211
+ justificationType?: string;
1212
+ }
1203
1213
  interface Layer {
1204
1214
  /** The recovered arguments to the Dockerfile directive. */
1205
1215
  arguments?: string;
@@ -1568,12 +1578,12 @@ declare namespace gapi.client {
1568
1578
  name?: string;
1569
1579
  }
1570
1580
  interface Publisher {
1571
- /** 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 */
1572
- context?: string;
1573
1581
  /** Provides information about the authority of the issuing party to release the document, in particular, the party's constituency and responsibilities or other obligations. */
1574
1582
  issuingAuthority?: string;
1575
1583
  /** Name of the publisher. Examples: 'Google', 'Google Cloud Platform'. */
1576
1584
  name?: string;
1585
+ /** 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 */
1586
+ publisherNamespace?: string;
1577
1587
  }
1578
1588
  interface Recipe {
1579
1589
  /**
@@ -1622,8 +1632,6 @@ declare namespace gapi.client {
1622
1632
  interface Remediation {
1623
1633
  /** Contains a comprehensive human-readable discussion of the remediation. */
1624
1634
  details?: string;
1625
- /** Contains the date from which the remediation is available. */
1626
- remediationTime?: string;
1627
1635
  /** The type of remediation that can be applied. */
1628
1636
  remediationType?: string;
1629
1637
  /** Contains the URL where to obtain the remediation. */
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.containeranalysis-v1alpha1",
3
- "version": "0.0.20230224",
3
+ "version": "0.0.20230310",
4
4
  "description": "TypeScript typings for Container Analysis API v1alpha1",
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: 20230224
6
+ // Revision: 20230310
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
  {
@@ -223,7 +230,6 @@ gapi.load('client', async () => {
223
230
  remediations: [
224
231
  {
225
232
  details: "Test string",
226
- remediationTime: "Test string",
227
233
  remediationType: "Test string",
228
234
  remediationUri: {
229
235
  label: "Test string",
@@ -233,12 +239,6 @@ gapi.load('client', async () => {
233
239
  ],
234
240
  shortDescription: "Test string",
235
241
  state: "Test string",
236
- threats: [
237
- {
238
- details: "Test string",
239
- threatType: "Test string",
240
- }
241
- ],
242
242
  },
243
243
  languageCode: "Test string",
244
244
  longDescription: "Test string",
@@ -251,9 +251,9 @@ gapi.load('client', async () => {
251
251
  name: "Test string",
252
252
  },
253
253
  publisher: {
254
- context: "Test string",
255
254
  issuingAuthority: "Test string",
256
255
  name: "Test string",
256
+ publisherNamespace: "Test string",
257
257
  },
258
258
  shortDescription: "Test string",
259
259
  title: "Test string",
@@ -535,6 +535,13 @@ gapi.load('client', async () => {
535
535
  vulnerabilityAssessment: {
536
536
  assessment: {
537
537
  cve: "Test string",
538
+ impacts: [
539
+ "Test string"
540
+ ],
541
+ justification: {
542
+ details: "Test string",
543
+ justificationType: "Test string",
544
+ },
538
545
  longDescription: "Test string",
539
546
  relatedUris: [
540
547
  {
@@ -545,7 +552,6 @@ gapi.load('client', async () => {
545
552
  remediations: [
546
553
  {
547
554
  details: "Test string",
548
- remediationTime: "Test string",
549
555
  remediationType: "Test string",
550
556
  remediationUri: {
551
557
  label: "Test string",
@@ -555,12 +561,6 @@ gapi.load('client', async () => {
555
561
  ],
556
562
  shortDescription: "Test string",
557
563
  state: "Test string",
558
- threats: [
559
- {
560
- details: "Test string",
561
- threatType: "Test string",
562
- }
563
- ],
564
564
  },
565
565
  languageCode: "Test string",
566
566
  longDescription: "Test string",
@@ -573,9 +573,9 @@ gapi.load('client', async () => {
573
573
  name: "Test string",
574
574
  },
575
575
  publisher: {
576
- context: "Test string",
577
576
  issuingAuthority: "Test string",
578
577
  name: "Test string",
578
+ publisherNamespace: "Test string",
579
579
  },
580
580
  shortDescription: "Test string",
581
581
  title: "Test string",
@@ -1430,6 +1430,13 @@ gapi.load('client', async () => {
1430
1430
  type: "Test string",
1431
1431
  vexAssessment: {
1432
1432
  cve: "Test string",
1433
+ impacts: [
1434
+ "Test string"
1435
+ ],
1436
+ justification: {
1437
+ details: "Test string",
1438
+ justificationType: "Test string",
1439
+ },
1433
1440
  noteName: "Test string",
1434
1441
  relatedUris: [
1435
1442
  {
@@ -1440,7 +1447,6 @@ gapi.load('client', async () => {
1440
1447
  remediations: [
1441
1448
  {
1442
1449
  details: "Test string",
1443
- remediationTime: "Test string",
1444
1450
  remediationType: "Test string",
1445
1451
  remediationUri: {
1446
1452
  label: "Test string",
@@ -1449,12 +1455,6 @@ gapi.load('client', async () => {
1449
1455
  }
1450
1456
  ],
1451
1457
  state: "Test string",
1452
- threats: [
1453
- {
1454
- details: "Test string",
1455
- threatType: "Test string",
1456
- }
1457
- ],
1458
1458
  },
1459
1459
  },
1460
1460
  });
@@ -2233,6 +2233,13 @@ gapi.load('client', async () => {
2233
2233
  type: "Test string",
2234
2234
  vexAssessment: {
2235
2235
  cve: "Test string",
2236
+ impacts: [
2237
+ "Test string"
2238
+ ],
2239
+ justification: {
2240
+ details: "Test string",
2241
+ justificationType: "Test string",
2242
+ },
2236
2243
  noteName: "Test string",
2237
2244
  relatedUris: [
2238
2245
  {
@@ -2243,7 +2250,6 @@ gapi.load('client', async () => {
2243
2250
  remediations: [
2244
2251
  {
2245
2252
  details: "Test string",
2246
- remediationTime: "Test string",
2247
2253
  remediationType: "Test string",
2248
2254
  remediationUri: {
2249
2255
  label: "Test string",
@@ -2252,12 +2258,6 @@ gapi.load('client', async () => {
2252
2258
  }
2253
2259
  ],
2254
2260
  state: "Test string",
2255
- threats: [
2256
- {
2257
- details: "Test string",
2258
- threatType: "Test string",
2259
- }
2260
- ],
2261
2261
  },
2262
2262
  },
2263
2263
  });
@@ -2559,6 +2559,13 @@ gapi.load('client', async () => {
2559
2559
  vulnerabilityAssessment: {
2560
2560
  assessment: {
2561
2561
  cve: "Test string",
2562
+ impacts: [
2563
+ "Test string"
2564
+ ],
2565
+ justification: {
2566
+ details: "Test string",
2567
+ justificationType: "Test string",
2568
+ },
2562
2569
  longDescription: "Test string",
2563
2570
  relatedUris: [
2564
2571
  {
@@ -2569,7 +2576,6 @@ gapi.load('client', async () => {
2569
2576
  remediations: [
2570
2577
  {
2571
2578
  details: "Test string",
2572
- remediationTime: "Test string",
2573
2579
  remediationType: "Test string",
2574
2580
  remediationUri: {
2575
2581
  label: "Test string",
@@ -2579,12 +2585,6 @@ gapi.load('client', async () => {
2579
2585
  ],
2580
2586
  shortDescription: "Test string",
2581
2587
  state: "Test string",
2582
- threats: [
2583
- {
2584
- details: "Test string",
2585
- threatType: "Test string",
2586
- }
2587
- ],
2588
2588
  },
2589
2589
  languageCode: "Test string",
2590
2590
  longDescription: "Test string",
@@ -2597,9 +2597,9 @@ gapi.load('client', async () => {
2597
2597
  name: "Test string",
2598
2598
  },
2599
2599
  publisher: {
2600
- context: "Test string",
2601
2600
  issuingAuthority: "Test string",
2602
2601
  name: "Test string",
2602
+ publisherNamespace: "Test string",
2603
2603
  },
2604
2604
  shortDescription: "Test string",
2605
2605
  title: "Test string",
@@ -2881,6 +2881,13 @@ gapi.load('client', async () => {
2881
2881
  vulnerabilityAssessment: {
2882
2882
  assessment: {
2883
2883
  cve: "Test string",
2884
+ impacts: [
2885
+ "Test string"
2886
+ ],
2887
+ justification: {
2888
+ details: "Test string",
2889
+ justificationType: "Test string",
2890
+ },
2884
2891
  longDescription: "Test string",
2885
2892
  relatedUris: [
2886
2893
  {
@@ -2891,7 +2898,6 @@ gapi.load('client', async () => {
2891
2898
  remediations: [
2892
2899
  {
2893
2900
  details: "Test string",
2894
- remediationTime: "Test string",
2895
2901
  remediationType: "Test string",
2896
2902
  remediationUri: {
2897
2903
  label: "Test string",
@@ -2901,12 +2907,6 @@ gapi.load('client', async () => {
2901
2907
  ],
2902
2908
  shortDescription: "Test string",
2903
2909
  state: "Test string",
2904
- threats: [
2905
- {
2906
- details: "Test string",
2907
- threatType: "Test string",
2908
- }
2909
- ],
2910
2910
  },
2911
2911
  languageCode: "Test string",
2912
2912
  longDescription: "Test string",
@@ -2919,9 +2919,9 @@ gapi.load('client', async () => {
2919
2919
  name: "Test string",
2920
2920
  },
2921
2921
  publisher: {
2922
- context: "Test string",
2923
2922
  issuingAuthority: "Test string",
2924
2923
  name: "Test string",
2924
+ publisherNamespace: "Test string",
2925
2925
  },
2926
2926
  shortDescription: "Test string",
2927
2927
  title: "Test string",