@maxim_mazurok/gapi.client.containeranalysis-v1beta1 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 +46 -46
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: 20230224
12
+ // Revision: 20230310
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -51,6 +51,10 @@ declare namespace gapi.client {
51
51
  interface Assessment {
52
52
  /** Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking number for the vulnerability. */
53
53
  cve?: string;
54
+ /** Contains information about the impact of this vulnerability, this will change with time. */
55
+ impacts?: string[];
56
+ /** Justification provides the justification when the state of the assessment if NOT_AFFECTED. */
57
+ justification?: Justification;
54
58
  /** A detailed description of this Vex. */
55
59
  longDescription?: string;
56
60
  /**
@@ -64,8 +68,6 @@ declare namespace gapi.client {
64
68
  shortDescription?: string;
65
69
  /** Provides the state of this Vulnerability assessment. */
66
70
  state?: string;
67
- /** Contains information about this vulnerability, this will change with time. */
68
- threats?: Threat[];
69
71
  }
70
72
  interface Attestation {
71
73
  genericSignedAttestation?: GenericSignedAttestation;
@@ -443,6 +445,8 @@ declare namespace gapi.client {
443
445
  type?: string;
444
446
  }
445
447
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions {
448
+ /** Optional. Option to specify how default logs buckets are setup. */
449
+ defaultLogsBucketBehavior?: string;
446
450
  /**
447
451
  * 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
448
452
  * 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
@@ -1141,6 +1145,12 @@ declare namespace gapi.client {
1141
1145
  /** This field contains a value that indicates the minimum number of keys that need to be used to sign the step's in-toto link. */
1142
1146
  threshold?: string;
1143
1147
  }
1148
+ interface Justification {
1149
+ /** Additional details on why this justification was chosen. */
1150
+ details?: string;
1151
+ /** The justification type for this vulnerability. */
1152
+ justificationType?: string;
1153
+ }
1144
1154
  interface KnowledgeBase {
1145
1155
  /** The KB name (generally of the form KB[0-9]+ i.e. KB123456). */
1146
1156
  name?: string;
@@ -1471,12 +1481,12 @@ declare namespace gapi.client {
1471
1481
  repoName?: string;
1472
1482
  }
1473
1483
  interface Publisher {
1474
- /** 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 */
1475
- context?: string;
1476
1484
  /** Provides information about the authority of the issuing party to release the document, in particular, the party's constituency and responsibilities or other obligations. */
1477
1485
  issuingAuthority?: string;
1478
1486
  /** Name of the publisher. Examples: 'Google', 'Google Cloud Platform'. */
1479
1487
  name?: string;
1488
+ /** 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 */
1489
+ publisherNamespace?: string;
1480
1490
  }
1481
1491
  interface RelatedUrl {
1482
1492
  /** Label to describe usage of the URL. */
@@ -1504,8 +1514,6 @@ declare namespace gapi.client {
1504
1514
  interface Remediation {
1505
1515
  /** Contains a comprehensive human-readable discussion of the remediation. */
1506
1516
  details?: string;
1507
- /** Contains the date from which the remediation is available. */
1508
- remediationTime?: string;
1509
1517
  /** The type of remediation that can be applied. */
1510
1518
  remediationType?: string;
1511
1519
  /** Contains the URL where to obtain the remediation. */
@@ -1606,12 +1614,6 @@ declare namespace gapi.client {
1606
1614
  /** A subset of `TestPermissionsRequest.permissions` that the caller is allowed. */
1607
1615
  permissions?: string[];
1608
1616
  }
1609
- interface Threat {
1610
- /** Represents a thorough human-readable discussion of the threat. */
1611
- details?: string;
1612
- /** The type of threat. */
1613
- threatType?: string;
1614
- }
1615
1617
  interface TimeSpan {
1616
1618
  /** End of time span. */
1617
1619
  endTime?: string;
@@ -1637,6 +1639,10 @@ declare namespace gapi.client {
1637
1639
  interface VexAssessment {
1638
1640
  /** Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking number for the vulnerability. */
1639
1641
  cve?: string;
1642
+ /** Contains information about the impact of this vulnerability, this will change with time. */
1643
+ impacts?: string[];
1644
+ /** Justification provides the justification when the state of the assessment if NOT_AFFECTED. */
1645
+ justification?: Justification;
1640
1646
  /** The VulnerabilityAssessment note from which this VexAssessment was generated. This will be of the form: `projects/[PROJECT_ID]/notes/[NOTE_ID]`. */
1641
1647
  noteName?: string;
1642
1648
  /** Holds a list of references associated with this vulnerability item and assessment. */
@@ -1645,8 +1651,6 @@ declare namespace gapi.client {
1645
1651
  remediations?: Remediation[];
1646
1652
  /** Provides the state of this Vulnerability assessment. */
1647
1653
  state?: string;
1648
- /** Contains information about this vulnerability, this will change with time. */
1649
- threats?: Threat[];
1650
1654
  }
1651
1655
  interface Volume {
1652
1656
  /** 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.20230224",
3
+ "version": "0.0.20230310",
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: 20230224
6
+ // Revision: 20230310
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -289,6 +289,13 @@ gapi.load('client', async () => {
289
289
  vulnerabilityAssessment: {
290
290
  assessment: {
291
291
  cve: "Test string",
292
+ impacts: [
293
+ "Test string"
294
+ ],
295
+ justification: {
296
+ details: "Test string",
297
+ justificationType: "Test string",
298
+ },
292
299
  longDescription: "Test string",
293
300
  relatedUris: [
294
301
  {
@@ -299,7 +306,6 @@ gapi.load('client', async () => {
299
306
  remediations: [
300
307
  {
301
308
  details: "Test string",
302
- remediationTime: "Test string",
303
309
  remediationType: "Test string",
304
310
  remediationUri: {
305
311
  label: "Test string",
@@ -309,12 +315,6 @@ gapi.load('client', async () => {
309
315
  ],
310
316
  shortDescription: "Test string",
311
317
  state: "Test string",
312
- threats: [
313
- {
314
- details: "Test string",
315
- threatType: "Test string",
316
- }
317
- ],
318
318
  },
319
319
  languageCode: "Test string",
320
320
  longDescription: "Test string",
@@ -324,9 +324,9 @@ gapi.load('client', async () => {
324
324
  name: "Test string",
325
325
  },
326
326
  publisher: {
327
- context: "Test string",
328
327
  issuingAuthority: "Test string",
329
328
  name: "Test string",
329
+ publisherNamespace: "Test string",
330
330
  },
331
331
  shortDescription: "Test string",
332
332
  title: "Test string",
@@ -593,6 +593,13 @@ gapi.load('client', async () => {
593
593
  vulnerabilityAssessment: {
594
594
  assessment: {
595
595
  cve: "Test string",
596
+ impacts: [
597
+ "Test string"
598
+ ],
599
+ justification: {
600
+ details: "Test string",
601
+ justificationType: "Test string",
602
+ },
596
603
  longDescription: "Test string",
597
604
  relatedUris: [
598
605
  {
@@ -603,7 +610,6 @@ gapi.load('client', async () => {
603
610
  remediations: [
604
611
  {
605
612
  details: "Test string",
606
- remediationTime: "Test string",
607
613
  remediationType: "Test string",
608
614
  remediationUri: {
609
615
  label: "Test string",
@@ -613,12 +619,6 @@ gapi.load('client', async () => {
613
619
  ],
614
620
  shortDescription: "Test string",
615
621
  state: "Test string",
616
- threats: [
617
- {
618
- details: "Test string",
619
- threatType: "Test string",
620
- }
621
- ],
622
622
  },
623
623
  languageCode: "Test string",
624
624
  longDescription: "Test string",
@@ -628,9 +628,9 @@ gapi.load('client', async () => {
628
628
  name: "Test string",
629
629
  },
630
630
  publisher: {
631
- context: "Test string",
632
631
  issuingAuthority: "Test string",
633
632
  name: "Test string",
633
+ publisherNamespace: "Test string",
634
634
  },
635
635
  shortDescription: "Test string",
636
636
  title: "Test string",
@@ -922,6 +922,13 @@ gapi.load('client', async () => {
922
922
  vulnerabilityAssessment: {
923
923
  assessment: {
924
924
  cve: "Test string",
925
+ impacts: [
926
+ "Test string"
927
+ ],
928
+ justification: {
929
+ details: "Test string",
930
+ justificationType: "Test string",
931
+ },
925
932
  longDescription: "Test string",
926
933
  relatedUris: [
927
934
  {
@@ -932,7 +939,6 @@ gapi.load('client', async () => {
932
939
  remediations: [
933
940
  {
934
941
  details: "Test string",
935
- remediationTime: "Test string",
936
942
  remediationType: "Test string",
937
943
  remediationUri: {
938
944
  label: "Test string",
@@ -942,12 +948,6 @@ gapi.load('client', async () => {
942
948
  ],
943
949
  shortDescription: "Test string",
944
950
  state: "Test string",
945
- threats: [
946
- {
947
- details: "Test string",
948
- threatType: "Test string",
949
- }
950
- ],
951
951
  },
952
952
  languageCode: "Test string",
953
953
  longDescription: "Test string",
@@ -957,9 +957,9 @@ gapi.load('client', async () => {
957
957
  name: "Test string",
958
958
  },
959
959
  publisher: {
960
- context: "Test string",
961
960
  issuingAuthority: "Test string",
962
961
  name: "Test string",
962
+ publisherNamespace: "Test string",
963
963
  },
964
964
  shortDescription: "Test string",
965
965
  title: "Test string",
@@ -1443,6 +1443,13 @@ gapi.load('client', async () => {
1443
1443
  type: "Test string",
1444
1444
  vexAssessment: {
1445
1445
  cve: "Test string",
1446
+ impacts: [
1447
+ "Test string"
1448
+ ],
1449
+ justification: {
1450
+ details: "Test string",
1451
+ justificationType: "Test string",
1452
+ },
1446
1453
  noteName: "Test string",
1447
1454
  relatedUris: [
1448
1455
  {
@@ -1453,7 +1460,6 @@ gapi.load('client', async () => {
1453
1460
  remediations: [
1454
1461
  {
1455
1462
  details: "Test string",
1456
- remediationTime: "Test string",
1457
1463
  remediationType: "Test string",
1458
1464
  remediationUri: {
1459
1465
  label: "Test string",
@@ -1462,12 +1468,6 @@ gapi.load('client', async () => {
1462
1468
  }
1463
1469
  ],
1464
1470
  state: "Test string",
1465
- threats: [
1466
- {
1467
- details: "Test string",
1468
- threatType: "Test string",
1469
- }
1470
- ],
1471
1471
  },
1472
1472
  },
1473
1473
  }
@@ -1904,6 +1904,13 @@ gapi.load('client', async () => {
1904
1904
  type: "Test string",
1905
1905
  vexAssessment: {
1906
1906
  cve: "Test string",
1907
+ impacts: [
1908
+ "Test string"
1909
+ ],
1910
+ justification: {
1911
+ details: "Test string",
1912
+ justificationType: "Test string",
1913
+ },
1907
1914
  noteName: "Test string",
1908
1915
  relatedUris: [
1909
1916
  {
@@ -1914,7 +1921,6 @@ gapi.load('client', async () => {
1914
1921
  remediations: [
1915
1922
  {
1916
1923
  details: "Test string",
1917
- remediationTime: "Test string",
1918
1924
  remediationType: "Test string",
1919
1925
  remediationUri: {
1920
1926
  label: "Test string",
@@ -1923,12 +1929,6 @@ gapi.load('client', async () => {
1923
1929
  }
1924
1930
  ],
1925
1931
  state: "Test string",
1926
- threats: [
1927
- {
1928
- details: "Test string",
1929
- threatType: "Test string",
1930
- }
1931
- ],
1932
1932
  },
1933
1933
  },
1934
1934
  });
@@ -2400,6 +2400,13 @@ gapi.load('client', async () => {
2400
2400
  type: "Test string",
2401
2401
  vexAssessment: {
2402
2402
  cve: "Test string",
2403
+ impacts: [
2404
+ "Test string"
2405
+ ],
2406
+ justification: {
2407
+ details: "Test string",
2408
+ justificationType: "Test string",
2409
+ },
2403
2410
  noteName: "Test string",
2404
2411
  relatedUris: [
2405
2412
  {
@@ -2410,7 +2417,6 @@ gapi.load('client', async () => {
2410
2417
  remediations: [
2411
2418
  {
2412
2419
  details: "Test string",
2413
- remediationTime: "Test string",
2414
2420
  remediationType: "Test string",
2415
2421
  remediationUri: {
2416
2422
  label: "Test string",
@@ -2419,12 +2425,6 @@ gapi.load('client', async () => {
2419
2425
  }
2420
2426
  ],
2421
2427
  state: "Test string",
2422
- threats: [
2423
- {
2424
- details: "Test string",
2425
- threatType: "Test string",
2426
- }
2427
- ],
2428
2428
  },
2429
2429
  },
2430
2430
  });